summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2013-05-02 20:43:34 -0400
committerMatthias Clasen <mclasen@redhat.com>2013-05-02 20:43:34 -0400
commitc538bdc7dcdb39c9d35d6996041a93ee6ea61986 (patch)
tree7be172e1ff660fcdb1c555e4d2bf25b4fbac6cdc
parentb980057764adc96797284cbd2ace80a00193f380 (diff)
downloadgtk+-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.c2
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);