[kupfer] Use Nasser's kupfer icon



commit 5742b11fbf80a4e66b45fb9c5de844edea32d642
Author: Ulrik Sverdrup <ulrik sverdrup gmail com>
Date:   Fri May 14 23:07:34 2010 +0200

    Use Nasser's kupfer icon

 auxdata/kupfer.desktop.in |    2 +-
 auxdata/wscript           |   14 ++++++++++++++
 data/preferences.ui       |    2 +-
 kupfer/kupferui.py        |    2 ++
 kupfer/version.py         |    7 +++++--
 5 files changed, 23 insertions(+), 4 deletions(-)
---
diff --git a/auxdata/kupfer.desktop.in b/auxdata/kupfer.desktop.in
index a2e1abd..f382fa5 100644
--- a/auxdata/kupfer.desktop.in
+++ b/auxdata/kupfer.desktop.in
@@ -3,7 +3,7 @@ Version=1.0
 _Name=Kupfer
 _GenericName=Application Launcher
 _Comment=Convenient command and access tool for applications and documents
-Icon=system-search
+Icon=kupfer
 Exec=kupfer %F
 Type=Application
 Categories=Utility;
diff --git a/auxdata/wscript b/auxdata/wscript
index 916b0d1..0824a5f 100644
--- a/auxdata/wscript
+++ b/auxdata/wscript
@@ -48,3 +48,17 @@ def build(bld):
 				Utils.subst_vars("${DATADIR}/mime", bld.env)])
 		bld.exec_command(["update-desktop-database",
 				Utils.subst_vars("${DATADIR}/applications", bld.env)])
+
+	icons_inst = bld.install_files("${DATADIR}/icons/hicolor/scalable/apps",
+	                               "kupfer.svg")
+
+	# Waf's "gnome" tool  -- def postinstall_icons():
+	if icons_inst and bld.is_install:
+		icon_dir = bld.get_install_path('${DATADIR}/icons/hicolor')
+		if not Options.options.destdir:
+			Utils.pprint('YELLOW',"Updating Gtk icon cache.")
+			command='gtk-update-icon-cache -q -f -t %s' % icon_dir
+			ret=Utils.exec_command(command)
+		else:
+			Utils.pprint('YELLOW','Icon cache not updated. After install, run this:')
+			Utils.pprint('YELLOW','gtk-update-icon-cache -q -f -t %s'%icon_dir)
diff --git a/data/preferences.ui b/data/preferences.ui
index 342741a..d7e3d2f 100644
--- a/data/preferences.ui
+++ b/data/preferences.ui
@@ -7,7 +7,7 @@
     <property name="title" translatable="yes">Kupfer Preferences</property>
     <property name="role">Preferences</property>
     <property name="window_position">center</property>
-    <property name="icon_name">system-search</property>
+    <property name="icon_name">kupfer</property>
     <signal name="key_press_event" handler="on_preferenceswindow_key_press_event"/>
     <child>
       <object class="GtkVBox" id="vbox1">
diff --git a/kupfer/kupferui.py b/kupfer/kupferui.py
index bfa30a5..9755af0 100644
--- a/kupfer/kupferui.py
+++ b/kupfer/kupferui.py
@@ -36,6 +36,8 @@ def show_about_dialog(*ignored, **kwds):
 			ab.set_documenters(version.DOCUMENTERS)
 		if version.TRANSLATOR_CREDITS:
 			ab.set_translator_credits(version.TRANSLATOR_CREDITS)
+		if version.ARTISTS:
+			ab.set_artists(version.ARTISTS)
 
 		ab.connect("response", _response_callback)
 		# do not delete window on close
diff --git a/kupfer/version.py b/kupfer/version.py
index fd1b8c2..2ad487c 100644
--- a/kupfer/version.py
+++ b/kupfer/version.py
@@ -11,7 +11,7 @@ else:
 	VERSION = version_subst.VERSION
 	PACKAGE_NAME = version_subst.PACKAGE_NAME
 
-ICON_NAME = "system-search"
+ICON_NAME = "kupfer"
 PROGRAM_NAME = _("Kupfer")
 
 AUTHORS = u"""Ulrik Sverdrup <ulrik sverdrup gmail com>
@@ -42,7 +42,10 @@ Andrej ŽnidarÅ¡iÄ? (sl)
 lh (zh_CN)
 """.splitlines()
 
-AUTHORS += PACKAGERS + TRANSLATORS
+ARTISTS=u"""Nasser Alshammari <designernasser gmail com>
+""".splitlines()
+
+AUTHORS += ARTISTS + PACKAGERS + TRANSLATORS
 
 DOCUMENTERS = []
 



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