changeset 27629:5d75276a575f

Make OK default for Add Buddy, Add Chat, and Join Chat. OK was already default for New IM, Get User Info, View User Log, and Add Group and it's been bothering me that these others didn't do it the same way.
author Paul Aurich <paul@darkrain42.org>
date Sun, 19 Jul 2009 19:07:54 +0000
parents aac28ab73e9e
children c90de665e042
files pidgin/gtkblist.c
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/pidgin/gtkblist.c	Sun Jul 19 17:56:02 2009 +0000
+++ b/pidgin/gtkblist.c	Sun Jul 19 19:07:54 2009 +0000
@@ -1168,6 +1168,8 @@
 		_("Room _List"), 1,
 		GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
 		PIDGIN_STOCK_CHAT, GTK_RESPONSE_OK, NULL);
+	gtk_dialog_set_default_response(GTK_DIALOG(data->rq_data.window),
+		GTK_RESPONSE_OK);
 	data->default_chat_name = NULL;
 	data->rq_data.account = pidgin_account_option_menu_get_selected(data->rq_data.account_menu);
 
@@ -6925,6 +6927,8 @@
 			GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
 			GTK_STOCK_ADD, GTK_RESPONSE_OK,
 			NULL);
+	gtk_dialog_set_default_response(GTK_DIALOG(data->rq_data.window),
+			GTK_RESPONSE_OK);
 
 	g_signal_connect(G_OBJECT(data->rq_data.window), "destroy",
 	                 G_CALLBACK(destroy_add_buddy_dialog_cb), data);
@@ -7094,6 +7098,8 @@
 		GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
 		GTK_STOCK_ADD, GTK_RESPONSE_OK,
 		NULL);
+	gtk_dialog_set_default_response(GTK_DIALOG(data->chat_data.rq_data.window),
+			GTK_RESPONSE_OK);
 
 	data->chat_data.default_chat_name = g_strdup(name);