diff options
author | Matthias Clasen <mclasen@redhat.com> | 2013-05-02 20:43:34 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2013-05-02 20:43:34 -0400 |
commit | c538bdc7dcdb39c9d35d6996041a93ee6ea61986 (patch) | |
tree | 7be172e1ff660fcdb1c555e4d2bf25b4fbac6cdc | |
parent | b980057764adc96797284cbd2ace80a00193f380 (diff) | |
download | gtk+-c538bdc7dcdb39c9d35d6996041a93ee6ea61986.tar.gz |
GtkInvisible behaves like GtkWindow
As far as refcounting is concerned, invisibles are like
windows: you have to destroy them.
-rw-r--r-- | gtk/tests/objects-finalize.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/tests/objects-finalize.c b/gtk/tests/objects-finalize.c index d113eb3d4a..0e1eae000c 100644 --- a/gtk/tests/objects-finalize.c +++ b/gtk/tests/objects-finalize.c @@ -63,7 +63,7 @@ test_finalize_object (gconstpointer data) g_object_weak_ref (object, check_finalized, &finalized); /* Toplevels are owned by GTK+, just tell GTK+ to destroy it */ - if (GTK_IS_WINDOW (object)) + if (GTK_IS_WINDOW (object) || GTK_IS_INVISIBLE (object)) gtk_widget_destroy (GTK_WIDGET (object)); else g_object_unref (object); |