aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEttore Perazzoli <ettore@src.gnome.org>2002-07-30 00:13:59 +0800
committerEttore Perazzoli <ettore@src.gnome.org>2002-07-30 00:13:59 +0800
commitd8b5268c12abcc11f80c79a7e7619be3dc4653df (patch)
treec7eb25fb606d8958e8515985acfcac027147672c
parent5b8b97806ba19ce0bf3279965759f7a9d5696523 (diff)
downloadgsoc2013-evolution-d8b5268c12abcc11f80c79a7e7619be3dc4653df.tar
gsoc2013-evolution-d8b5268c12abcc11f80c79a7e7619be3dc4653df.tar.gz
gsoc2013-evolution-d8b5268c12abcc11f80c79a7e7619be3dc4653df.tar.bz2
gsoc2013-evolution-d8b5268c12abcc11f80c79a7e7619be3dc4653df.tar.lz
gsoc2013-evolution-d8b5268c12abcc11f80c79a7e7619be3dc4653df.tar.xz
gsoc2013-evolution-d8b5268c12abcc11f80c79a7e7619be3dc4653df.tar.zst
gsoc2013-evolution-d8b5268c12abcc11f80c79a7e7619be3dc4653df.zip
(request_password): Add an accelerator for the
"Remember this password" checkbox. svn path=/trunk/; revision=17631
-rw-r--r--mail/ChangeLog5
-rw-r--r--mail/mail-session.c21
2 files changed, 21 insertions, 5 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index c5e02b0ed4..34f5f1fbdd 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,3 +1,8 @@
+2002-07-29 Ettore Perazzoli <ettore@ximian.com>
+
+ * mail-session.c (request_password): Add an accelerator for the
+ "Remember this password" checkbox.
+
2002-07-26 Jeffrey Stedfast <fejj@ximian.com>
* mail-ops.c (mail_execute_shell_command): No real need for this
diff --git a/mail/mail-session.c b/mail/mail-session.c
index 8a1d735ef0..13b8c83856 100644
--- a/mail/mail-session.c
+++ b/mail/mail-session.c
@@ -247,10 +247,11 @@ request_password(struct _pass_msg *m)
{
const MailConfigAccount *mca = NULL;
GtkWidget *dialogue;
- GtkWidget *check, *entry;
+ GtkWidget *check, *check_label, *entry;
GList *children, *iter;
gboolean show;
char *title;
+ unsigned int accel_key;
/* If we already have a password_dialogue up, save this request till later */
if (!m->ismain && password_dialogue) {
@@ -267,8 +268,18 @@ request_password(struct _pass_msg *m)
password_destroy_id = gtk_signal_connect((GtkObject *)dialogue, "destroy", request_password_deleted, m);
/* Remember the password? */
- check = gtk_check_button_new_with_label (m->service_url ? _("Remember this password") :
- _("Remember this password for the remainder of this session"));
+
+ check = gtk_check_button_new ();
+ check_label = gtk_label_new ("");
+ accel_key = gtk_label_parse_uline (GTK_LABEL (check_label),
+ m->service_url ? _("_Remember this password") :
+ _("_Remember this password for the remainder of this session"));
+ gtk_widget_add_accelerator (check, "clicked",
+ GNOME_DIALOG (password_dialogue)->accelerators,
+ accel_key,
+ GDK_MOD1_MASK, 0);
+ gtk_container_add (GTK_CONTAINER (check), check_label);
+
show = TRUE;
if (m->service_url) {
@@ -287,8 +298,8 @@ request_password(struct _pass_msg *m)
}
if (show)
- gtk_widget_show (check);
-
+ gtk_widget_show_all (check);
+
/* do some dirty stuff to put the checkbutton after the entry */
entry = NULL;
children = gtk_container_children (GTK_CONTAINER (GNOME_DIALOG (dialogue)->vbox));