summaryrefslogtreecommitdiffstats
path: root/src/extension/implementation/script.cpp
diff options
context:
space:
mode:
authorjabiertxof <jabiertxof@debian.marker.es>2015-04-29 14:33:09 +0000
committerjabiertxof <jabiertxof@debian.marker.es>2015-04-29 14:33:09 +0000
commitcd2a40d327c536e12dd113a0c8c2fe5038affe48 (patch)
tree7e8c12e63848a90246f591067244f6891fd70336 /src/extension/implementation/script.cpp
parentFis fix a bug finded in my presentation in the HackFest (diff)
parentIncrease precision (long thin paths had a ton of width variance), fix logic e... (diff)
downloadinkscape-cd2a40d327c536e12dd113a0c8c2fe5038affe48.tar.gz
inkscape-cd2a40d327c536e12dd113a0c8c2fe5038affe48.zip
update to trunk
(bzr r12588.1.44)
Diffstat (limited to 'src/extension/implementation/script.cpp')
-rw-r--r--src/extension/implementation/script.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/extension/implementation/script.cpp b/src/extension/implementation/script.cpp
index bbc567f75..52c360fcd 100644
--- a/src/extension/implementation/script.cpp
+++ b/src/extension/implementation/script.cpp
@@ -1027,7 +1027,10 @@ int Script::execute (const std::list<std::string> &in_command,
return 0;
}
- _main_loop = Glib::MainLoop::create(false);
+ // Create a new MainContext for the loop so that the original context sources are not run here,
+ // this enforces that only the file_listeners should be read in this new MainLoop
+ Glib::RefPtr<Glib::MainContext> _main_context = Glib::MainContext::create();
+ _main_loop = Glib::MainLoop::create(_main_context, false);
file_listener fileerr;
fileout.init(stdout_pipe, _main_loop);