do not use gtk_menu_attach_to_widget() but gtk_menu_set_screen(). Menus

2006-06-08  Sven Neumann  <sven@gimp.org>

	* 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.
This commit is contained in:
Sven Neumann 2006-06-08 12:51:16 +00:00 committed by Sven Neumann
parent 11cdcf7285
commit d42a30e0ec
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2006-06-08 Sven Neumann <sven@gimp.org>
* 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 <weskaggs@primate.ucdavis.edu>
* app/core/gimpimage-arrange.[ch]: added, utility function for

View File

@ -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);