~ubuntu-branches/ubuntu/vivid/monodevelop/vivid-proposed

« back to all changes in this revision

Viewing changes to src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor.QuickTasks/QuickTaskMiniMapMode.cs

  • Committer: Package Import Robot
  • Author(s): Jo Shields
  • Date: 2014-10-09 14:09:23 UTC
  • mfrom: (10.3.5)
  • Revision ID: package-import@ubuntu.com-20141009140923-s0d22u5f9kg8jvds
Tags: 5.5.0.227-1
* [b2c8331] Imported Upstream version 5.5.0.227 (Closes: #754316)
* [d210995] Delete obsolete patches
* [1b59ae1] Clear patch fizz, via quilt refresh
* [3dd147d] Fix error in configure.in which applies for tarball builds but 
  not git builds when running autoreconf
* [21c2a57] Remove Metacity references for good
* [3331661] Ensure NUnit 2.6.3 is installed
* [fd85c88] Build-depend on NuGet
* [a1ae116] Add WebKit to build dependencies, for Xwt moduleref resolution
* [9b4cf12] Since the GDB addin is integrated now, declare it in 
  debian/control
* [6231562] Correct NUnit links
* [3d2b693] Fix NuGet addin, by copying libs locally
* [74bf9a8] Don't symlink unused Mocks NUnit assembly
* [ade52b2] Ensure IKVM.Reflection is built with default (4.5) profile

Show diffs side-by-side

added added

removed removed

Lines of Context:
120
120
                        }
121
121
 
122
122
 
123
 
                        protected override void MouseMove (double y)
 
123
                        protected override void MovePosition (double y)
124
124
                        {
125
 
                                if (button != 1)
126
 
                                        return;
127
125
                                var ph = (int)(lineHeight * (TextEditor.GetTextEditorData ().VisibleLineCount));
128
126
                                double position = vadjustment.Upper * (Math.Min (GetBufferYOffset () + y, ph) / (double)ph) - vadjustment.PageSize / 2;
129
127
                                position = Math.Max (vadjustment.Lower, Math.Min (position, vadjustment.Upper - vadjustment.PageSize));
199
197
                                if (TextEditor.ColorStyle != null) {
200
198
                                        using (var cr = Gdk.CairoHelper.Create (backgroundPixbuf)) {
201
199
                                                cr.Rectangle (0, 0, curWidth, curHeight);
202
 
                                                cr.Color = TextEditor.ColorStyle.PlainText.Background;
 
200
                                                cr.SetSourceColor (TextEditor.ColorStyle.PlainText.Background);
203
201
                                                cr.Fill ();
204
202
                                        }
205
203
                                }
229
227
                                        int h = mode.backgroundBuffer.ClipRegion.Clipbox.Height;
230
228
                                        cr.Rectangle (0, 0, w, h);
231
229
                                        if (mode.TextEditor.ColorStyle != null)
232
 
                                                cr.Color = mode.TextEditor.ColorStyle.PlainText.Background;
 
230
                                                cr.SetSourceColor (mode.TextEditor.ColorStyle.PlainText.Background);
233
231
                                        cr.Fill ();
234
232
                                        
235
233
                                        maxLine = mode.TextEditor.GetTextEditorData ().VisibleLineCount;
306
304
                                        } else {
307
305
                                                cr.Rectangle (0, 0, Allocation.Width, Allocation.Height);
308
306
                                                if (TextEditor.ColorStyle != null)
309
 
                                                        cr.Color = TextEditor.ColorStyle.PlainText.Background;
 
307
                                                        cr.SetSourceColor (TextEditor.ColorStyle.PlainText.Background);
310
308
                                                cr.Fill ();
311
309
                                        }
312
310
                                        /*
329
327
                                                              lineHeight * vadjustment.PageSize / TextEditor.LineHeight);
330
328
                                                var c = (Cairo.Color)(HslColor)Style.Dark (State); 
331
329
                                                c.A = 0.2;
332
 
                                                cr.Color = c;
 
330
                                                cr.SetSourceColor (c);
333
331
                                                cr.Fill ();
334
332
                                        }
335
333
                                        DrawLeftBorder (cr);