Browse Source

disable message actions while writing a message; fixes #178

master
Julio Biason 15 years ago
parent
commit
34f0ff440f
  1. 7
      mitterlib/ui/ui_pygtk.py

7
mitterlib/ui/ui_pygtk.py

@ -1117,6 +1117,13 @@ class Interface(object):
"""Called when the text area gets the focus. Just to add the counter """Called when the text area gets the focus. Just to add the counter
again.""" again."""
self._count_chars(self._update_text.get_buffer()) self._count_chars(self._update_text.get_buffer())
# disable the message actions (they will be activated properly when
# the user leaves the textarea.)
self._delete_action.set_property('sensitive', False)
self._reply_action.set_property('sensitive', False)
self._repost_action.set_property('sensitive', False)
self._favourite_action.set_property('sensitive', False)
return return
# ------------------------------------------------------------ # ------------------------------------------------------------

Loading…
Cancel
Save