[gnome-builder] symbols: use include icon for packages



commit c921f9fe2d931ddc784eeb50bc7c65102be99899
Author: Christian Hergert <chergert redhat com>
Date:   Sun Jan 28 14:38:30 2018 -0800

    symbols: use include icon for packages
    
    Not 100% match, but good enough without having to create another icon.

 src/libide/symbols/ide-symbol.c               | 5 ++++-
 src/plugins/ctags/ide-ctags-completion-item.c | 4 ++++
 2 files changed, 8 insertions(+), 1 deletion(-)
---
diff --git a/src/libide/symbols/ide-symbol.c b/src/libide/symbols/ide-symbol.c
index d1a3dd9cc..cce48dd1f 100644
--- a/src/libide/symbols/ide-symbol.c
+++ b/src/libide/symbols/ide-symbol.c
@@ -211,6 +211,10 @@ ide_symbol_kind_get_icon_name (IdeSymbolKind kind)
       icon_name = "lang-function-symbolic";
       break;
 
+    case IDE_SYMBOL_PACKAGE:
+      icon_name = "lang-include-symbolic";
+      break;
+
     case IDE_SYMBOL_MACRO:
       icon_name = "lang-define-symbolic";
       break;
@@ -247,7 +251,6 @@ ide_symbol_kind_get_icon_name (IdeSymbolKind kind)
     case IDE_SYMBOL_MODULE:
     case IDE_SYMBOL_NUMBER:
     case IDE_SYMBOL_NONE:
-    case IDE_SYMBOL_PACKAGE:
     case IDE_SYMBOL_PROPERTY:
     case IDE_SYMBOL_STRING:
     case IDE_SYMBOL_TEMPLATE:
diff --git a/src/plugins/ctags/ide-ctags-completion-item.c b/src/plugins/ctags/ide-ctags-completion-item.c
index fbfaff967..bb3e5456d 100644
--- a/src/plugins/ctags/ide-ctags-completion-item.c
+++ b/src/plugins/ctags/ide-ctags-completion-item.c
@@ -162,6 +162,10 @@ get_icon_name (GtkSourceCompletionProposal *proposal)
       icon_name = "text-x-generic-symbolic";
       break;
 
+    case IDE_CTAGS_INDEX_ENTRY_IMPORT:
+      icon_name = "lang-include-symbolic";
+      break;
+
     case IDE_CTAGS_INDEX_ENTRY_MEMBER:
       icon_name = "struct-field-symbolic";
       break;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]