[gnome-panel] panel: Simply code to open menu bar on alt+f1
- From: Vincent Untz <vuntz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-panel] panel: Simply code to open menu bar on alt+f1
- Date: Tue, 5 Apr 2011 10:42:27 +0000 (UTC)
commit 2fad0423d70a0b540d3857744c78f4d0a8ed89a5
Author: Vincent Untz <vuntz gnome org>
Date: Tue Apr 5 12:41:07 2011 +0200
panel: Simply code to open menu bar on alt+f1
With GTK+ 3, we cannot do some hacks to deal with grabs. And it turns
out this is really an issue with GTK+ anyway. See
https://bugzilla.gnome.org/show_bug.cgi?id=554057
gnome-panel/panel-menu-bar.c | 26 ++------------------------
1 files changed, 2 insertions(+), 24 deletions(-)
---
diff --git a/gnome-panel/panel-menu-bar.c b/gnome-panel/panel-menu-bar.c
index deccdfc..de70925 100644
--- a/gnome-panel/panel-menu-bar.c
+++ b/gnome-panel/panel-menu-bar.c
@@ -298,30 +298,8 @@ void
panel_menu_bar_popup_menu (PanelMenuBar *menubar,
guint32 activate_time)
{
- GtkMenu *menu;
- GtkMenuShell *menu_shell;
-
g_return_if_fail (PANEL_IS_MENU_BAR (menubar));
- menu = GTK_MENU (menubar->priv->applications_menu);
-
- /*
- * We need to call _gtk_menu_shell_activate() here as is done in
- * window_key_press_handler in gtkmenubar.c which pops up menu
- * when F10 is pressed.
- *
- * As that function is private its code is replicated here.
- */
- menu_shell = GTK_MENU_SHELL (menubar);
- /* FIXMEgpoo: We need either accessors or a workaround to
- grab the focus */
-#if 0
- if (!menu_shell->GSEAL(active)) {
- gtk_grab_add (GTK_WIDGET (menu_shell));
- menu_shell->GSEAL(have_grab) = TRUE;
- menu_shell->GSEAL(active) = TRUE;
- }
-#endif
- gtk_menu_shell_select_item (menu_shell,
- gtk_menu_get_attach_widget (menu));
+ gtk_menu_shell_select_item (GTK_MENU_SHELL (menubar),
+ menubar->priv->applications_item);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]