Enlightenment CVS committal Author : pfritz Project : e17 Module : apps/elitaire
Dir : e17/apps/elitaire/src Modified Files: Eli_App.h edje_frontend_game.cpp eli_app.cpp Log Message: make theme changing working =================================================================== RCS file: /cvs/e/e17/apps/elitaire/src/Eli_App.h,v retrieving revision 1.1 retrieving revision 1.2 diff -u -3 -r1.1 -r1.2 --- Eli_App.h 8 Jun 2007 17:32:49 -0000 1.1 +++ Eli_App.h 4 Aug 2008 14:14:45 -0000 1.2 @@ -83,6 +83,7 @@ void eli_app_gui_make(Eli_App * eap); void eli_app_gui_del(Eli_App * eap); +void eli_app_theme_change(Eli_App * eap, const char * theme); void eli_app_game_new(Eli_App * eap, const char * game); void eli_app_game_end(Eli_App * eap); =================================================================== RCS file: /cvs/e/e17/apps/elitaire/src/edje_frontend_game.cpp,v retrieving revision 1.4 retrieving revision 1.5 diff -u -3 -r1.4 -r1.5 --- edje_frontend_game.cpp 30 Jul 2008 23:45:36 -0000 1.4 +++ edje_frontend_game.cpp 4 Aug 2008 14:14:45 -0000 1.5 @@ -318,8 +318,7 @@ char * theme; if ((theme = ecore_config_theme_get("/theme/gui"))) { - /* FIXME: shouldn't we do here some thing? */ - //eli_app_theme_change(eap, theme); + eli_app_theme_change(eap, theme); edje_object_signal_emit(eef->gui, "theme,selected", "elitaire"); free(theme); } =================================================================== RCS file: /cvs/e/e17/apps/elitaire/src/eli_app.cpp,v retrieving revision 1.4 retrieving revision 1.5 diff -u -3 -r1.4 -r1.5 --- eli_app.cpp 30 Jul 2008 23:45:36 -0000 1.4 +++ eli_app.cpp 4 Aug 2008 14:14:45 -0000 1.5 @@ -108,6 +108,16 @@ eap->frontend->gui_del(eap); } +void eli_app_theme_change(Eli_App * eap, const char * theme) +{ + eli_app_gui_del(eap); + if (eap->theme.gui.current) + free(eap->theme.gui.current); + + eap->theme.gui.current = strdup(theme); + eli_app_gui_make(eap); +} + /* * game stuff */ ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs