mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-25 13:11:13 +00:00
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:
parent
1cfe645856
commit
62f46c86d7
@ -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):
|
||||
|
@ -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 *
|
||||
|
Loading…
Reference in New Issue
Block a user