Change history icon if theme have 'document-open-recent' icon. part 2
This commit is contained in:
parent
71464bef56
commit
113a96ef1f
|
@ -2423,6 +2423,10 @@ class GroupchatControl(ChatControlBase):
|
|||
self.handlers[id_] = item
|
||||
|
||||
item = xml.get_object('history_menuitem')
|
||||
if gtkgui_helpers.gtk_icon_theme.has_icon('document-open-recent'):
|
||||
img = Gtk.Image()
|
||||
img.set_from_icon_name('document-open-recent', Gtk.IconSize.MENU)
|
||||
item.set_image(img)
|
||||
id_ = item.connect('activate', self.on_history, nick)
|
||||
self.handlers[id_] = item
|
||||
|
||||
|
|
|
@ -6239,6 +6239,9 @@ class RosterWindow:
|
|||
history_menuitem = Gtk.ImageMenuItem.new_with_mnemonic(_('_History'))
|
||||
history_icon = Gtk.Image.new_from_stock(Gtk.STOCK_JUSTIFY_FILL, \
|
||||
Gtk.IconSize.MENU)
|
||||
if gtkgui_helpers.gtk_icon_theme.has_icon('document-open-recent'):
|
||||
history_icon = Gtk.Image()
|
||||
history_icon.set_from_icon_name('document-open-recent', Gtk.IconSize.MENU)
|
||||
history_menuitem.set_image(history_icon)
|
||||
history_menuitem .connect('activate', self.on_history, contact, account)
|
||||
menu.append(history_menuitem)
|
||||
|
@ -6594,6 +6597,13 @@ class RosterWindow:
|
|||
|
||||
self.xml.get_object('show_roster_menuitem').set_active(True)
|
||||
|
||||
if gtkgui_helpers.gtk_icon_theme.has_icon('document-open-recent'):
|
||||
history_icon = Gtk.Image()
|
||||
history_icon.set_from_icon_name('document-open-recent',
|
||||
Gtk.IconSize.MENU)
|
||||
history_menuitem = self.xml.get_object('history_menuitem')
|
||||
history_menuitem.set_image(history_icon)
|
||||
|
||||
# columns
|
||||
col = Gtk.TreeViewColumn()
|
||||
# list of renderers with attributes / properties in the form:
|
||||
|
|
Loading…
Reference in New Issue