aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-mt.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2001-07-26 04:04:12 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2001-07-26 04:04:12 +0800
commitb0d5e599ce5f3b0f8a2695588a95805e19fadb79 (patch)
tree917775121509ffa7cb0b0364c535b2de4f37a9bf /mail/mail-mt.c
parentd15e1ef55f64a78e47df37b98dd2d98d8bda87f9 (diff)
downloadgsoc2013-evolution-b0d5e599ce5f3b0f8a2695588a95805e19fadb79.tar
gsoc2013-evolution-b0d5e599ce5f3b0f8a2695588a95805e19fadb79.tar.gz
gsoc2013-evolution-b0d5e599ce5f3b0f8a2695588a95805e19fadb79.tar.bz2
gsoc2013-evolution-b0d5e599ce5f3b0f8a2695588a95805e19fadb79.tar.lz
gsoc2013-evolution-b0d5e599ce5f3b0f8a2695588a95805e19fadb79.tar.xz
gsoc2013-evolution-b0d5e599ce5f3b0f8a2695588a95805e19fadb79.tar.zst
gsoc2013-evolution-b0d5e599ce5f3b0f8a2695588a95805e19fadb79.zip
Don't make the key url:item if we have the url, just make it url. This
2001-07-25 Jeffrey Stedfast <fejj@ximian.com> * mail-session.c (make_key): Don't make the key url:item if we have the url, just make it url. This fixes bug #5339. (mail_session_set_password): Removed. svn path=/trunk/; revision=11411
Diffstat (limited to 'mail/mail-mt.c')
-rw-r--r--mail/mail-mt.c24
1 files changed, 13 insertions, 11 deletions
diff --git a/mail/mail-mt.c b/mail/mail-mt.c
index 84029cba5e..9f330b217a 100644
--- a/mail/mail-mt.c
+++ b/mail/mail-mt.c
@@ -395,21 +395,23 @@ struct _pass_msg {
};
/* libgnomeui's idea of an api/gui is very weird ... hence this dumb hack */
-static void focus_on_entry(GtkWidget *widget, void *user_data)
+static void
+focus_on_entry (GtkWidget *widget, void *user_data)
{
- if (GTK_IS_ENTRY(widget))
- gtk_widget_grab_focus(widget);
+ if (GTK_IS_ENTRY (widget))
+ gtk_widget_grab_focus (widget);
}
-static void pass_got(char *string, void *data)
+static void
+pass_got (char *string, void *data)
{
struct _pass_msg *m = data;
-
+
if (string) {
- MailConfigAccount *mca;
-
+ const MailConfigAccount *mca;
+
m->result = g_strdup (string);
-
+
mca = mail_config_get_account_by_source_url (m->service_url);
mail_config_service_set_save_passwd (mca->source,
gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (m->tb)));
@@ -420,14 +422,14 @@ static void
do_get_pass(struct _mail_msg *mm)
{
struct _pass_msg *m = (struct _pass_msg *)mm;
+ const MailConfigAccount *mca;
GtkWidget *dialogue;
GtkWidget *tb;
- MailConfigAccount *mca;
-
+
/* this api is just awful ... hence the hacks */
dialogue = gnome_request_dialog(m->secret, m->prompt, NULL,
0, pass_got, m, NULL);
-
+
/* Remember the password? */
mca = mail_config_get_account_by_source_url (m->service_url);
tb = gtk_check_button_new_with_label (_("Remember this password"));