fix history button icon in gc
This commit is contained in:
parent
107c98e5a0
commit
c90cf3d445
|
@ -352,9 +352,14 @@ class ChatControlBase(MessageControl, ChatCommandProcessor, CommandTools):
|
||||||
contact, acct, resource=resource)
|
contact, acct, resource=resource)
|
||||||
|
|
||||||
widget = self.xml.get_object('history_button')
|
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'):
|
if gtkgui_helpers.gtk_icon_theme.has_icon('document-open-recent'):
|
||||||
|
if widget_name == 'groupchat_control':
|
||||||
|
img = self.xml.get_object('image8')
|
||||||
|
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.IconSize.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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue