Mercurial > pidgin.yaz
comparison src/main.c @ 6119:0d2bd49c611e
[gaim-migrate @ 6588]
Changed the API a bit for the Accounts window, and exposed the API to
display an account editor dialog from outside gtkaccount.c.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Mon, 14 Jul 2003 10:04:27 +0000 |
parents | 0922bb7a7bbc |
children | 16e384bb7fbf |
comparison
equal
deleted
inserted
replaced
6118:ed983e8a1851 | 6119:0d2bd49c611e |
---|---|
413 | 413 |
414 /* And now for the buttons */ | 414 /* And now for the buttons */ |
415 button = gaim_pixbuf_button_from_stock(_("Accounts"), GAIM_STOCK_ACCOUNTS, GAIM_BUTTON_VERTICAL); | 415 button = gaim_pixbuf_button_from_stock(_("Accounts"), GAIM_STOCK_ACCOUNTS, GAIM_BUTTON_VERTICAL); |
416 gtk_button_set_relief(GTK_BUTTON(button), GTK_RELIEF_NONE); | 416 gtk_button_set_relief(GTK_BUTTON(button), GTK_RELIEF_NONE); |
417 g_signal_connect(G_OBJECT(button), "clicked", | 417 g_signal_connect(G_OBJECT(button), "clicked", |
418 G_CALLBACK(gaim_gtk_account_dialog_show), mainwindow); | 418 G_CALLBACK(gaim_gtk_accounts_window_show), mainwindow); |
419 gtk_box_pack_start(GTK_BOX(hbox), button, FALSE, FALSE, 0); | 419 gtk_box_pack_start(GTK_BOX(hbox), button, FALSE, FALSE, 0); |
420 | 420 |
421 #ifdef NO_MULTI | 421 #ifdef NO_MULTI |
422 gtk_widget_set_sensitive(GTK_WIDGET(button), FALSE); | 422 gtk_widget_set_sensitive(GTK_WIDGET(button), FALSE); |
423 #endif | 423 #endif |
932 | 932 |
933 if (!opt_acct && !opt_nologin) | 933 if (!opt_acct && !opt_nologin) |
934 gaim_accounts_auto_login(GAIM_GTK_UI); | 934 gaim_accounts_auto_login(GAIM_GTK_UI); |
935 | 935 |
936 if (opt_acct) { | 936 if (opt_acct) { |
937 gaim_gtk_account_dialog_show(); | 937 gaim_gtk_accounts_window_show(); |
938 } else if ((dologin_ret == -1) && !gaim_connections_get_all()) | 938 } else if ((dologin_ret == -1) && !gaim_connections_get_all()) |
939 show_login(); | 939 show_login(); |
940 | 940 |
941 gtk_main(); | 941 gtk_main(); |
942 gaim_sound_shutdown(); | 942 gaim_sound_shutdown(); |