istereo2

diff src/ui.cc @ 11:03cc3b1884d1

implemented builtin themes registration and lookup in goatkit
author John Tsiombikas <nuclear@member.fsf.org>
date Mon, 28 Sep 2015 06:53:06 +0300
parents 64e15874f3bd
children ea928c313344
line diff
     1.1 --- a/src/ui.cc	Sat Sep 26 02:56:07 2015 +0300
     1.2 +++ b/src/ui.cc	Mon Sep 28 06:53:06 2015 +0300
     1.3 @@ -66,9 +66,7 @@
     1.4  	// load the theme
     1.5  	//goatkit::add_theme_path("themes/simple");
     1.6  
     1.7 -	goatkit::theme = new goatkit::Theme;
     1.8 -	if(!goatkit::theme->load(GOATKIT_THEME_BUILTIN)) {
     1.9 -		fprintf(stderr, "no builitn theme\n");
    1.10 +	if(!(goatkit::theme = goatkit::get_theme("istereo"))) {
    1.11  		return -1;
    1.12  	}
    1.13