2006-10-16 Michael Dominic Kostrzewa <michael.kostrzewa@nokia.com>
[hildon] / hildon-widgets / hildon-get-password-dialog.c
index e7b2a15..45bd412 100644 (file)
@@ -8,7 +8,7 @@
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public License
  * as published by the Free Software Foundation; version 2.1 of
- * the License or any later version.
+ * the License.
  *
  * This library is distributed in the hope that it will be useful, but
  * WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -173,7 +173,7 @@ hildon_get_password_get_property(GObject * object,
       /* This property is set if and only if the input mode
         of the password entry has been set to numeric only */
       g_object_get(G_OBJECT(hildon_caption_get_control(priv->passwordEntry)),
-                  "input-mode", &input_mode);
+                  "input-mode", &input_mode, NULL);
       g_value_set_boolean(value,
                          (input_mode == HILDON_INPUT_MODE_HINT_NUMERIC));
       break;
@@ -321,6 +321,8 @@ create_contents(HildonGetPasswordDialog *dialog)
 
     /* Create password text entry */
     control = gtk_entry_new();
+    gtk_entry_set_width_chars (GTK_ENTRY (control), 20);
+
     g_object_set (control, "hildon-input-mode", HILDON_GTK_INPUT_MODE_FULL, NULL);
     gtk_entry_set_visibility(GTK_ENTRY(control), FALSE);
     priv->passwordEntry = HILDON_CAPTION