Enlightenment CVS committal

Author  : rephorm
Project : e17
Module  : apps/e

Dir     : e17/apps/e/src/bin


Modified Files:
        e_shelf.c 


Log Message:
fallback to default shelf style for frame styles that don't exist explicitly in 
the current shelf theme. (no need for everyone to re-implement the plain style 
every time)

===================================================================
RCS file: /cvs/e/e17/apps/e/src/bin/e_shelf.c,v
retrieving revision 1.38
retrieving revision 1.39
diff -u -3 -r1.38 -r1.39
--- e_shelf.c   31 Aug 2006 04:16:43 -0000      1.38
+++ e_shelf.c   1 Sep 2006 03:37:43 -0000       1.39
@@ -771,11 +771,19 @@
    
    es = data;
    o = edje_object_add(gcc->gadcon->evas);
+
    snprintf(buf, sizeof(buf), "e/shelf/%s/%s", es->style, style);
    if (!e_theme_edje_object_set(o, "base/theme/shelf", buf))
      {
-       evas_object_del(o);
-       return NULL;
+       /* if an inset style (e.g. plain) isn't implemented for a given
+        * shelf style, fall back to the default one. no need for every
+        * theme to implement the plain style */
+       snprintf(buf, sizeof(buf), "e/shelf/default/%s", style);
+       if (!e_theme_edje_object_set(o, "base/theme/shelf", buf))
+         {
+            evas_object_del(o);
+            return NULL;
+         }
      }
    snprintf(buf, sizeof(buf), "e,state,orientation,%s", 
_e_shelf_orient_string_get(es));
    edje_object_signal_emit(es->o_base, buf, "e");



-------------------------------------------------------------------------
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