~ubuntu-branches/ubuntu/trusty/monodevelop/trusty-proposed

« back to all changes in this revision

Viewing changes to src/core/MonoDevelop.Ide/MonoDevelop.Components.PropertyGrid.Editors/ColorEditorCell.cs

  • Committer: Package Import Robot
  • Author(s): Jo Shields
  • Date: 2013-05-12 09:46:03 UTC
  • mto: This revision was merged to the branch mainline in revision 29.
  • Revision ID: package-import@ubuntu.com-20130512094603-mad323bzcxvmcam0
Tags: upstream-4.0.5+dfsg
ImportĀ upstreamĀ versionĀ 4.0.5+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
57
57
                                return String.Format("#{0:x2}{1:x2}{2:x2}", color.R, color.G, color.B);
58
58
                }
59
59
                
60
 
                public override void Render (Gdk.Drawable window, Gdk.Rectangle bounds, Gtk.StateType state)
 
60
                public override void Render (Gdk.Drawable window, Cairo.Context ctx, Gdk.Rectangle bounds, Gtk.StateType state)
61
61
                {
62
62
                        Gdk.GC gc = new Gdk.GC (window);
63
63
                        gc.RgbFgColor = GetColor ();
66
66
                        window.DrawRectangle (Container.Style.BlackGC, false, bounds.X, bounds.Y + yd, ColorBoxSize - 1, ColorBoxSize - 1);
67
67
                        bounds.X += ColorBoxSize + ColorBoxSpacing;
68
68
                        bounds.Width -= ColorBoxSize + ColorBoxSpacing;
69
 
                        base.Render (window, bounds, state);
 
69
                        base.Render (window, ctx, bounds, state);
70
70
                }
71
71
                
72
72
                private Gdk.Color GetColor ()