changeset 10734:8b2c81d9b271

[gaim-migrate @ 12336] " Here's a simple patch that moves the focus to the Alias textbox if a screenname has already been specified. Basically, this covers the scenario where you've clicked Add on someone in a chat window. I'm assuming that you really want to add that person, so there's no need to change the screenname. This moves the focus to the alias box which is what I always want to type next." --rlaager makes sense to me. committer: Tailor Script <tailor@pidgin.im>
author Luke Schierer <lschiere@pidgin.im>
date Sat, 26 Mar 2005 03:39:00 +0000
parents d5f2ebf79429
children a0edd89ddb83
files src/gtkblist.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/gtkblist.c	Sat Mar 26 03:08:03 2005 +0000
+++ b/src/gtkblist.c	Sat Mar 26 03:39:00 2005 +0000
@@ -4319,6 +4319,9 @@
 	if (alias != NULL)
 		gtk_entry_set_text(GTK_ENTRY(data->entry_for_alias), alias);
 
+	if (username != NULL)
+		gtk_widget_grab_focus(GTK_WIDGET(data->entry_for_alias));
+
 	gtk_entry_set_activates_default (GTK_ENTRY(data->entry_for_alias), TRUE);
 	gaim_set_accessible_label (data->entry_for_alias, label);