summaryrefslogtreecommitdiff
path: root/gtk/gtkinvisible.c
diff options
context:
space:
mode:
Diffstat (limited to 'gtk/gtkinvisible.c')
-rw-r--r--gtk/gtkinvisible.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gtk/gtkinvisible.c b/gtk/gtkinvisible.c
index c18c789348..e7d8cc4088 100644
--- a/gtk/gtkinvisible.c
+++ b/gtk/gtkinvisible.c
@@ -102,7 +102,10 @@ gtk_invisible_destroy (GtkObject *object)
GtkWidget*
gtk_invisible_new (void)
{
- return GTK_WIDGET (gtk_type_new (GTK_TYPE_INVISIBLE));
+ GtkWidget *result = GTK_WIDGET (gtk_type_new (GTK_TYPE_INVISIBLE));
+ gtk_widget_realize (result);
+
+ return result;
}
static void