From c90cf3d4450929b6f6d16ccf10ec63cfe39e6ba3 Mon Sep 17 00:00:00 2001 From: Denis Fomin Date: Sun, 17 Mar 2013 00:36:39 +0400 Subject: [PATCH] fix history button icon in gc --- src/chat_control.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/chat_control.py b/src/chat_control.py index 53daca27e..41b4f5267 100644 --- a/src/chat_control.py +++ b/src/chat_control.py @@ -352,9 +352,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