+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]
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);
/* 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
create_contents (HildonSetPasswordDialog *dialog)
{
HildonSetPasswordDialogPrivate *priv = NULL;
+ AtkObject *atk_aux = NULL;
GtkSizeGroup *group;
/* 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);
/* 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);