[gtk+] GtkInvisible behaves like GtkWindow
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] GtkInvisible behaves like GtkWindow
- Date: Fri, 3 May 2013 01:37:02 +0000 (UTC)
commit c538bdc7dcdb39c9d35d6996041a93ee6ea61986
Author: Matthias Clasen <mclasen redhat com>
Date: Thu May 2 20:43:34 2013 -0400
GtkInvisible behaves like GtkWindow
As far as refcounting is concerned, invisibles are like
windows: you have to destroy them.
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 d113eb3..0e1eae0 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]