we can now set ask_online_status and ask_offline_status in the preferences window
This commit is contained in:
parent
4cdda8995c
commit
cda51794ce
|
@ -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"""
|
||||
|
@ -236,6 +238,20 @@ class preferences_window:
|
|||
def on_emoticons_treeview_row_changed(self, model, path, iter):
|
||||
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"""
|
||||
#sound player
|
||||
|
|
|
@ -4621,6 +4621,7 @@ on the server as a vCard</property>
|
|||
<property name="active">False</property>
|
||||
<property name="inconsistent">False</property>
|
||||
<property name="draw_indicator">True</property>
|
||||
<signal name="toggled" handler="on_prompt_online_status_message_checkbutton_toggled" last_modification_time="Sun, 06 Mar 2005 23:15:43 GMT"/>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="padding">0</property>
|
||||
|
@ -4640,6 +4641,7 @@ on the server as a vCard</property>
|
|||
<property name="active">False</property>
|
||||
<property name="inconsistent">False</property>
|
||||
<property name="draw_indicator">True</property>
|
||||
<signal name="toggled" handler="on_prompt_offline_status_message_checkbutton_toggled" last_modification_time="Sun, 06 Mar 2005 23:18:34 GMT"/>
|
||||
</widget>
|
||||
<packing>
|
||||
<property name="padding">0</property>
|
||||
|
|
Loading…
Reference in New Issue