changeset 16280:414044108a06

merge of '984fe190c0e71bccab541e57a5c0b0a696789b38' and 'eab57450eff9fe8f08a5a0c429d0f2727ce8d297'
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Fri, 20 Apr 2007 06:23:32 +0000
parents 3796304f343d (current diff) 31dad9806e9d (diff)
children 82b6fdd899a9
files pidgin/pixmaps/pidgin.svg
diffstat 1 files changed, 6 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/finch/gntblist.c	Fri Apr 20 04:04:24 2007 +0000
+++ b/finch/gntblist.c	Fri Apr 20 06:23:32 2007 +0000
@@ -909,6 +909,7 @@
 {
 	const char *name = NULL;
 	char *prompt;
+	const char *text;
 
 	if (PURPLE_BLIST_NODE_IS_CONTACT(node))
 		name = purple_contact_get_alias((PurpleContact*)node);
@@ -923,8 +924,9 @@
 
 	prompt = g_strdup_printf(_("Please enter the new name for %s"), name);
 
-	purple_request_input(node, _("Rename"), prompt, _("Enter empty string to reset the name."),
-			name, FALSE, FALSE, NULL, _("Rename"), G_CALLBACK(rename_blist_node),
+	text = PURPLE_BLIST_NODE_IS_GROUP(node) ? _("Rename") : _("Alias");
+	purple_request_input(node, text, prompt, _("Enter empty string to reset the name."),
+			name, FALSE, FALSE, NULL, text, G_CALLBACK(rename_blist_node),
 			_("Cancel"), NULL, node);
 
 	g_free(prompt);
@@ -1135,7 +1137,8 @@
 
 	/* These are common for everything */
 	if (node) {
-		add_custom_action(GNT_MENU(context), _("Rename"),
+		add_custom_action(GNT_MENU(context),
+				PURPLE_BLIST_NODE_IS_GROUP(node) ? _("Rename") : _("Alias"),
 				PURPLE_CALLBACK(finch_blist_rename_node_cb), node);
 		add_custom_action(GNT_MENU(context), _("Remove"),
 				PURPLE_CALLBACK(finch_blist_remove_node_cb), node);