e_lib_theme_set from Chady Kassouf

SVN revision: 15980
This commit is contained in:
codewarrior 2005-08-01 07:34:51 +00:00 committed by codewarrior
parent 9831d5c9a4
commit d67105cf73
2 changed files with 16 additions and 0 deletions

View File

@ -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 */

View File

@ -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)
{