Kaydet (Commit) 1ca05e1a authored tarafından Caolán McNamara's avatar Caolán McNamara

can't make the gtk3 dialogs modal for some reason, workaround the auto-popdown

Change-Id: I280408bae5d9c15c6bbc7da5f3e4ec8dd20757e8
üst ef575c9c
...@@ -135,8 +135,12 @@ RunDialog::~RunDialog() ...@@ -135,8 +135,12 @@ RunDialog::~RunDialog()
void SAL_CALL RunDialog::windowOpened( const ::com::sun::star::lang::EventObject& ) void SAL_CALL RunDialog::windowOpened( const ::com::sun::star::lang::EventObject& )
throw (::com::sun::star::uno::RuntimeException, std::exception) throw (::com::sun::star::uno::RuntimeException, std::exception)
{ {
#if !GTK_CHECK_VERSION(3,0,0)
SolarMutexGuard g; SolarMutexGuard g;
g_timeout_add_full(G_PRIORITY_HIGH_IDLE, 0, reinterpret_cast<GSourceFunc>(canceldialog), this, NULL); 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& ) void SAL_CALL RunDialog::queryTermination( const ::com::sun::star::lang::EventObject& )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment