From: dooglus Date: Fri, 2 Nov 2007 20:54:01 +0000 (+0000) Subject: New environment variable: 'SYNFIG_DISABLE_NEW_CANVAS_EDIT_PROPERTIES'. When set... X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=7b9a27e62a061b8711153b5a1c7ddd59b6a37075;p=synfig.git New environment variable: 'SYNFIG_DISABLE_NEW_CANVAS_EDIT_PROPERTIES'. When set, don't pop up the canvas properties dialog when creating a new document. git-svn-id: http://svn.voria.com/code@1104 1f10aa63-cdf2-0310-b900-c93c546f37ac --- diff --git a/synfig-studio/trunk/src/gtkmm/app.cpp b/synfig-studio/trunk/src/gtkmm/app.cpp index b36162d..e4b0268 100644 --- a/synfig-studio/trunk/src/gtkmm/app.cpp +++ b/synfig-studio/trunk/src/gtkmm/app.cpp @@ -2072,7 +2072,10 @@ App::new_instance() canvas->rend_desc().set_flags(RendDesc::PX_ASPECT|RendDesc::IM_SPAN); canvas->set_file_name(file_name); - Instance::create(canvas)->find_canvas_view(canvas)->canvas_properties.present(); + handle instance = Instance::create(canvas); + + if (!getenv("SYNFIG_DISABLE_NEW_CANVAS_EDIT_PROPERTIES")) + instance->find_canvas_view(canvas)->canvas_properties.present(); } void