[gnome-globalmenu] Add the quirk for 'Gnomenu*' widgets.



commit 69f0fc2ed765e5a1098900ba288d18b269176f19
Author: Yu Feng <rainwoodman gmail com>
Date:   Wed Nov 11 12:20:38 2009 -0500

    Add the quirk for 'Gnomenu*' widgets.

 globalmenu-plugin/info.vala |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/globalmenu-plugin/info.vala b/globalmenu-plugin/info.vala
index 0a3ee00..97a666c 100644
--- a/globalmenu-plugin/info.vala
+++ b/globalmenu-plugin/info.vala
@@ -132,7 +132,7 @@ internal class MenuBarInfo {
 			quirks = QuirkType.REGULAR_WIDGET;
 		}
 
-		if(has_parent_type_name("GnomenuMenuBar")) {
+		if(has_parent_type_name("Gnomenu")) {
 			quirks = QuirkType.REGULAR_WIDGET;
 		}
 
@@ -160,8 +160,7 @@ internal class MenuBarInfo {
 		var screen = menubar.get_screen();
 
 		if(settings == null) {
-			settings = new Gnomenu.Settings();
-			settings.notify["show-local-menu"] += show_local_menu_changed;
+			settings = new Gnomenu.Settings(); settings.notify["show-local-menu"] += show_local_menu_changed;
 			settings.notify["show-menu-icons"] += show_menu_icons_changed;
 		}
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]