From 62f46c86d7ca4d3a42d4d2314013ddb06edb6db1 Mon Sep 17 00:00:00 2001 From: Michael Natterer Date: Thu, 6 Sep 2007 10:46:54 +0000 Subject: [PATCH] s/gtk_widget_[un]ref/g_object_[un]ref/g 2007-09-06 Michael Natterer * demos/gtk-demo/panes.c: s/gtk_widget_[un]ref/g_object_[un]ref/g svn path=/trunk/; revision=18729 --- ChangeLog | 4 ++++ demos/gtk-demo/panes.c | 8 ++++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index f917889647..0dd543687f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2007-09-06 Michael Natterer + + * demos/gtk-demo/panes.c: s/gtk_widget_[un]ref/g_object_[un]ref/g + 2007-09-06 Richard Hult * gdk/quartz/gdkwindow-quartz.c (_gdk_windowing_window_destroy): 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 *