Merge lp:~jbicha/indicator-session/lp1600502-fix-icon-install into lp:indicator-session

Proposed by Jeremy Bícha
Status: Merged
Approved by: Michael Terry
Approved revision: 472
Merged at revision: 497
Proposed branch: lp:~jbicha/indicator-session/lp1600502-fix-icon-install
Merge into: lp:indicator-session
Diff against target: 48 lines (+15/-21)
2 files modified
data/CMakeLists.txt (+1/-21)
data/icons/CMakeLists.txt (+14/-0)
To merge this branch: bzr merge lp:~jbicha/indicator-session/lp1600502-fix-icon-install
Reviewer Review Type Date Requested Status
Michael Terry Approve
Review via email: mp+299625@code.launchpad.net

Commit message

Fix icon installation.

To post a comment you must log in.
Revision history for this message
Michael Terry (mterry) wrote :

Tested. This does fix the double install issue. Seems like you could have just changed

install (DIRECTORY icons

to

install (DIRECTORY

(or dropped all the specific directory names instead)

But this works too.

review: Approve
Revision history for this message
Michael Terry (mterry) wrote :

Thanks btw! :) Double icons suck. Was in the review-zone, didn't mean to sound brusque.

Revision history for this message
Jeremy Bícha (jbicha) wrote :

No problem. I didn't realize until your comment that the real problem was

install (DIRECTORY icons

Had I used a one-word fix, I bet this would have been reviewed sooner! :)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'data/CMakeLists.txt'
--- data/CMakeLists.txt 2014-02-20 16:19:05 +0000
+++ data/CMakeLists.txt 2016-07-10 16:30:58 +0000
@@ -92,24 +92,4 @@
92install (FILES "${UNITY_INDICATOR_FILE}"92install (FILES "${UNITY_INDICATOR_FILE}"
93 DESTINATION "${UNITY_INDICATOR_DIR}")93 DESTINATION "${UNITY_INDICATOR_DIR}")
9494
9595add_subdirectory (icons)
96##
97## Icons
98##
99
100# where to install
101set (ICON_DIR "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_DATADIR}/icons/hicolor")
102message (STATUS "${ICON_DIR} is the Icon install dir")
103
104install (DIRECTORY icons
105 icons/16x16
106 icons/22x22
107 icons/24x24
108 icons/32x32
109 icons/scalable
110 DESTINATION "${ICON_DIR}"
111 FILES_MATCHING PATTERN "*.png" PATTERN "*.svg")
112
113install(CODE "execute_process (COMMAND gtk-update-icon-cache -t -f ${ICON_DIR})"
114 CODE "message (STATUS \"Updating icon cache\")")
115
11696
=== added file 'data/icons/CMakeLists.txt'
--- data/icons/CMakeLists.txt 1970-01-01 00:00:00 +0000
+++ data/icons/CMakeLists.txt 2016-07-10 16:30:58 +0000
@@ -0,0 +1,14 @@
1set (ICON_DIR "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_DATADIR}/icons/hicolor")
2message (STATUS "${ICON_DIR} is the Icon install dir")
3
4install (DIRECTORY
5 16x16
6 22x22
7 24x24
8 32x32
9 scalable
10 DESTINATION "${ICON_DIR}"
11 FILES_MATCHING PATTERN "*.png" PATTERN "*.svg")
12
13install(CODE "execute_process (COMMAND gtk-update-icon-cache -t -f ${ICON_DIR})"
14 CODE "message (STATUS \"Updating icon cache\")")

Subscribers

People subscribed via source and target branches