diff options
Diffstat (limited to 'vcl/unx/gtk/fpicker/SalGtkPicker.hxx')
-rw-r--r-- | vcl/unx/gtk/fpicker/SalGtkPicker.hxx | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/vcl/unx/gtk/fpicker/SalGtkPicker.hxx b/vcl/unx/gtk/fpicker/SalGtkPicker.hxx index c90504f3aec7..6af2459562eb 100644 --- a/vcl/unx/gtk/fpicker/SalGtkPicker.hxx +++ b/vcl/unx/gtk/fpicker/SalGtkPicker.hxx @@ -25,6 +25,7 @@ #include <com/sun/star/awt/XTopWindowListener.hpp> #include <com/sun/star/awt/XExtendedToolkit.hpp> +#include <com/sun/star/frame/XDesktop.hpp> #include <com/sun/star/frame/XTerminateListener.hpp> #include <gtk/gtk.h> @@ -79,7 +80,10 @@ class RunDialog : private: osl::Mutex maLock; GtkWidget *mpDialog; - css::uno::Reference< css::awt::XExtendedToolkit> mxToolkit; + bool mbTerminateDesktop; + css::uno::Reference<css::awt::XExtendedToolkit> mxToolkit; + css::uno::Reference<css::frame::XDesktop> mxDesktop; + DECL_STATIC_LINK(RunDialog, TerminateDesktop, void*, void); public: // XTopWindowListener @@ -98,8 +102,8 @@ public: virtual void SAL_CALL notifyTermination( const css::lang::EventObject& aEvent ) override; public: RunDialog(GtkWidget *pDialog, - css::uno::Reference< css::awt::XExtendedToolkit > const &rToolkit - ); + const css::uno::Reference<css::awt::XExtendedToolkit>& rToolkit, + const css::uno::Reference<css::frame::XDesktop>& rDesktop); virtual ~RunDialog() override; gint run(); void cancel(); |