[virt-tools-list] [PATCH virt-viewer 4/4] nsis: fix a few missing icons

Marc-André Lureau marcandre.lureau at gmail.com
Mon Apr 2 21:57:02 UTC 2012


---
 data/virt-viewer.nsis.in |   19 +++++++++++++++++++
 1 files changed, 19 insertions(+), 0 deletions(-)

diff --git a/data/virt-viewer.nsis.in b/data/virt-viewer.nsis.in
index ed692e1..cb39eac 100644
--- a/data/virt-viewer.nsis.in
+++ b/data/virt-viewer.nsis.in
@@ -163,6 +163,23 @@ Section "VirtViewer"
   SetOutPath "$INSTDIR\share\themes\MS-Windows\gtk-2.0"
   File "@prefix@/share/themes/MS-Windows/gtk-2.0/gtkrc"
 
+  SetOutPath "$INSTDIR\etc\gtk-2.0"
+  FileOpen $0 gtkrc w
+  FileWrite $0 "gtk-theme-name = $\"MS-Windows$\" $\n"
+  FileWrite $0 "gtk-icon-theme-name = $\"hicolor$\" $\n"
+  FileClose $0
+
+  SetOutPath "$INSTDIR\share\icons\hicolor"
+  File "/usr/share/icons/hicolor/index.theme"
+
+  SetOutPath "$INSTDIR\share\icons\hicolor\16x16\apps"
+  File "@prefix@/share/icons/hicolor/16x16/apps/virt-viewer.png"
+  File "/usr/share/icons/gnome/16x16/apps/preferences-desktop-keyboard-shortcuts.png"
+  SetOutPath "$INSTDIR\share\icons\hicolor\32x32\apps"
+  File "@prefix@/share/icons/hicolor/32x32/apps/virt-viewer.png"
+  SetOutPath "$INSTDIR\share\icons\hicolor\48x48\apps"
+  File "@prefix@/share/icons/hicolor/48x48/apps/virt-viewer.png"
+
   ReadEnvStr $0 COMSPEC
   SetOutPath "$INSTDIR"
   nsExec::ExecToLog '$0 /C bin\pango-querymodules.exe > etc\pango\pango.modules'
@@ -194,6 +211,8 @@ Section "Uninstall"
 
   RMDir /r "$INSTDIR\lib\gtk-2.0"
 
+  RMDir /r "$INSTDIR\share\icons\hicolor"
+
   Delete /rebootok "$INSTDIR\share\virt-viewer\ui\*.xml"
   Delete /rebootok "$INSTDIR\share\themes\MS-Windows\gtk-2.0\gtkrc"
 
-- 
1.7.7.6




More information about the virt-tools-list mailing list