diff options
| author | Eduard Braun <eduard.braun2@gmx.de> | 2017-12-20 21:48:36 +0000 |
|---|---|---|
| committer | Eduard Braun <eduard.braun2@gmx.de> | 2017-12-20 21:48:36 +0000 |
| commit | 7fe5369149c8e894bd4cd71ad535eaff02556f02 (patch) | |
| tree | d0a682bbc59babba39b22de6a963701678048337 /src/extension/execution-env.cpp | |
| parent | Replace the Gtk::Range by Gtk::Scale in the InkSpinScale widget. (diff) | |
| download | inkscape-7fe5369149c8e894bd4cd71ad535eaff02556f02.tar.gz inkscape-7fe5369149c8e894bd4cd71ad535eaff02556f02.zip | |
Effects: make "Working..." dialog transient for preferences dialog
Diffstat (limited to '')
| -rw-r--r-- | src/extension/execution-env.cpp | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/src/extension/execution-env.cpp b/src/extension/execution-env.cpp index f75b06937..588543a76 100644 --- a/src/extension/execution-env.cpp +++ b/src/extension/execution-env.cpp @@ -12,7 +12,8 @@ #include <config.h> #endif -#include "gtkmm/messagedialog.h" +#include <gtkmm/dialog.h> +#include <gtkmm/messagedialog.h> #include "execution-env.h" #include "prefdialog.h" @@ -141,7 +142,15 @@ ExecutionEnv::createWorkingDialog (void) { g_free(dlgmessage); if (!_effect->is_silent()){ - _visibleDialog->show(); + Gtk::Dialog *dlg = _effect->get_pref_dialog(); + if (dlg) { + _visibleDialog->set_transient_for(*dlg); + } else { + // ToDo: Do we need to make the window transient for the main window here? + // Currently imossible to test because of GUI freezing during save, + // see https://bugs.launchpad.net/inkscape/+bug/967416 + } + _visibleDialog->show_now(); } return; |
