Improve oscar's default actions a tad bit

Thu, 17 Jan 2008 07:26:57 +0000

author
Mark Doliner <markdoliner@pidgin.im>
date
Thu, 17 Jan 2008 07:26:57 +0000
changeset 22264
f5a81fb240d0
parent 22263
c9a202d78b6e
child 22265
81cc9a21d463

Improve oscar's default actions a tad bit

libpurple/protocols/oscar/oscar.c file | annotate | diff | comparison | revisions
libpurple/protocols/oscar/peer.c file | annotate | diff | comparison | revisions
--- a/libpurple/protocols/oscar/oscar.c	Thu Jan 17 07:21:04 2008 +0000
+++ b/libpurple/protocols/oscar/oscar.c	Thu Jan 17 07:26:57 2008 +0000
@@ -5227,7 +5227,7 @@
 	data->nick = (buddy ? g_strdup(purple_buddy_get_alias_only(buddy)) : NULL);
 
 	purple_request_yes_no(gc, NULL, _("Authorization Given"), dialog_msg,
-						1, /* Default action is "no" */
+						PURPLE_DEFAULT_ACTION_NONE,
 						purple_connection_get_account(gc), sn, NULL,
 						data,
 						G_CALLBACK(purple_icq_buddyadd),
@@ -5983,7 +5983,7 @@
 			_("Because this reveals your IP address, it "
 			  "may be considered a security risk.  Do you "
 			  "wish to continue?"),
-			0,
+			0, /* Default action is "connect" */
 			purple_connection_get_account(gc), data->who, NULL,
 			data, 2,
 			_("C_onnect"), G_CALLBACK(oscar_ask_directim_yes_cb),
--- a/libpurple/protocols/oscar/peer.c	Thu Jan 17 07:21:04 2008 +0000
+++ b/libpurple/protocols/oscar/peer.c	Thu Jan 17 07:26:57 2008 +0000
@@ -1041,7 +1041,7 @@
 						  "Images.  Because your IP address will be "
 						  "revealed, this may be considered a privacy "
 						  "risk."),
-						PURPLE_DEFAULT_ACTION_NONE,
+						0, /* Default action is "connect" */
 						account, sn, NULL,
 						conn, 2,
 						_("C_onnect"), G_CALLBACK(peer_connection_got_proposition_yes_cb),

mercurial