Commit c538bdc7 authored by Matthias Clasen's avatar Matthias Clasen

GtkInvisible behaves like GtkWindow

As far as refcounting is concerned, invisibles are like
windows: you have to destroy them.
parent b9800577
......@@ -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));
g_object_unref (object);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment