[gnome-software] Add a better icon for 'no results found'



commit 3db511daa403a7c8c637bbd1c2104384c4869062
Author: Matthias Clasen <mclasen redhat com>
Date:   Thu Sep 5 14:42:19 2013 -0400

    Add a better icon for 'no results found'
    
    Use a symbolic version of the coming new gnome-software
    application icon.

 data/Makefile.am                 |    3 ++
 data/gnome-software-symbolic.svg |   68 ++++++++++++++++++++++++++++++++++++++
 src/gnome-software.ui            |    2 +-
 src/gs-application.c             |    3 ++
 4 files changed, 75 insertions(+), 1 deletions(-)
---
diff --git a/data/Makefile.am b/data/Makefile.am
index 8f85959..9cdc54b 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -11,6 +11,9 @@ dist_resources_DATA =                                 \
        stars3.png                                      \
        stars4.png
 
+iconsdir = $(datadir)/gnome-software/icons/hicolor/scalable/apps
+dist_icons_DATA = gnome-software-symbolic.svg
+
 appdatadir = $(datadir)/appdata
 appdata_files = gnome-software.appdata.xml
 
diff --git a/data/gnome-software-symbolic.svg b/data/gnome-software-symbolic.svg
new file mode 100644
index 0000000..4fb6f83
--- /dev/null
+++ b/data/gnome-software-symbolic.svg
@@ -0,0 +1,68 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+
+<svg
+   xmlns:dc="http://purl.org/dc/elements/1.1/";
+   xmlns:cc="http://creativecommons.org/ns#";
+   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#";
+   xmlns:svg="http://www.w3.org/2000/svg";
+   xmlns="http://www.w3.org/2000/svg";
+   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd";
+   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape";
+   width="16px"
+   height="16px"
+   id="svg6685"
+   version="1.1"
+   inkscape:version="0.48.4 r9939"
+   sodipodi:docname="New document 2">
+  <defs
+     id="defs6687" />
+  <sodipodi:namedview
+     id="base"
+     pagecolor="#ffffff"
+     bordercolor="#666666"
+     borderopacity="1.0"
+     inkscape:pageopacity="0.0"
+     inkscape:pageshadow="2"
+     inkscape:zoom="44.395604"
+     inkscape:cx="11.771938"
+     inkscape:cy="7.6200625"
+     inkscape:current-layer="layer1"
+     showgrid="false"
+     inkscape:grid-bbox="true"
+     inkscape:document-units="px"
+     inkscape:snap-nodes="false"
+     inkscape:snap-bbox="true"
+     inkscape:window-width="1920"
+     inkscape:window-height="1021"
+     inkscape:window-x="0"
+     inkscape:window-y="27"
+     inkscape:window-maximized="1">
+    <inkscape:grid
+       type="xygrid"
+       id="grid6693" />
+  </sodipodi:namedview>
+  <metadata
+     id="metadata6690">
+    <rdf:RDF>
+      <cc:Work
+         rdf:about="">
+        <dc:format>image/svg+xml</dc:format>
+        <dc:type
+           rdf:resource="http://purl.org/dc/dcmitype/StillImage"; />
+        <dc:title></dc:title>
+      </cc:Work>
+    </rdf:RDF>
+  </metadata>
+  <g
+     id="layer1"
+     inkscape:label="Layer 1"
+     inkscape:groupmode="layer">
+    <path
+       inkscape:connector-curvature="0"
+       
style="color:#000000;fill:#bebebe;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.99999988;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate"
+       d="m 8,-3.8e-7 c -1.65335,0 -3,1.34665008 -3,3.00000008 l 0,1 -1.90625,0 C 2.48781,3.9999997 
2,4.4878097 2,5.0937497 L 2,14.90625 C 2,15.51219 2.48781,16 3.09375,16 l 9.8125,0 C 13.51219,16 14,15.51219 
14,14.90625 l 0,-9.8125003 c 0,-0.60594 -0.48781,-1.09375 -1.09375,-1.09375 l -1.90625,0 0,-1 C 11,1.3466497 
9.65335,-3.8e-7 8,-3.8e-7 z m 0,1 c 1.11665,0 1.9999999,0.88335008 1.9999999,2.00000008 l 0,1 -3.9999999,0 
0,-1 C 6,1.8833497 6.88335,0.99999962 8,0.99999962 z M 5.46875,4.9999997 c 0.28679,0 0.53125,0.22386 
0.53125,0.5 0,0.27614 -0.24446,0.5 -0.53125,0.5 -0.28679,0 -0.5,-0.22386 -0.5,-0.5 0,-0.27614 0.21321,-0.5 
0.5,-0.5 z m 5,0 c 0.28679,0 0.53125,0.22386 0.53125,0.5 0,0.27614 -0.24446,0.5 -0.53125,0.5 -0.28679,0 
-0.5000001,-0.22386 -0.5000001,-0.5 0,-0.27614 0.2132101,-0.5 0.5000001,-0.5 z"
+       id="rect43509-3-4-3"
+       inkscape:label="gnome-software" />
+  </g>
+</svg>
diff --git a/src/gnome-software.ui b/src/gnome-software.ui
index e9b0fd0..a554892 100644
--- a/src/gnome-software.ui
+++ b/src/gnome-software.ui
@@ -530,7 +530,7 @@
                     <child>
                       <object class="GtkImage" id="noresults_icon">
                         <property name="visible">True</property>
-                        <property name="icon-name">emblem-documents-symbolic</property>
+                        <property name="icon_name">gnome-software-symbolic</property>
                         <property name="pixel-size">64</property>
                         <property name="opacity">0.55</property>
                       </object>
diff --git a/src/gs-application.c b/src/gs-application.c
index 7f37918..6101ec3 100644
--- a/src/gs-application.c
+++ b/src/gs-application.c
@@ -126,6 +126,9 @@ gs_application_startup (GApplication *application)
 
         g_type_ensure (GS_TYPE_BOX);
 
+        gtk_icon_theme_append_search_path (gtk_icon_theme_get_default (),
+                                           DATADIR "/gnome-software/icons/hicolor");
+
         /* set up the app menu */
         g_action_map_add_action_entries (G_ACTION_MAP (app),
                                          actions, G_N_ELEMENTS (actions),


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