option to use system theme. Also clearlooks used for themeing causes instability and observed to crash cairo rendering (at least on win)

This commit is contained in:
Andrey Skvortsov
2010-10-14 21:23:26 -07:00
parent bdb28d59b5
commit f6a432e6bb
9 changed files with 74 additions and 38 deletions

View File

@@ -108,13 +108,15 @@ int main(int argc, char **argv)
#endif
// Gtk::RC::add_default_file (argv0+"/themes/"+options.theme);
std::vector<std::string> rcfiles;
rcfiles.push_back (argv0+"/themes/"+options.theme);
// Set the font face and size
Gtk::RC::parse_string (Glib::ustring::compose(
"style \"clearlooks-default\" { font_name = \"%1\" }", options.font));
Gtk::RC::set_default_files (rcfiles);
if (!options.useSystemTheme)
{
std::vector<std::string> rcfiles;
rcfiles.push_back (argv0+"/themes/"+options.theme);
// Set the font face and size
Gtk::RC::parse_string (Glib::ustring::compose(
"style \"clearlooks-default\" { font_name = \"%1\" }", options.font));
Gtk::RC::set_default_files (rcfiles);
}
Gtk::Main m(&argc, &argv);
// MainWindow *MainWindow = new class MainWindow();
RTWindow *rtWindow = new class RTWindow();