summaryrefslogtreecommitdiffstats
path: root/src/extension/execution-env.h
diff options
context:
space:
mode:
authorEduard Braun <eduard.braun2@gmx.de>2017-12-20 23:11:30 +0000
committerEduard Braun <eduard.braun2@gmx.de>2017-12-20 23:11:30 +0000
commitcabdde6554a95e6d0fee5ab39f850f7645df3cbb (patch)
treef85847d899169d369929df0f570e40c871c5c361 /src/extension/execution-env.h
parentEffects: make "Working..." dialog transient for preferences dialog (diff)
downloadinkscape-cabdde6554a95e6d0fee5ab39f850f7645df3cbb.tar.gz
inkscape-cabdde6554a95e6d0fee5ab39f850f7645df3cbb.zip
Make script warnings transient for "Working..." dialog
This turned out to be a bit of a mess due to the interplay between the classes Script / ExecutionEnv / Effect / PrefDialog. (Basically they don't talk to each other much but all want to contribute to the GUI) Likely "Script" (and possibly "ExecutionEnv") should be refactored to let the other classes handle UI exclusively and throw errors where suitable.
Diffstat (limited to 'src/extension/execution-env.h')
-rw-r--r--src/extension/execution-env.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/extension/execution-env.h b/src/extension/execution-env.h
index a57c7b8c9..199e3a5e2 100644
--- a/src/extension/execution-env.h
+++ b/src/extension/execution-env.h
@@ -98,6 +98,9 @@ public:
/** \brief Wait for the effect to complete if it hasn't. */
bool wait (void);
+ /** \brief Return reference to working dialog (if any) */
+ Gtk::Dialog *get_working_dialog (void) { return _visibleDialog; };
+
private:
void runComplete (void);
void createPrefsDialog (Gtk::Widget * controls);