comparison libpurple/protocols/silc10/chat.c @ 21236:73c5f5bfeb39

disapproval of revision '4b2b98ecc70947f687d13c902b1b031247b49392'
author Richard Laager <rlaager@wiktel.com>
date Fri, 16 Nov 2007 23:27:01 +0000
parents fba1f6c3df0b
children 8ae227dca885
comparison
equal deleted inserted replaced
21235:fba1f6c3df0b 21236:73c5f5bfeb39
289 if (!purple_request_field_list_get_selected(f)) { 289 if (!purple_request_field_list_get_selected(f)) {
290 /* Add new public key */ 290 /* Add new public key */
291 purple_request_file_with_hint(sg->gc, _("Open Public Key..."), NULL, FALSE, 291 purple_request_file_with_hint(sg->gc, _("Open Public Key..."), NULL, FALSE,
292 G_CALLBACK(silcpurple_chat_chpk_add), 292 G_CALLBACK(silcpurple_chat_chpk_add),
293 G_CALLBACK(silcpurple_chat_chpk_cancel), 293 G_CALLBACK(silcpurple_chat_chpk_cancel),
294 purple_connection_get_account(sg->gc), NULL, NULL, PURPLE_REQUEST_HINT_CONV, sgc); 294 purple_connection_get_account(sg->gc), NULL, NULL, "conversation", sgc);
295 return; 295 return;
296 } 296 }
297 297
298 list = purple_request_field_list_get_items(f); 298 list = purple_request_field_list_get_items(f);
299 chpks = silc_buffer_alloc_size(2); 299 chpks = silc_buffer_alloc_size(2);
421 purple_request_field_group_add_field(g, f); 421 purple_request_field_group_add_field(g, f);
422 purple_request_fields_with_hint(sg->gc, _("Channel Authentication"), 422 purple_request_fields_with_hint(sg->gc, _("Channel Authentication"),
423 _("Channel Authentication"), t, fields, 423 _("Channel Authentication"), t, fields,
424 _("Add / Remove"), G_CALLBACK(silcpurple_chat_chpk_cb), 424 _("Add / Remove"), G_CALLBACK(silcpurple_chat_chpk_cb),
425 _("OK"), G_CALLBACK(silcpurple_chat_chauth_ok), 425 _("OK"), G_CALLBACK(silcpurple_chat_chauth_ok),
426 purple_connection_get_account(sg->gc), NULL, NULL, PURPLE_REQUEST_HINT_CONV, sgc); 426 purple_connection_get_account(sg->gc), NULL, NULL, "conversation", sgc);
427 return; 427 return;
428 } 428 }
429 sgc->pubkeys = silc_buffer_copy(channel_pubkeys); 429 sgc->pubkeys = silc_buffer_copy(channel_pubkeys);
430 430
431 g = purple_request_field_group_new(NULL); 431 g = purple_request_field_group_new(NULL);
460 purple_request_field_list_set_multi_select(f, FALSE); 460 purple_request_field_list_set_multi_select(f, FALSE);
461 purple_request_fields_with_hint(sg->gc, _("Channel Authentication"), 461 purple_request_fields_with_hint(sg->gc, _("Channel Authentication"),
462 _("Channel Authentication"), t, fields, 462 _("Channel Authentication"), t, fields,
463 _("Add / Remove"), G_CALLBACK(silcpurple_chat_chpk_cb), 463 _("Add / Remove"), G_CALLBACK(silcpurple_chat_chpk_cb),
464 _("OK"), G_CALLBACK(silcpurple_chat_chauth_ok), 464 _("OK"), G_CALLBACK(silcpurple_chat_chauth_ok),
465 purple_connection_get_account(sg->gc), NULL, NULL, PURPLE_REQUEST_HINT_CONV, sgc); 465 purple_connection_get_account(sg->gc), NULL, NULL, "cnoversation", sgc);
466 466
467 silc_argument_payload_free(chpks); 467 silc_argument_payload_free(chpks);
468 } 468 }
469 469
470 static void 470 static void
596 _("Please enter the %s channel private group name and passphrase."), 596 _("Please enter the %s channel private group name and passphrase."),
597 p->channel); 597 p->channel);
598 purple_request_fields_with_hint(gc, _("Add Channel Private Group"), NULL, tmp, fields, 598 purple_request_fields_with_hint(gc, _("Add Channel Private Group"), NULL, tmp, fields,
599 _("Add"), G_CALLBACK(silcpurple_chat_prv_add), 599 _("Add"), G_CALLBACK(silcpurple_chat_prv_add),
600 _("Cancel"), G_CALLBACK(silcpurple_chat_prv_cancel), 600 _("Cancel"), G_CALLBACK(silcpurple_chat_prv_cancel),
601 purple_connection_get_account(gc), NULL, NULL, PURPLE_REQUEST_HINT_CONV, p); 601 purple_connection_get_account(gc), NULL, NULL, "conversation", p);
602 } 602 }
603 603
604 604
605 /****************************** Channel Modes ********************************/ 605 /****************************** Channel Modes ********************************/
606 606
726 purple_request_input_with_hint(gc, _("User Limit"), NULL, 726 purple_request_input_with_hint(gc, _("User Limit"), NULL,
727 _("Set user limit on channel. Set to zero to reset user limit."), 727 _("Set user limit on channel. Set to zero to reset user limit."),
728 tmp, FALSE, FALSE, NULL, 728 tmp, FALSE, FALSE, NULL,
729 _("OK"), G_CALLBACK(silcpurple_chat_ulimit_cb), 729 _("OK"), G_CALLBACK(silcpurple_chat_ulimit_cb),
730 _("Cancel"), G_CALLBACK(silcpurple_chat_ulimit_cb), 730 _("Cancel"), G_CALLBACK(silcpurple_chat_ulimit_cb),
731 purple_connection_get_account(gc), NULL, NULL, PURPLE_REQUEST_HINT_CONV, s); 731 purple_connection_get_account(gc), NULL, NULL, "conversation", s);
732 } 732 }
733 733
734 static void 734 static void
735 silcpurple_chat_resettopic(PurpleBlistNode *node, gpointer data) 735 silcpurple_chat_resettopic(PurpleBlistNode *node, gpointer data)
736 { 736 {