aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorAnna Marie Dirks <anna@helixcode.com>2000-10-12 04:56:51 +0800
committerAnna Dirks <anna@src.gnome.org>2000-10-12 04:56:51 +0800
commitcf9552aed5c4f9f4daf45776f1babdbc86b6267e (patch)
treea7f4e07f4bd860f12944b3cf225b07125b9cc706 /mail
parentdc294f8a4f77b27e21387292a6c352ed1e82d3d6 (diff)
downloadgsoc2013-evolution-cf9552aed5c4f9f4daf45776f1babdbc86b6267e.tar.gz
gsoc2013-evolution-cf9552aed5c4f9f4daf45776f1babdbc86b6267e.tar.zst
gsoc2013-evolution-cf9552aed5c4f9f4daf45776f1babdbc86b6267e.zip
Changed the password-getting dialog so that the text entry has focus.
2000-10-11 Anna Marie Dirks <anna@helixcode.com> * mail-threads.c: Changed the password-getting dialog so that the text entry has focus. svn path=/trunk/; revision=5864
Diffstat (limited to 'mail')
-rw-r--r--mail/ChangeLog6
-rw-r--r--mail/mail-threads.c9
2 files changed, 15 insertions, 0 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index 9d7d35f71d..a9bb4a39f6 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,8 +1,14 @@
+2000-10-11 Anna Marie Dirks <anna@helixcode.com>
+ * mail-threads.c: Changed the password-getting dialog so that the
+ text entry has focus.
+
+=======
2000-10-11 Chris Toshok <toshok@helixcode.com>
* subscribe-dialog.c (STORE_ETABLE_SPEC): change cell type to
"string" since we're not including it in the extras.
+>>>>>>> 1.626
2000-10-11 Christopher James Lahey <clahey@helixcode.com>
* message-list.c, message-list.h, subscribe-dialog.c: Changed
diff --git a/mail/mail-threads.c b/mail/mail-threads.c
index dcddebcc93..d37d55ed90 100644
--- a/mail/mail-threads.c
+++ b/mail/mail-threads.c
@@ -852,6 +852,14 @@ show_error (com_msg_t * msg)
ui_set_busy ();
}
+static void
+focus_on_entry(GtkWidget *widget, gpointer user_data)
+{
+ if (GTK_IS_ENTRY(widget)) {
+ gtk_widget_grab_focus(widget);
+ }
+}
+
/**
* get_password:
*
@@ -881,6 +889,7 @@ get_password (com_msg_t * msg)
*(msg->reply) = g_strdup (_("Could not create dialog box."));
button = -1;
} else {
+ e_container_foreach_leaf(dialog, focus_on_entry, NULL);
*(msg->reply) = NULL;
button = gnome_dialog_run_and_close (GNOME_DIALOG (dialog));
}