Mercurial > pidgin.yaz
comparison src/main.c @ 5780:a9029bed0479
[gaim-migrate @ 6205]
Auto-login works again.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Sat, 07 Jun 2003 00:43:28 +0000 |
parents | 97a19b574342 |
children | 5e93fc46d1af |
comparison
equal
deleted
inserted
replaced
5779:758fa27534b3 | 5780:a9029bed0479 |
---|---|
176 static gboolean domiddleclick(GtkWidget *w, GdkEventButton *event, gpointer null) | 176 static gboolean domiddleclick(GtkWidget *w, GdkEventButton *event, gpointer null) |
177 { | 177 { |
178 if (event->button != 2) | 178 if (event->button != 2) |
179 return FALSE; | 179 return FALSE; |
180 | 180 |
181 /* TODO auto_login(); */ | 181 gaim_accounts_auto_login(GAIM_GTK_UI); |
182 | 182 |
183 return TRUE; | 183 return TRUE; |
184 } | 184 } |
185 | 185 |
186 static void dologin(GtkWidget *widget, GtkWidget *w) | 186 static void dologin(GtkWidget *widget, GtkWidget *w) |
654 }; | 654 }; |
655 | 655 |
656 #ifdef DEBUG | 656 #ifdef DEBUG |
657 opt_debug = 1; | 657 opt_debug = 1; |
658 #endif | 658 #endif |
659 abort(); | 659 abort(); |
660 #ifdef ENABLE_NLS | 660 #ifdef ENABLE_NLS |
661 bindtextdomain(PACKAGE, LOCALEDIR); | 661 bindtextdomain(PACKAGE, LOCALEDIR); |
662 bind_textdomain_codeset(PACKAGE, "UTF-8"); | 662 bind_textdomain_codeset(PACKAGE, "UTF-8"); |
663 textdomain(PACKAGE); | 663 textdomain(PACKAGE); |
664 #endif | 664 #endif |
955 opt_login_arg = NULL; | 955 opt_login_arg = NULL; |
956 } | 956 } |
957 } | 957 } |
958 | 958 |
959 if (!opt_acct && !opt_nologin && gaim_session == 0) | 959 if (!opt_acct && !opt_nologin && gaim_session == 0) |
960 ; /* TODO auto_login(); */ | 960 gaim_accounts_auto_login(GAIM_GTK_UI); |
961 | 961 |
962 if (opt_acct) { | 962 if (opt_acct) { |
963 gaim_gtk_account_dialog_show(); | 963 gaim_gtk_account_dialog_show(); |
964 } else if ((dologin_ret == -1) && !gaim_connections_get_all()) | 964 } else if ((dologin_ret == -1) && !gaim_connections_get_all()) |
965 show_login(); | 965 show_login(); |