X-Git-Url: http://git.maemo.org/git/?a=blobdiff_plain;f=src%2Fgv_views.py;h=c5635fd2206a1fc89479845c7a979217796fa246;hb=f5a869b6083b410b67b117d9be62b35bca190d37;hp=93c2fcfcf7ba7d8c5a7cc12eeddbb7f67fa9d441;hpb=756345b202d4a609cb596d0bd75e7133b69c4d54;p=gc-dialer diff --git a/src/gv_views.py b/src/gv_views.py index 93c2fcf..c5635fd 100644 --- a/src/gv_views.py +++ b/src/gv_views.py @@ -407,13 +407,17 @@ class SmsEntryDialog(object): 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): @@ -1337,7 +1341,7 @@ class ContactsView(object): 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)