Enlightenment CVS committal
Author : dj2
Project : e17
Module : libs/ewl
Dir : e17/libs/ewl/src/lib
Modified Files:
ewl_widget.c
Log Message:
- allow setting all of the pad or inset values with a single key. you can
override the default with a more specific key if desired.
===================================================================
RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_widget.c,v
retrieving revision 1.106
retrieving revision 1.107
diff -u -3 -r1.106 -r1.107
--- ewl_widget.c 15 Nov 2006 16:19:16 -0000 1.106
+++ ewl_widget.c 16 Nov 2006 16:43:29 -0000 1.107
@@ -2961,6 +2961,16 @@
/*
* Read in the padding values from the edje file
*/
+ key = edje_object_data_get(w->theme_object, "pad");
+ if (key) {
+ int val = atoi(key);
+
+ if (l) *l = val;
+ if (r) *r = val;
+ if (t) *t = val;
+ if (b) *b = val;
+ }
+
key = edje_object_data_get(w->theme_object, "pad/left");
if (key && l)
*l = atoi(key);
@@ -2992,6 +3002,16 @@
/*
* Read in the inset values from the edje file
*/
+ key = edje_object_data_get(w->theme_object, "inset");
+ if (key) {
+ int val = atoi(key);
+
+ if (l) *l = val;
+ if (r) *r = val;
+ if (t) *t = val;
+ if (b) *b = val;
+ }
+
key = edje_object_data_get(w->theme_object, "inset/left");
if (key && l)
*l = atoi(key);
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs