summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2013-01-10 11:14:55 +0000
committerCaolán McNamara <caolanm@redhat.com>2013-01-10 12:24:44 +0000
commit1a87393fbb65416b8b50f62f21f871e7f07e3d90 (patch)
treefab39215eab18f9f03cad45ce55fa292cbde8f90
parente353b8de425738ef6d24ff39e4893527f23af7df (diff)
add a stock apply button text and map to gtk-apply
Change-Id: I97522b314088d4b5fd1f7b2b46e49d00c155c5c5
-rw-r--r--vcl/inc/svids.hrc1
-rw-r--r--vcl/source/src/btntext.src5
-rw-r--r--vcl/source/window/builder.cxx2
3 files changed, 8 insertions, 0 deletions
diff --git a/vcl/inc/svids.hrc b/vcl/inc/svids.hrc
index 19e13a4c9cfc..27e5e0abf809 100644
--- a/vcl/inc/svids.hrc
+++ b/vcl/inc/svids.hrc
@@ -155,6 +155,7 @@
#define SV_BUTTONTEXT_REMOVE 10114
#define SV_BUTTONTEXT_NEW 10115
#define SV_BUTTONTEXT_EDIT 10116
+#define SV_BUTTONTEXT_APPLY 10117
#define SV_STDTEXT_FIRST SV_STDTEXT_SERVICENOTAVAILABLE
#define SV_STDTEXT_SERVICENOTAVAILABLE 10200
diff --git a/vcl/source/src/btntext.src b/vcl/source/src/btntext.src
index ee301b1477d1..5f93307428bb 100644
--- a/vcl/source/src/btntext.src
+++ b/vcl/source/src/btntext.src
@@ -97,3 +97,8 @@ String SV_BUTTONTEXT_EDIT
{
Text [ en-US ] = "~Edit";
};
+
+String SV_BUTTONTEXT_APPLY
+{
+ Text [ en-US ] = "~Apply";
+};
diff --git a/vcl/source/window/builder.cxx b/vcl/source/window/builder.cxx
index 18731987e236..472eed38199a 100644
--- a/vcl/source/window/builder.cxx
+++ b/vcl/source/window/builder.cxx
@@ -463,6 +463,8 @@ namespace
return (VclResId(SV_BUTTONTEXT_NEW).toString());
else if (rType == "gtk-edit")
return (VclResId(SV_BUTTONTEXT_EDIT).toString());
+ else if (rType == "gtk-apply")
+ return (VclResId(SV_BUTTONTEXT_APPLY).toString());
SAL_WARN("vcl.layout", "unknown stock type: " << rType.getStr());
return OUString();
}