Commit bdb14ae6 authored by Matthias Clasen's avatar Matthias Clasen Committed by Matthias Clasen

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)
parent 33723251
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.
......
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.
......
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.
......
......@@ -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 */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment