diff options
author | Tim Janik <timj@imendio.com> | 2005-11-23 18:06:58 +0000 |
---|---|---|
committer | Tim Janik <timj@src.gnome.org> | 2005-11-23 18:06:58 +0000 |
commit | fbb2e3f4f51a4c0ccc8f2bf511f4766293fc4af0 (patch) | |
tree | 72b9ee7fa6999a36e3080048d07c27497e1843cf /gtk/gtkwidget.c | |
parent | 9856c1b25a242b8ba030ea7bb2567c3de80f54ae (diff) | |
download | gtk+-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/gtkwidget.c')
-rw-r--r-- | gtk/gtkwidget.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c index 09b4c91a26..2ee47887f0 100644 --- a/gtk/gtkwidget.c +++ b/gtk/gtkwidget.c @@ -4489,8 +4489,7 @@ gtk_widget_set_parent (GtkWidget *widget, /* keep this function in sync with gtk_menu_attach_to_widget() */ - g_object_ref (widget); - gtk_object_sink (GTK_OBJECT (widget)); + g_object_ref_sink (widget); widget->parent = parent; if (GTK_WIDGET_STATE (parent) != GTK_STATE_NORMAL) @@ -7131,8 +7130,7 @@ gtk_widget_class_install_style_property_parser (GtkWidgetClass *klass, return; } - g_param_spec_ref (pspec); - g_param_spec_sink (pspec); + g_param_spec_ref_sink (pspec); g_param_spec_set_qdata (pspec, quark_property_parser, (gpointer) parser); g_param_spec_pool_insert (style_property_spec_pool, pspec, G_OBJECT_CLASS_TYPE (klass)); } |