[gimp/gtk3-port: 140/235] app: use gtk_menu_shell_get_selected_item()
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/gtk3-port: 140/235] app: use gtk_menu_shell_get_selected_item()
- Date: Wed, 12 Jul 2017 21:35:57 +0000 (UTC)
commit eaa8de9cbd7754e457c92ec0b03be9226c8e6476
Author: Michael Natterer <mitch gimp org>
Date: Wed Dec 29 15:41:39 2010 +0100
app: use gtk_menu_shell_get_selected_item()
app/widgets/gimpuimanager.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/app/widgets/gimpuimanager.c b/app/widgets/gimpuimanager.c
index b12bbfd..f9b4eef 100644
--- a/app/widgets/gimpuimanager.c
+++ b/app/widgets/gimpuimanager.c
@@ -23,7 +23,6 @@
#include <string.h>
#include <gegl.h>
-#undef GSEAL_ENABLE
#include <gtk/gtk.h>
#include <gdk/gdkkeysyms.h>
@@ -959,7 +958,9 @@ gimp_ui_manager_item_key_press (GtkWidget *widget,
while (! help_id)
{
- GtkWidget *menu_item = GTK_MENU_SHELL (widget)->active_menu_item;
+ GtkWidget *menu_item;
+
+ menu_item = gtk_menu_shell_get_selected_item (GTK_MENU_SHELL (widget));
if (! menu_item && GTK_IS_MENU (widget))
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]