Enlightenment CVS committal

Author  : devilhorns
Project : e_modules
Module  : slideshow

Dir     : e_modules/slideshow


Modified Files:
        e_mod_main.c 


Log Message:
Remove e_lib dependency and use enlightenment_remote to set bg.

===================================================================
RCS file: /cvs/e/e_modules/slideshow/e_mod_main.c,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -3 -r1.30 -r1.31
--- e_mod_main.c        2 Jul 2006 19:06:10 -0000       1.30
+++ e_mod_main.c        9 Jul 2006 23:02:07 -0000       1.31
@@ -1,5 +1,4 @@
 #include <e.h>
-#include <E_Lib.h>
 #include <Ecore.h>
 #include <Ecore_File.h>
 #include "e_mod_main.h"
@@ -39,7 +38,6 @@
 static Slideshow *_slide_new(Evas *evas);
 static void _slide_free(Slideshow * ss);
 static int _slide_cb_check(void *data);
-static void _slide_get_display(Instance *inst);
 static void _slide_get_bg_count(void *data);
 static void _slide_set_bg(void *data, const char *bg);
 static void _slide_set_preview(void *data);
@@ -79,9 +77,6 @@
    inst->gcc = gcc;
    inst->slide_obj = o;
 
-   _slide_get_display(inst);
-   if (inst->display) e_lib_init(inst->display);
-
    evas_object_event_callback_add(o, EVAS_CALLBACK_MOUSE_DOWN, 
_slide_cb_mouse_down, inst);
    slide_config->instances = evas_list_append(slide_config->instances, inst);
 
@@ -429,42 +424,6 @@
 }
 
 static void
-_slide_get_display(Instance *inst)
-{
-   if (!inst) return;
-   if (inst->display) evas_stringshare_del(inst->display);
-
-   char *tmp = getenv("DISPLAY");
-
-   if (tmp) inst->display = evas_stringshare_add(tmp);
-   if (inst->display)
-     {
-        char *p;
-        char buf[1024];
-
-        p = strrchr(inst->display, ':');
-        if (!p)
-          {
-             snprintf(buf, sizeof(buf), "%s:0.0", inst->display);
-             evas_stringshare_del(inst->display);
-             inst->display = evas_stringshare_add(buf);
-          }
-        else
-          {
-             p = strrchr(p, '.');
-             if (!p)
-               {
-                  snprintf(buf, sizeof(buf), "%s.0", inst->display);
-                  evas_stringshare_del(inst->display);
-                  inst->display = evas_stringshare_add(buf);
-               }
-          }
-     }
-   else
-      inst->display = evas_stringshare_add(":0.0");
-}
-
-static void
 _slide_get_bg_count(void *data)
 {
    Instance *inst;
@@ -492,8 +451,8 @@
 
    inst = data;
    ci = _slide_config_item_get(inst->gcc->id);
-   snprintf(buf, sizeof(buf), "%s/%s", ci->dir, bg);
-   e_lib_background_set(buf);
+   snprintf(buf, sizeof(buf), "enlightenment_remote -default-bg-set %s/%s", 
ci->dir, bg);
+   system(buf);
 }
 
 static void




-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to