Making the codified theme file name mandatory (#3446)

...which mean that TooWaBlue.css can't be loaded until it has been
reworked and renamed to the new mechanism. The default theme will be
loaded instead.
This commit is contained in:
Hombre
2016-11-20 12:33:47 +01:00
parent 55759c04e3
commit 17ff228177
3 changed files with 5 additions and 2 deletions

View File

@@ -41,7 +41,7 @@ Preferences::Preferences (RTWindow *rtwindow)
, parent (rtwindow)
, splash (nullptr)
{
regex = Glib::Regex::create("^(.+)-GTK3-(\\d{1,2})?_(\\d{1,2})?\\.css$", Glib::RegexCompileFlags::REGEX_CASELESS);
regex = Glib::Regex::create(THEMEREGEXSTR, Glib::RegexCompileFlags::REGEX_CASELESS);
moptions.copyFrom (&options);