[gedit/gnome-3-8] Bug 699312 - Default to a generic icon in the file browser
- From: Garrett Regier <gregier src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit/gnome-3-8] Bug 699312 - Default to a generic icon in the file browser
- Date: Tue, 18 Jun 2013 14:37:00 +0000 (UTC)
commit 185f00d9d80a0d2f6c71c76372d275767d61b4b8
Author: Garrett Regier <garrettregier gmail com>
Date: Tue Jun 18 07:19:32 2013 -0700
Bug 699312 - Default to a generic icon in the file browser
plugins/filebrowser/gedit-file-browser-store.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/plugins/filebrowser/gedit-file-browser-store.c b/plugins/filebrowser/gedit-file-browser-store.c
index 77afffa..5126d13 100644
--- a/plugins/filebrowser/gedit-file-browser-store.c
+++ b/plugins/filebrowser/gedit-file-browser-store.c
@@ -1664,6 +1664,10 @@ model_recomposite_icon_real (GeditFileBrowserStore *tree_model,
icon = gedit_file_browser_utils_pixbuf_from_file (node->file, GTK_ICON_SIZE_MENU, FALSE);
}
+ /* Fallback to the same icon as the file browser */
+ if (!icon)
+ icon = gedit_file_browser_utils_pixbuf_from_theme ("text-x-generic", GTK_ICON_SIZE_MENU);
+
if (node->icon)
g_object_unref (node->icon);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]