summaryrefslogtreecommitdiff
path: root/gtk/gtkaction.c
diff options
context:
space:
mode:
authorTim Janik <timj@imendio.com>2005-11-23 18:06:58 +0000
committerTim Janik <timj@src.gnome.org>2005-11-23 18:06:58 +0000
commitfbb2e3f4f51a4c0ccc8f2bf511f4766293fc4af0 (patch)
tree72b9ee7fa6999a36e3080048d07c27497e1843cf /gtk/gtkaction.c
parent9856c1b25a242b8ba030ea7bb2567c3de80f54ae (diff)
downloadgtk+-fbb2e3f4f51a4c0ccc8f2bf511f4766293fc4af0.tar.gz
deprecated floating/sink API and implemented it in terms of the GObject
Wed Nov 23 18:55:47 2005 Tim Janik <timj@imendio.com> * 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.
Diffstat (limited to 'gtk/gtkaction.c')
-rw-r--r--gtk/gtkaction.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gtk/gtkaction.c b/gtk/gtkaction.c
index 45611d34b4..df9aee5447 100644
--- a/gtk/gtkaction.c
+++ b/gtk/gtkaction.c
@@ -779,8 +779,7 @@ gtk_action_create_menu_proxy (GtkToolItem *tool_item,
{
menu_item = gtk_action_create_menu_item (action);
- g_object_ref (menu_item);
- gtk_object_sink (GTK_OBJECT (menu_item));
+ g_object_ref_sink (menu_item);
gtk_tool_item_set_proxy_menu_item (tool_item,
"gtk-action-menu-item", menu_item);