summaryrefslogtreecommitdiff
path: root/gtk/gtkinvisible.c
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2000-12-20 16:32:41 +0000
committerAlexander Larsson <alexl@src.gnome.org>2000-12-20 16:32:41 +0000
commit8d1ff18de01d36f97e442a58ec8948206cb54961 (patch)
treefdefb6c01af1fcd1a5a20213054d05c75db5f074 /gtk/gtkinvisible.c
parentd19234c6cad6ad4d5e5fdd6229f5f5c22061b650 (diff)
downloadgdk-pixbuf-8d1ff18de01d36f97e442a58ec8948206cb54961.tar.gz
Attach the style to the window so that the style it is not leaked when
2000-12-20 Alexander Larsson <alexl@redhat.com> * gtk/gtkinvisible.c (gtk_invisible_realize): Attach the style to the window so that the style it is not leaked when unrealizing the window.
Diffstat (limited to 'gtk/gtkinvisible.c')
-rw-r--r--gtk/gtkinvisible.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk/gtkinvisible.c b/gtk/gtkinvisible.c
index 1350a4390..2594c3b7d 100644
--- a/gtk/gtkinvisible.c
+++ b/gtk/gtkinvisible.c
@@ -134,6 +134,8 @@ gtk_invisible_realize (GtkWidget *widget)
widget->window = gdk_window_new (NULL, &attributes, attributes_mask);
gdk_window_set_user_data (widget->window, widget);
+
+ widget->style = gtk_style_attach (widget->style, widget->window);
}
static void