From cda51794ce13c9c62d373c191e079591a1fb0ce4 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Sun, 6 Mar 2005 23:20:30 +0000 Subject: [PATCH] we can now set ask_online_status and ask_offline_status in the preferences window --- plugins/gtkgui/config.py | 18 +++++++++++++++++- plugins/gtkgui/gtkgui.glade | 2 ++ 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/plugins/gtkgui/config.py b/plugins/gtkgui/config.py index 03ff5ab0a..15eabd645 100644 --- a/plugins/gtkgui/config.py +++ b/plugins/gtkgui/config.py @@ -165,8 +165,10 @@ class preferences_window: """On Use Tabbed Chat Window Checkbutton Toggled""" if widget.get_active(): self.plugin.config['usetabbedchat'] = 1 + #TODO: merge opened chat windows else: self.plugin.config['usetabbedchat'] = 0 + #TODO: split the tabbed chat window def on_tray_icon_checkbutton_toggled(self, widget): """On Tray Icon Checkbutton Toggled""" @@ -234,7 +236,21 @@ class preferences_window: self.plugin.roster.mkemoticons() def on_emoticons_treeview_row_changed(self, model, path, iter): - print 'row-changed' + print 'row-changed' + + def on_prompt_online_status_message_checkbutton_toggled(self, widget): + """On Prompt Online Status Message Checkbutton Toggled""" + if widget.get_active(): + self.plugin.config['ask_online_status'] = 1 + else: + self.plugin.config['ask_online_status'] = 0 + + def on_prompt_offline_status_message_checkbutton_toggled(self, widget): + """On Prompt Offline Status Message Checkbutton Toggled""" + if widget.get_active(): + self.plugin.config['ask_offline_status'] = 1 + else: + self.plugin.config['ask_offline_status'] = 0 def write_cfg(self): #FIXME: (nk) instant apply """Save preferences in config File and apply them""" diff --git a/plugins/gtkgui/gtkgui.glade b/plugins/gtkgui/gtkgui.glade index 7f3b4d235..6bb092c1e 100644 --- a/plugins/gtkgui/gtkgui.glade +++ b/plugins/gtkgui/gtkgui.glade @@ -4621,6 +4621,7 @@ on the server as a vCard False False True + 0 @@ -4640,6 +4641,7 @@ on the server as a vCard False False True + 0