diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-11-20 21:51:48 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2021-11-21 20:30:47 +0100 |
commit | 2221c6ffb3e8fffb090d1d1a666571c3c7d05de7 (patch) | |
tree | 939f3843b543a3e2cb0b159d73976597d5fb4162 /vcl | |
parent | 449977192b04878a2e3ea0ce1ff3445d02f084ce (diff) |
gtk3: consider replacement for popovers visibility when queryed for it
Change-Id: I4ca71f8544720e99514abe78717dcd07617c00cc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125475
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/unx/gtk3/gtkinst.cxx | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/vcl/unx/gtk3/gtkinst.cxx b/vcl/unx/gtk3/gtkinst.cxx index 4f64c75ae480..f9b73c07bfd0 100644 --- a/vcl/unx/gtk3/gtkinst.cxx +++ b/vcl/unx/gtk3/gtkinst.cxx @@ -22110,6 +22110,17 @@ public: gtk_popover_popup(m_pPopover); } +#if !GTK_CHECK_VERSION(4, 0, 0) +#if defined(GDK_WINDOWING_X11) + virtual bool get_visible() const override + { + if (m_pMenuHack) + return gtk_widget_get_visible(GTK_WIDGET(m_pMenuHack)); + return gtk_widget_get_visible(m_pWidget); + } +#endif +#endif + virtual void popdown() override { #if !GTK_CHECK_VERSION(4, 0, 0) |