Mercurial > pidgin
comparison src/aim.c @ 3483:abaee81fdea2
[gaim-migrate @ 3537]
Thanks, deryni
committer: Tailor Script <tailor@pidgin.im>
| author | Sean Egan <seanegan@gmail.com> |
|---|---|
| date | Fri, 30 Aug 2002 21:37:09 +0000 |
| parents | 443b3311871d |
| children | 66bf7ecefedd |
comparison
equal
deleted
inserted
replaced
| 3482:25eea0717f72 | 3483:abaee81fdea2 |
|---|---|
| 151 g_snprintf(u->password, sizeof u->password, "%s", password); | 151 g_snprintf(u->password, sizeof u->password, "%s", password); |
| 152 save_prefs(); | 152 save_prefs(); |
| 153 serv_login(u); | 153 serv_login(u); |
| 154 } | 154 } |
| 155 | 155 |
| 156 static void dologin_all(GtkWidget *widget, GtkWidget *w) | |
| 157 { | |
| 158 struct aim_user *u; | |
| 159 GSList *users = aim_users; | |
| 160 | |
| 161 while (users) { | |
| 162 u = users->data; | |
| 163 if (u->options & OPT_USR_AUTO) | |
| 164 serv_login(u); | |
| 165 users = users->next; | |
| 166 } | |
| 167 } | |
| 156 | 168 |
| 157 static void doenter(GtkWidget *widget, GtkWidget *w) | 169 static void doenter(GtkWidget *widget, GtkWidget *w) |
| 158 { | 170 { |
| 159 if (widget == name) { | 171 if (widget == name) { |
| 160 gtk_entry_set_text(GTK_ENTRY(pass), ""); | 172 gtk_entry_set_text(GTK_ENTRY(pass), ""); |
| 200 } | 212 } |
| 201 | 213 |
| 202 | 214 |
| 203 void show_login() | 215 void show_login() |
| 204 { | 216 { |
| 217 GtkWidget *signon_all; | |
| 205 GtkWidget *options; | 218 GtkWidget *options; |
| 206 #ifdef GAIM_PLUGINS | 219 #ifdef GAIM_PLUGINS |
| 207 GtkWidget *plugs; | 220 GtkWidget *plugs; |
| 208 #endif | 221 #endif |
| 209 #ifndef NO_MULTI | 222 #ifndef NO_MULTI |
| 324 | 337 |
| 325 hbox = gtk_hbox_new(TRUE, 10); | 338 hbox = gtk_hbox_new(TRUE, 10); |
| 326 gtk_box_pack_start(GTK_BOX(sbox), hbox, TRUE, TRUE, 0); | 339 gtk_box_pack_start(GTK_BOX(sbox), hbox, TRUE, TRUE, 0); |
| 327 gtk_widget_show(hbox); | 340 gtk_widget_show(hbox); |
| 328 | 341 |
| 329 reg = gtk_button_new_with_label(_("About")); | 342 reg = gtk_button_new_with_label(_("Auto-login")); |
| 330 options = gtk_button_new_with_label(_("Options")); | 343 options = gtk_button_new_with_label(_("Options")); |
| 331 #ifdef GAIM_PLUGINS | 344 #ifdef GAIM_PLUGINS |
| 332 plugs = gtk_button_new_with_label(_("Plugins")); | 345 plugs = gtk_button_new_with_label(_("Plugins")); |
| 333 #endif | 346 #endif |
| 334 if (misc_options & OPT_MISC_COOL_LOOK) { | 347 if (misc_options & OPT_MISC_COOL_LOOK) { |
| 337 #ifdef GAIM_PLUGINS | 350 #ifdef GAIM_PLUGINS |
| 338 gtk_button_set_relief(GTK_BUTTON(plugs), GTK_RELIEF_NONE); | 351 gtk_button_set_relief(GTK_BUTTON(plugs), GTK_RELIEF_NONE); |
| 339 #endif | 352 #endif |
| 340 } | 353 } |
| 341 | 354 |
| 342 gtk_signal_connect(GTK_OBJECT(reg), "clicked", GTK_SIGNAL_FUNC(show_about), NULL); | 355 gtk_signal_connect(GTK_OBJECT(reg), "clicked", GTK_SIGNAL_FUNC(dologin_all), NULL); |
| 343 gtk_signal_connect(GTK_OBJECT(options), "clicked", GTK_SIGNAL_FUNC(show_prefs), NULL); | 356 gtk_signal_connect(GTK_OBJECT(options), "clicked", GTK_SIGNAL_FUNC(show_prefs), NULL); |
| 344 #ifdef GAIM_PLUGINS | 357 #ifdef GAIM_PLUGINS |
| 345 gtk_signal_connect(GTK_OBJECT(plugs), "clicked", GTK_SIGNAL_FUNC(show_plugins), NULL); | 358 gtk_signal_connect(GTK_OBJECT(plugs), "clicked", GTK_SIGNAL_FUNC(show_plugins), NULL); |
| 346 #endif | 359 #endif |
| 347 | 360 |
| 348 gtk_box_pack_start(GTK_BOX(hbox), reg, TRUE, TRUE, 0); | 361 gtk_box_pack_start(GTK_BOX(hbox), plugs, TRUE, TRUE, 0); |
| 349 gtk_box_pack_start(GTK_BOX(hbox), options, TRUE, TRUE, 0); | 362 gtk_box_pack_start(GTK_BOX(hbox), options, TRUE, TRUE, 0); |
| 350 #ifdef GAIM_PLUGINS | 363 #ifdef GAIM_PLUGINS |
| 351 gtk_box_pack_start(GTK_BOX(hbox), plugs, TRUE, TRUE, 0); | 364 gtk_box_pack_start(GTK_BOX(hbox), reg, TRUE, TRUE, 0); |
| 352 #endif | 365 #endif |
| 353 | 366 |
| 354 gtk_widget_show(reg); | 367 gtk_widget_show(reg); |
| 355 gtk_widget_show(options); | 368 gtk_widget_show(options); |
| 356 #ifdef GAIM_PLUGINS | 369 #ifdef GAIM_PLUGINS |
