[gnome-panel] panel: Fix main menu detection for menu buttons



commit b6d96c86c75ccddd11e664860c3edacbb0e4bf81
Author: Vincent Untz <vuntz gnome org>
Date:   Mon Apr 4 17:44:20 2011 +0200

    panel: Fix main menu detection for menu buttons
    
    The logic was inverted.

 gnome-panel/panel-menu-button.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gnome-panel/panel-menu-button.c b/gnome-panel/panel-menu-button.c
index ef95dfb..61cb5b5 100644
--- a/gnome-panel/panel-menu-button.c
+++ b/gnome-panel/panel-menu-button.c
@@ -656,7 +656,7 @@ panel_menu_button_is_main_menu (PanelMenuButton *button)
 {
 	g_return_val_if_fail (PANEL_IS_MENU_BUTTON (button), FALSE);
 
-	return !PANEL_GLIB_STR_EMPTY (button->priv->menu_path);
+	return PANEL_GLIB_STR_EMPTY (button->priv->menu_path);
 }
 
 void



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