5e70ee5752
- Refresh fix_gtk_popover_on_3.20.patch OBS-URL: https://build.opensuse.org/request/show/960568 OBS-URL: https://build.opensuse.org/package/show/LibreOffice:Factory/libreoffice?expand=0&rev=997
27 lines
887 B
Diff
27 lines
887 B
Diff
Index: libreoffice-7.3.1.3/vcl/unx/gtk3/gtkinst.cxx
|
|
===================================================================
|
|
--- libreoffice-7.3.1.3.orig/vcl/unx/gtk3/gtkinst.cxx
|
|
+++ libreoffice-7.3.1.3/vcl/unx/gtk3/gtkinst.cxx
|
|
@@ -22177,7 +22177,11 @@ public:
|
|
}
|
|
#endif
|
|
|
|
- gtk_popover_popup(m_pPopover);
|
|
+ // in GTK 3.22 you can just call gtk_popover_popup() to get it to show with transitions,
|
|
+ // but on SLE-12-SP5 we just have GTK 3.20, so enable transitions and show it to get the
|
|
+ // same effect
|
|
+ gtk_popover_set_transitions_enabled(m_pPopover, true);
|
|
+ gtk_widget_show(GTK_WIDGET(m_pPopover));
|
|
}
|
|
|
|
#if !GTK_CHECK_VERSION(4, 0, 0)
|
|
@@ -22218,7 +22222,7 @@ public:
|
|
}
|
|
#endif
|
|
|
|
- gtk_popover_popdown(m_pPopover);
|
|
+ gtk_widget_hide(GTK_WIDGET(m_pPopover));
|
|
}
|
|
|
|
void PopdownAndFlushClosedSignal()
|