From 2182a46683dafecac8a0f24c42dd09da9a3343eb Mon Sep 17 00:00:00 2001 From: Philip Date: Sun, 22 Sep 2013 10:01:02 +0200 Subject: [PATCH] Try to fix menuItem.set - proper --- pamac-tray.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pamac-tray.py b/pamac-tray.py index b7d0f19..ed0d0f4 100755 --- a/pamac-tray.py +++ b/pamac-tray.py @@ -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('/usr/share/pamac/icons/16x16/apps/pamac-updater.png', 16, 0))) + self.menuItem.set_image(Gtk.Image.new_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('/usr/share/pamac/icons/16x16/apps/pamac.png', 16, 0))) + self.menuItem.set_image(Gtk.Image.new_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_pixbuf(Gtk.IconTheme.get_default().load_icon('/usr/share/pamac/icons/16x16/apps/exit.png', 16, 0))) + self.menuItem.set_image(Gtk.Image.new_from_file('/usr/share/pamac/icons/16x16/apps/exit.png') self.menuItem.connect('activate', self.quit_tray, self.statusIcon) self.menu.append(self.menuItem)