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

« back to all changes in this revision

Viewing changes to src/core/MonoDevelop.Ide/MonoDevelop.Components.Commands/CommandMenuBar.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:
27
27
//
28
28
 
29
29
using System;
 
30
using Gtk;
 
31
using Gdk;
 
32
using MonoDevelop.Ide.Gui;
30
33
 
31
34
namespace MonoDevelop.Components.Commands
32
35
{
42
45
                internal CommandManager CommandManager {
43
46
                        get { return manager; }
44
47
                }
 
48
 
 
49
                protected override bool OnExposeEvent (Gdk.EventExpose evnt)
 
50
                {
 
51
                        using (var context = Gdk.CairoHelper.Create (evnt.Window)) {
 
52
                                context.Color = (HslColor)Style.Light (StateType.Normal);
 
53
                                context.Paint ();
 
54
                        }
 
55
 
 
56
                        foreach (Gtk.Widget child in Children)
 
57
                                (this as Gtk.Container).PropagateExpose (child, evnt);
 
58
                        return false;
 
59
                }
45
60
        }
46
61
}