~ubuntu-branches/ubuntu/saucy/monodevelop/saucy-proposed

« back to all changes in this revision

Viewing changes to src/core/Mono.Texteditor/Mono.TextEditor/IconMargin.cs

  • Committer: Bazaar Package Importer
  • Author(s): Jo Shields
  • Date: 2010-09-10 16:54:48 UTC
  • mfrom: (19.1.1 experimental)
  • Revision ID: james.westby@ubuntu.com-20100910165448-0rybfk25zd4o9431
Tags: 2.4+dfsg-2
* debian/patches/inject_Mono.Debugger.Soft_source.patch,
  debian/patches/use_system_Mono.Debugger.Soft.patch,
  debian/control:
  + Build against system Soft Debugger, since we now have a new
    enough Mono to match MonoDevelop's required API

Show diffs side-by-side

added added

removed removed

Lines of Context:
41
41
                public IconMargin (TextEditor editor)
42
42
                {
43
43
                        this.editor = editor;
44
 
                        layout = new Pango.Layout (editor.PangoContext);
 
44
                        layout = PangoUtil.CreateLayout (editor);
45
45
                }
46
46
                
47
47
                public override int Width {
105
105
                        }
106
106
                }
107
107
                
108
 
                internal protected override void Draw (Gdk.Drawable win, Gdk.Rectangle area, int line, int x, int y)
 
108
                internal protected override void Draw (Gdk.Drawable win, Gdk.Rectangle area, int line, int x, int y, int lineHeight)
109
109
                {
110
 
                        Gdk.Rectangle drawArea = new Gdk.Rectangle (x, y, Width, editor.LineHeight);
 
110
                        Gdk.Rectangle drawArea = new Gdk.Rectangle (x, y, Width, lineHeight);
111
111
                        
112
112
                        win.DrawRectangle (backgroundGC, true, drawArea);
113
113
                        win.DrawLine (separatorGC, x + Width - 1, drawArea.Top, x + Width - 1, drawArea.Bottom);