Tidying.
[synfig.git] / synfig-studio / trunk / src / gtkmm / app.cpp
index 55ac541..e4b0268 100644 (file)
@@ -1124,8 +1124,8 @@ App::App(int *argc, char ***argv):
 
        gdk_rgb_init();
 
-       // don't call thread_init() if threads are already initialised
-       // on some machines bonobo_init() initialised threads before we get here
+       // don't call thread_init() if threads are already initialized
+       // on some machines bonobo_init() initialized threads before we get here
        if (!g_thread_supported())
                Glib::thread_init();
 
@@ -1444,7 +1444,7 @@ App::add_recent_file(const std::string &file_name)
        if(basename(filename)[0]=='.')
                return;
 
-       // If we aren't an absolute path, turn outselves into one
+       // If we aren't an absolute path, turn ourselves into one
        if(!is_absolute_path(filename))
                filename=absolute_path(filename);
 
@@ -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 = Instance::create(canvas);
+
+       if (!getenv("SYNFIG_DISABLE_NEW_CANVAS_EDIT_PROPERTIES"))
+               instance->find_canvas_view(canvas)->canvas_properties.present();
 }
 
 void