Fixing a bug with my redirect hack
[gc-dialer] / src / gv_views.py
index 93c2fcf..c5635fd 100644 (file)
@@ -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)