[gnome-builder] tree: disable icons for now
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] tree: disable icons for now
- Date: Mon, 23 Mar 2015 23:21:09 +0000 (UTC)
commit 6a44f1113db2afd365b06805141c700924dfe16c
Author: Christian Hergert <christian hergert me>
Date: Sat Feb 7 19:55:57 2015 -0800
tree: disable icons for now
src/tree/gb-project-tree-builder.c | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/src/tree/gb-project-tree-builder.c b/src/tree/gb-project-tree-builder.c
index 9b6aa01..a16803c 100644
--- a/src/tree/gb-project-tree-builder.c
+++ b/src/tree/gb-project-tree-builder.c
@@ -24,6 +24,10 @@
#include "gb-widget.h"
#include "gb-workbench.h"
+#if 0
+# define ENABLE_ICONS
+#endif
+
typedef struct
{
IdeContext *context;
@@ -84,6 +88,7 @@ gb_project_tree_builder_set_context (GbProjectTreeBuilder *self,
static const gchar *
get_icon_name (GFileInfo *file_info)
{
+#ifdef ENABLE_ICONS
GFileType file_type;
g_return_val_if_fail (G_IS_FILE_INFO (file_info), NULL);
@@ -94,6 +99,9 @@ get_icon_name (GFileInfo *file_info)
return "folder-symbolic";
return "text-x-generic";
+#else
+ return NULL;
+#endif
}
static void
@@ -150,7 +158,9 @@ build_project (GbProjectTreeBuilder *self,
GbTreeNode *child;
child = g_object_new (GB_TYPE_TREE_NODE,
+#ifdef ENABLE_ICONS
"icon-name", "folder-symbolic",
+#endif
"item", item,
"text", _("Files"),
NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]