bool studio::App::use_colorspace_gamma=true;
bool studio::App::single_threaded=false;
bool studio::App::restrict_radius_ducks=false;
+String studio::App::browser_command("firefox");
static int max_recent_files_=25;
int studio::App::get_max_recent_files() { return max_recent_files_; }
value=strprintf("%i",(int)App::restrict_radius_ducks);
return true;
}
+ if(key=="browser_command")
+ {
+ value=App::browser_command;
+ return true;
+ }
return synfigapp::Settings::get_value(key,value);
}
App::restrict_radius_ducks=i;
return true;
}
+ if(key=="browser_command")
+ {
+ App::browser_command=value;
+ return true;
+ }
return synfigapp::Settings::set_value(key,value);
}
ret.push_back("single_threaded");
ret.push_back("auto_recover_backup_interval");
ret.push_back("restrict_radius_ducks");
+ ret.push_back("browser_command");
return ret;
}
};
#ifdef WIN32
return ShellExecute(GetDesktopWindow(), "open", url.c_str(), NULL, NULL, SW_SHOW);
#else // WIN32
- String browser_program("firefox");
- gchar* argv[3] = {strdup(browser_program.c_str()), strdup(url.c_str()), NULL};
+ gchar* argv[3] = {strdup(browser_command.c_str()), strdup(url.c_str()), NULL};
GError* gerror = NULL;
gboolean retval;
static bool restrict_radius_ducks;
+ static synfig::String browser_command;
+
/*
-- ** -- S I G N A L S -------------------------------------------------------
*/
// Misc - restrict_radius_ducks
misc_table->attach(toggle_restrict_radius_ducks, 0, 2, 6, 7, Gtk::EXPAND|Gtk::FILL, Gtk::SHRINK|Gtk::FILL, 0, 0);
+ // Misc - browser_command
+ misc_table->attach(*manage(new Gtk::Label(_("Browser Command"))), 0, 1, 7, 8, Gtk::SHRINK|Gtk::FILL, Gtk::SHRINK|Gtk::FILL, 0, 0);
+ misc_table->attach(textbox_browser_command, 1, 2, 7, 8, Gtk::EXPAND|Gtk::FILL, Gtk::SHRINK|Gtk::FILL, 0, 0);
+
show_all_children();
}
// Set the restrict_radius_ducks flag
App::restrict_radius_ducks=toggle_restrict_radius_ducks.get_active();
+ // Set the browser_command textbox
+ App::browser_command=textbox_browser_command.get_text();
+
App::save_settings();
}
// Refresh the status of the restrict_radius_ducks flag
toggle_restrict_radius_ducks.set_active(App::restrict_radius_ducks);
+
+ // Refresh the browser_command textbox
+ textbox_browser_command.set_text(App::browser_command);
}
GammaPattern::GammaPattern():
Widget_Time auto_backup_interval;
Gtk::CheckButton toggle_restrict_radius_ducks;
+
+ Gtk::Entry textbox_browser_command;
public:
void set_time_format(synfig::Time::Format time_format);