fix history button icon in gc

This commit is contained in:
Denis Fomin 2013-03-17 00:36:39 +04:00
parent 3b8c665665
commit 1a27615757
1 changed files with 6 additions and 1 deletions

View File

@ -353,9 +353,14 @@ class ChatControlBase(MessageControl, ChatCommandProcessor, CommandTools):
contact, acct, resource=resource)
widget = self.xml.get_object('history_button')
# set document-open-recent icon for history button
if gtkgui_helpers.gtk_icon_theme.has_icon('document-open-recent'):
img = self.xml.get_object('image5')
if widget_name == 'groupchat_control':
img = self.xml.get_object('image8')
else:
img = self.xml.get_object('image5')
img.set_from_icon_name('document-open-recent', Gtk.IconSize.MENU)
id_ = widget.connect('clicked', self._on_history_menuitem_activate)
self.handlers[id_] = widget