pidgin/gtkdialogs.c

changeset 39665
2172e3b8eeef
parent 39603
98fd85e156e0
child 39814
c21f36658ac4
equal deleted inserted replaced
39639:fe7fa102e766 39665:2172e3b8eeef
308 (purple_connections_get_all() != NULL && 308 (purple_connections_get_all() != NULL &&
309 purple_connections_get_all()->next != NULL)); 309 purple_connections_get_all()->next != NULL));
310 purple_request_field_set_required(field, TRUE); 310 purple_request_field_set_required(field, TRUE);
311 purple_request_field_group_add_field(group, field); 311 purple_request_field_group_add_field(group, field);
312 312
313 purple_request_fields(purple_blist_get_buddy_list(), _("New Instant Message"), 313 purple_request_fields(
314 NULL, 314 purple_blist_get_default(), _("New Instant Message"), NULL,
315 _("Please enter the username or alias of the person " 315 _("Please enter the username or alias of the person "
316 "you would like to IM."), 316 "you would like to IM."),
317 fields, 317 fields, _("OK"), G_CALLBACK(pidgin_dialogs_im_cb), _("Cancel"),
318 _("OK"), G_CALLBACK(pidgin_dialogs_im_cb), 318 NULL, NULL, NULL);
319 _("Cancel"), NULL,
320 NULL, NULL);
321 } 319 }
322 320
323 void 321 void
324 pidgin_dialogs_im_with_user(PurpleAccount *account, const char *username) 322 pidgin_dialogs_im_with_user(PurpleAccount *account, const char *username)
325 { 323 {
449 (purple_connections_get_all() != NULL && 447 (purple_connections_get_all() != NULL &&
450 purple_connections_get_all()->next != NULL)); 448 purple_connections_get_all()->next != NULL));
451 purple_request_field_set_required(field, TRUE); 449 purple_request_field_set_required(field, TRUE);
452 purple_request_field_group_add_field(group, field); 450 purple_request_field_group_add_field(group, field);
453 451
454 purple_request_fields(purple_blist_get_buddy_list(), _("Get User Info"), 452 purple_request_fields(
455 NULL, 453 purple_blist_get_default(), _("Get User Info"), NULL,
456 _("Please enter the username or alias of the person " 454 _("Please enter the username or alias of the person "
457 "whose info you would like to view."), 455 "whose info you would like to view."),
458 fields, 456 fields, _("OK"), G_CALLBACK(pidgin_dialogs_info_cb),
459 _("OK"), G_CALLBACK(pidgin_dialogs_info_cb), 457 _("Cancel"), NULL, NULL, NULL);
460 _("Cancel"), NULL,
461 NULL, NULL);
462 } 458 }
463 459
464 static void 460 static void
465 pidgin_dialogs_log_cb(gpointer data, PurpleRequestFields *fields) 461 pidgin_dialogs_log_cb(gpointer data, PurpleRequestFields *fields)
466 { 462 {
540 (purple_accounts_get_all() != NULL && 536 (purple_accounts_get_all() != NULL &&
541 purple_accounts_get_all()->next != NULL)); 537 purple_accounts_get_all()->next != NULL));
542 purple_request_field_set_required(field, TRUE); 538 purple_request_field_set_required(field, TRUE);
543 purple_request_field_group_add_field(group, field); 539 purple_request_field_group_add_field(group, field);
544 540
545 purple_request_fields(purple_blist_get_buddy_list(), _("View User Log"), 541 purple_request_fields(
546 NULL, 542 purple_blist_get_default(), _("View User Log"), NULL,
547 _("Please enter the username or alias of the person " 543 _("Please enter the username or alias of the person "
548 "whose log you would like to view."), 544 "whose log you would like to view."),
549 fields, 545 fields, _("OK"), G_CALLBACK(pidgin_dialogs_log_cb), _("Cancel"),
550 _("OK"), G_CALLBACK(pidgin_dialogs_log_cb), 546 NULL, NULL, NULL);
551 _("Cancel"), NULL,
552 NULL, NULL);
553 } 547 }
554 548
555 static void 549 static void
556 pidgin_dialogs_alias_buddy_cb(PurpleBuddy *buddy, const char *new_alias) 550 pidgin_dialogs_alias_buddy_cb(PurpleBuddy *buddy, const char *new_alias)
557 { 551 {

mercurial