Update icon location and version number

This commit is contained in:
Sean Davis 2013-07-17 15:57:29 -04:00
parent cb14af6893
commit 5ea21615bb
4 changed files with 25 additions and 4 deletions

View File

@ -10,7 +10,7 @@
<property name="resizable">False</property>
<property name="default_width">230</property>
<property name="default_height">300</property>
<property name="icon">../media/mugshot.svg</property>
<property name="icon_name">mugshot</property>
<property name="type_hint">normal</property>
<signal name="destroy" handler="on_camera_mugshot_dialog_destroy" swapped="no"/>
<signal name="show" handler="on_camera_mugshot_dialog_show" swapped="no"/>

View File

@ -68,7 +68,7 @@
<property name="can_focus">False</property>
<property name="title" translatable="yes">Mugshot</property>
<property name="resizable">False</property>
<property name="icon">../media/mugshot.svg</property>
<property name="icon_name">mugshot</property>
<child>
<object class="GtkBox" id="box1">
<property name="visible">True</property>
@ -498,6 +498,7 @@
<property name="border_width">5</property>
<property name="modal">True</property>
<property name="window_position">center-always</property>
<property name="icon_name">mugshot</property>
<property name="type_hint">dialog</property>
<property name="urgency_hint">True</property>
<property name="transient_for">mugshot_window</property>
@ -676,6 +677,7 @@ to your personal information.</property>
<property name="default_width">600</property>
<property name="default_height">480</property>
<property name="destroy_with_parent">True</property>
<property name="icon_name">mugshot</property>
<property name="type_hint">dialog</property>
<property name="transient_for">mugshot_window</property>
<signal name="delete-event" handler="on_stock_browser_delete_event" swapped="no"/>

3
debian/control vendored
View File

@ -27,6 +27,9 @@ Description: a lightweight user-configuration application
Mugshot allows you to easily update personal user details. This includes:
.
Linux profile image: ~/.face
.
User details stored in /etc/passwd (used by finger)
.
Pidgin buddy icon
.
LibreOffice user details

View File

@ -50,7 +50,22 @@ def update_config(libdir, values = {}):
print ("ERROR: Can't find %s" % filename)
sys.exit(1)
return oldvalues
def move_icon_file(root, target_data, prefix):
old_icon_path = os.path.normpath(root + target_data + '/share/mugshot/media')
old_icon_file = old_icon_path + '/mugshot.svg'
icon_path = os.path.normpath(root + prefix + '/share/icons/hicolor/scalable/apps')
icon_file = icon_path + '/mugshot.svg'
if not os.path.exists(old_icon_file):
print ("ERROR: Can't find", old_icon_file)
sys.exit(1)
if not os.path.exists(icon_path):
os.makedirs(icon_path)
if old_icon_file != icon_file:
os.rename(old_icon_file, icon_file)
return icon_file
def move_desktop_file(root, target_data, prefix):
# The desktop file is rightly installed into install_data. But it should
@ -131,6 +146,7 @@ class InstallAndUpdateDataDirectory(DistUtilsExtra.auto.install_auto):
update_config(self.install_lib, values)
desktop_file = move_desktop_file(self.root, target_data, self.prefix)
icon_file = move_icon_file(self.root, target_data, self.prefix)
update_desktop_file(desktop_file, target_pkgdata, target_scripts)
compile_schemas(self.root, target_data)
@ -141,7 +157,7 @@ class InstallAndUpdateDataDirectory(DistUtilsExtra.auto.install_auto):
DistUtilsExtra.auto.setup(
name='mugshot',
version='13.07',
version='0.1',
license='GPL-3',
author='Sean Davis',
author_email='smd.seandavis@gmail.com',