summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-06-21 15:58:34 +0100
committerCaolán McNamara <caolanm@redhat.com>2018-06-22 17:49:34 +0200
commit68a37c46f21daaedcae479ccce9889ee0459e745 (patch)
tree00fad848eefaff93bd3c75708226e191ac2e52bc
parent162b729b05ea727d6191647605bbaaa9c8dab275 (diff)
Resolves: tdf#115816 simpler fix for master
Change-Id: Ibafd041728624e781b5da44a0b484206f760d4d0 Reviewed-on: https://gerrit.libreoffice.org/56248 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r--include/tools/wintypes.hxx3
-rw-r--r--svx/source/gallery2/galbrws2.cxx2
-rw-r--r--svx/uiconfig/ui/gallerymenu2.ui4
-rw-r--r--vcl/source/control/button.cxx1
4 files changed, 3 insertions, 7 deletions
diff --git a/include/tools/wintypes.hxx b/include/tools/wintypes.hxx
index 87896e23fab3..9f5229806e3f 100644
--- a/include/tools/wintypes.hxx
+++ b/include/tools/wintypes.hxx
@@ -254,8 +254,7 @@ enum class StandardButtonType
Ignore = 8,
Abort = 9,
Less = 10,
- Paste = 11,
- Count = 12,
+ Count = 11,
};
// prominent place for ListBox window types
diff --git a/svx/source/gallery2/galbrws2.cxx b/svx/source/gallery2/galbrws2.cxx
index 87da4785a941..3570c4c703ed 100644
--- a/svx/source/gallery2/galbrws2.cxx
+++ b/svx/source/gallery2/galbrws2.cxx
@@ -259,8 +259,6 @@ void GalleryThemePopup::ExecutePopup( vcl::Window *pWindow, const ::Point &aPos
mpPopupMenu->EnableItem(mpPopupMenu->GetItemId("paste"));
}
- mpPopupMenu->SetItemText(mpPopupMenu->GetItemId("paste"), Button::GetStandardText(StandardButtonType::Paste));
-
// update status
css::uno::Reference< css::frame::XDispatchProvider> xDispatchProvider(
GalleryBrowser2::GetFrame(), css::uno::UNO_QUERY );
diff --git a/svx/uiconfig/ui/gallerymenu2.ui b/svx/uiconfig/ui/gallerymenu2.ui
index 8d81d130ec49..8cd3cc8a1e4e 100644
--- a/svx/uiconfig/ui/gallerymenu2.ui
+++ b/svx/uiconfig/ui/gallerymenu2.ui
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
-<!-- Generated with glade 3.20.0 -->
+<!-- Generated with glade 3.20.4 -->
<interface domain="svx">
<requires lib="gtk+" version="3.18"/>
<object class="GtkMenu" id="menu">
@@ -79,7 +79,7 @@
<object class="GtkMenuItem" id="paste">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="label" translatable="yes" context="gallerymenu2|paste">_Insert</property>
+ <property name="label" translatable="yes" context="gallerymenu2|paste">_Paste</property>
<property name="use_underline">True</property>
</object>
</child>
diff --git a/vcl/source/control/button.cxx b/vcl/source/control/button.cxx
index 72e4420d357a..6facf9159838 100644
--- a/vcl/source/control/button.cxx
+++ b/vcl/source/control/button.cxx
@@ -146,7 +146,6 @@ OUString Button::GetStandardText(StandardButtonType eButton)
SV_BUTTONTEXT_IGNORE,
SV_BUTTONTEXT_ABORT,
SV_BUTTONTEXT_LESS,
- SV_BUTTONTEXT_PASTE,
};
return VclResId(aResIdAry[static_cast<sal_uInt16>(eButton)]);