2008-11-25 Alberto Garcia <agarcia@igalia.com>
[hildon] / src / hildon-get-password-dialog.c
index 67cc948..1c6d208 100644 (file)
  * </example>
  */
 
+#undef                                          HILDON_DISABLE_DEPRECATED
+
 #ifdef                                          HAVE_CONFIG_H
 #include                                        <config.h>
 #endif
 
-#include                                        "hildon-get-password-dialog.h"
-#include                                        <glib.h>
 #include                                        <errno.h>
 #include                                        <string.h>
 #include                                        <strings.h>
 #include                                        <unistd.h>
 #include                                        <stdio.h>
-#include                                        <gtk/gtk.h>
+#include                                        <libintl.h>
+
+#include                                        "hildon-get-password-dialog.h"
 #include                                        "hildon-caption.h"
 #include                                        "hildon-banner.h"
-#include                                        <libintl.h>
 #include                                        "hildon-get-password-dialog-private.h"
 
 #define                                         _(String) dgettext("hildon-libs", String)
@@ -386,6 +387,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 +421,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