diff options
Diffstat (limited to 'shell')
-rw-r--r-- | shell/ChangeLog | 5 | ||||
-rw-r--r-- | shell/e-shell-folder-title-bar.c | 6 |
2 files changed, 9 insertions, 2 deletions
diff --git a/shell/ChangeLog b/shell/ChangeLog index 26dd26bd51..6698064f7d 100644 --- a/shell/ChangeLog +++ b/shell/ChangeLog @@ -1,3 +1,8 @@ +2001-09-12 Ettore Perazzoli <ettore@ximian.com> + + * e-shell-folder-title-bar.c (unrealize): Only + gtk_widget_destroy() the icon_widget if it's not NULL. + 2001-09-12 Iain Holmes <iain@ximian.com> * importers/evolution-importer-client.c diff --git a/shell/e-shell-folder-title-bar.c b/shell/e-shell-folder-title-bar.c index a3509546b5..f3ff94a6fe 100644 --- a/shell/e-shell-folder-title-bar.c +++ b/shell/e-shell-folder-title-bar.c @@ -381,8 +381,10 @@ unrealize (GtkWidget *widget) folder_title_bar = E_SHELL_FOLDER_TITLE_BAR (widget); priv = folder_title_bar->priv; - gtk_widget_destroy (priv->icon_widget); - priv->icon_widget = NULL; + if (priv->icon_widget != NULL) { + gtk_widget_destroy (priv->icon_widget); + priv->icon_widget = NULL; + } } static void |