pidgin: 456fb8b6: Set the correct default response in the ...

qulogic at pidgin.im qulogic at pidgin.im
Thu Jul 2 23:41:00 EDT 2009


-----------------------------------------------------------------
Revision: 456fb8b6e9ae34d094eeece804942244ecb82414
Ancestor: c42bc466fe87fe88f10ea89dc23afe70d342f89c
Author: qulogic at pidgin.im
Date: 2009-07-03T02:10:53
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/456fb8b6e9ae34d094eeece804942244ecb82414

Modified files:
        pidgin/gtksmiley.c

ChangeLog: 

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.

-------------- next part --------------
============================================================
--- pidgin/gtksmiley.c	036a23869cf31eb99f6fa14e598311440d166d95
+++ pidgin/gtksmiley.c	7c50b164ae063674040b42ca559d4e2514db52e7
@@ -405,6 +405,7 @@ pidgin_smiley_edit(GtkWidget *widget, Pu
 
 	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 @@ pidgin_smiley_edit(GtkWidget *widget, Pu
 	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);


More information about the Commits mailing list