pidgin/gtkaccount.c

changeset 15999
77ac8981199b
parent 15931
716b5fac1895
child 16071
044392e01c96
equal deleted inserted replaced
15998:294277e634fc 15999:77ac8981199b
229 if (pixbuf == NULL) 229 if (pixbuf == NULL)
230 { 230 {
231 /* Show a placeholder icon */ 231 /* Show a placeholder icon */
232 gchar *filename; 232 gchar *filename;
233 filename = g_build_filename(DATADIR, "pixmaps", 233 filename = g_build_filename(DATADIR, "pixmaps",
234 "purple", "insert-image.png", NULL); 234 "pidgin", "insert-image.png", NULL);
235 pixbuf = gdk_pixbuf_new_from_file(filename, NULL); 235 pixbuf = gdk_pixbuf_new_from_file(filename, NULL);
236 g_free(filename); 236 g_free(filename);
237 } 237 }
238 238
239 gtk_image_set_from_pixbuf(GTK_IMAGE(dialog->icon_entry), pixbuf); 239 gtk_image_set_from_pixbuf(GTK_IMAGE(dialog->icon_entry), pixbuf);
627 !purple_account_get_bool(dialog->account, "use-global-buddyicon", 627 !purple_account_get_bool(dialog->account, "use-global-buddyicon",
628 TRUE)); 628 TRUE));
629 set_dialog_icon(dialog, 629 set_dialog_icon(dialog,
630 g_strdup(purple_account_get_ui_string(dialog->account, 630 g_strdup(purple_account_get_ui_string(dialog->account,
631 PIDGIN_UI, "non-global-buddyicon-cached-path", NULL)), 631 PIDGIN_UI, "non-global-buddyicon-cached-path", NULL)),
632 g_strdup(purple_account_get_ui_string(dialog->account, 632 g_strdup(purple_account_get_ui_string(dialog->account,
633 PIDGIN_UI, "non-global-buddyicon-path", NULL))); 633 PIDGIN_UI, "non-global-buddyicon-path", NULL)));
634 } else { 634 } else {
635 set_dialog_icon(dialog, NULL, NULL); 635 set_dialog_icon(dialog, NULL, NULL);
636 } 636 }
637 637
2140 /* Create a helpful first-time-use label */ 2140 /* Create a helpful first-time-use label */
2141 label = gtk_label_new(NULL); 2141 label = gtk_label_new(NULL);
2142 /* Translators: Please maintain the use of -> or <- to represent the menu heirarchy */ 2142 /* Translators: Please maintain the use of -> or <- to represent the menu heirarchy */
2143 pretty = pidgin_make_pretty_arrows(_( 2143 pretty = pidgin_make_pretty_arrows(_(
2144 "<span size='larger' weight='bold'>Welcome to " PIDGIN_NAME "!</span>\n\n" 2144 "<span size='larger' weight='bold'>Welcome to " PIDGIN_NAME "!</span>\n\n"
2145 2145
2146 "You have no IM accounts configured. To start connecting with " PIDGIN_NAME " " 2146 "You have no IM accounts configured. To start connecting with " PIDGIN_NAME " "
2147 "press the <b>Add</b> button below and configure your first " 2147 "press the <b>Add</b> button below and configure your first "
2148 "account. If you want " PIDGIN_NAME " to connect to multiple IM accounts, " 2148 "account. If you want " PIDGIN_NAME " to connect to multiple IM accounts, "
2149 "press <b>Add</b> again to configure them all.\n\n" 2149 "press <b>Add</b> again to configure them all.\n\n"
2150 2150
2151 "You can come back to this window to add, edit, or remove " 2151 "You can come back to this window to add, edit, or remove "
2152 "accounts from <b>Accounts->Add/Edit</b> in the Buddy " 2152 "accounts from <b>Accounts->Add/Edit</b> in the Buddy "
2153 "List window")); 2153 "List window"));
2154 gtk_label_set_markup(GTK_LABEL(label), pretty); 2154 gtk_label_set_markup(GTK_LABEL(label), pretty);
2155 g_free(pretty); 2155 g_free(pretty);
2437 data->username = g_strdup(remote_user); 2437 data->username = g_strdup(remote_user);
2438 data->alias = g_strdup(alias); 2438 data->alias = g_strdup(alias);
2439 2439
2440 buffer = make_info(account, gc, remote_user, id, alias, msg); 2440 buffer = make_info(account, gc, remote_user, id, alias, msg);
2441 alert = pidgin_make_mini_dialog(gc, PIDGIN_STOCK_DIALOG_QUESTION, 2441 alert = pidgin_make_mini_dialog(gc, PIDGIN_STOCK_DIALOG_QUESTION,
2442 _("Add buddy to your list?"), buffer, data, 2442 _("Add buddy to your list?"), buffer, data,
2443 _("Add"), G_CALLBACK(add_user_cb), 2443 _("Add"), G_CALLBACK(add_user_cb),
2444 _("Cancel"), G_CALLBACK(free_add_user_data), NULL); 2444 _("Cancel"), G_CALLBACK(free_add_user_data), NULL);
2445 pidgin_blist_add_alert(alert); 2445 pidgin_blist_add_alert(alert);
2446 2446
2447 g_free(buffer); 2447 g_free(buffer);
2513 aa->username = g_strdup(remote_user); 2513 aa->username = g_strdup(remote_user);
2514 aa->alias = g_strdup(alias); 2514 aa->alias = g_strdup(alias);
2515 aa->account = account; 2515 aa->account = account;
2516 alert = pidgin_make_mini_dialog(gc, PIDGIN_STOCK_DIALOG_QUESTION, 2516 alert = pidgin_make_mini_dialog(gc, PIDGIN_STOCK_DIALOG_QUESTION,
2517 _("Authorize buddy?"), buffer, aa, 2517 _("Authorize buddy?"), buffer, aa,
2518 _("Authorize"), authorize_and_add_cb, 2518 _("Authorize"), authorize_and_add_cb,
2519 _("Deny"), deny_no_add_cb, 2519 _("Deny"), deny_no_add_cb,
2520 NULL); 2520 NULL);
2521 } else { 2521 } else {
2522 alert = pidgin_make_mini_dialog(gc, PIDGIN_STOCK_DIALOG_QUESTION, 2522 alert = pidgin_make_mini_dialog(gc, PIDGIN_STOCK_DIALOG_QUESTION,
2523 _("Authorize buddy?"), buffer, user_data, 2523 _("Authorize buddy?"), buffer, user_data,
2524 _("Authorize"), auth_cb, 2524 _("Authorize"), auth_cb,
2525 _("Deny"), deny_cb, 2525 _("Deny"), deny_cb,
2526 NULL); 2526 NULL);
2527 } 2527 }
2528 pidgin_blist_add_alert(alert); 2528 pidgin_blist_add_alert(alert);
2529 2529
2530 g_free(buffer); 2530 g_free(buffer);
2531 2531
2532 return NULL; 2532 return NULL;
2533 } 2533 }
2534 2534
2535 static void 2535 static void
2536 pidgin_accounts_request_close(void *ui_handle) 2536 pidgin_accounts_request_close(void *ui_handle)
2537 { 2537 {
2538 2538
2539 } 2539 }
2540 2540
2541 static PurpleAccountUiOps ui_ops = 2541 static PurpleAccountUiOps ui_ops =
2542 { 2542 {
2543 pidgin_accounts_notify_added, 2543 pidgin_accounts_notify_added,

mercurial