diff options
author | Alexander Larsson <alexl@redhat.com> | 2000-12-20 16:32:41 +0000 |
---|---|---|
committer | Alexander Larsson <alexl@src.gnome.org> | 2000-12-20 16:32:41 +0000 |
commit | 8d1ff18de01d36f97e442a58ec8948206cb54961 (patch) | |
tree | fdefb6c01af1fcd1a5a20213054d05c75db5f074 /gtk/gtkinvisible.c | |
parent | d19234c6cad6ad4d5e5fdd6229f5f5c22061b650 (diff) | |
download | gtk+-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.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk/gtkinvisible.c b/gtk/gtkinvisible.c index 1350a43900..2594c3b7d4 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 |