diff options
Diffstat (limited to 'vcl/unx/gtk3')
-rw-r--r-- | vcl/unx/gtk3/fpicker/SalGtkFolderPicker.cxx | 4 | ||||
-rw-r--r-- | vcl/unx/gtk3/gtkinst.cxx | 3 |
2 files changed, 3 insertions, 4 deletions
diff --git a/vcl/unx/gtk3/fpicker/SalGtkFolderPicker.cxx b/vcl/unx/gtk3/fpicker/SalGtkFolderPicker.cxx index 57b6e7c53e18..867e28a9124d 100644 --- a/vcl/unx/gtk3/fpicker/SalGtkFolderPicker.cxx +++ b/vcl/unx/gtk3/fpicker/SalGtkFolderPicker.cxx @@ -148,8 +148,6 @@ sal_Int16 SAL_CALL SalGtkFolderPicker::execute() uno::Reference< awt::XExtendedToolkit > xToolkit = awt::Toolkit::create(m_xContext); - uno::Reference<frame::XDesktop> xDesktop = frame::Desktop::create(m_xContext); - GtkWindow *pParent = GTK_WINDOW(m_pParentWidget); if (!pParent) { @@ -158,7 +156,7 @@ sal_Int16 SAL_CALL SalGtkFolderPicker::execute() } if (pParent) gtk_window_set_transient_for(GTK_WINDOW(m_pDialog), pParent); - rtl::Reference<RunDialog> pRunDialog = new RunDialog(m_pDialog, xToolkit, xDesktop); + rtl::Reference<RunDialog> pRunDialog = new RunDialog(m_pDialog, xToolkit, frame::Desktop::create(m_xContext)); gint nStatus = pRunDialog->run(); switch( nStatus ) { diff --git a/vcl/unx/gtk3/gtkinst.cxx b/vcl/unx/gtk3/gtkinst.cxx index c76d6291cedf..3def046ce22a 100644 --- a/vcl/unx/gtk3/gtkinst.cxx +++ b/vcl/unx/gtk3/gtkinst.cxx @@ -7057,7 +7057,8 @@ public: } } - virtual bool runAsync(std::shared_ptr<weld::DialogController> rDialogController, const std::function<void(sal_Int32)>& func) override + virtual bool runAsync(const std::shared_ptr<weld::DialogController>& rDialogController, + const std::function<void(sal_Int32)>& func) override { assert(!m_nResponseSignalId && !m_nCancelSignalId && !m_nSignalDeleteId); |