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:
committed by
Manish Singh
parent
7d419f002c
commit
979feb6aa3
@ -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);
|
||||
|
||||
Reference in New Issue
Block a user