comparison pidgin/gtkdialogs.c @ 21335:d4f95419be45

disapproval of revision 'b6ee8d925e8e7670de77e6283963fa151ea0ed77'
author Richard Laager <rlaager@wiktel.com>
date Fri, 16 Nov 2007 23:01:12 +0000
parents a20ef7180680
children 0cb8d5304f4f
comparison
equal deleted inserted replaced
21244:a20ef7180680 21335:d4f95419be45
785 "you would like to IM."), 785 "you would like to IM."),
786 fields, 786 fields,
787 _("OK"), G_CALLBACK(pidgin_dialogs_im_cb), 787 _("OK"), G_CALLBACK(pidgin_dialogs_im_cb),
788 _("Cancel"), NULL, 788 _("Cancel"), NULL,
789 NULL, NULL, NULL, 789 NULL, NULL, NULL,
790 PURPLE_REQUEST_UI_HINT_BLIST, NULL); 790 PURPLE_REQUEST_HINT_BLIST, NULL);
791 } 791 }
792 792
793 void 793 void
794 pidgin_dialogs_im_with_user(PurpleAccount *account, const char *username) 794 pidgin_dialogs_im_with_user(PurpleAccount *account, const char *username)
795 { 795 {
924 "whose info you would like to view."), 924 "whose info you would like to view."),
925 fields, 925 fields,
926 _("OK"), G_CALLBACK(pidgin_dialogs_info_cb), 926 _("OK"), G_CALLBACK(pidgin_dialogs_info_cb),
927 _("Cancel"), NULL, 927 _("Cancel"), NULL,
928 NULL, NULL, NULL, 928 NULL, NULL, NULL,
929 PURPLE_REQUEST_UI_HINT_BLIST, NULL); 929 PURPLE_REQUEST_HINT_BLIST, NULL);
930 } 930 }
931 931
932 static void 932 static void
933 pidgin_dialogs_log_cb(gpointer data, PurpleRequestFields *fields) 933 pidgin_dialogs_log_cb(gpointer data, PurpleRequestFields *fields)
934 { 934 {
1016 "whose log you would like to view."), 1016 "whose log you would like to view."),
1017 fields, 1017 fields,
1018 _("OK"), G_CALLBACK(pidgin_dialogs_log_cb), 1018 _("OK"), G_CALLBACK(pidgin_dialogs_log_cb),
1019 _("Cancel"), NULL, 1019 _("Cancel"), NULL,
1020 NULL, NULL, NULL, 1020 NULL, NULL, NULL,
1021 PURPLE_REQUEST_UI_HINT_BLIST, NULL); 1021 PURPLE_REQUEST_HINT_BLIST, NULL);
1022 } 1022 }
1023 1023
1024 static void 1024 static void
1025 pidgin_dialogs_alias_contact_cb(PurpleContact *contact, const char *new_alias) 1025 pidgin_dialogs_alias_contact_cb(PurpleContact *contact, const char *new_alias)
1026 { 1026 {
1036 _("Enter an alias for this contact."), 1036 _("Enter an alias for this contact."),
1037 contact->alias, FALSE, FALSE, NULL, 1037 contact->alias, FALSE, FALSE, NULL,
1038 _("Alias"), G_CALLBACK(pidgin_dialogs_alias_contact_cb), 1038 _("Alias"), G_CALLBACK(pidgin_dialogs_alias_contact_cb),
1039 _("Cancel"), NULL, 1039 _("Cancel"), NULL,
1040 NULL, purple_contact_get_alias(contact), NULL, 1040 NULL, purple_contact_get_alias(contact), NULL,
1041 PURPLE_REQUEST_UI_HINT_BLIST, contact); 1041 PURPLE_REQUEST_HINT_BLIST, contact);
1042 } 1042 }
1043 1043
1044 static void 1044 static void
1045 pidgin_dialogs_alias_buddy_cb(PurpleBuddy *buddy, const char *new_alias) 1045 pidgin_dialogs_alias_buddy_cb(PurpleBuddy *buddy, const char *new_alias)
1046 { 1046 {
1060 purple_request_input_with_hint(NULL, _("Alias Buddy"), NULL, 1060 purple_request_input_with_hint(NULL, _("Alias Buddy"), NULL,
1061 secondary, buddy->alias, FALSE, FALSE, NULL, 1061 secondary, buddy->alias, FALSE, FALSE, NULL,
1062 _("Alias"), G_CALLBACK(pidgin_dialogs_alias_buddy_cb), 1062 _("Alias"), G_CALLBACK(pidgin_dialogs_alias_buddy_cb),
1063 _("Cancel"), NULL, 1063 _("Cancel"), NULL,
1064 purple_buddy_get_account(buddy), purple_buddy_get_name(buddy), NULL, 1064 purple_buddy_get_account(buddy), purple_buddy_get_name(buddy), NULL,
1065 PURPLE_REQUEST_UI_HINT_BLIST, buddy); 1065 PURPLE_REQUEST_HINT_BLIST, buddy);
1066 1066
1067 g_free(secondary); 1067 g_free(secondary);
1068 } 1068 }
1069 1069
1070 static void 1070 static void
1082 _("Enter an alias for this chat."), 1082 _("Enter an alias for this chat."),
1083 chat->alias, FALSE, FALSE, NULL, 1083 chat->alias, FALSE, FALSE, NULL,
1084 _("Alias"), G_CALLBACK(pidgin_dialogs_alias_chat_cb), 1084 _("Alias"), G_CALLBACK(pidgin_dialogs_alias_chat_cb),
1085 _("Cancel"), NULL, 1085 _("Cancel"), NULL,
1086 chat->account, NULL, NULL, 1086 chat->account, NULL, NULL,
1087 PURPLE_REQUEST_UI_HINT_BLIST, chat); 1087 PURPLE_REQUEST_HINT_BLIST, chat);
1088 } 1088 }
1089 1089
1090 static void 1090 static void
1091 pidgin_dialogs_remove_contact_cb(PurpleContact *contact) 1091 pidgin_dialogs_remove_contact_cb(PurpleContact *contact)
1092 { 1092 {
1126 "want to continue?", contact->totalsize - 1), 1126 "want to continue?", contact->totalsize - 1),
1127 buddy->name, contact->totalsize - 1); 1127 buddy->name, contact->totalsize - 1);
1128 1128
1129 purple_request_action_with_hint(contact, NULL, _("Remove Contact"), text, 0, 1129 purple_request_action_with_hint(contact, NULL, _("Remove Contact"), text, 0,
1130 NULL, purple_contact_get_alias(contact), NULL, 1130 NULL, purple_contact_get_alias(contact), NULL,
1131 PURPLE_REQUEST_UI_HINT_BLIST, contact, 2, 1131 PURPLE_REQUEST_HINT_BLIST, contact, 2,
1132 _("_Remove Contact"), G_CALLBACK(pidgin_dialogs_remove_contact_cb), 1132 _("_Remove Contact"), G_CALLBACK(pidgin_dialogs_remove_contact_cb),
1133 _("Cancel"), 1133 _("Cancel"),
1134 NULL); 1134 NULL);
1135 1135
1136 g_free(text); 1136 g_free(text);
1167 ggp->parent = source; 1167 ggp->parent = source;
1168 ggp->new_name = g_strdup(new_name); 1168 ggp->new_name = g_strdup(new_name);
1169 1169
1170 purple_request_action_with_hint(source, NULL, _("Merge Groups"), text, 0, 1170 purple_request_action_with_hint(source, NULL, _("Merge Groups"), text, 0,
1171 NULL, NULL, NULL, 1171 NULL, NULL, NULL,
1172 PURPLE_REQUEST_UI_HINT_BLIST, ggp, 2, 1172 PURPLE_REQUEST_HINT_BLIST, ggp, 2,
1173 _("_Merge Groups"), G_CALLBACK(pidgin_dialogs_merge_groups_cb), 1173 _("_Merge Groups"), G_CALLBACK(pidgin_dialogs_merge_groups_cb),
1174 _("Cancel"), G_CALLBACK(free_ggmo)); 1174 _("Cancel"), G_CALLBACK(free_ggmo));
1175 1175
1176 g_free(text); 1176 g_free(text);
1177 } 1177 }
1223 text = g_strdup_printf(_("You are about to remove the group %s and all its members from your buddy list. Do you want to continue?"), 1223 text = g_strdup_printf(_("You are about to remove the group %s and all its members from your buddy list. Do you want to continue?"),
1224 group->name); 1224 group->name);
1225 1225
1226 purple_request_action_with_hint(group, NULL, _("Remove Group"), text, 0, 1226 purple_request_action_with_hint(group, NULL, _("Remove Group"), text, 0,
1227 NULL, NULL, NULL, 1227 NULL, NULL, NULL,
1228 PURPLE_REQUEST_UI_HINT_BLIST, group, 2, 1228 PURPLE_REQUEST_HINT_BLIST, group, 2,
1229 _("_Remove Group"), G_CALLBACK(pidgin_dialogs_remove_group_cb), 1229 _("_Remove Group"), G_CALLBACK(pidgin_dialogs_remove_group_cb),
1230 _("Cancel"), NULL); 1230 _("Cancel"), NULL);
1231 1231
1232 g_free(text); 1232 g_free(text);
1233 } 1233 }
1262 text = g_strdup_printf(_("You are about to remove %s from your buddy list. Do you want to continue?"), 1262 text = g_strdup_printf(_("You are about to remove %s from your buddy list. Do you want to continue?"),
1263 buddy->name); 1263 buddy->name);
1264 1264
1265 purple_request_action_with_hint(buddy, NULL, _("Remove Buddy"), text, 0, 1265 purple_request_action_with_hint(buddy, NULL, _("Remove Buddy"), text, 0,
1266 purple_buddy_get_account(buddy), purple_buddy_get_name(buddy), NULL, 1266 purple_buddy_get_account(buddy), purple_buddy_get_name(buddy), NULL,
1267 PURPLE_REQUEST_UI_HINT_BLIST, buddy, 2, 1267 PURPLE_REQUEST_HINT_BLIST, buddy, 2,
1268 _("_Remove Buddy"), G_CALLBACK(pidgin_dialogs_remove_buddy_cb), 1268 _("_Remove Buddy"), G_CALLBACK(pidgin_dialogs_remove_buddy_cb),
1269 _("Cancel"), NULL); 1269 _("Cancel"), NULL);
1270 1270
1271 g_free(text); 1271 g_free(text);
1272 } 1272 }
1289 text = g_strdup_printf(_("You are about to remove the chat %s from your buddy list. Do you want to continue?"), 1289 text = g_strdup_printf(_("You are about to remove the chat %s from your buddy list. Do you want to continue?"),
1290 name ? name : ""); 1290 name ? name : "");
1291 1291
1292 purple_request_action_with_hint(chat, NULL, _("Remove Chat"), text, 0, 1292 purple_request_action_with_hint(chat, NULL, _("Remove Chat"), text, 0,
1293 chat->account, NULL, NULL, 1293 chat->account, NULL, NULL,
1294 PURPLE_REQUEST_UI_HINT_BLIST, chat, 2, 1294 PURPLE_REQUEST_HINT_BLIST, chat, 2,
1295 _("_Remove Chat"), G_CALLBACK(pidgin_dialogs_remove_chat_cb), 1295 _("_Remove Chat"), G_CALLBACK(pidgin_dialogs_remove_chat_cb),
1296 _("Cancel"), NULL); 1296 _("Cancel"), NULL);
1297 1297
1298 g_free(text); 1298 g_free(text);
1299 } 1299 }