Enlightenment CVS committal

Author  : codewarrior
Project : e17
Module  : apps/e

Dir     : e17/apps/e/src/lib


Modified Files:
        E_Lib.h e_main.c 


Log Message:
patch from Chady Kassouf that adds that adds e_lib_theme_get() to E_Lib.h
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/e/src/lib/E_Lib.h,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- E_Lib.h     8 Jun 2005 20:43:46 -0000       1.2
+++ E_Lib.h     19 Jul 2005 07:07:23 -0000      1.3
@@ -24,6 +24,7 @@
 typedef struct _E_Response_Dirs_List   E_Response_Dirs_List;
 typedef struct _E_Response_Background_Get E_Response_Background_Get;
 typedef struct _E_Response_Language_Get E_Response_Language_Get;
+typedef struct _E_Response_Theme_Get E_Response_Theme_Get;
 
 struct _E_Response_Module_List
 {
@@ -48,6 +49,12 @@
    char   *file;
 };
 
+struct _E_Response_Theme_Get
+{
+   char   *file;
+   char   *category;
+};
+
 struct _E_Response_Language_Get
 {
    char   *lang;
@@ -56,6 +63,7 @@
 extern EAPI int E_RESPONSE_MODULE_LIST;
 extern EAPI int E_RESPONSE_BACKGROUND_GET;
 extern EAPI int E_RESPONSE_LANGUAGE_GET;
+extern EAPI int E_RESPONSE_THEME_GET;
 
 extern EAPI int E_RESPONSE_DATA_DIRS_LIST;
 extern EAPI int E_RESPONSE_IMAGE_DIRS_LIST;
@@ -87,6 +95,9 @@
    EAPI void         e_lib_background_set             (const char *bgfile);
    EAPI void         e_lib_background_get             (void);
 
+   /* E current theme manipulation */
+   EAPI void         e_lib_theme_get                  (const char *category);
+
    /* languages */
    EAPI void         e_lib_language_set               (const char *lang);
    EAPI void         e_lib_language_get               (void);
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/e/src/lib/e_main.c,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -3 -r1.24 -r1.25
--- e_main.c    8 Jun 2005 20:43:46 -0000       1.24
+++ e_main.c    19 Jul 2005 07:07:23 -0000      1.25
@@ -56,6 +56,7 @@
 int E_RESPONSE_MODULE_LIST = 0;
 int E_RESPONSE_BACKGROUND_GET = 0;
 int E_RESPONSE_LANGUAGE_GET = 0;
+int E_RESPONSE_THEME_GET = 0;
 
 int E_RESPONSE_DATA_DIRS_LIST = 0;
 int E_RESPONSE_IMAGE_DIRS_LIST = 0;
@@ -140,6 +141,7 @@
      {
        E_RESPONSE_MODULE_LIST = ecore_event_type_new();
        E_RESPONSE_BACKGROUND_GET = ecore_event_type_new();
+       E_RESPONSE_THEME_GET = ecore_event_type_new();
        E_RESPONSE_LANGUAGE_GET = ecore_event_type_new();
 
        E_RESPONSE_DATA_DIRS_LIST = ecore_event_type_new();
@@ -241,6 +243,18 @@
 }
 
 void
+e_lib_theme_get(const char *category)
+{
+   char *tmp;
+   if (!category)
+     return;
+
+   tmp = strdup(category);
+   _e_ipc_call(E_IPC_OP_THEME_GET, &tmp);
+   free(tmp);
+}
+
+void
 e_lib_language_set(const char *lang)
 {
    char *tmp;




-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to