| 676 *****************************************************************************/ |
676 *****************************************************************************/ |
| 677 static void |
677 static void |
| 678 pidgin_application_startup(GApplication *application) { |
678 pidgin_application_startup(GApplication *application) { |
| 679 PurpleAccountManager *manager = NULL; |
679 PurpleAccountManager *manager = NULL; |
| 680 PurpleUiInfo *ui_info = NULL; |
680 PurpleUiInfo *ui_info = NULL; |
| 681 GtkCssProvider *provider = NULL; |
|
| 682 GList *active_accounts = NULL; |
681 GList *active_accounts = NULL; |
| 683 gchar *search_path = NULL; |
|
| 684 gpointer handle = NULL; |
682 gpointer handle = NULL; |
| 685 |
683 |
| 686 G_APPLICATION_CLASS(pidgin_application_parent_class)->startup(application); |
684 G_APPLICATION_CLASS(pidgin_application_parent_class)->startup(application); |
| 687 |
685 |
| 688 adw_init(); |
686 adw_init(); |
| 707 #ifdef DEBUG |
705 #ifdef DEBUG |
| 708 pidgin_debug_set_print_enabled(TRUE); |
706 pidgin_debug_set_print_enabled(TRUE); |
| 709 #else |
707 #else |
| 710 pidgin_debug_set_print_enabled(opt_debug); |
708 pidgin_debug_set_print_enabled(opt_debug); |
| 711 #endif |
709 #endif |
| 712 |
|
| 713 provider = gtk_css_provider_new(); |
|
| 714 |
|
| 715 search_path = g_build_filename(purple_config_dir(), "gtk-3.0.css", NULL); |
|
| 716 gtk_css_provider_load_from_path(provider, search_path); |
|
| 717 gtk_style_context_add_provider_for_display(gdk_display_get_default(), |
|
| 718 GTK_STYLE_PROVIDER(provider), |
|
| 719 GTK_STYLE_PROVIDER_PRIORITY_USER); |
|
| 720 |
|
| 721 g_free(search_path); |
|
| 722 |
710 |
| 723 #ifdef _WIN32 |
711 #ifdef _WIN32 |
| 724 winpidgin_init(); |
712 winpidgin_init(); |
| 725 #endif |
713 #endif |
| 726 |
714 |