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
This commit is contained in:
Michael Natterer 2007-09-06 10:46:54 +00:00 committed by Michael Natterer
parent 1cfe645856
commit 62f46c86d7
2 changed files with 8 additions and 4 deletions

View File

@ -1,3 +1,7 @@
2007-09-06 Michael Natterer <mitch@imendio.com>
* demos/gtk-demo/panes.c: s/gtk_widget_[un]ref/g_object_[un]ref/g
2007-09-06 Richard Hult <richard@imendio.com>
* gdk/quartz/gdkwindow-quartz.c (_gdk_windowing_window_destroy):

View File

@ -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 *