summaryrefslogtreecommitdiff
path: root/vcl/unx/gtk/fpicker/SalGtkFolderPicker.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-06-26 16:30:02 +0100
committerCaolán McNamara <caolanm@redhat.com>2015-06-26 16:31:43 +0100
commit30a5b304f2c1c3d89a2e3b76ac44f2c6376ee65f (patch)
tree933f6f176f934ad0e176a05b25389736b74c5c28 /vcl/unx/gtk/fpicker/SalGtkFolderPicker.cxx
parent3a68a7dcf49f7be95086b747c8426aa310307e49 (diff)
gtk3: gtk_window_set_transient_for on overwrite warning dlg
Change-Id: I91d21e3d1663880de14792ded0a1e079d1a40f09
Diffstat (limited to 'vcl/unx/gtk/fpicker/SalGtkFolderPicker.cxx')
-rw-r--r--vcl/unx/gtk/fpicker/SalGtkFolderPicker.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/vcl/unx/gtk/fpicker/SalGtkFolderPicker.cxx b/vcl/unx/gtk/fpicker/SalGtkFolderPicker.cxx
index 3a2fc6caf93f..23efb79c3f9e 100644
--- a/vcl/unx/gtk/fpicker/SalGtkFolderPicker.cxx
+++ b/vcl/unx/gtk/fpicker/SalGtkFolderPicker.cxx
@@ -145,6 +145,9 @@ sal_Int16 SAL_CALL SalGtkFolderPicker::execute() throw( uno::RuntimeException, s
uno::Reference< frame::XDesktop > xDesktop( frame::Desktop::create(m_xContext), uno::UNO_QUERY);
+ GtkWindow *pParent = RunDialog::GetTransientFor();
+ if (pParent)
+ gtk_window_set_transient_for(GTK_WINDOW(m_pDialog), pParent);
RunDialog* pRunDialog = new RunDialog(m_pDialog, xToolkit, xDesktop);
uno::Reference < awt::XTopWindowListener > xLifeCycle(pRunDialog);
gint nStatus = pRunDialog->run();