Keep a reference to the item. (#167920, Hazael Maldonado Torres)

2005-04-05  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkmenushell.c (gtk_menu_shell_activate_item): Keep a
	reference to the item.  (#167920, Hazael Maldonado Torres)
This commit is contained in:
Matthias Clasen 2005-04-05 13:52:32 +00:00 committed by Matthias Clasen
parent 3372325195
commit bdb14ae648
4 changed files with 11 additions and 0 deletions

View File

@ -1,5 +1,8 @@
2005-04-05 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkmenushell.c (gtk_menu_shell_activate_item): Keep a
reference to the item. (#167920, Hazael Maldonado Torres)
* gtk/gtktreeview.c (gtk_tree_view_set_search_column): Add some
more docs on interactive search.

View File

@ -1,5 +1,8 @@
2005-04-05 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkmenushell.c (gtk_menu_shell_activate_item): Keep a
reference to the item. (#167920, Hazael Maldonado Torres)
* gtk/gtktreeview.c (gtk_tree_view_set_search_column): Add some
more docs on interactive search.

View File

@ -1,5 +1,8 @@
2005-04-05 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkmenushell.c (gtk_menu_shell_activate_item): Keep a
reference to the item. (#167920, Hazael Maldonado Torres)
* gtk/gtktreeview.c (gtk_tree_view_set_search_column): Add some
more docs on interactive search.

View File

@ -1008,6 +1008,7 @@ gtk_menu_shell_activate_item (GtkMenuShell *menu_shell,
deactivate = GTK_MENU_ITEM_GET_CLASS (menu_item)->hide_on_activate;
g_object_ref (menu_shell);
g_object_ref (menu_item);
if (deactivate)
{
@ -1040,6 +1041,7 @@ gtk_menu_shell_activate_item (GtkMenuShell *menu_shell,
g_slist_free (shells);
g_object_unref (menu_shell);
g_object_unref (menu_item);
}
/* Distance should be +/- 1 */