From 8d1ff18de01d36f97e442a58ec8948206cb54961 Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Wed, 20 Dec 2000 16:32:41 +0000 Subject: [PATCH] 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. --- ChangeLog | 6 ++++++ ChangeLog.pre-2-0 | 6 ++++++ ChangeLog.pre-2-10 | 6 ++++++ ChangeLog.pre-2-2 | 6 ++++++ ChangeLog.pre-2-4 | 6 ++++++ ChangeLog.pre-2-6 | 6 ++++++ ChangeLog.pre-2-8 | 6 ++++++ gtk/gtkinvisible.c | 2 ++ 8 files changed, 44 insertions(+) diff --git a/ChangeLog b/ChangeLog index e863b0fd89..53ccbf1773 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +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. + 2000-12-18 Havoc Pennington * gtk/gtktextview.c (gtk_text_view_delete_from_cursor): do diff --git a/ChangeLog.pre-2-0 b/ChangeLog.pre-2-0 index e863b0fd89..53ccbf1773 100644 --- a/ChangeLog.pre-2-0 +++ b/ChangeLog.pre-2-0 @@ -1,3 +1,9 @@ +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. + 2000-12-18 Havoc Pennington * gtk/gtktextview.c (gtk_text_view_delete_from_cursor): do diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index e863b0fd89..53ccbf1773 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,9 @@ +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. + 2000-12-18 Havoc Pennington * gtk/gtktextview.c (gtk_text_view_delete_from_cursor): do diff --git a/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2 index e863b0fd89..53ccbf1773 100644 --- a/ChangeLog.pre-2-2 +++ b/ChangeLog.pre-2-2 @@ -1,3 +1,9 @@ +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. + 2000-12-18 Havoc Pennington * gtk/gtktextview.c (gtk_text_view_delete_from_cursor): do diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index e863b0fd89..53ccbf1773 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -1,3 +1,9 @@ +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. + 2000-12-18 Havoc Pennington * gtk/gtktextview.c (gtk_text_view_delete_from_cursor): do diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index e863b0fd89..53ccbf1773 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,9 @@ +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. + 2000-12-18 Havoc Pennington * gtk/gtktextview.c (gtk_text_view_delete_from_cursor): do diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index e863b0fd89..53ccbf1773 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,9 @@ +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. + 2000-12-18 Havoc Pennington * gtk/gtktextview.c (gtk_text_view_delete_from_cursor): do 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