aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-shell-view.c
diff options
context:
space:
mode:
authorEttore Perazzoli <ettore@src.gnome.org>2002-07-12 05:28:24 +0800
committerEttore Perazzoli <ettore@src.gnome.org>2002-07-12 05:28:24 +0800
commit583f8ba770418d53c134fe4004d1f89e3880f466 (patch)
tree451ae6d19538f1db58547b6bbd89e88e5bb05d2f /shell/e-shell-view.c
parente8e6da16764e24d4137c16ae1009a9be701ddfaa (diff)
downloadgsoc2013-evolution-583f8ba770418d53c134fe4004d1f89e3880f466.tar.gz
gsoc2013-evolution-583f8ba770418d53c134fe4004d1f89e3880f466.tar.zst
gsoc2013-evolution-583f8ba770418d53c134fe4004d1f89e3880f466.zip
Allow a NULL icon [remove the precondition].
* e-shell-folder-title-bar.c (e_shell_folder_title_bar_set_icon): Allow a NULL icon [remove the precondition]. * e-shell-view.c (update_folder_title_bar): Only unref the folder_icon if not NULL. svn path=/trunk/; revision=17426
Diffstat (limited to 'shell/e-shell-view.c')
-rw-r--r--shell/e-shell-view.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/shell/e-shell-view.c b/shell/e-shell-view.c
index 8a717bcaf9..a06e8eeabd 100644
--- a/shell/e-shell-view.c
+++ b/shell/e-shell-view.c
@@ -1785,7 +1785,11 @@ update_folder_title_bar (EShellView *shell_view,
}
}
- e_shell_folder_title_bar_set_icon (E_SHELL_FOLDER_TITLE_BAR (priv->folder_title_bar), folder_icon);
+ e_shell_folder_title_bar_set_icon (E_SHELL_FOLDER_TITLE_BAR (priv->folder_title_bar),
+ folder_icon);
+
+ if (folder_icon != NULL)
+ gdk_pixbuf_unref (folder_icon);
if (title != NULL) {
char *s;
@@ -1794,8 +1798,6 @@ update_folder_title_bar (EShellView *shell_view,
e_shell_folder_title_bar_set_title (E_SHELL_FOLDER_TITLE_BAR (priv->folder_title_bar), s);
g_free (s);
}
-
- gdk_pixbuf_unref (folder_icon);
}
static void