Call gtk_menu_attach_to_widget() in the example for the ::popup-menu

2005-07-22  Federico Mena Quintero  <federico@ximian.com>

	* gtk/migrating-checklist.sgml: Call gtk_menu_attach_to_widget()
	in the example for the ::popup-menu signal.
This commit is contained in:
Federico Mena Quintero
2005-07-25 17:37:45 +00:00
committed by Federico Mena Quintero
parent c3354e76d7
commit 8f35b79ded
2 changed files with 6 additions and 0 deletions

View File

@@ -1,3 +1,8 @@
2005-07-22 Federico Mena Quintero <federico@ximian.com>
* gtk/migrating-checklist.sgml: Call gtk_menu_attach_to_widget()
in the example for the ::popup-menu signal.
2005-07-25 Matthias Clasen <mclasen@redhat.com>
* gtk/tmpl/gtktreemodelsort.sgml: Note that the sorting

View File

@@ -68,6 +68,7 @@ do_popup_menu (GtkWidget *my_widget, GdkEventButton *event)
event_time = gtk_get_current_event_time (<!-- -->);
}
gtk_menu_attach_to_widget (GTK_MENU (popup), my_widget, NULL);
gtk_menu_popup (GTK_MENU (popup), NULL, NULL, NULL, NULL,
button, event_time);
}