[gedit] 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] Bug 699312 - Default to a generic icon in the file browser
- Date: Tue, 18 Jun 2013 14:36:41 +0000 (UTC)
commit 936a354b6007470428b61a875bd085f01e7f87a6
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 8e79133..84cb0a5 100644
--- a/plugins/filebrowser/gedit-file-browser-store.c
+++ b/plugins/filebrowser/gedit-file-browser-store.c
@@ -1713,6 +1713,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]