comparison libpurple/protocols/sametime/sametime.c @ 21099:51cf02dbdb0e

disapproval of revision 'c484d979c4fda4433a9633ff8b69bd8a395c9479'
author Richard Laager <rlaager@wiktel.com>
date Fri, 16 Nov 2007 23:30:03 +0000
parents cab348e39751
children fcb848b2d669
comparison
equal deleted inserted replaced
21095:cab348e39751 21099:51cf02dbdb0e
3380 msgA = _("Create conference with user"); 3380 msgA = _("Create conference with user");
3381 msgB = _("Please enter a topic for the new conference, and an invitation" 3381 msgB = _("Please enter a topic for the new conference, and an invitation"
3382 " message to be sent to %s"); 3382 " message to be sent to %s");
3383 msg1 = g_strdup_printf(msgB, buddy->name); 3383 msg1 = g_strdup_printf(msgB, buddy->name);
3384 3384
3385 purple_request_fields_with_hint(gc, _("New Conference"), 3385 purple_request_fields(gc, _("New Conference"),
3386 msgA, msg1, fields, 3386 msgA, msg1, fields,
3387 _("Create"), G_CALLBACK(conf_create_prompt_join), 3387 _("Create"), G_CALLBACK(conf_create_prompt_join),
3388 _("Cancel"), G_CALLBACK(conf_create_prompt_cancel), 3388 _("Cancel"), G_CALLBACK(conf_create_prompt_cancel),
3389 acct, purple_buddy_get_name(buddy), NULL, 3389 acct, purple_buddy_get_name(buddy), NULL,
3390 "chat", buddy); 3390 buddy);
3391 g_free(msg1); 3391 g_free(msg1);
3392 } 3392 }
3393 3393
3394 3394
3395 static void conf_select_prompt_cancel(PurpleBuddy *buddy, 3395 static void conf_select_prompt_cancel(PurpleBuddy *buddy,
3466 msgB = _("Select a conference from the list below to send an invite to" 3466 msgB = _("Select a conference from the list below to send an invite to"
3467 " user %s. Select \"Create New Conference\" if you'd like to" 3467 " user %s. Select \"Create New Conference\" if you'd like to"
3468 " create a new conference to invite this user to."); 3468 " create a new conference to invite this user to.");
3469 msg = g_strdup_printf(msgB, buddy->name); 3469 msg = g_strdup_printf(msgB, buddy->name);
3470 3470
3471 purple_request_fields_with_hint(gc, _("Invite to Conference"), 3471 purple_request_fields(gc, _("Invite to Conference"),
3472 msgA, msg, fields, 3472 msgA, msg, fields,
3473 _("Invite"), G_CALLBACK(conf_select_prompt_invite), 3473 _("Invite"), G_CALLBACK(conf_select_prompt_invite),
3474 _("Cancel"), G_CALLBACK(conf_select_prompt_cancel), 3474 _("Cancel"), G_CALLBACK(conf_select_prompt_cancel),
3475 acct, purple_buddy_get_name(buddy), NULL, 3475 acct, purple_buddy_get_name(buddy), NULL,
3476 "chat", buddy); 3476 buddy);
3477 g_free(msg); 3477 g_free(msg);
3478 } 3478 }
3479 3479
3480 3480
3481 static void blist_menu_conf(PurpleBlistNode *node, gpointer data) { 3481 static void blist_menu_conf(PurpleBlistNode *node, gpointer data) {
3636 msgA = _("No host or IP address has been configured for the" 3636 msgA = _("No host or IP address has been configured for the"
3637 " Meanwhile account %s. Please enter one below to" 3637 " Meanwhile account %s. Please enter one below to"
3638 " continue logging in."); 3638 " continue logging in.");
3639 msg = g_strdup_printf(msgA, NSTR(purple_account_get_username(acct))); 3639 msg = g_strdup_printf(msgA, NSTR(purple_account_get_username(acct)));
3640 3640
3641 purple_request_input_with_hint(gc, _("Meanwhile Connection Setup"), 3641 purple_request_input(gc, _("Meanwhile Connection Setup"),
3642 _("No Sametime Community Server Specified"), msg, 3642 _("No Sametime Community Server Specified"), msg,
3643 MW_PLUGIN_DEFAULT_HOST, FALSE, FALSE, NULL, 3643 MW_PLUGIN_DEFAULT_HOST, FALSE, FALSE, NULL,
3644 _("Connect"), G_CALLBACK(prompt_host_ok_cb), 3644 _("Connect"), G_CALLBACK(prompt_host_ok_cb),
3645 _("Cancel"), G_CALLBACK(prompt_host_cancel_cb), 3645 _("Cancel"), G_CALLBACK(prompt_host_cancel_cb),
3646 acct, NULL, NULL, 3646 acct, NULL, NULL,
3647 "account", gc); 3647 gc);
3648 3648
3649 g_free(msg); 3649 g_free(msg);
3650 } 3650 }
3651 3651
3652 3652
5213 gc = act->context; 5213 gc = act->context;
5214 account = purple_connection_get_account(gc); 5214 account = purple_connection_get_account(gc);
5215 title = g_strdup_printf(_("Import Sametime List for Account %s"), 5215 title = g_strdup_printf(_("Import Sametime List for Account %s"),
5216 purple_account_get_username(account)); 5216 purple_account_get_username(account));
5217 5217
5218 purple_request_file_with_hint(gc, title, NULL, FALSE, 5218 purple_request_file(gc, title, NULL, FALSE,
5219 G_CALLBACK(st_import_action_cb), NULL, 5219 G_CALLBACK(st_import_action_cb), NULL,
5220 account, NULL, NULL, 5220 account, NULL, NULL,
5221 "blist", gc); 5221 gc);
5222 5222
5223 g_free(title); 5223 g_free(title);
5224 } 5224 }
5225 5225
5226 5226
5253 gc = act->context; 5253 gc = act->context;
5254 account = purple_connection_get_account(gc); 5254 account = purple_connection_get_account(gc);
5255 title = g_strdup_printf(_("Export Sametime List for Account %s"), 5255 title = g_strdup_printf(_("Export Sametime List for Account %s"),
5256 purple_account_get_username(account)); 5256 purple_account_get_username(account));
5257 5257
5258 purple_request_file_with_hint(gc, title, NULL, TRUE, 5258 purple_request_file(gc, title, NULL, TRUE,
5259 G_CALLBACK(st_export_action_cb), NULL, 5259 G_CALLBACK(st_export_action_cb), NULL,
5260 account, NULL, NULL, 5260 account, NULL, NULL,
5261 "blist", gc); 5261 gc);
5262 5262
5263 g_free(title); 5263 g_free(title);
5264 } 5264 }
5265 5265
5266 5266
5389 msgB = _("The identifier '%s' may possibly refer to any of the following" 5389 msgB = _("The identifier '%s' may possibly refer to any of the following"
5390 " Notes Address Book groups. Please select the correct group from" 5390 " Notes Address Book groups. Please select the correct group from"
5391 " the list below to add it to your buddy list."); 5391 " the list below to add it to your buddy list.");
5392 msg = g_strdup_printf(msgB, result->name); 5392 msg = g_strdup_printf(msgB, result->name);
5393 5393
5394 purple_request_fields_with_hint(gc, _("Select Notes Address Book"), 5394 purple_request_fields(gc, _("Select Notes Address Book"),
5395 msgA, msg, fields, 5395 msgA, msg, fields,
5396 _("Add Group"), G_CALLBACK(remote_group_multi_cb), 5396 _("Add Group"), G_CALLBACK(remote_group_multi_cb),
5397 _("Cancel"), G_CALLBACK(remote_group_multi_cleanup), 5397 _("Cancel"), G_CALLBACK(remote_group_multi_cleanup),
5398 purple_connection_get_account(gc), result->name, NULL, 5398 purple_connection_get_account(gc), result->name, NULL,
5399 "blist", pd); 5399 pd);
5400 5400
5401 g_free(msg); 5401 g_free(msg);
5402 } 5402 }
5403 5403
5404 5404
5479 5479
5480 msgA = _("Notes Address Book Group"); 5480 msgA = _("Notes Address Book Group");
5481 msgB = _("Enter the name of a Notes Address Book group in the field below" 5481 msgB = _("Enter the name of a Notes Address Book group in the field below"
5482 " to add the group and its members to your buddy list."); 5482 " to add the group and its members to your buddy list.");
5483 5483
5484 purple_request_input_with_hint(gc, _("Add Group"), msgA, msgB, NULL, 5484 purple_request_input(gc, _("Add Group"), msgA, msgB, NULL,
5485 FALSE, FALSE, NULL, 5485 FALSE, FALSE, NULL,
5486 _("Add"), G_CALLBACK(remote_group_action_cb), 5486 _("Add"), G_CALLBACK(remote_group_action_cb),
5487 _("Cancel"), NULL, 5487 _("Cancel"), NULL,
5488 purple_connection_get_account(gc), NULL, NULL, 5488 purple_connection_get_account(gc), NULL, NULL,
5489 "blist", gc); 5489 gc);
5490 } 5490 }
5491 5491
5492 5492
5493 static void search_notify(struct mwResolveResult *result, 5493 static void search_notify(struct mwResolveResult *result,
5494 PurpleConnection *gc) { 5494 PurpleConnection *gc) {
5604 5604
5605 msgA = _("Search for a user"); 5605 msgA = _("Search for a user");
5606 msgB = _("Enter a name or partial ID in the field below to search" 5606 msgB = _("Enter a name or partial ID in the field below to search"
5607 " for matching users in your Sametime community."); 5607 " for matching users in your Sametime community.");
5608 5608
5609 purple_request_input_with_hint(gc, _("User Search"), msgA, msgB, NULL, 5609 purple_request_input(gc, _("User Search"), msgA, msgB, NULL,
5610 FALSE, FALSE, NULL, 5610 FALSE, FALSE, NULL,
5611 _("Search"), G_CALLBACK(search_action_cb), 5611 _("Search"), G_CALLBACK(search_action_cb),
5612 _("Cancel"), NULL, 5612 _("Cancel"), NULL,
5613 purple_connection_get_account(gc), NULL, NULL, 5613 purple_connection_get_account(gc), NULL, NULL,
5614 "blist", gc); 5614 gc);
5615 } 5615 }
5616 5616
5617 5617
5618 static GList *mw_plugin_actions(PurplePlugin *plugin, gpointer context) { 5618 static GList *mw_plugin_actions(PurplePlugin *plugin, gpointer context) {
5619 PurplePluginAction *act; 5619 PurplePluginAction *act;