X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-studio%2Ftrunk%2Fsrc%2Fgtkmm%2Fapp.cpp;h=ee4459b5e5f2e773e72b9d316c3aa6135b17594a;hb=4c0fb9462ff3fcca1cb6e8faa02e9451343634c8;hp=72eee2d26a8c79647233c054fad0a7033bea2b14;hpb=21d460cdca9113a57c6cffadaac9511cc0e350c8;p=synfig.git diff --git a/synfig-studio/trunk/src/gtkmm/app.cpp b/synfig-studio/trunk/src/gtkmm/app.cpp index 72eee2d..ee4459b 100644 --- a/synfig-studio/trunk/src/gtkmm/app.cpp +++ b/synfig-studio/trunk/src/gtkmm/app.cpp @@ -542,7 +542,7 @@ public: value=strprintf("%s",App::predefined_size.c_str()); return true; } - + return synfigapp::Settings::get_value(key,value); } @@ -660,7 +660,7 @@ public: ret.push_back("custom_filename_prefix"); ret.push_back("preferred_x_size"); ret.push_back("preferred_y_size"); - ret.push_back("predefined_size"); + ret.push_back("predefined_size"); return ret; } }; @@ -1058,7 +1058,7 @@ init_ui_manager() ACCEL("0", "//quality-10" ); ACCEL("z", "//undo" ); ACCEL("r", "//redo" ); - ACCEL("Delete", "//action-LayerRemove" ); + ACCEL2(Gtk::AccelKey(GDK_Delete,Gdk::CONTROL_MASK, "//action-LayerRemove" )); ACCEL2(Gtk::AccelKey('(',Gdk::CONTROL_MASK, "//decrease-low-res-pixel-size" )); ACCEL2(Gtk::AccelKey(')',Gdk::CONTROL_MASK, "//increase-low-res-pixel-size" )); ACCEL2(Gtk::AccelKey('(',Gdk::MOD1_MASK|Gdk::CONTROL_MASK, "//amount-dec" )); @@ -1368,7 +1368,7 @@ App::~App() delete auto_recover; delete about; - + toolbox->hide(); // studio::App::iteration(false); @@ -2221,7 +2221,7 @@ try_open_url(const std::string &url) try { Glib::spawn_async(".", command_line, Glib::SPAWN_SEARCH_PATH); } // Failed, move on to the next one catch(Glib::SpawnError& exception){ continue; } - return true; // No exception means we succeeded! + return true; // No exception means we succeeded! } } @@ -2361,7 +2361,7 @@ App::open_as(std::string filename,std::string as) if (warnings != "") dialog_warning_blocking(_("Warnings"), strprintf("%s:\n\n%s", _("Warnings"), warnings.c_str())); - + if (as.find(custom_filename_prefix.c_str()) != 0) add_recent_file(as);