ref and sink the adjustment we use for the mem_size_entry.

2002-02-03  Manish Singh  <yosh@gimp.org>

        * libgimpwidgets/gimpwidgets.c: ref and sink the adjustment we use
        for the mem_size_entry.
This commit is contained in:
Manish Singh 2002-02-04 03:10:33 +00:00 committed by Manish Singh
parent 7d419f002c
commit 979feb6aa3
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2002-02-03 Manish Singh <yosh@gimp.org>
* libgimpwidgets/gimpwidgets.c: ref and sink the adjustment we use
for the mem_size_entry.
2002-02-03 Manish Singh <yosh@gimp.org>
* docs/Makefile.am: don't install gimp-remote manpage yet

View File

@ -1134,6 +1134,8 @@ gimp_mem_size_entry_new (GtkAdjustment *adjustment)
gtk_box_pack_start (GTK_BOX (hbox), optionmenu, FALSE, FALSE, 0);
gtk_widget_show (optionmenu);
g_object_ref (adjustment);
gtk_object_sink (GTK_OBJECT (adjustment));
g_signal_connect_swapped (G_OBJECT (hbox), "destroy",
G_CALLBACK (g_object_unref),
adjustment);