From bcbec07734a057f9aae139d37f6e30eee2b13de4 Mon Sep 17 00:00:00 2001 From: Ettore Perazzoli Date: Fri, 12 Jul 2002 17:48:47 +0000 Subject: (clicked): Ref the parent_window and then unref after you are done using (clicked): Ref the parent_window and then unref after you are done using it. [#27673] svn path=/trunk/; revision=17441 --- shell/ChangeLog | 6 ++++++ shell/evolution-folder-selector-button.c | 2 ++ 2 files changed, 8 insertions(+) (limited to 'shell') diff --git a/shell/ChangeLog b/shell/ChangeLog index cc4bd28555..c515d7f3b8 100644 --- a/shell/ChangeLog +++ b/shell/ChangeLog @@ -1,3 +1,9 @@ +2002-07-12 Ettore Perazzoli + + * evolution-folder-selector-button.c (clicked): Ref the + parent_window and then unref after you are done using it. + [#27673] + 2002-07-12 Peter Williams * Makefile.am (eshellinclude_HEADERS): Install some headers diff --git a/shell/evolution-folder-selector-button.c b/shell/evolution-folder-selector-button.c index 56cc1ca13b..cf1d4b802f 100644 --- a/shell/evolution-folder-selector-button.c +++ b/shell/evolution-folder-selector-button.c @@ -134,6 +134,7 @@ clicked (GtkButton *button) GTK_TYPE_WINDOW); gtk_widget_set_sensitive (GTK_WIDGET (parent_window), FALSE); + gtk_object_ref (GTK_OBJECT (parent_window)); folder_selector_button = EVOLUTION_FOLDER_SELECTOR_BUTTON (button); priv = folder_selector_button->priv; @@ -149,6 +150,7 @@ clicked (GtkButton *button) &return_folder); gtk_widget_set_sensitive (GTK_WIDGET (parent_window), TRUE); + gtk_object_unref (GTK_OBJECT (parent_window)); if (!return_folder) { gtk_signal_emit (GTK_OBJECT (folder_selector_button), -- cgit v1.2.3