forked from AuroraMiddleware/gtk
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:
parent
3372325195
commit
bdb14ae648
@ -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.
|
||||
|
||||
|
@ -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.
|
||||
|
||||
|
@ -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.
|
||||
|
||||
|
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user