fix gtk names

This commit is contained in:
Denis Fomin 2013-03-17 22:22:48 +04:00
parent c90cf3d445
commit a098b0605d
3 changed files with 6 additions and 6 deletions

View File

@ -358,7 +358,7 @@ class ChatControlBase(MessageControl, ChatCommandProcessor, CommandTools):
img = self.xml.get_object('image8') img = self.xml.get_object('image8')
else: else:
img = self.xml.get_object('image5') 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) id_ = widget.connect('clicked', self._on_history_menuitem_activate)
self.handlers[id_] = widget self.handlers[id_] = widget

View File

@ -336,7 +336,7 @@ class GroupchatControl(ChatControlBase):
if gtkgui_helpers.gtk_icon_theme.has_icon('document-open-recent'): if gtkgui_helpers.gtk_icon_theme.has_icon('document-open-recent'):
img = self.xml.get_object('image8') 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') widget = self.xml.get_object('list_treeview')
id_ = widget.connect('row_expanded', self.on_list_treeview_row_expanded) id_ = widget.connect('row_expanded', self.on_list_treeview_row_expanded)
self.handlers[id_] = widget self.handlers[id_] = widget
@ -814,8 +814,8 @@ class GroupchatControl(ChatControlBase):
img.set_from_icon_name('bookmark-new', gtk.ICON_SIZE_MENU) img.set_from_icon_name('bookmark-new', gtk.ICON_SIZE_MENU)
bookmark_room_menuitem.set_image(img) bookmark_room_menuitem.set_image(img)
if gtkgui_helpers.gtk_icon_theme.has_icon('document-open-recent'): if gtkgui_helpers.gtk_icon_theme.has_icon('document-open-recent'):
img = Gtk.Image() img = gtk.Image()
img.set_from_icon_name('document-open-recent', Gtk.IconSize.MENU) img.set_from_icon_name('document-open-recent', gtk.ICON_SIZE_MENU)
history_menuitem.set_image(img) history_menuitem.set_image(img)
if hide_buttonbar_items: if hide_buttonbar_items:

View File

@ -254,8 +254,8 @@ control=None, gc_contact=None, is_anonymous=True):
account) account)
history_menuitem.connect('activate', roster.on_history, contact, account) history_menuitem.connect('activate', roster.on_history, contact, account)
if gtkgui_helpers.gtk_icon_theme.has_icon('document-open-recent'): if gtkgui_helpers.gtk_icon_theme.has_icon('document-open-recent'):
img = Gtk.Image() img = gtk.Image()
img.set_from_icon_name('document-open-recent', Gtk.IconSize.MENU) img.set_from_icon_name('document-open-recent', gtk.ICON_SIZE_MENU)
history_menuitem.set_image(img) history_menuitem.set_image(img)
if control: if control: