pidgin/pidginapplication.c

changeset 41209
909561f42b1f
parent 41169
4103b3869912
child 41234
293ee44d15a7
equal deleted inserted replaced
41208:48baac6c8989 41209:909561f42b1f
500 /****************************************************************************** 500 /******************************************************************************
501 * GApplication Implementation 501 * GApplication Implementation
502 *****************************************************************************/ 502 *****************************************************************************/
503 static void 503 static void
504 pidgin_application_startup(GApplication *application) { 504 pidgin_application_startup(GApplication *application) {
505 PurpleAccountManager *manager = NULL;
505 GtkCssProvider *provider = NULL; 506 GtkCssProvider *provider = NULL;
506 GError *error = NULL; 507 GError *error = NULL;
507 GList *active_accounts = NULL; 508 GList *active_accounts = NULL;
508 gchar *search_path = NULL; 509 gchar *search_path = NULL;
509 gpointer handle = NULL; 510 gpointer handle = NULL;
607 } 608 }
608 609
609 purple_accounts_restore_current_statuses(); 610 purple_accounts_restore_current_statuses();
610 } 611 }
611 612
612 if((active_accounts = purple_accounts_get_all_active()) == NULL) { 613 manager = purple_account_manager_get_default();
614 active_accounts = purple_account_manager_get_active(manager);
615 if(active_accounts == NULL) {
613 pidgin_accounts_window_show(); 616 pidgin_accounts_window_show();
614 } else { 617 } else {
615 g_list_free(active_accounts); 618 g_list_free(active_accounts);
616 } 619 }
617 620

mercurial