diff options
author | Michael Natterer <mitch@imendio.com> | 2007-09-06 10:46:54 +0000 |
---|---|---|
committer | Michael Natterer <mitch@src.gnome.org> | 2007-09-06 10:46:54 +0000 |
commit | 62f46c86d7ca4d3a42d4d2314013ddb06edb6db1 (patch) | |
tree | 5da91abef3e9f80cb9de7333f81f7df9d4268075 /demos/gtk-demo | |
parent | 1cfe645856a3823da81dc69d7bfdfc4b3e993c0a (diff) | |
download | gtk+-62f46c86d7ca4d3a42d4d2314013ddb06edb6db1.tar.gz |
s/gtk_widget_[un]ref/g_object_[un]ref/g
2007-09-06 Michael Natterer <mitch@imendio.com>
* demos/gtk-demo/panes.c: s/gtk_widget_[un]ref/g_object_[un]ref/g
svn path=/trunk/; revision=18729
Diffstat (limited to 'demos/gtk-demo')
-rw-r--r-- | demos/gtk-demo/panes.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/demos/gtk-demo/panes.c b/demos/gtk-demo/panes.c index 8547d8fc4f..efd88f21ec 100644 --- a/demos/gtk-demo/panes.c +++ b/demos/gtk-demo/panes.c @@ -24,13 +24,13 @@ toggle_resize (GtkWidget *widget, resize = is_child1 ? paned->child1_resize : paned->child2_resize; shrink = is_child1 ? paned->child1_shrink : paned->child2_shrink; - gtk_widget_ref (child); + g_object_ref (child); gtk_container_remove (GTK_CONTAINER (child->parent), child); if (is_child1) gtk_paned_pack1 (paned, child, !resize, shrink); else gtk_paned_pack2 (paned, child, !resize, shrink); - gtk_widget_unref (child); + g_object_unref (child); } void @@ -44,13 +44,13 @@ toggle_shrink (GtkWidget *widget, resize = is_child1 ? paned->child1_resize : paned->child2_resize; shrink = is_child1 ? paned->child1_shrink : paned->child2_shrink; - gtk_widget_ref (child); + g_object_ref (child); gtk_container_remove (GTK_CONTAINER (child->parent), child); if (is_child1) gtk_paned_pack1 (paned, child, resize, !shrink); else gtk_paned_pack2 (paned, child, resize, !shrink); - gtk_widget_unref (child); + g_object_unref (child); } GtkWidget * |