X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-studio%2Ftrunk%2Fsrc%2Fgtkmm%2Fapp.cpp;h=e1d1a6ebef2516f8bf74a8ecb8a1d57e26918d03;hb=6ee1233ccd00e071d9a1b1f305d980ed91bd1939;hp=c861f395c81036b3d1c9eae0fb4cffb579b68447;hpb=60fa54231fd60ad2bae548ae0f99f0b0a0814a2d;p=synfig.git diff --git a/synfig-studio/trunk/src/gtkmm/app.cpp b/synfig-studio/trunk/src/gtkmm/app.cpp index c861f39..e1d1a6e 100644 --- a/synfig-studio/trunk/src/gtkmm/app.cpp +++ b/synfig-studio/trunk/src/gtkmm/app.cpp @@ -1224,17 +1224,15 @@ App::App(int *argc, char ***argv): state_manager->add_state(&state_zoom); - if(false) { - // Disabled this tool because it should be - // considered deprecated. Use the bline tool instead. - state_manager->add_state(&state_polygon); - - // These tools are disabled for now, - // because they tend to confuse users. - state_manager->add_state(&state_draw); - state_manager->add_state(&state_sketch); - state_manager->add_state(&state_width); - } + // Disabled this tool because it should be + // considered deprecated. Use the bline tool instead. + if(getenv("SYNFIG_ENABLE_POLYGON")) state_manager->add_state(&state_polygon); + + // These tools are disabled by default for now, + // because they tend to confuse users. + if(getenv("SYNFIG_ENABLE_DRAW" )) state_manager->add_state(&state_draw); + if(getenv("SYNFIG_ENABLE_SKETCH")) state_manager->add_state(&state_sketch); + if(getenv("SYNFIG_ENABLE_WIDTH" )) state_manager->add_state(&state_width); studio_init_cb.task("Init ModPalette..."); module_list_.push_back(new ModPalette()); module_list_.back()->start(); @@ -1945,7 +1943,6 @@ App::dialog_not_implemented() { Gtk::MessageDialog dialog("Feature not available", false, Gtk::MESSAGE_ERROR, Gtk::BUTTONS_CLOSE, true); dialog.set_secondary_text("Sorry, this feature has not yet been implemented."); - dialog.set_title("Feature not available"); dialog.run(); }