Save status text as soon as it changes

This commit is contained in:
Yann Leboulanger 2004-11-01 13:30:56 +00:00
parent ef3111cdcc
commit 329e35f932
2 changed files with 3 additions and 4 deletions

View File

@ -311,7 +311,7 @@ class preference_Window:
buf.set_text('') buf.set_text('')
self.xml.get_widget('delete_msg_button').set_sensitive(False) self.xml.get_widget('delete_msg_button').set_sensitive(False)
def on_msg_textview_focus_out_event(self, widget, data=None): def on_msg_textview_changed(self, widget, data=None):
(model, iter) = self.msg_tree.get_selection().get_selected() (model, iter) = self.msg_tree.get_selection().get_selected()
if not iter: if not iter:
return return
@ -409,6 +409,8 @@ class preference_Window:
renderer.connect('edited', self.on_msg_cell_edited) renderer.connect('edited', self.on_msg_cell_edited)
renderer.set_property('editable', True) renderer.set_property('editable', True)
self.fill_msg_treeview() self.fill_msg_treeview()
buf = self.xml.get_widget('msg_textview').get_buffer()
buf.connect('changed', self.on_msg_textview_changed)
#trayicon #trayicon
st = self.plugin.config['trayicon'] st = self.plugin.config['trayicon']
@ -467,8 +469,6 @@ class preference_Window:
self.on_new_msg_button_clicked) self.on_new_msg_button_clicked)
self.xml.signal_connect('on_delete_msg_button_clicked', \ self.xml.signal_connect('on_delete_msg_button_clicked', \
self.on_delete_msg_button_clicked) self.on_delete_msg_button_clicked)
self.xml.signal_connect('on_msg_textview_focus_out_event', \
self.on_msg_textview_focus_out_event)
class accountPreference_Window: class accountPreference_Window:
"""Class for account informations""" """Class for account informations"""

View File

@ -4743,7 +4743,6 @@ when NOT online</property>
<property name="right_margin">0</property> <property name="right_margin">0</property>
<property name="indent">0</property> <property name="indent">0</property>
<property name="text" translatable="yes"></property> <property name="text" translatable="yes"></property>
<signal name="focus_out_event" handler="on_msg_textview_focus_out_event" last_modification_time="Sun, 24 Oct 2004 21:47:42 GMT"/>
</widget> </widget>
</child> </child>
</widget> </widget>