From 8d1ff18de01d36f97e442a58ec8948206cb54961 Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Wed, 20 Dec 2000 16:32:41 +0000 Subject: Attach the style to the window so that the style it is not leaked when 2000-12-20 Alexander Larsson * gtk/gtkinvisible.c (gtk_invisible_realize): Attach the style to the window so that the style it is not leaked when unrealizing the window. --- gtk/gtkinvisible.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gtk/gtkinvisible.c') 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 -- cgit v1.2.1