From 4460d51d79421ba506aa2b881b5f522a2d984d8e Mon Sep 17 00:00:00 2001 From: Denis Fomin Date: Tue, 8 Jan 2013 02:22:40 +0400 Subject: [PATCH] fix avatar save popup menu --- src/vcard.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/vcard.py b/src/vcard.py index fce29925d..d32ae85c1 100644 --- a/src/vcard.py +++ b/src/vcard.py @@ -183,7 +183,7 @@ class VcardWindow: """ if event.button == 3: # right click menu = Gtk.Menu() - menuitem = Gtk.ImageMenuItem(Gtk.STOCK_SAVE_AS) + menuitem = Gtk.ImageMenuItem.new_from_stock(Gtk.STOCK_SAVE_AS, None) menuitem.connect('activate', gtkgui_helpers.on_avatar_save_as_menuitem_activate, self.contact.jid, self.contact.get_shown_name()) @@ -191,6 +191,7 @@ class VcardWindow: menu.connect('selection-done', lambda w:w.destroy()) # show the menu menu.show_all() + menu.attach_to_widget(widget, None) menu.popup(None, None, None, None, event.button, event.time) def set_value(self, entry_name, value): @@ -525,7 +526,7 @@ class ZeroconfVcardWindow: """ if event.button == 3: # right click menu = Gtk.Menu() - menuitem = Gtk.ImageMenuItem(Gtk.STOCK_SAVE_AS) + menuitem = Gtk.ImageMenuItem.new_from_stock(Gtk.STOCK_SAVE_AS, None) menuitem.connect('activate', gtkgui_helpers.on_avatar_save_as_menuitem_activate, self.contact.jid, self.contact.get_shown_name()) @@ -533,6 +534,7 @@ class ZeroconfVcardWindow: menu.connect('selection-done', lambda w:w.destroy()) # show the menu menu.show_all() + menu.attach_to_widget(widget, None) menu.popup(None, None, None, None, event.button, event.time) def set_value(self, entry_name, value):