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/e-shell-folder-title-bar.c | |
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/e-shell-folder-title-bar.c')
-rw-r--r-- | shell/e-shell-folder-title-bar.c | 6 |
1 files changed, 4 insertions, 2 deletions
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 |