From bdb14ae648062389968654488f8e5a0795526454 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Tue, 5 Apr 2005 13:52:32 +0000 Subject: [PATCH] Keep a reference to the item. (#167920, Hazael Maldonado Torres) 2005-04-05 Matthias Clasen * gtk/gtkmenushell.c (gtk_menu_shell_activate_item): Keep a reference to the item. (#167920, Hazael Maldonado Torres) --- ChangeLog | 3 +++ ChangeLog.pre-2-10 | 3 +++ ChangeLog.pre-2-8 | 3 +++ gtk/gtkmenushell.c | 2 ++ 4 files changed, 11 insertions(+) diff --git a/ChangeLog b/ChangeLog index bc5ec74ca5..4aacbe5ca2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2005-04-05 Matthias Clasen + * 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. diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index bc5ec74ca5..4aacbe5ca2 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,5 +1,8 @@ 2005-04-05 Matthias Clasen + * 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. diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index bc5ec74ca5..4aacbe5ca2 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,5 +1,8 @@ 2005-04-05 Matthias Clasen + * 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. diff --git a/gtk/gtkmenushell.c b/gtk/gtkmenushell.c index 1534bbed02..dabae710ae 100644 --- a/gtk/gtkmenushell.c +++ b/gtk/gtkmenushell.c @@ -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 */