diff options
author | Caolán McNamara <caolanm@redhat.com> | 2019-09-20 15:35:16 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2019-09-20 21:22:34 +0200 |
commit | cf971dfcc94668f03ad0cf83b98d62ae1227ddba (patch) | |
tree | fcd9c4c4541a4f2fd8834b90f6e1972127404cef /vcl/unx/gtk3 | |
parent | 6ba2c613be6d840bec6d7a145c12c6e4385103ee (diff) |
get the toplevel GtkWindow widget
Change-Id: Ibcc20027062568b239d893bcf51887749abe4646
Reviewed-on: https://gerrit.libreoffice.org/79304
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl/unx/gtk3')
-rw-r--r-- | vcl/unx/gtk3/gtk3gtkinst.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/unx/gtk3/gtk3gtkinst.cxx b/vcl/unx/gtk3/gtk3gtkinst.cxx index 4df3120e12d9..49e856a9c111 100644 --- a/vcl/unx/gtk3/gtk3gtkinst.cxx +++ b/vcl/unx/gtk3/gtk3gtkinst.cxx @@ -11420,7 +11420,7 @@ weld::Window* GtkInstance::GetFrameWeld(const css::uno::Reference<css::awt::XWin weld::Window* GtkSalFrame::GetFrameWeld() const { if (!m_xFrameWeld) - m_xFrameWeld.reset(new GtkInstanceWindow(GTK_WINDOW(getWindow()), nullptr, false)); + m_xFrameWeld.reset(new GtkInstanceWindow(GTK_WINDOW(gtk_widget_get_toplevel(getWindow())), nullptr, false)); return m_xFrameWeld.get(); } |