diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-09-01 09:27:48 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-09-02 00:35:51 +0200 |
commit | 7f20ca352840c5b877f7aebdf021b5ea65835560 (patch) | |
tree | 5d549a6f7e688961ce92d4afdaff2af91a489d2e /vcl/inc | |
parent | d9527fd01fd2674deb6868084d056861db5447fa (diff) |
Use FPicker parentwindow argument to set file picker parent
the secret argument of xParentWindow already exists
here we use XSystemDependentWindowPeer and getWindowHandle to get the window
handle (which is a bit spurious in the wayland case but close enough) and then
look up all our toplevel frames for a matching one in order to get the
associated widget to use a a parent window
If the fpicker was still in fpicker we could get the vcl::Window for the
xParentWindow and get the frame directly from that but that necessitates
linking to toolkit, so do it this way instead
Change-Id: Ia6f51e6d2016587c1f314d7a0b1f9a20269facd0
Reviewed-on: https://gerrit.libreoffice.org/41808
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl/inc')
-rw-r--r-- | vcl/inc/unx/gtk/gtkdata.hxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/vcl/inc/unx/gtk/gtkdata.hxx b/vcl/inc/unx/gtk/gtkdata.hxx index 249bc1add2bf..60a0940d9439 100644 --- a/vcl/inc/unx/gtk/gtkdata.hxx +++ b/vcl/inc/unx/gtk/gtkdata.hxx @@ -147,6 +147,8 @@ public: GtkSalSystem* getSystem() const { return m_pSys; } + GtkWidget* findGtkWidgetForNativeHandle(sal_uIntPtr hWindow) const; + virtual void deregisterFrame( SalFrame* pFrame ) override; GdkCursor *getCursor( PointerStyle ePointerStyle ); #if GTK_CHECK_VERSION(3,0,0) |