From c4b245776151aa36a05fbc361ce2c2e3efd0279e Mon Sep 17 00:00:00 2001 From: Nick Treleaven Date: Wed, 28 Nov 2012 13:50:27 +0000 Subject: [PATCH] Fix clashing button mnemonic in detect/reload dialog (#3587465) --- src/document.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/document.c b/src/document.c index cce76cf1f..72459d887 100644 --- a/src/document.c +++ b/src/document.c @@ -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."),