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:
@@ -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();
|
||||
|
Reference in New Issue
Block a user