diff options
author | Ettore Perazzoli <ettore@src.gnome.org> | 2001-09-13 06:28:13 +0800 |
---|---|---|
committer | Ettore Perazzoli <ettore@src.gnome.org> | 2001-09-13 06:28:13 +0800 |
commit | 2b03fcd9187d201fa20637af6d5f29df96f6c2b1 (patch) | |
tree | 9dea38d656cb61e7a3dd319256d88200c6728ef2 /shell | |
parent | e01b1d7c259f148847e97d4c3e609933e26a73cf (diff) | |
download | gsoc2013-evolution-2b03fcd9187d201fa20637af6d5f29df96f6c2b1.tar.gz gsoc2013-evolution-2b03fcd9187d201fa20637af6d5f29df96f6c2b1.tar.zst gsoc2013-evolution-2b03fcd9187d201fa20637af6d5f29df96f6c2b1.zip |
Only gtk_widget_destroy() the icon_widget if it's not NULL.
* e-shell-folder-title-bar.c (unrealize): Only
gtk_widget_destroy() the icon_widget if it's not NULL.
svn path=/trunk/; revision=12788
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 |