[gaim-migrate @ 15911]

Tue, 21 Mar 2006 00:50:58 +0000

author
Richard Laager <rlaager@pidgin.im>
date
Tue, 21 Mar 2006 00:50:58 +0000
changeset 13535
aa70e0ac6469
parent 13534
637a369ac8b0
child 13536
345d4ac042f7

[gaim-migrate @ 15911]
When you have specified an existing file as the target of a file transfer,
the dialog confirming the overwrite should have buttons that make the
actions clear. This is more HIG compliant, requested in a feature request,
and I think it's a good idea.

src/gtkrequest.c file | annotate | diff | comparison | revisions
--- a/src/gtkrequest.c	Tue Mar 21 00:47:33 2006 +0000
+++ b/src/gtkrequest.c	Tue Mar 21 00:50:58 2006 +0000
@@ -1464,10 +1464,10 @@
 
 	if ((data->u.file.savedialog == TRUE) &&
 		(g_file_test(data->u.file.name, G_FILE_TEST_EXISTS))) {
-		gaim_request_yes_no(data, NULL, _("That file already exists"),
-							_("Would you like to overwrite it?"), 0, data,
-							G_CALLBACK(file_yes_no_cb),
-							G_CALLBACK(file_yes_no_cb));
+		gaim_request_action(data, NULL, _("That file already exists"),
+							_("Would you like to overwrite it?"), 0, data, 2,
+							_("Overwrite"), G_CALLBACK(file_yes_no_cb),
+							_("Choose New Name"), G_CALLBACK(file_yes_no_cb));
 	} else
 		file_yes_no_cb(data, 1);
 }

mercurial