[Libreoffice-commits] core.git: vcl/unx
Caolán McNamara
caolanm at redhat.com
Mon Jun 29 13:08:26 PDT 2015
vcl/unx/gtk/fpicker/SalGtkPicker.cxx | 4 ++++
1 file changed, 4 insertions(+)
New commits:
commit 1ca05e1ad6f7377a7e29ec5d74533a2d7170a628
Author: Caolán McNamara <caolanm at redhat.com>
Date: Mon Jun 29 21:05:22 2015 +0100
can't make the gtk3 dialogs modal for some reason, workaround the auto-popdown
Change-Id: I280408bae5d9c15c6bbc7da5f3e4ec8dd20757e8
diff --git a/vcl/unx/gtk/fpicker/SalGtkPicker.cxx b/vcl/unx/gtk/fpicker/SalGtkPicker.cxx
index c53a80b..2d2ff30 100644
--- a/vcl/unx/gtk/fpicker/SalGtkPicker.cxx
+++ b/vcl/unx/gtk/fpicker/SalGtkPicker.cxx
@@ -135,8 +135,12 @@ RunDialog::~RunDialog()
void SAL_CALL RunDialog::windowOpened( const ::com::sun::star::lang::EventObject& )
throw (::com::sun::star::uno::RuntimeException, std::exception)
{
+#if !GTK_CHECK_VERSION(3,0,0)
SolarMutexGuard g;
g_timeout_add_full(G_PRIORITY_HIGH_IDLE, 0, reinterpret_cast<GSourceFunc>(canceldialog), this, NULL);
+#else
+ SAL_WARN( "vcl", "ignoring windowOpened, because gtk3 dialog is probably not modal as expected and a tooltip was triggered" );
+#endif
}
void SAL_CALL RunDialog::queryTermination( const ::com::sun::star::lang::EventObject& )
More information about the Libreoffice-commits
mailing list