summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-01-12 15:24:36 +0000
committerCaolán McNamara <caolanm@redhat.com>2017-01-12 15:24:40 +0000
commit1d7cf3f0391214a17593eced752e2a1786c0a1e3 (patch)
treefd664d0b8d492549ffe698f81c40198fdc15246e
parent2d93108082298f3e5dea7ffba146bbcdf28653c2 (diff)
Resolves: tdf#104897 sort windows buttons into yes, no, cancel
and kde, for gnome/macosx use no, cancel, yes Change-Id: I4aff39938c1c9f81b47934d8f1d9400c106781ad
-rw-r--r--vcl/source/window/layout.cxx8
1 files changed, 6 insertions, 2 deletions
diff --git a/vcl/source/window/layout.cxx b/vcl/source/window/layout.cxx
index cd18eb3c4397..ca082e0b2efd 100644
--- a/vcl/source/window/layout.cxx
+++ b/vcl/source/window/layout.cxx
@@ -828,18 +828,22 @@ struct ButtonOrder
static int getButtonPriority(const OString &rType)
{
- static const size_t N_TYPES = 3;
+ static const size_t N_TYPES = 5;
static const ButtonOrder aDiscardCancelSave[N_TYPES] =
{
{ "/discard", 0 },
+ { "/no", 0 },
{ "/cancel", 1 },
- { "/save", 2 }
+ { "/save", 2 },
+ { "/yes", 2 }
};
static const ButtonOrder aSaveDiscardCancel[N_TYPES] =
{
{ "/save", 0 },
+ { "/yes", 0 },
{ "/discard", 1 },
+ { "/no", 1 },
{ "/cancel", 2 }
};