Fix 'document-open-recent' icon problem. Fixes #7444
This commit is contained in:
parent
d88c1fad89
commit
d81f296e4c
|
@ -833,11 +833,13 @@ class GroupchatControl(ChatControlBase):
|
||||||
request_voice_separator = xml.get_object('request_voice_separator')
|
request_voice_separator = xml.get_object('request_voice_separator')
|
||||||
|
|
||||||
if gtkgui_helpers.gtk_icon_theme.has_icon('bookmark-new'):
|
if gtkgui_helpers.gtk_icon_theme.has_icon('bookmark-new'):
|
||||||
gtkgui_helpers.add_image_to_menuitem(bookmark_room_menuitem,
|
img = gtk.Image()
|
||||||
'bookmark-new')
|
img.set_from_icon_name('bookmark-new', gtk.ICON_SIZE_MENU)
|
||||||
|
bookmark_room_menuitem.set_image(img)
|
||||||
if gtkgui_helpers.gtk_icon_theme.has_icon('document-open-recent'):
|
if gtkgui_helpers.gtk_icon_theme.has_icon('document-open-recent'):
|
||||||
gtkgui_helpers.add_image_to_menuitem(history_menuitem,
|
img = gtk.Image()
|
||||||
'document-open-recent')
|
img.set_from_icon_name('document-open-recent', gtk.ICON_SIZE_MENU)
|
||||||
|
history_menuitem.set_image(img)
|
||||||
|
|
||||||
if hide_buttonbar_items:
|
if hide_buttonbar_items:
|
||||||
change_nick_menuitem.hide()
|
change_nick_menuitem.hide()
|
||||||
|
|
|
@ -257,8 +257,9 @@ control=None, gc_contact=None, is_anonymous=True):
|
||||||
account)
|
account)
|
||||||
history_menuitem.connect('activate', roster.on_history, contact, account)
|
history_menuitem.connect('activate', roster.on_history, contact, account)
|
||||||
if gtkgui_helpers.gtk_icon_theme.has_icon('document-open-recent'):
|
if gtkgui_helpers.gtk_icon_theme.has_icon('document-open-recent'):
|
||||||
gtkgui_helpers.add_image_to_menuitem(history_menuitem,
|
img = gtk.Image()
|
||||||
'document-open-recent')
|
img.set_from_icon_name('document-open-recent', gtk.ICON_SIZE_MENU)
|
||||||
|
history_menuitem.set_image(img)
|
||||||
|
|
||||||
if control:
|
if control:
|
||||||
convert_to_gc_menuitem.connect('activate',
|
convert_to_gc_menuitem.connect('activate',
|
||||||
|
|
|
@ -4347,6 +4347,7 @@ class RosterWindow:
|
||||||
w.set_sensitive(True)
|
w.set_sensitive(True)
|
||||||
|
|
||||||
def on_view_menu_activate(self, widget):
|
def on_view_menu_activate(self, widget):
|
||||||
|
self.make_menu()
|
||||||
# Hide the show roster menu if we are not in the right windowing mode.
|
# Hide the show roster menu if we are not in the right windowing mode.
|
||||||
if self.hpaned.get_child2() is not None:
|
if self.hpaned.get_child2() is not None:
|
||||||
self.xml.get_object('show_roster_menuitem').show()
|
self.xml.get_object('show_roster_menuitem').show()
|
||||||
|
@ -5241,8 +5242,9 @@ class RosterWindow:
|
||||||
return
|
return
|
||||||
history_menuitem = self.xml.get_object('history_menuitem')
|
history_menuitem = self.xml.get_object('history_menuitem')
|
||||||
if gtkgui_helpers.gtk_icon_theme.has_icon('document-open-recent'):
|
if gtkgui_helpers.gtk_icon_theme.has_icon('document-open-recent'):
|
||||||
gtkgui_helpers.add_image_to_menuitem(history_menuitem,
|
img = gtk.Image()
|
||||||
'document-open-recent')
|
img.set_from_icon_name('document-open-recent', gtk.ICON_SIZE_MENU)
|
||||||
|
history_menuitem.set_image(img)
|
||||||
new_chat_menuitem = self.xml.get_object('new_chat_menuitem')
|
new_chat_menuitem = self.xml.get_object('new_chat_menuitem')
|
||||||
single_message_menuitem = self.xml.get_object(
|
single_message_menuitem = self.xml.get_object(
|
||||||
'send_single_message_menuitem')
|
'send_single_message_menuitem')
|
||||||
|
|
Loading…
Reference in New Issue