e_lib_theme_set from Chady Kassouf
authorcodewarrior <codewarrior>
Mon, 1 Aug 2005 07:34:51 +0000 (07:34 +0000)
committercodewarrior <codewarrior@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 1 Aug 2005 07:34:51 +0000 (07:34 +0000)
SVN revision: 15980

src/lib/E_Lib.h
src/lib/e_main.c

index 251b421..626456b 100644 (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 */
index 2f65da2..643521e 100644 (file)
@@ -302,6 +302,21 @@ e_lib_theme_get(const char *category)
 }
 
 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)
 {
    char *tmp;