From d42a30e0ecbc5203fc4fc08462815e1b4190c7d4 Mon Sep 17 00:00:00 2001 From: Sven Neumann Date: Thu, 8 Jun 2006 12:51:16 +0000 Subject: [PATCH] do not use gtk_menu_attach_to_widget() but gtk_menu_set_screen(). Menus 2006-06-08 Sven Neumann * plug-ins/common/animationplay.c (menu_popup): do not use gtk_menu_attach_to_widget() but gtk_menu_set_screen(). Menus don't like to be attached multiple times. --- ChangeLog | 6 ++++++ plug-ins/common/animationplay.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 2db8b9260c..523e1078de 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2006-06-08 Sven Neumann + + * plug-ins/common/animationplay.c (menu_popup): do not use + gtk_menu_attach_to_widget() but gtk_menu_set_screen(). Menus don't + like to be attached multiple times. + 2006-06-07 Bill Skaggs * app/core/gimpimage-arrange.[ch]: added, utility function for diff --git a/plug-ins/common/animationplay.c b/plug-ins/common/animationplay.c index 6fff4e1240..5ce29d757e 100644 --- a/plug-ins/common/animationplay.c +++ b/plug-ins/common/animationplay.c @@ -236,7 +236,7 @@ menu_popup (GtkWidget *widget, GtkWidget *menu = gtk_ui_manager_get_widget (ui_manager, "/anim-play-popup"); - gtk_menu_attach_to_widget (GTK_MENU (menu), widget, NULL); + gtk_menu_set_screen (GTK_MENU (menu), gtk_widget_get_screen (widget)); gtk_menu_popup (GTK_MENU (menu), NULL, NULL, NULL, NULL, event->button, event->time);