comparison finch/gntblist.c @ 19964:722d5dc9f0bc

Added hints to gntblist.c
author Gabriel Schulhof <nix@go-nix.ca>
date Sat, 18 Aug 2007 19:46:13 +0000
parents f0b25c6fa806
children 6a0d9fa477d4
comparison
equal deleted inserted replaced
19963:b80d3c8097d4 19964:722d5dc9f0bc
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
2209 "you would like to IM."), 2209 "you would like to IM."),
2210 fields, 2210 fields,
2211 _("OK"), G_CALLBACK(send_im_select_cb), 2211 _("OK"), G_CALLBACK(send_im_select_cb),
2212 _("Cancel"), NULL, 2212 _("Cancel"), NULL,
2213 NULL, NULL, NULL, 2213 NULL, NULL, NULL,
2214 NULL); 2214 "blist", NULL);
2215 } 2215 }
2216 2216
2217 static void 2217 static void
2218 create_menu() 2218 create_menu()
2219 { 2219 {