comparison finch/gntblist.c @ 19970:6a0d9fa477d4

propagate from branch 'im.pidgin.pidgin' (head 483b6435074838149d6e95b836d4a2d9263f265d) to branch 'org.maemo.garage.pidgin.pidgin.dialog-transience' (head 656aa6cb789d7885b3a72600bf323c104d8ebfd8)
author Gabriel Schulhof <nix@go-nix.ca>
date Wed, 12 Sep 2007 19:11:38 +0000
parents 44b4e8bd759b 722d5dc9f0bc
children 591267f6f1d5
comparison
equal deleted inserted replaced
19969:0633ecda7ed0 19970:6a0d9fa477d4
340 purple_request_fields(NULL, _("Add Buddy"), NULL, _("Please enter buddy information."), 340 purple_request_fields(NULL, _("Add Buddy"), NULL, _("Please enter buddy information."),
341 fields, 341 fields,
342 _("Add"), G_CALLBACK(add_buddy_cb), 342 _("Add"), G_CALLBACK(add_buddy_cb),
343 _("Cancel"), NULL, 343 _("Cancel"), NULL,
344 account, NULL, NULL, 344 account, NULL, NULL,
345 NULL); 345 "blist", NULL);
346 } 346 }
347 347
348 static void 348 static void
349 add_chat_cb(void *data, PurpleRequestFields *allfields) 349 add_chat_cb(void *data, PurpleRequestFields *allfields)
350 { 350 {
417 417
418 purple_request_fields(NULL, _("Add Chat"), NULL, 418 purple_request_fields(NULL, _("Add Chat"), NULL,
419 _("You can edit more information from the context menu later."), 419 _("You can edit more information from the context menu later."),
420 fields, _("Add"), G_CALLBACK(add_chat_cb), _("Cancel"), NULL, 420 fields, _("Add"), G_CALLBACK(add_chat_cb), _("Cancel"), NULL,
421 NULL, NULL, NULL, 421 NULL, NULL, NULL,
422 NULL); 422 "blist", NULL);
423 } 423 }
424 424
425 static void 425 static void
426 add_group_cb(gpointer null, const char *group) 426 add_group_cb(gpointer null, const char *group)
427 { 427 {
452 { 452 {
453 purple_request_input(NULL, _("Add Group"), NULL, _("Enter the name of the group"), 453 purple_request_input(NULL, _("Add Group"), NULL, _("Enter the name of the group"),
454 NULL, FALSE, FALSE, NULL, 454 NULL, FALSE, FALSE, NULL,
455 _("Add"), G_CALLBACK(add_group_cb), _("Cancel"), NULL, 455 _("Add"), G_CALLBACK(add_group_cb), _("Cancel"), NULL,
456 NULL, NULL, NULL, 456 NULL, NULL, NULL,
457 NULL); 457 "blist", NULL);
458 } 458 }
459 459
460 static PurpleBlistUiOps blist_ui_ops = 460 static PurpleBlistUiOps blist_ui_ops =
461 { 461 {
462 new_list, 462 new_list,
799 g_list_free(parts); 799 g_list_free(parts);
800 800
801 purple_request_fields(NULL, _("Edit Chat"), NULL, _("Please Update the necessary fields."), 801 purple_request_fields(NULL, _("Edit Chat"), NULL, _("Please Update the necessary fields."),
802 fields, _("Edit"), G_CALLBACK(chat_components_edit_ok), _("Cancel"), NULL, 802 fields, _("Edit"), G_CALLBACK(chat_components_edit_ok), _("Cancel"), NULL,
803 NULL, NULL, NULL, 803 NULL, NULL, NULL,
804 chat); 804 "blist", chat);
805 } 805 }
806 806
807 static void 807 static void
808 autojoin_toggled(GntMenuItem *item, gpointer data) 808 autojoin_toggled(GntMenuItem *item, gpointer data)
809 { 809 {
1001 text = PURPLE_BLIST_NODE_IS_GROUP(node) ? _("Rename") : _("Set Alias"); 1001 text = PURPLE_BLIST_NODE_IS_GROUP(node) ? _("Rename") : _("Set Alias");
1002 purple_request_input(node, text, prompt, _("Enter empty string to reset the name."), 1002 purple_request_input(node, text, prompt, _("Enter empty string to reset the name."),
1003 name, FALSE, FALSE, NULL, text, G_CALLBACK(rename_blist_node), 1003 name, FALSE, FALSE, NULL, text, G_CALLBACK(rename_blist_node),
1004 _("Cancel"), NULL, 1004 _("Cancel"), NULL,
1005 NULL, NULL, NULL, 1005 NULL, NULL, NULL,
1006 node); 1006 "blist", node);
1007 1007
1008 g_free(prompt); 1008 g_free(prompt);
1009 } 1009 }
1010 1010
1011 /* Xeroxed from gtkdialogs.c:purple_gtkdialogs_remove_group_cb*/ 1011 /* Xeroxed from gtkdialogs.c:purple_gtkdialogs_remove_group_cb*/
1093 /* XXX: anything to do with the returned ui-handle? */ 1093 /* XXX: anything to do with the returned ui-handle? */
1094 purple_request_action(node, _("Confirm Remove"), 1094 purple_request_action(node, _("Confirm Remove"),
1095 primary, sec, 1095 primary, sec,
1096 1, 1096 1,
1097 account, name, NULL, 1097 account, name, NULL,
1098 node, 2, 1098 "blist", node, 2,
1099 _("Remove"), finch_blist_remove_node, 1099 _("Remove"), finch_blist_remove_node,
1100 _("Cancel"), NULL); 1100 _("Cancel"), NULL);
1101 g_free(primary); 1101 g_free(primary);
1102 } 1102 }
1103 1103
2218 "you would like to IM."), 2218 "you would like to IM."),
2219 fields, 2219 fields,
2220 _("OK"), G_CALLBACK(send_im_select_cb), 2220 _("OK"), G_CALLBACK(send_im_select_cb),
2221 _("Cancel"), NULL, 2221 _("Cancel"), NULL,
2222 NULL, NULL, NULL, 2222 NULL, NULL, NULL,
2223 NULL); 2223 "blist", NULL);
2224 } 2224 }
2225 2225
2226 static void 2226 static void
2227 create_menu() 2227 create_menu()
2228 { 2228 {