From fbb2e3f4f51a4c0ccc8f2bf511f4766293fc4af0 Mon Sep 17 00:00:00 2001 From: Tim Janik Date: Wed, 23 Nov 2005 18:06:58 +0000 Subject: deprecated floating/sink API and implemented it in terms of the GObject Wed Nov 23 18:55:47 2005 Tim Janik * gtk/gtkobject.[hc]: deprecated floating/sink API and implemented it in terms of the GObject floating/sink API. * gtk/gtkaboutdialog.c: * gtk/gtkaction.c: * gtk/gtkcellview.c: * gtk/gtkclist.c: * gtk/gtkcolorsel.c: * gtk/gtkcombobox.c: * gtk/gtkfilechooserdefault.c: * gtk/gtkiconview.c: * gtk/gtkinvisible.c: * gtk/gtkitemfactory.c: * gtk/gtklayout.c: * gtk/gtkmenu.c: * gtk/gtkmenutoolbutton.c: * gtk/gtknotebook.c: * gtk/gtkprogress.c: * gtk/gtkrange.c: * gtk/gtkspinbutton.c: * gtk/gtkstatusicon.c: * gtk/gtktext.c: * gtk/gtktextview.c: * gtk/gtktoolbar.c: * gtk/gtktoolbutton.c: * gtk/gtktoolitem.c: * gtk/gtktreeitem.c: * gtk/gtktreeview.c: * gtk/gtktreeviewcolumn.c: * gtk/gtkuimanager.c: * gtk/gtkviewport.c: * gtk/gtkwidget.c: * gtk/gtkwindow.c: ported to use GObject's g_object_ref_sink(). * gtk/gtkcolorsel.c: * gtk/gtkfilechooserdefault.c: * gtk/gtkaboutdialog.c: fixed compiler warnings. --- gtk/gtktoolitem.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'gtk/gtktoolitem.c') diff --git a/gtk/gtktoolitem.c b/gtk/gtktoolitem.c index 88feeab1e..a20c0a345 100644 --- a/gtk/gtktoolitem.c +++ b/gtk/gtktoolitem.c @@ -1109,8 +1109,7 @@ gtk_tool_item_set_proxy_menu_item (GtkToolItem *tool_item, if (menu_item) { - g_object_ref (menu_item); - gtk_object_sink (GTK_OBJECT (menu_item)); + g_object_ref_sink (menu_item); gtk_widget_set_sensitive (menu_item, GTK_WIDGET_SENSITIVE (tool_item)); -- cgit v1.2.1