hide 'bookmark_ button' if private storage not supported

This commit is contained in:
Denis Fomin 2012-11-20 11:29:13 +04:00
parent 9fa880cc36
commit 847fdf8d1b
1 changed files with 4 additions and 2 deletions

View File

@ -328,7 +328,9 @@ class GroupchatControl(ChatControlBase):
if gtkgui_helpers.gtk_icon_theme.has_icon('bookmark-new'):
img = self.xml.get_object('image7')
img.set_from_icon_name('bookmark-new', gtk.ICON_SIZE_MENU)
if not gajim.connections[self.account].private_storage_supported:
widget.hide()
else:
widget.show()
widget = self.xml.get_object('list_treeview')