Skip to content

Commit

Permalink
Disable input capitalization for the login fields (Maemo bug 6858)
Browse files Browse the repository at this point in the history
Make sure that input capitalization is not enabled for the
username and password entry fields on Maemo 4 and Maemo 5.

Thanks to Tomasz Dominikowski for reporting this bug.
  • Loading branch information
thp committed Dec 12, 2009
1 parent 0cede0c commit e4b8fac
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/gpodder/gtkui/interface/common.py
Expand Up @@ -374,6 +374,13 @@ def show_login_dialog(self, title, message, username=None, password=None, userna
username_entry = gtk.Entry()
password_entry = gtk.Entry()

if gpodder.ui.maemo:
# Disable input capitalization for the login fields
username_entry.set_property('hildon-input-mode', \
gtk.HILDON_GTK_INPUT_MODE_FULL)
password_entry.set_property('hildon-input-mode', \
gtk.HILDON_GTK_INPUT_MODE_FULL)

username_entry.connect('activate', lambda w: password_entry.grab_focus())
password_entry.set_visibility(False)
password_entry.set_activates_default(True)
Expand Down

0 comments on commit e4b8fac

Please sign in to comment.