diff --git a/src/chat_control.py b/src/chat_control.py index 41b4f5267..3813ca708 100644 --- a/src/chat_control.py +++ b/src/chat_control.py @@ -358,7 +358,7 @@ class ChatControlBase(MessageControl, ChatCommandProcessor, CommandTools): img = self.xml.get_object('image8') else: img = self.xml.get_object('image5') - img.set_from_icon_name('document-open-recent', Gtk.IconSize.MENU) + img.set_from_icon_name('document-open-recent', gtk.ICON_SIZE_MENU) id_ = widget.connect('clicked', self._on_history_menuitem_activate) self.handlers[id_] = widget diff --git a/src/groupchat_control.py b/src/groupchat_control.py index fd5a1a19f..fe4dd0256 100644 --- a/src/groupchat_control.py +++ b/src/groupchat_control.py @@ -336,7 +336,7 @@ class GroupchatControl(ChatControlBase): if gtkgui_helpers.gtk_icon_theme.has_icon('document-open-recent'): img = self.xml.get_object('image8') - img.set_from_icon_name('document-open-recent', Gtk.IconSize.MENU) + img.set_from_icon_name('document-open-recent', gtk.ICON_SIZE_MENU) widget = self.xml.get_object('list_treeview') id_ = widget.connect('row_expanded', self.on_list_treeview_row_expanded) self.handlers[id_] = widget @@ -814,8 +814,8 @@ class GroupchatControl(ChatControlBase): img.set_from_icon_name('bookmark-new', gtk.ICON_SIZE_MENU) bookmark_room_menuitem.set_image(img) if gtkgui_helpers.gtk_icon_theme.has_icon('document-open-recent'): - img = Gtk.Image() - img.set_from_icon_name('document-open-recent', Gtk.IconSize.MENU) + img = gtk.Image() + img.set_from_icon_name('document-open-recent', gtk.ICON_SIZE_MENU) history_menuitem.set_image(img) if hide_buttonbar_items: diff --git a/src/gui_menu_builder.py b/src/gui_menu_builder.py index 1382b81de..0f35f301a 100644 --- a/src/gui_menu_builder.py +++ b/src/gui_menu_builder.py @@ -254,8 +254,8 @@ control=None, gc_contact=None, is_anonymous=True): account) history_menuitem.connect('activate', roster.on_history, contact, account) if gtkgui_helpers.gtk_icon_theme.has_icon('document-open-recent'): - img = Gtk.Image() - img.set_from_icon_name('document-open-recent', Gtk.IconSize.MENU) + img = gtk.Image() + img.set_from_icon_name('document-open-recent', gtk.ICON_SIZE_MENU) history_menuitem.set_image(img) if control: