Hard code freeze break for gnome-panel


While debugging some accessibility issue, I found out that if you press
alt+f1 to open the main menu (when you only have the main menu, not the
menu bar), it doesn't work. It turns out the logic for finding if a menu
button is a main menu was inverted.

It's really extremely simple :-)


Les gens heureux ne sont pas pressés.
>From 0bfa03e997552bf1a1f33c5c94faaaf21fe0eda5 Mon Sep 17 00:00:00 2001
From: Vincent Untz <vuntz gnome org>
Date: Mon, 4 Apr 2011 17:44:20 +0200
Subject: [PATCH] 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);

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