changeset 0da701fa62cf in /home/hg/repos/gajim
branches: gtk3 details:http://hg.gajim.org/gajim?cmd=changeset;node=0da701fa62cf description: Change history icon if theme have 'document-open-recent' icon. part 2
diffstat:
src/groupchat_control.py | 4 ++++ src/roster_window.py | 10 ++++++++++ 2 files changed, 14 insertions(+), 0 deletions(-)
diffs (41 lines):
diff -r 8f0e9dc13ff5 -r 0da701fa62cf src/groupchat_control.py --- a/src/groupchat_control.py Sun Mar 17 22:33:51 2013 +0400 +++ b/src/groupchat_control.py Sun Mar 17 23:14:34 2013 +0400 @@ -2423,6 +2423,10 @@ 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
diff -r 8f0e9dc13ff5 -r 0da701fa62cf src/roster_window.py --- a/src/roster_window.py Sun Mar 17 22:33:51 2013 +0400 +++ b/src/roster_window.py Sun Mar 17 23:14:34 2013 +0400 @@ -6239,6 +6239,9 @@ 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 @@
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: