summaryrefslogtreecommitdiff
path: root/unity-private/panel
diff options
authorMirco Müller <mirco.mueller@ubuntu.com>2010-09-21 16:35:55 +0200
committerMirco Müller <mirco.mueller@ubuntu.com>2010-09-21 16:35:55 +0200
commit3344d2aa5e083d5247d3980aca7074d512ba0a53 (patch)
treede25d4f4ab203ff1de19edc239fac94bd596a534 /unity-private/panel
parentd807347d870b36a83c43bf2ee5b465ceaea345ba (diff)
Make insensitive menu really inactive, when window is initially focused (program is started). Fixes LP: #604505
(bzr r521.4.1)
Diffstat (limited to 'unity-private/panel')
-rw-r--r--unity-private/panel/panel-indicator-object-entry-view.vala28
1 files changed, 28 insertions, 0 deletions
diff --git a/unity-private/panel/panel-indicator-object-entry-view.vala b/unity-private/panel/panel-indicator-object-entry-view.vala
index 5271d7364..c1d2e05d4 100644
--- a/unity-private/panel/panel-indicator-object-entry-view.vala
+++ b/unity-private/panel/panel-indicator-object-entry-view.vala
@@ -43,6 +43,34 @@ namespace Unity.Panel.Indicators
spacing:3,
homogeneous:false,
reactive:true);
+
+ if (entry.label != null)
+ {
+ if ((entry.label.get_flags () & Gtk.WidgetFlags.SENSITIVE) != 0)
+ {
+ this.reactive = true;
+ this.skip = false;
+ }
+ else
+ {
+ this.reactive = false;
+ this.skip = true;
+ }
+ }
+
+ if (entry.image != null)
+ {
+ if ((entry.image.get_flags () & Gtk.WidgetFlags.SENSITIVE) != 0)
+ {
+ this.reactive = true;
+ this.skip = false;
+ }
+ else
+ {
+ this.reactive = false;
+ this.skip = true;
+ }
+ }
}
~IndicatorObjectEntryView ()