Merge lp:~codygarver/slingshot/fix-1019057 into lp:~elementary-pantheon/slingshot/trunk

Proposed by Cody Garver
Status: Merged
Merged at revision: 242
Proposed branch: lp:~codygarver/slingshot/fix-1019057
Merge into: lp:~elementary-pantheon/slingshot/trunk
Diff against target: 158 lines (+2/-113)
4 files modified
CMakeLists.txt (+0/-14)
data/icons/16x16/actions/slingshot-view-list-filter-symbolic.svg (+0/-63)
data/icons/16x16/actions/slingshot-view-list-icons-symbolic.svg (+0/-34)
src/SlingshotView.vala (+2/-2)
To merge this branch: bzr merge lp:~codygarver/slingshot/fix-1019057
Reviewer Review Type Date Requested Status
Victor Martinez Pending
Review via email: mp+115817@code.launchpad.net

This proposal supersedes a proposal from 2012-07-09.

Description of the change

Icon names changed AND old icons removed.

To post a comment you must log in.
Revision history for this message
Danielle Foré (danrabbit) wrote : Posted in a previous version of this proposal

Hey Cody, these old names seem to imply that Slingshot ships it's own custom icon names. Should we also make sure we're not shipping these icons prefixed with "slingshot-" ?

Revision history for this message
Victor Martinez (victored) wrote : Posted in a previous version of this proposal

Daniel, the diff shows the icon files were indeed re-named :)

review: Approve
Revision history for this message
Danielle Foré (danrabbit) wrote : Posted in a previous version of this proposal

Victor, What I mean is, are we still packaging those icons in Slingshot's data dir? Wouldn't make sense to install an icon that isn't going to be used ;)

Revision history for this message
Victor Martinez (victored) wrote : Posted in a previous version of this proposal

I see your point now. We shouldn't be shipping these icons twice.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'CMakeLists.txt'
2--- CMakeLists.txt 2012-07-13 11:57:20 +0000
3+++ CMakeLists.txt 2012-07-19 19:35:22 +0000
4@@ -18,7 +18,6 @@
5
6 #file (GLOB stylesheets "${CMAKE_CURRENT_SOURCE_DIR}/data/style/*.css")
7 file (GLOB applications_menu "${CMAKE_CURRENT_SOURCE_DIR}/data/pantheon-applications.menu")
8-file (GLOB icons "${CMAKE_CURRENT_SOURCE_DIR}/data/icons/16x16/actions/*")
9
10 # Configure file
11 configure_file (${CMAKE_SOURCE_DIR}/config.h.cmake ${CMAKE_BINARY_DIR}/config.h)
12@@ -72,19 +71,6 @@
13 #install (FILES ${stylesheets} DESTINATION ${PKGDATADIR}/style)
14 install (FILES ${applications_menu} DESTINATION /etc/xdg/menus)
15
16-# Install symbolic icons - fix bug #854734
17-option (INSTALL_ICONS "Install symbolic icons" ON)
18-if (INSTALL_ICONS)
19- install (FILES ${icons} DESTINATION ${DATADIR}/icons/hicolor/16x16/actions)
20-endif (INSTALL_ICONS)
21-
22-# Update icon cache
23-option (ICONCACHE_UPDATE "Update the icon cache after installation of new icons" ON)
24-if (ICONCACHE_UPDATE)
25- install (CODE "message (\"-- Update Gtk icon cache...\")")
26- install (CODE "execute_process (COMMAND gtk-update-icon-cache -f -t ${CMAKE_INSTALL_PREFIX}/share/icons/hicolor)")
27-endif (ICONCACHE_UPDATE)
28-
29 #
30 # GSettings Schema
31 #
32
33=== removed directory 'data/icons'
34=== removed directory 'data/icons/16x16'
35=== removed directory 'data/icons/16x16/actions'
36=== removed file 'data/icons/16x16/actions/slingshot-view-list-filter-symbolic.svg'
37--- data/icons/16x16/actions/slingshot-view-list-filter-symbolic.svg 2011-09-30 16:06:21 +0000
38+++ data/icons/16x16/actions/slingshot-view-list-filter-symbolic.svg 1970-01-01 00:00:00 +0000
39@@ -1,63 +0,0 @@
40-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
41-<!-- Created with Inkscape (http://www.inkscape.org/) -->
42-
43-<svg
44- xmlns:dc="http://purl.org/dc/elements/1.1/"
45- xmlns:cc="http://creativecommons.org/ns#"
46- xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
47- xmlns:svg="http://www.w3.org/2000/svg"
48- xmlns="http://www.w3.org/2000/svg"
49- xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
50- xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
51- version="1.1"
52- width="16"
53- height="16"
54- id="svg7384"
55- inkscape:version="0.48.2 r9819"
56- sodipodi:docname="view-list-filter-symbolic.svg">
57- <sodipodi:namedview
58- pagecolor="#ffffff"
59- bordercolor="#666666"
60- borderopacity="1"
61- objecttolerance="10"
62- gridtolerance="10"
63- guidetolerance="10"
64- inkscape:pageopacity="0"
65- inkscape:pageshadow="2"
66- inkscape:window-width="1280"
67- inkscape:window-height="753"
68- id="namedview7"
69- showgrid="true"
70- inkscape:zoom="14.75"
71- inkscape:cx="1.3559322"
72- inkscape:cy="8"
73- inkscape:window-x="0"
74- inkscape:window-y="24"
75- inkscape:window-maximized="1"
76- inkscape:current-layer="svg7384">
77- <inkscape:grid
78- type="xygrid"
79- id="grid3051" />
80- </sodipodi:namedview>
81- <title
82- id="title9167">Gnome Symbolic Icon Theme</title>
83- <defs
84- id="defs11" />
85- <metadata
86- id="metadata90">
87- <rdf:RDF>
88- <cc:Work
89- rdf:about="">
90- <dc:format>image/svg+xml</dc:format>
91- <dc:type
92- rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
93- <dc:title>Gnome Symbolic Icon Theme</dc:title>
94- </cc:Work>
95- </rdf:RDF>
96- </metadata>
97- <path
98- id="rect3055"
99- style="color:#bebebe;fill:#bebebe;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate"
100- d="m 10,9 0,4 4,0 0,-4 -4,0 z m 1,1 2,0 0,2 -2,0 0,-2 z m -1,-7 0,4 4,0 0,-4 -4,0 z m 1,1 2,0 0,2 -2,0 0,-2 z M 5,9 5,10 1,10 1,9 z m 0,3 0,1 -4,0 0,-1 z M 5,6 5,7 1,7 1,6 z M 5,3 5,4 1,4 1,3 z M 7,2 8,2 8,14 7,14 z"
101- inkscape:connector-curvature="0" />
102-</svg>
103
104=== removed file 'data/icons/16x16/actions/slingshot-view-list-icons-symbolic.svg'
105--- data/icons/16x16/actions/slingshot-view-list-icons-symbolic.svg 2011-09-30 16:06:21 +0000
106+++ data/icons/16x16/actions/slingshot-view-list-icons-symbolic.svg 1970-01-01 00:00:00 +0000
107@@ -1,34 +0,0 @@
108-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
109-<!-- Created with Inkscape (http://www.inkscape.org/) -->
110-
111-<svg
112- xmlns:dc="http://purl.org/dc/elements/1.1/"
113- xmlns:cc="http://creativecommons.org/ns#"
114- xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
115- xmlns:svg="http://www.w3.org/2000/svg"
116- xmlns="http://www.w3.org/2000/svg"
117- version="1.1"
118- width="16"
119- height="16"
120- id="svg7384">
121- <title
122- id="title9167">Gnome Symbolic Icon Theme</title>
123- <defs
124- id="defs11" />
125- <metadata
126- id="metadata90">
127- <rdf:RDF>
128- <cc:Work
129- rdf:about="">
130- <dc:format>image/svg+xml</dc:format>
131- <dc:type
132- rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
133- <dc:title>Gnome Symbolic Icon Theme</dc:title>
134- </cc:Work>
135- </rdf:RDF>
136- </metadata>
137- <path
138- d="M 2,2 2,6 6,6 6,2 z m 8,0 0,4 4,0 0,-4 z M 3,3 5,3 5,5 3,5 z m 8,0 2,0 0,2 -2,0 z m -9,7 0,4 4,0 0,-4 z m 8,0 0,4 4,0 0,-4 z m -7,1 2,0 0,2 -2,0 z m 8,0 2,0 0,2 -2,0 z"
139- id="rect2999"
140- style="color:#bebebe;fill:#bebebe;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate" />
141-</svg>
142
143=== modified file 'src/SlingshotView.vala'
144--- src/SlingshotView.vala 2012-07-10 22:57:34 +0000
145+++ src/SlingshotView.vala 2012-07-19 19:35:22 +0000
146@@ -146,11 +146,11 @@
147
148 view_selector = new ModeButton ();
149
150- var image = new Image.from_icon_name ("slingshot-view-list-icons-symbolic", IconSize.MENU);
151+ var image = new Image.from_icon_name ("view-grid-symbolic", IconSize.MENU);
152 image.tooltip_text = _("Grid");
153 view_selector.append (image);
154
155- image = new Image.from_icon_name ("slingshot-view-list-filter-symbolic", IconSize.MENU);
156+ image = new Image.from_icon_name ("view-filter-symbolic", IconSize.MENU);
157 image.tooltip_text = _("Categories");
158 view_selector.append (image);
159

Subscribers

People subscribed via source and target branches