def _update_letter_count(self, *args):
entryLength = self._smsEntry.get_buffer().get_char_count()
+
charsLeft = self.MAX_CHAR - entryLength
self._letterCountLabel.set_text(str(charsLeft))
if charsLeft < 0 or charsLeft == self.MAX_CHAR:
self._smsButton.set_sensitive(False)
- self._dialButton.set_sensitive(True)
else:
self._smsButton.set_sensitive(True)
+
+ if entryLength == 0:
+ self._dialButton.set_sensitive(True)
+ else:
self._dialButton.set_sensitive(False)
def _request_number(self):
assert self._backend.is_authed(), "Attempting to enable backend while not logged in"
self._contactsview.set_model(self._contactsmodel)
- self._contactsview.set_fixed_height_mode(True)
+ self._contactsview.set_fixed_height_mode(False)
self._contactsview.append_column(self._contactColumn)
self._contactsviewselection = self._contactsview.get_selection()
self._contactsviewselection.set_mode(gtk.SELECTION_SINGLE)