summaryrefslogtreecommitdiff
path: root/framework/source/uielement
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-12-14 09:57:19 +0000
committerCaolán McNamara <caolanm@redhat.com>2021-12-14 12:11:24 +0100
commit354849e0af51767433b1c3ad417e857d5c84e2b4 (patch)
treeac42788c6edce680e41120a28f0bbfd512df9a0a /framework/source/uielement
parenta5167ae1d69dc6c9a88807113c9315860048f462 (diff)
prefer css::awt::XPopupMenu api
Change-Id: I23310b8b5adbe7c84d0b9d30a227619c1e9a6960 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/126803 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'framework/source/uielement')
-rw-r--r--framework/source/uielement/newmenucontroller.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/framework/source/uielement/newmenucontroller.cxx b/framework/source/uielement/newmenucontroller.cxx
index 59e9160f8ced..9b70d5821682 100644
--- a/framework/source/uielement/newmenucontroller.cxx
+++ b/framework/source/uielement/newmenucontroller.cxx
@@ -339,11 +339,11 @@ void NewMenuController::fillPopupMenu( Reference< css::awt::XPopupMenu > const &
continue;
if ( aDynamicMenuEntry.sURL == "private:separator" )
- pVCLPopupMenu->InsertSeparator();
+ rPopupMenu->insertSeparator(-1);
else
{
- pVCLPopupMenu->InsertItem( nItemId, aDynamicMenuEntry.sTitle );
- pVCLPopupMenu->SetItemCommand( nItemId, aDynamicMenuEntry.sURL );
+ rPopupMenu->insertItem(nItemId, aDynamicMenuEntry.sTitle, 0, -1);
+ rPopupMenu->setCommand(nItemId, aDynamicMenuEntry.sURL);
void* nAttributePtr = MenuAttributes::CreateAttribute( aDynamicMenuEntry.sTargetName, aDynamicMenuEntry.sImageIdentifier );
pVCLPopupMenu->SetUserValue( nItemId, nAttributePtr, MenuAttributes::ReleaseAttribute );