diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-06-16 14:30:26 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2021-06-16 21:43:41 +0200 |
commit | 04895980c096826a63b10ec648627b5007b0a884 (patch) | |
tree | 99b92f16236036f748cc474be6250e58709b0826 /vcl/unx | |
parent | e3a7d0152518d5de99d61f61bed77b59987d03d2 (diff) |
gtk4: Notebook label is now inside another widget
Change-Id: If1f37959603dbe10e01d492321e9324ab55f10d6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/117333
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl/unx')
-rw-r--r-- | vcl/unx/gtk3/gtkinst.cxx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/vcl/unx/gtk3/gtkinst.cxx b/vcl/unx/gtk3/gtkinst.cxx index 6ac555d63d95..8253392cf306 100644 --- a/vcl/unx/gtk3/gtkinst.cxx +++ b/vcl/unx/gtk3/gtkinst.cxx @@ -8140,7 +8140,12 @@ private: for (gint i = 0; i < nPages; ++i) { GtkWidget* pTabWidget = gtk_notebook_get_tab_label(m_pNotebook, gtk_notebook_get_nth_page(m_pNotebook, i)); - if (!gtk_widget_get_child_visible(pTabWidget)) +#if GTK_CHECK_VERSION(4, 0, 0) + bool bTabVisible = gtk_widget_get_child_visible(gtk_widget_get_parent(pTabWidget)); +#else + bool bTabVisible = gtk_widget_get_child_visible(pTabWidget); +#endif + if (!bTabVisible) { m_nLaunchSplitTimeoutId = g_timeout_add_full(G_PRIORITY_HIGH_IDLE, 0, reinterpret_cast<GSourceFunc>(launch_split_notebooks), this, nullptr); break; |