diff --git a/src/lib/E_Lib.h b/src/lib/E_Lib.h index 251b421d0..626456bad 100644 --- a/src/lib/E_Lib.h +++ b/src/lib/E_Lib.h @@ -98,6 +98,7 @@ extern "C" { EAPI void e_lib_desktop_background_del (const int con, const int zone, const int desk_x, const int desk_y); /* E current theme manipulation */ + EAPI void e_lib_theme_set (const char *category, const char *file); EAPI void e_lib_theme_get (const char *category); /* languages */ diff --git a/src/lib/e_main.c b/src/lib/e_main.c index 2f65da203..643521ec8 100644 --- a/src/lib/e_main.c +++ b/src/lib/e_main.c @@ -301,6 +301,21 @@ e_lib_theme_get(const char *category) free(tmp); } +void +e_lib_theme_set(const char *category, const char *file) +{ + char *tmp[2]; + if (!category && !file) + return; + + tmp[0] = strdup(category); + tmp[1] = strdup(file); + + _e_ipc_call(E_IPC_OP_THEME_SET, tmp); + free(tmp[0]); + free(tmp[1]); +} + void e_lib_language_set(const char *lang) {