comparison finch/gntblist.c @ 21351:7b30d02a36aa

merge of '55275a531f00a6cabade1b8bfe74eafa3c2db4ba' and 'a4922c657f183e4b124142298268ba47350a72e0'
author Richard Laager <rlaager@wiktel.com>
date Fri, 16 Nov 2007 23:01:34 +0000
parents d4f95419be45
children 8ae227dca885
comparison
equal deleted inserted replaced
21334:e76b99d95214 21351:7b30d02a36aa
341 purple_request_fields_with_hint(NULL, _("Add Buddy"), NULL, _("Please enter buddy information."), 341 purple_request_fields_with_hint(NULL, _("Add Buddy"), NULL, _("Please enter buddy information."),
342 fields, 342 fields,
343 _("Add"), G_CALLBACK(add_buddy_cb), 343 _("Add"), G_CALLBACK(add_buddy_cb),
344 _("Cancel"), NULL, 344 _("Cancel"), NULL,
345 account, NULL, NULL, 345 account, NULL, NULL,
346 PURPLE_REQUEST_UI_HINT_BLIST, NULL); 346 PURPLE_REQUEST_HINT_BLIST, NULL);
347 } 347 }
348 348
349 static void 349 static void
350 add_chat_cb(void *data, PurpleRequestFields *allfields) 350 add_chat_cb(void *data, PurpleRequestFields *allfields)
351 { 351 {
418 418
419 purple_request_fields_with_hint(NULL, _("Add Chat"), NULL, 419 purple_request_fields_with_hint(NULL, _("Add Chat"), NULL,
420 _("You can edit more information from the context menu later."), 420 _("You can edit more information from the context menu later."),
421 fields, _("Add"), G_CALLBACK(add_chat_cb), _("Cancel"), NULL, 421 fields, _("Add"), G_CALLBACK(add_chat_cb), _("Cancel"), NULL,
422 NULL, NULL, NULL, 422 NULL, NULL, NULL,
423 PURPLE_REQUEST_UI_HINT_BLIST, NULL); 423 PURPLE_REQUEST_HINT_BLIST, NULL);
424 } 424 }
425 425
426 static void 426 static void
427 add_group_cb(gpointer null, const char *group) 427 add_group_cb(gpointer null, const char *group)
428 { 428 {
453 { 453 {
454 purple_request_input_with_hint(NULL, _("Add Group"), NULL, _("Enter the name of the group"), 454 purple_request_input_with_hint(NULL, _("Add Group"), NULL, _("Enter the name of the group"),
455 NULL, FALSE, FALSE, NULL, 455 NULL, FALSE, FALSE, NULL,
456 _("Add"), G_CALLBACK(add_group_cb), _("Cancel"), NULL, 456 _("Add"), G_CALLBACK(add_group_cb), _("Cancel"), NULL,
457 NULL, NULL, NULL, 457 NULL, NULL, NULL,
458 PURPLE_REQUEST_UI_HINT_BLIST, NULL); 458 PURPLE_REQUEST_HINT_BLIST, NULL);
459 } 459 }
460 460
461 static PurpleBlistUiOps blist_ui_ops = 461 static PurpleBlistUiOps blist_ui_ops =
462 { 462 {
463 new_list, 463 new_list,
800 g_list_free(parts); 800 g_list_free(parts);
801 801
802 purple_request_fields_with_hint(NULL, _("Edit Chat"), NULL, _("Please Update the necessary fields."), 802 purple_request_fields_with_hint(NULL, _("Edit Chat"), NULL, _("Please Update the necessary fields."),
803 fields, _("Edit"), G_CALLBACK(chat_components_edit_ok), _("Cancel"), NULL, 803 fields, _("Edit"), G_CALLBACK(chat_components_edit_ok), _("Cancel"), NULL,
804 NULL, NULL, NULL, 804 NULL, NULL, NULL,
805 PURPLE_REQUEST_UI_HINT_BLIST, chat); 805 PURPLE_REQUEST_HINT_BLIST, chat);
806 } 806 }
807 807
808 static void 808 static void
809 autojoin_toggled(GntMenuItem *item, gpointer data) 809 autojoin_toggled(GntMenuItem *item, gpointer data)
810 { 810 {
1002 text = PURPLE_BLIST_NODE_IS_GROUP(node) ? _("Rename") : _("Set Alias"); 1002 text = PURPLE_BLIST_NODE_IS_GROUP(node) ? _("Rename") : _("Set Alias");
1003 purple_request_input_with_hint(node, text, prompt, _("Enter empty string to reset the name."), 1003 purple_request_input_with_hint(node, text, prompt, _("Enter empty string to reset the name."),
1004 name, FALSE, FALSE, NULL, text, G_CALLBACK(rename_blist_node), 1004 name, FALSE, FALSE, NULL, text, G_CALLBACK(rename_blist_node),
1005 _("Cancel"), NULL, 1005 _("Cancel"), NULL,
1006 NULL, NULL, NULL, 1006 NULL, NULL, NULL,
1007 PURPLE_REQUEST_UI_HINT_BLIST, node); 1007 PURPLE_REQUEST_HINT_BLIST, node);
1008 1008
1009 g_free(prompt); 1009 g_free(prompt);
1010 } 1010 }
1011 1011
1012 /* Xeroxed from gtkdialogs.c:purple_gtkdialogs_remove_group_cb*/ 1012 /* Xeroxed from gtkdialogs.c:purple_gtkdialogs_remove_group_cb*/
1094 /* XXX: anything to do with the returned ui-handle? */ 1094 /* XXX: anything to do with the returned ui-handle? */
1095 purple_request_action_with_hint(node, _("Confirm Remove"), 1095 purple_request_action_with_hint(node, _("Confirm Remove"),
1096 primary, sec, 1096 primary, sec,
1097 1, 1097 1,
1098 account, name, NULL, 1098 account, name, NULL,
1099 PURPLE_REQUEST_UI_HINT_BLIST, node, 2, 1099 PURPLE_REQUEST_HINT_BLIST, node, 2,
1100 _("Remove"), finch_blist_remove_node, 1100 _("Remove"), finch_blist_remove_node,
1101 _("Cancel"), NULL); 1101 _("Cancel"), NULL);
1102 g_free(primary); 1102 g_free(primary);
1103 } 1103 }
1104 1104
2221 "you would like to IM."), 2221 "you would like to IM."),
2222 fields, 2222 fields,
2223 _("OK"), G_CALLBACK(send_im_select_cb), 2223 _("OK"), G_CALLBACK(send_im_select_cb),
2224 _("Cancel"), NULL, 2224 _("Cancel"), NULL,
2225 NULL, NULL, NULL, 2225 NULL, NULL, NULL,
2226 PURPLE_REQUEST_UI_HINT_BLIST, NULL); 2226 PURPLE_REQUEST_HINT_BLIST, NULL);
2227 } 2227 }
2228 2228
2229 static void 2229 static void
2230 join_chat_select_cb(gpointer data, PurpleRequestFields *fields) 2230 join_chat_select_cb(gpointer data, PurpleRequestFields *fields)
2231 { 2231 {
2284 _("Please enter the name of the chat you want to join."), 2284 _("Please enter the name of the chat you want to join."),
2285 fields, 2285 fields,
2286 _("Join"), G_CALLBACK(join_chat_select_cb), 2286 _("Join"), G_CALLBACK(join_chat_select_cb),
2287 _("Cancel"), NULL, 2287 _("Cancel"), NULL,
2288 NULL, NULL, NULL, 2288 NULL, NULL, NULL,
2289 PURPLE_REQUEST_UI_HINT_BLIST, NULL); 2289 PURPLE_REQUEST_HINT_BLIST, NULL);
2290 } 2290 }
2291 2291
2292 static void 2292 static void
2293 menu_add_buddy_cb(GntMenuItem *item, gpointer null) 2293 menu_add_buddy_cb(GntMenuItem *item, gpointer null)
2294 { 2294 {