comparison libpurple/protocols/sametime/sametime.c @ 21360:e747ac0c42d6

propagate from branch 'im.pidgin.pidgin.next.minor' (head bd8f1d754a1b94e5ade30c3b135178b236f7b49a) to branch 'im.pidgin.cpw.resiak.disconnectreason' (head 5d84bcfaddc07cab4419ab9f04b31626421b97ff)
author Will Thompson <will.thompson@collabora.co.uk>
date Mon, 15 Oct 2007 10:45:46 +0000
parents ba41f2a60253 a20ef7180680
children 38cc722159ff
comparison
equal deleted inserted replaced
21359:fe57b8062249 21360:e747ac0c42d6
3421 msgA = _("Create conference with user"); 3421 msgA = _("Create conference with user");
3422 msgB = _("Please enter a topic for the new conference, and an invitation" 3422 msgB = _("Please enter a topic for the new conference, and an invitation"
3423 " message to be sent to %s"); 3423 " message to be sent to %s");
3424 msg1 = g_strdup_printf(msgB, buddy->name); 3424 msg1 = g_strdup_printf(msgB, buddy->name);
3425 3425
3426 purple_request_fields(gc, _("New Conference"), 3426 purple_request_fields_with_hint(gc, _("New Conference"),
3427 msgA, msg1, fields, 3427 msgA, msg1, fields,
3428 _("Create"), G_CALLBACK(conf_create_prompt_join), 3428 _("Create"), G_CALLBACK(conf_create_prompt_join),
3429 _("Cancel"), G_CALLBACK(conf_create_prompt_cancel), 3429 _("Cancel"), G_CALLBACK(conf_create_prompt_cancel),
3430 acct, purple_buddy_get_name(buddy), NULL, 3430 acct, purple_buddy_get_name(buddy), NULL,
3431 buddy); 3431 PURPLE_REQUEST_UI_HINT_CONV, buddy);
3432 g_free(msg1); 3432 g_free(msg1);
3433 } 3433 }
3434 3434
3435 3435
3436 static void conf_select_prompt_cancel(PurpleBuddy *buddy, 3436 static void conf_select_prompt_cancel(PurpleBuddy *buddy,
3507 msgB = _("Select a conference from the list below to send an invite to" 3507 msgB = _("Select a conference from the list below to send an invite to"
3508 " user %s. Select \"Create New Conference\" if you'd like to" 3508 " user %s. Select \"Create New Conference\" if you'd like to"
3509 " create a new conference to invite this user to."); 3509 " create a new conference to invite this user to.");
3510 msg = g_strdup_printf(msgB, buddy->name); 3510 msg = g_strdup_printf(msgB, buddy->name);
3511 3511
3512 purple_request_fields(gc, _("Invite to Conference"), 3512 purple_request_fields_with_hint(gc, _("Invite to Conference"),
3513 msgA, msg, fields, 3513 msgA, msg, fields,
3514 _("Invite"), G_CALLBACK(conf_select_prompt_invite), 3514 _("Invite"), G_CALLBACK(conf_select_prompt_invite),
3515 _("Cancel"), G_CALLBACK(conf_select_prompt_cancel), 3515 _("Cancel"), G_CALLBACK(conf_select_prompt_cancel),
3516 acct, purple_buddy_get_name(buddy), NULL, 3516 acct, purple_buddy_get_name(buddy), NULL,
3517 buddy); 3517 PURPLE_REQUEST_UI_HINT_CONV, buddy);
3518 g_free(msg); 3518 g_free(msg);
3519 } 3519 }
3520 3520
3521 3521
3522 static void blist_menu_conf(PurpleBlistNode *node, gpointer data) { 3522 static void blist_menu_conf(PurpleBlistNode *node, gpointer data) {
3680 msgA = _("No host or IP address has been configured for the" 3680 msgA = _("No host or IP address has been configured for the"
3681 " Meanwhile account %s. Please enter one below to" 3681 " Meanwhile account %s. Please enter one below to"
3682 " continue logging in."); 3682 " continue logging in.");
3683 msg = g_strdup_printf(msgA, NSTR(purple_account_get_username(acct))); 3683 msg = g_strdup_printf(msgA, NSTR(purple_account_get_username(acct)));
3684 3684
3685 purple_request_input(gc, _("Meanwhile Connection Setup"), 3685 purple_request_input_with_hint(gc, _("Meanwhile Connection Setup"),
3686 _("No Sametime Community Server Specified"), msg, 3686 _("No Sametime Community Server Specified"), msg,
3687 MW_PLUGIN_DEFAULT_HOST, FALSE, FALSE, NULL, 3687 MW_PLUGIN_DEFAULT_HOST, FALSE, FALSE, NULL,
3688 _("Connect"), G_CALLBACK(prompt_host_ok_cb), 3688 _("Connect"), G_CALLBACK(prompt_host_ok_cb),
3689 _("Cancel"), G_CALLBACK(prompt_host_cancel_cb), 3689 _("Cancel"), G_CALLBACK(prompt_host_cancel_cb),
3690 acct, NULL, NULL, 3690 acct, NULL, NULL,
3691 gc); 3691 PURPLE_REQUEST_UI_HINT_CONV, gc);
3692 3692
3693 g_free(msg); 3693 g_free(msg);
3694 } 3694 }
3695 3695
3696 3696
5258 gc = act->context; 5258 gc = act->context;
5259 account = purple_connection_get_account(gc); 5259 account = purple_connection_get_account(gc);
5260 title = g_strdup_printf(_("Import Sametime List for Account %s"), 5260 title = g_strdup_printf(_("Import Sametime List for Account %s"),
5261 purple_account_get_username(account)); 5261 purple_account_get_username(account));
5262 5262
5263 purple_request_file(gc, title, NULL, FALSE, 5263 purple_request_file_with_hint(gc, title, NULL, FALSE,
5264 G_CALLBACK(st_import_action_cb), NULL, 5264 G_CALLBACK(st_import_action_cb), NULL,
5265 account, NULL, NULL, 5265 account, NULL, NULL,
5266 gc); 5266 PURPLE_REQUEST_UI_HINT_CONV, gc);
5267 5267
5268 g_free(title); 5268 g_free(title);
5269 } 5269 }
5270 5270
5271 5271
5298 gc = act->context; 5298 gc = act->context;
5299 account = purple_connection_get_account(gc); 5299 account = purple_connection_get_account(gc);
5300 title = g_strdup_printf(_("Export Sametime List for Account %s"), 5300 title = g_strdup_printf(_("Export Sametime List for Account %s"),
5301 purple_account_get_username(account)); 5301 purple_account_get_username(account));
5302 5302
5303 purple_request_file(gc, title, NULL, TRUE, 5303 purple_request_file_with_hint(gc, title, NULL, TRUE,
5304 G_CALLBACK(st_export_action_cb), NULL, 5304 G_CALLBACK(st_export_action_cb), NULL,
5305 account, NULL, NULL, 5305 account, NULL, NULL,
5306 gc); 5306 PURPLE_REQUEST_UI_HINT_CONV, gc);
5307 5307
5308 g_free(title); 5308 g_free(title);
5309 } 5309 }
5310 5310
5311 5311
5434 msgB = _("The identifier '%s' may possibly refer to any of the following" 5434 msgB = _("The identifier '%s' may possibly refer to any of the following"
5435 " Notes Address Book groups. Please select the correct group from" 5435 " Notes Address Book groups. Please select the correct group from"
5436 " the list below to add it to your buddy list."); 5436 " the list below to add it to your buddy list.");
5437 msg = g_strdup_printf(msgB, result->name); 5437 msg = g_strdup_printf(msgB, result->name);
5438 5438
5439 purple_request_fields(gc, _("Select Notes Address Book"), 5439 purple_request_fields_with_hint(gc, _("Select Notes Address Book"),
5440 msgA, msg, fields, 5440 msgA, msg, fields,
5441 _("Add Group"), G_CALLBACK(remote_group_multi_cb), 5441 _("Add Group"), G_CALLBACK(remote_group_multi_cb),
5442 _("Cancel"), G_CALLBACK(remote_group_multi_cleanup), 5442 _("Cancel"), G_CALLBACK(remote_group_multi_cleanup),
5443 purple_connection_get_account(gc), result->name, NULL, 5443 purple_connection_get_account(gc), result->name, NULL,
5444 pd); 5444 PURPLE_REQUEST_UI_HINT_BLIST, pd);
5445 5445
5446 g_free(msg); 5446 g_free(msg);
5447 } 5447 }
5448 5448
5449 5449
5524 5524
5525 msgA = _("Notes Address Book Group"); 5525 msgA = _("Notes Address Book Group");
5526 msgB = _("Enter the name of a Notes Address Book group in the field below" 5526 msgB = _("Enter the name of a Notes Address Book group in the field below"
5527 " to add the group and its members to your buddy list."); 5527 " to add the group and its members to your buddy list.");
5528 5528
5529 purple_request_input(gc, _("Add Group"), msgA, msgB, NULL, 5529 purple_request_input_with_hint(gc, _("Add Group"), msgA, msgB, NULL,
5530 FALSE, FALSE, NULL, 5530 FALSE, FALSE, NULL,
5531 _("Add"), G_CALLBACK(remote_group_action_cb), 5531 _("Add"), G_CALLBACK(remote_group_action_cb),
5532 _("Cancel"), NULL, 5532 _("Cancel"), NULL,
5533 purple_connection_get_account(gc), NULL, NULL, 5533 purple_connection_get_account(gc), NULL, NULL,
5534 gc); 5534 PURPLE_REQUEST_UI_HINT_BLIST, gc);
5535 } 5535 }
5536 5536
5537 5537
5538 static void search_notify(struct mwResolveResult *result, 5538 static void search_notify(struct mwResolveResult *result,
5539 PurpleConnection *gc) { 5539 PurpleConnection *gc) {
5649 5649
5650 msgA = _("Search for a user"); 5650 msgA = _("Search for a user");
5651 msgB = _("Enter a name or partial ID in the field below to search" 5651 msgB = _("Enter a name or partial ID in the field below to search"
5652 " for matching users in your Sametime community."); 5652 " for matching users in your Sametime community.");
5653 5653
5654 purple_request_input(gc, _("User Search"), msgA, msgB, NULL, 5654 purple_request_input_with_hint(gc, _("User Search"), msgA, msgB, NULL,
5655 FALSE, FALSE, NULL, 5655 FALSE, FALSE, NULL,
5656 _("Search"), G_CALLBACK(search_action_cb), 5656 _("Search"), G_CALLBACK(search_action_cb),
5657 _("Cancel"), NULL, 5657 _("Cancel"), NULL,
5658 purple_connection_get_account(gc), NULL, NULL, 5658 purple_connection_get_account(gc), NULL, NULL,
5659 gc); 5659 PURPLE_REQUEST_UI_HINT_BLIST, gc);
5660 } 5660 }
5661 5661
5662 5662
5663 static GList *mw_plugin_actions(PurplePlugin *plugin, gpointer context) { 5663 static GList *mw_plugin_actions(PurplePlugin *plugin, gpointer context) {
5664 PurplePluginAction *act; 5664 PurplePluginAction *act;