New batch of Theme bugfix, see issue #3446 (still WIP)

This commit is contained in:
Hombre
2016-10-20 22:38:37 +02:00
parent 712468197d
commit f6a9e13297
13 changed files with 116 additions and 263 deletions

View File

@@ -326,23 +326,6 @@ int main(int argc, char **argv)
} catch (...) {
printf("Error: Can't load css file \"%s\"\n", filename.c_str());
}
// Set the font face and size
if (options.font != "default") {
try {
cssForced = Gtk::CssProvider::create();
// Reformatting the font parameter
Glib::ustring font = Options::formatFontName(options.font);
cssForced->load_from_data (Glib::ustring::compose("* { %1 }", font));
Gtk::StyleContext::add_provider_for_screen(screen, cssForced, GTK_STYLE_PROVIDER_PRIORITY_APPLICATION);
} catch (Glib::Error &err) {
printf("Error: \"%s\"\n", err.what().c_str());
} catch (...) {
printf("Error: Can't find the font named \"%s\"\n", options.font.c_str());
}
}
}
#ifndef NDEBUG