diff options
author | Caolán McNamara <caolanm@redhat.com> | 2013-07-08 13:57:39 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-07-08 14:54:05 +0100 |
commit | aa78d6ff4a310b7eeaffafe477cc24a057cb01b7 (patch) | |
tree | 27cb094b65d778b39bfa22a12d1070299c565bd8 | |
parent | 8b74ad05daa9e766c875152d1c82eee5926ee182 (diff) |
add a new stock item 'Clear' and map to gtk-clear
Change-Id: Idf2a9a879daf48202f28068d2aa108ca97213bd8
-rw-r--r-- | vcl/inc/svids.hrc | 1 | ||||
-rw-r--r-- | vcl/source/src/btntext.src | 5 | ||||
-rw-r--r-- | vcl/source/window/builder.cxx | 2 |
3 files changed, 8 insertions, 0 deletions
diff --git a/vcl/inc/svids.hrc b/vcl/inc/svids.hrc index e9bb616556e4..abe1a14aeb1b 100644 --- a/vcl/inc/svids.hrc +++ b/vcl/inc/svids.hrc @@ -165,6 +165,7 @@ #define SV_BUTTONTEXT_NEXT 10123 #define SV_BUTTONTEXT_GO_UP 10124 #define SV_BUTTONTEXT_GO_DOWN 10125 +#define SV_BUTTONTEXT_CLEAR 10126 #define SV_STDTEXT_FIRST SV_STDTEXT_SERVICENOTAVAILABLE #define SV_STDTEXT_SERVICENOTAVAILABLE 10210 diff --git a/vcl/source/src/btntext.src b/vcl/source/src/btntext.src index 07813ad0ba8d..8d84b7a4d22b 100644 --- a/vcl/source/src/btntext.src +++ b/vcl/source/src/btntext.src @@ -151,4 +151,9 @@ String SV_BUTTONTEXT_GO_DOWN Text [ en-US ] = "Do~wn" ; }; +String SV_BUTTONTEXT_CLEAR +{ + Text [ en-US ] = "~Clear" ; +}; + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/vcl/source/window/builder.cxx b/vcl/source/window/builder.cxx index 9a3ebd544d4c..ed66c5d74be0 100644 --- a/vcl/source/window/builder.cxx +++ b/vcl/source/window/builder.cxx @@ -601,6 +601,8 @@ namespace return (VclResId(SV_BUTTONTEXT_GO_UP).toString()); else if (rType == "gtk-go-down") return (VclResId(SV_BUTTONTEXT_GO_DOWN).toString()); + else if (rType == "gtk-clear") + return (VclResId(SV_BUTTONTEXT_CLEAR).toString()); SAL_WARN("vcl.layout", "unknown stock type: " << rType.getStr()); return OUString(); } |