From 2eb945a7b1785091f72b5e4f86d1470f8ca01774 Mon Sep 17 00:00:00 2001 From: Nikos Kouremenos Date: Tue, 9 Aug 2005 13:27:31 +0000 Subject: [PATCH] fix a TB --- src/config.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/config.py b/src/config.py index c7845efd6..34f616c92 100644 --- a/src/config.py +++ b/src/config.py @@ -272,12 +272,12 @@ class PreferencesWindow: # send chat state notifications st = gajim.config.get('chat_state_notifications') combo = self.xml.get_widget('chat_states_combobox') - if st == 'composing_only': - combo.set_active(1) - elif st == 'all': + if st == 'all': combo.set_active(0) + elif st == 'composing_only': + combo.set_active(1) else: # disabled - btn.set_active(2) + combo.set_active(2) #sounds if os.name == 'nt': # if windows, player must not become visible on show_all @@ -775,10 +775,10 @@ class PreferencesWindow: def on_chat_states_combobox_changed(self, widget): active = widget.get_active() - if active == 1: # only composing - gajim.config.set('chat_state_notifications', 'composing_only') - elif active == 0: # all + if active == 0: # all gajim.config.set('chat_state_notifications', 'all') + elif active == 1: # only composing + gajim.config.set('chat_state_notifications', 'composing_only') else: # disabled gajim.config.set('chat_state_notifications', 'disabled')