Move verification label to dialogue title.
authorAndrew Flegg <andrew@bleb.org>
Mon, 7 Jun 2010 13:41:24 +0000 (14:41 +0100)
committerAndrew Flegg <andrew@bleb.org>
Mon, 7 Jun 2010 13:41:24 +0000 (14:41 +0100)
package/src/org/maemo/hermes/gui/gtkui.py

index 54567ff..255ee10 100644 (file)
@@ -190,8 +190,8 @@ class HermesGUI(WimpWorks):
             note.add_button(_("Validate"), gtk.RESPONSE_OK)
             if prompt:
                 input = hildon.Entry(gtk.HILDON_SIZE_FINGER_HEIGHT)
-                input.set_placeholder(_("Verification code from web browser"))
                 input.set_property('is-focus', False)
+                note.set_title(_("Verification code from web browser"))
                 note.vbox.add(input)
             else:
                 note.vbox.add(gtk.Label(_("\nPress 'Validate' once account has\nbeen authorised in web browser.\n")))
@@ -201,6 +201,7 @@ class HermesGUI(WimpWorks):
             note.hide()
             lock.release()
             if prompt and result == gtk.RESPONSE_OK:
+                print input.get_text()
                 return input.get_text()
             else:
                 return None