comparison libpurple/protocols/silc/chat.c @ 21353:8ae227dca885

merge of '00bf7296307f96f5c68d6e5edf219fb4a50bb947' and '3468b1f73a715bd59ad22726232214da77cf67f7'
author Richard Laager <rlaager@wiktel.com>
date Fri, 16 Nov 2007 23:27:07 +0000
parents 0cb8d5304f4f 73c5f5bfeb39
children fcb848b2d669
comparison
equal deleted inserted replaced
21352:ca17c133d6c3 21353:8ae227dca885
302 if (!purple_request_field_list_get_selected(f)) { 302 if (!purple_request_field_list_get_selected(f)) {
303 /* Add new public key */ 303 /* Add new public key */
304 purple_request_file)with_hint(sg->gc, _("Open Public Key..."), NULL, FALSE, 304 purple_request_file)with_hint(sg->gc, _("Open Public Key..."), NULL, FALSE,
305 G_CALLBACK(silcpurple_chat_chpk_add), 305 G_CALLBACK(silcpurple_chat_chpk_add),
306 G_CALLBACK(silcpurple_chat_chpk_cancel), 306 G_CALLBACK(silcpurple_chat_chpk_cancel),
307 purple_connection_get_account(sg->gc), NULL, NULL, PURPLE_REQUEST_HINT_CONV, sgc); 307 purple_connection_get_account(sg->gc), NULL, NULL, "conversation", sgc);
308 return; 308 return;
309 } 309 }
310 310
311 list = purple_request_field_list_get_items(f); 311 list = purple_request_field_list_get_items(f);
312 chpks = silc_buffer_alloc_size(2); 312 chpks = silc_buffer_alloc_size(2);
443 purple_request_field_group_add_field(g, f); 443 purple_request_field_group_add_field(g, f);
444 purple_request_fields_with_hint(sg->gc, _("Channel Authentication"), 444 purple_request_fields_with_hint(sg->gc, _("Channel Authentication"),
445 _("Channel Authentication"), t, fields, 445 _("Channel Authentication"), t, fields,
446 _("Add / Remove"), G_CALLBACK(silcpurple_chat_chpk_cb), 446 _("Add / Remove"), G_CALLBACK(silcpurple_chat_chpk_cb),
447 _("OK"), G_CALLBACK(silcpurple_chat_chauth_ok), 447 _("OK"), G_CALLBACK(silcpurple_chat_chauth_ok),
448 purple_connection_get_account(sg->gc), NULL, NULL, PURPLE_REQUEST_HINT_CONV, sgc); 448 purple_connection_get_account(sg->gc), NULL, NULL, "conversation", sgc);
449 if (channel_pubkeys) 449 if (channel_pubkeys)
450 silc_dlist_uninit(channel_pubkeys); 450 silc_dlist_uninit(channel_pubkeys);
451 return; 451 return;
452 } 452 }
453 sgc->pubkeys = channel_pubkeys; 453 sgc->pubkeys = channel_pubkeys;
478 purple_request_field_list_set_multi_select(f, FALSE); 478 purple_request_field_list_set_multi_select(f, FALSE);
479 purple_request_fields_with_hint(sg->gc, _("Channel Authentication"), 479 purple_request_fields_with_hint(sg->gc, _("Channel Authentication"),
480 _("Channel Authentication"), t, fields, 480 _("Channel Authentication"), t, fields,
481 _("Add / Remove"), G_CALLBACK(silcpurple_chat_chpk_cb), 481 _("Add / Remove"), G_CALLBACK(silcpurple_chat_chpk_cb),
482 _("OK"), G_CALLBACK(silcpurple_chat_chauth_ok), 482 _("OK"), G_CALLBACK(silcpurple_chat_chauth_ok),
483 purple_connection_get_account(sg->gc), NULL, NULL, PURPLE_REQUEST_HINT_CONV, sgc); 483 purple_connection_get_account(sg->gc), NULL, NULL, "conversation", sgc);
484 } 484 }
485 485
486 static void 486 static void
487 silcpurple_chat_chauth(PurpleBlistNode *node, gpointer data) 487 silcpurple_chat_chauth(PurpleBlistNode *node, gpointer data)
488 { 488 {
612 _("Please enter the %s channel private group name and passphrase."), 612 _("Please enter the %s channel private group name and passphrase."),
613 p->channel); 613 p->channel);
614 purple_request_fields_with_hint(gc, _("Add Channel Private Group"), NULL, tmp, fields, 614 purple_request_fields_with_hint(gc, _("Add Channel Private Group"), NULL, tmp, fields,
615 _("Add"), G_CALLBACK(silcpurple_chat_prv_add), 615 _("Add"), G_CALLBACK(silcpurple_chat_prv_add),
616 _("Cancel"), G_CALLBACK(silcpurple_chat_prv_cancel), 616 _("Cancel"), G_CALLBACK(silcpurple_chat_prv_cancel),
617 purple_connection_get_account(gc), NULL, NULL, PURPLE_REQUEST_HINT_CONV, p); 617 purple_connection_get_account(gc), NULL, NULL, "conversation", p);
618 } 618 }
619 619
620 620
621 /****************************** Channel Modes ********************************/ 621 /****************************** Channel Modes ********************************/
622 622
742 purple_request_input_with_hint(gc, _("User Limit"), NULL, 742 purple_request_input_with_hint(gc, _("User Limit"), NULL,
743 _("Set user limit on channel. Set to zero to reset user limit."), 743 _("Set user limit on channel. Set to zero to reset user limit."),
744 tmp, FALSE, FALSE, NULL, 744 tmp, FALSE, FALSE, NULL,
745 _("OK"), G_CALLBACK(silcpurple_chat_ulimit_cb), 745 _("OK"), G_CALLBACK(silcpurple_chat_ulimit_cb),
746 _("Cancel"), G_CALLBACK(silcpurple_chat_ulimit_cb), 746 _("Cancel"), G_CALLBACK(silcpurple_chat_ulimit_cb),
747 purple_connection_get_account(gc), NULL, NULL, PURPLE_REQUEST_HINT_CONV, s); 747 purple_connection_get_account(gc), NULL, NULL, "conversation", s);
748 } 748 }
749 749
750 static void 750 static void
751 silcpurple_chat_resettopic(PurpleBlistNode *node, gpointer data) 751 silcpurple_chat_resettopic(PurpleBlistNode *node, gpointer data)
752 { 752 {