use own icons since using stock icons might create issues in KDE

This commit is contained in:
Philip 2013-09-22 09:36:35 +02:00
parent 8fdb07cc9e
commit d702717dcc
9 changed files with 7 additions and 7 deletions

View File

@ -125,7 +125,7 @@ Categories=System;
Exec=pamac-install %F
Terminal=false
Type=Application
Icon=system-software-install
Icon=/usr/share/pamac/icons/32x32/apps/pamac.png
StartupNotify=true
NoDisplay=true
MimeType=application/x-xz-compressed-tar;

View File

@ -130,7 +130,7 @@ Comment[vi]=Thêm hoặc gỡ phần mềm cài đặt trên hệ thống
Comment[zh_CN]=
Comment[zh_HK]=
Comment[zh_TW]=
Icon=system-software-install
Icon=/usr/share/pamac/icons/32x32/apps/pamac.png
Exec=pamac-manager
Terminal=false
Type=Application

View File

@ -126,7 +126,7 @@ Comment[vi]=Cập nhật phần mềm đã cài đặt trên hệ thống
Comment[zh_CN]=
Comment[zh_HK]=
Comment[zh_TW]=
Icon=system-software-update
Icon=/usr/share/pamac/icons/32x32/apps/pamac-updater.png
Exec=pamac-updater
Terminal=false
Type=Application

Binary file not shown.

After

Width:  |  Height:  |  Size: 630 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 793 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 748 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

View File

@ -30,15 +30,15 @@ class Tray:
self.menu = Gtk.Menu()
self.menuItem = Gtk.ImageMenuItem(_('Update Manager'))
self.menuItem.set_image(Gtk.Image.new_from_pixbuf(Gtk.IconTheme.get_default().load_icon('system-software-update', 16, 0)))
self.menuItem.set_from_file('/usr/share/pamac/icons/16x16/apps/pamac-updater.png')
self.menuItem.connect('activate', self.execute_update, self.statusIcon)
self.menu.append(self.menuItem)
self.menuItem = Gtk.ImageMenuItem(_('Package Manager'))
self.menuItem.set_image(Gtk.Image.new_from_pixbuf(Gtk.IconTheme.get_default().load_icon('system-software-install', 16, 0)))
self.menuItem.set_from_file('/usr/share/pamac/icons/16x16/apps/pamac.png')
self.menuItem.connect('activate', self.execute_manager, self.statusIcon)
self.menu.append(self.menuItem)
self.menuItem = Gtk.ImageMenuItem(_('Quit'))
self.menuItem.set_image(Gtk.Image.new_from_stock('gtk-quit', Gtk.IconSize.MENU))
self.menuItem.set_from_file('/usr/share/pamac/icons/16x16/apps/exit.png')
self.menuItem.connect('activate', self.quit_tray, self.statusIcon)
self.menu.append(self.menuItem)
@ -110,7 +110,7 @@ def set_icon(updates):
tray.set_visible(True)
sleep(2)
if not common.pid_file_exists():
Popen(['notify-send', '-i', 'system-software-update', '-u', 'normal', _('Update Manager'), info])
Popen(['notify-send', '-i', '/usr/share/pamac/icons/32x32/apps/pamac-updater.png', '-u', 'normal', _('Update Manager'), info])
else:
icon = noupdate_icon
info = noupdate_info