Patch by Alejandro to get/set passwords dialogs accesibility. Set atk_set_name to...
authorMichael Dominic Kostrzewa <michael.kostrzewa@nokia.com>
Fri, 14 Dec 2007 09:29:31 +0000 (09:29 +0000)
committerMichael Dominic Kostrzewa <michael.kostrzewa@nokia.com>
Fri, 14 Dec 2007 09:29:31 +0000 (09:29 +0000)
ChangeLog
src/hildon-get-password-dialog.c
src/hildon-set-password-dialog.c

index e2996bc..e66071e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2007-11-08  Michael Dominic Kostrzewa  <michael.kostrzewa@nokia.com> 
+
+       Patch by Alejandro to get/set passwords dialogs accesibility.
+
+       * hildon-1/src/hildon-get-password-dialog.c:
+       * hildon-1/src/hildon-set-password-dialog.c: 
+       Set atk_set_name to the passwd entries in order to allow 
+       accessibility by name on this entries.
+       
 2007-10-11  Michael Dominic Kostrzewa  <michael.kostrzewa@nokia.com> 
 
        [1.99.0-2 release]
index 67cc948..f0c99d8 100644 (file)
@@ -386,6 +386,7 @@ create_contents                                 (HildonGetPasswordDialog *dialog
     HildonGetPasswordDialogPrivate *priv;
     GtkSizeGroup * group;
     GtkWidget *control;
+    AtkObject *atk_aux = NULL;
 
     /* Cache private pointer for faster member access */
     priv = HILDON_GET_PASSWORD_DIALOG_GET_PRIVATE (dialog);
@@ -419,6 +420,11 @@ create_contents                                 (HildonGetPasswordDialog *dialog
 
     /* Create password text entry */
     control = gtk_entry_new ();
+    if ((atk_aux = gtk_widget_get_accessible(control)))
+      {
+       atk_object_set_name(atk_aux, _("Passwd"));
+      }
+
     gtk_entry_set_width_chars (GTK_ENTRY (control), 20);
 
 #ifdef MAEMO_GTK 
index 3383af7..cc3c185 100644 (file)
@@ -218,6 +218,7 @@ static void
 create_contents                                 (HildonSetPasswordDialog *dialog)
 {
     HildonSetPasswordDialogPrivate *priv = NULL;
+    AtkObject *atk_aux = NULL;
 
     GtkSizeGroup *group;
 
@@ -275,6 +276,11 @@ create_contents                                 (HildonSetPasswordDialog *dialog
 
     /* Create the password field */
     priv->pwd1st_entry = gtk_entry_new ();
+    if ((atk_aux = gtk_widget_get_accessible(priv->pwd1st_entry)))
+      {
+       atk_object_set_name(atk_aux, _("Old Passwd"));
+      }
+    
 
 #ifdef MAEMO_GTK
     g_object_set (priv->pwd1st_entry, "hildon-input-mode", HILDON_GTK_INPUT_MODE_FULL, NULL);
@@ -295,6 +301,11 @@ create_contents                                 (HildonSetPasswordDialog *dialog
 
     /* Create the password verify field */
     priv->pwd2nd_entry = gtk_entry_new();
+    if ((atk_aux = gtk_widget_get_accessible(priv->pwd2nd_entry)))
+      {
+       atk_object_set_name(atk_aux, _("New Passwd"));
+      }
+
 
 #ifdef MAEMO_GTK
     g_object_set (priv->pwd2nd_entry, "hildon-input-mode", HILDON_GTK_INPUT_MODE_FULL, NULL);