Mercurial > pidgin.yaz
comparison src/dialogs.c @ 8302:462ead6fc1a0
[gaim-migrate @ 9026]
Add an alias stock item, and use it.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Fri, 20 Feb 2004 23:14:32 +0000 |
parents | 35540faa72c0 |
children | 6f549c1d0829 |
comparison
equal
deleted
inserted
replaced
8301:35540faa72c0 | 8302:462ead6fc1a0 |
---|---|
1229 alias_dialog_blist_chat(GaimChat *chat) | 1229 alias_dialog_blist_chat(GaimChat *chat) |
1230 { | 1230 { |
1231 gaim_request_input(NULL, _("Alias Chat"), NULL, | 1231 gaim_request_input(NULL, _("Alias Chat"), NULL, |
1232 _("Enter an alias for this chat."), | 1232 _("Enter an alias for this chat."), |
1233 chat->alias, FALSE, FALSE, | 1233 chat->alias, FALSE, FALSE, |
1234 _("_Alias"), G_CALLBACK(alias_chat_cb), | 1234 _("Alias"), G_CALLBACK(alias_chat_cb), |
1235 _("Cancel"), NULL, chat); | 1235 _("Cancel"), NULL, chat); |
1236 } | 1236 } |
1237 | 1237 |
1238 static void | 1238 static void |
1239 alias_contact_cb(GaimContact *contact, const char *new_alias) | 1239 alias_contact_cb(GaimContact *contact, const char *new_alias) |
1246 alias_dialog_contact(GaimContact *contact) | 1246 alias_dialog_contact(GaimContact *contact) |
1247 { | 1247 { |
1248 gaim_request_input(NULL, _("Alias Contact"), NULL, | 1248 gaim_request_input(NULL, _("Alias Contact"), NULL, |
1249 _("Enter an alias for this contact."), | 1249 _("Enter an alias for this contact."), |
1250 contact->alias, FALSE, FALSE, | 1250 contact->alias, FALSE, FALSE, |
1251 _("_Alias"), G_CALLBACK(alias_contact_cb), | 1251 _("Alias"), G_CALLBACK(alias_contact_cb), |
1252 _("Cancel"), NULL, contact); | 1252 _("Cancel"), NULL, contact); |
1253 } | 1253 } |
1254 | 1254 |
1255 static void | 1255 static void |
1256 alias_buddy_cb(GaimBuddy *buddy, const char *alias) | 1256 alias_buddy_cb(GaimBuddy *buddy, const char *alias) |
1265 { | 1265 { |
1266 char *secondary = g_strdup_printf(_("Enter an alias for %s."), b->name); | 1266 char *secondary = g_strdup_printf(_("Enter an alias for %s."), b->name); |
1267 | 1267 |
1268 gaim_request_input(NULL, _("Alias Buddy"), NULL, | 1268 gaim_request_input(NULL, _("Alias Buddy"), NULL, |
1269 secondary, b->alias, FALSE, FALSE, | 1269 secondary, b->alias, FALSE, FALSE, |
1270 _("_Alias"), G_CALLBACK(alias_buddy_cb), | 1270 _("Alias"), G_CALLBACK(alias_buddy_cb), |
1271 _("Cancel"), NULL, b); | 1271 _("Cancel"), NULL, b); |
1272 | 1272 |
1273 g_free(secondary); | 1273 g_free(secondary); |
1274 } | 1274 } |