This commit is contained in:
Nikos Kouremenos 2005-08-28 15:56:08 +00:00
parent 02ce0f1e99
commit 79a3ee06ed
2 changed files with 5 additions and 3 deletions

View File

@ -88,7 +88,7 @@ class Chat:
else:
nb_pos = gtk.POS_TOP
self.notebook.set_tab_pos(nb_pos)
self.notebook.set_show_tabs(gajim.config.get('tabs_always_show'))
self.notebook.set_show_tabs(gajim.config.get('tabs_always_visible'))
self.notebook.set_show_border(gajim.config.get('tabs_border'))
def update_font(self):
@ -175,7 +175,9 @@ class Chat:
nickname = hb.get_children()[0]
close_button = hb.get_children()[1]
if not gajim.config.get('tab_close_button'):
if gajim.config.get('tabs_close_button'):
close_button.show()
else:
close_button.hide()
#FIXME: when gtk2.4 is OOOOLD do it via glade2.10+

View File

@ -142,7 +142,7 @@ class Config:
'last_sounds_dir': [opt_str, ''],
#FIXME: add combobox in prefs for this in .9
'tabs_position': [opt_str, 'top'], # top, bottom, left, right
'tabs_always_show': [opt_bool, False], # show tab if one tab?
'tabs_always_visible': [opt_bool, False], # show tab if one tab?
'tabs_border': [opt_bool, False], # border if one tab?
'tabs_close_button': [opt_bool, True], # close button in tab?
}