GTK-stylesheet: change name to gtk-lumiera.css

the mechanism for configuring and locating this file is just fine
and can be retained. Of course, the content of the stylesheet
remains to be ported
This commit is contained in:
Fischlurch 2014-10-07 00:59:03 +02:00
parent 8a817f1ab7
commit 38bc139778
4 changed files with 3 additions and 2 deletions

View file

@ -18,6 +18,6 @@ authors = Joel Holdsworth|Christian Thäter|Hermann Voßeler|[Other Authors
copyright = 2007 - 2013
[Gui]
stylesheet = lumiera_ui.rc
stylesheet = gtk-lumiera.css
iconpath = $ORIGIN/../../share/lumiera/icons:$ORIGIN/gui/icons:~/.lumiera/icons
resourcepath = $ORIGIN/../../share/lumiera/gui:$ORIGIN/gui

View file

@ -43,7 +43,7 @@ envGtk.Append(LIBS=core)
guimodule = envGtk.LumieraPlugin('gtk_gui', srcSubtree('gui'), install=True)
gui = ( guimodule
+ icons
+ [env.GuiResource(f) for f in env.Glob('gui/*.rc')]
+ [env.GuiResource(f) for f in env.Glob('gui/*.css')]
)

View file

@ -61,6 +61,7 @@ WindowManager::init (string const& iconPath, string const& resourcePath)
void
WindowManager::setTheme (string const& stylesheetName)
{
//////////////////////////////////////////////////////////////////////////////////////////TICKET #937 : load here the CSS for GTK3
gtk_rc_parse (cStr(lib::resolveModulePath (stylesheetName, resourceSerachPath_)));
gtk_rc_reset_styles (gtk_settings_get_default());
}