fix history button icon in gc
This commit is contained in:
parent
3b8c665665
commit
1a27615757
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue