changeset 27315:0af18d18de0d

Set the correct default response in the smiley edit window so it gets the highlight and all the other stuff that goes along with it.
author Elliott Sales de Andrade <qulogic@pidgin.im>
date Fri, 03 Jul 2009 02:10:53 +0000
parents 5dcee348bc22
children 13d0a8097a94
files pidgin/gtksmiley.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/pidgin/gtksmiley.c	Fri Jul 03 01:18:02 2009 +0000
+++ b/pidgin/gtksmiley.c	Fri Jul 03 02:10:53 2009 +0000
@@ -405,6 +405,7 @@
 
 	gtk_container_set_border_width(GTK_CONTAINER(window), PIDGIN_HIG_BORDER);
 
+	gtk_dialog_set_default_response(GTK_DIALOG(window), GTK_RESPONSE_ACCEPT);
 	g_signal_connect(window, "response", G_CALLBACK(do_add_select_cb), s);
 
 	/* The vbox */
@@ -462,7 +463,6 @@
 	else
 		gtk_dialog_set_response_sensitive(GTK_DIALOG(window), GTK_RESPONSE_ACCEPT, FALSE);
 
-	g_signal_connect(s->smile, "activate", G_CALLBACK(do_add), s);
 	/* gtk_entry_get_text_length is 2.14+, so we'll just keep track ourselves */
 	g_signal_connect(G_OBJECT(s->smile), "insert-text", G_CALLBACK(smiley_name_insert_cb), s);
 	g_signal_connect(G_OBJECT(s->smile), "delete-text", G_CALLBACK(smiley_name_delete_cb), s);