[geany/geany] c4b245: Fix clashing button mnemonic in detect/reload dialog (#3587465)

Nick Treleaven git-noreply at geany.org
Wed Nov 28 13:50:27 UTC 2012


Branch:      refs/heads/master
Author:      Nick Treleaven <nick.treleaven at btinternet.com>
Committer:   Nick Treleaven <nick.treleaven at btinternet.com>
Date:        Wed, 28 Nov 2012 13:50:27 UTC
Commit:      c4b245776151aa36a05fbc361ce2c2e3efd0279e
             https://github.com/geany/geany/commit/c4b245776151aa36a05fbc361ce2c2e3efd0279e

Log Message:
-----------
Fix clashing button mnemonic in detect/reload dialog (#3587465)


Modified Paths:
--------------
    src/document.c

Modified: src/document.c
3 files changed, 2 insertions(+), 1 deletions(-)
===================================================================
@@ -2847,9 +2847,10 @@ static void monitor_reload_file(GeanyDocument *doc)
 	gchar *base_name = g_path_get_basename(doc->file_name);
 	gint ret;
 
+	/* we use No instead of Cancel to avoid mnemonic clash */
 	ret = dialogs_show_prompt(NULL,
 		GTK_STOCK_CLOSE, GTK_RESPONSE_CLOSE,
-		GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
+		GTK_STOCK_NO, GTK_RESPONSE_CANCEL,
 		_("_Reload"), GTK_RESPONSE_ACCEPT,
 		_("Do you want to reload it?"),
 		_("The file '%s' on the disk is more recent than\nthe current buffer."),



--------------
This E-Mail was brought to you by github_commit_mail.py (Source: TBD).


More information about the Commits mailing list