Mercurial > pidgin.yaz
comparison src/main.c @ 5530:2c4c975620f0
[gaim-migrate @ 5930]
Okay, several changes in this commit.
- We now have gtkprefs.h.
- We have a place where we can add UI prefs.
- show_prefs() -> gaim_gtk_prefs_show().
- make_frame() -> gaim_gtk_make_frame().
- The debug window is the first thing to have prefs. You can even
turn off the toolbar if you edit ~/.gaim/prefs.xml.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Mon, 26 May 2003 08:30:48 +0000 |
parents | a75a952d78db |
children | 0aa4d089125c |
comparison
equal
deleted
inserted
replaced
5529:e7747cae9710 | 5530:2c4c975620f0 |
---|---|
374 #endif | 374 #endif |
375 | 375 |
376 button = gaim_pixbuf_button_from_stock(_("Preferences"), GTK_STOCK_PREFERENCES, GAIM_BUTTON_VERTICAL); | 376 button = gaim_pixbuf_button_from_stock(_("Preferences"), GTK_STOCK_PREFERENCES, GAIM_BUTTON_VERTICAL); |
377 gtk_button_set_relief(GTK_BUTTON(button), GTK_RELIEF_NONE); | 377 gtk_button_set_relief(GTK_BUTTON(button), GTK_RELIEF_NONE); |
378 g_signal_connect(G_OBJECT(button), "clicked", | 378 g_signal_connect(G_OBJECT(button), "clicked", |
379 G_CALLBACK(show_prefs), mainwindow); | 379 G_CALLBACK(gaim_gtk_prefs_show), mainwindow); |
380 gtk_box_pack_start(GTK_BOX(hbox), button, FALSE, FALSE, 0); | 380 gtk_box_pack_start(GTK_BOX(hbox), button, FALSE, FALSE, 0); |
381 | 381 |
382 button = gaim_pixbuf_button_from_stock(_("Sign On"), GAIM_STOCK_SIGN_ON, GAIM_BUTTON_VERTICAL); | 382 button = gaim_pixbuf_button_from_stock(_("Sign On"), GAIM_STOCK_SIGN_ON, GAIM_BUTTON_VERTICAL); |
383 gtk_button_set_relief(GTK_BUTTON(button), GTK_RELIEF_NONE); | 383 gtk_button_set_relief(GTK_BUTTON(button), GTK_RELIEF_NONE); |
384 g_signal_connect(G_OBJECT(button), "clicked", | 384 g_signal_connect(G_OBJECT(button), "clicked", |
879 gaim_set_xfer_ui_ops(gaim_get_gtk_xfer_ui_ops()); | 879 gaim_set_xfer_ui_ops(gaim_get_gtk_xfer_ui_ops()); |
880 gaim_set_blist_ui_ops(gaim_get_gtk_blist_ui_ops()); | 880 gaim_set_blist_ui_ops(gaim_get_gtk_blist_ui_ops()); |
881 gaim_set_notify_ui_ops(gaim_get_gtk_notify_ui_ops()); | 881 gaim_set_notify_ui_ops(gaim_get_gtk_notify_ui_ops()); |
882 gaim_set_request_ui_ops(gaim_get_gtk_request_ui_ops()); | 882 gaim_set_request_ui_ops(gaim_get_gtk_request_ui_ops()); |
883 | 883 |
884 gaim_prefs_init(); | |
885 gaim_gtk_prefs_init(); | |
886 gaim_prefs_load(); | |
887 load_prefs(); | |
884 | 888 |
885 plugin_search_paths[0] = LIBDIR; | 889 plugin_search_paths[0] = LIBDIR; |
886 plugin_search_paths[1] = gaim_user_dir(); | 890 plugin_search_paths[1] = gaim_user_dir(); |
887 plugin_search_paths[2] = g_strdup_printf("%s/plugins", gaim_user_dir()); | 891 plugin_search_paths[2] = g_strdup_printf("%s/plugins", gaim_user_dir()); |
888 | 892 |
897 #ifdef _WIN32 | 901 #ifdef _WIN32 |
898 /* Various win32 initializations */ | 902 /* Various win32 initializations */ |
899 wgaim_init(); | 903 wgaim_init(); |
900 #endif | 904 #endif |
901 | 905 |
902 gaim_prefs_init(); | |
903 gaim_prefs_load(); | |
904 load_prefs(); | |
905 core_main(); | 906 core_main(); |
906 load_pounces(); | 907 load_pounces(); |
907 ui_main(); | 908 ui_main(); |
908 | 909 |
909 #ifdef USE_SM | 910 #ifdef USE_SM |