Enlightenment CVS committal
Author : rbdpngn
Project : e17
Module : libs/ewl
Dir : e17/libs/ewl/src
Modified Files:
ewl_selectionbook.c ewl_widget.c
Log Message:
Added a few more widgets, changed the theme.db keys so that their effects are
more inline with the edje theme format, and to allow placing multiple widgets
theme data into a single edje.
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/ewl_selectionbook.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -3 -r1.8 -r1.9
--- ewl_selectionbook.c 19 Feb 2003 02:18:06 -0000 1.8
+++ ewl_selectionbook.c 18 Jul 2003 16:51:29 -0000 1.9
@@ -67,8 +67,6 @@
__ewl_selectionbook_realize, NULL);
ewl_callback_append(w, EWL_CALLBACK_DESTROY,
__ewl_selectionbook_destroy, NULL);
- ewl_theme_data_set_str(w, "/box/vertical/base/visible", "no");
-
s->tab_bar = ewl_selectionbar_new(w);
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/ewl_widget.c,v
retrieving revision 1.62
retrieving revision 1.63
diff -u -3 -r1.62 -r1.63
--- ewl_widget.c 16 Jul 2003 20:31:20 -0000 1.62
+++ ewl_widget.c 18 Jul 2003 16:51:29 -0000 1.63
@@ -720,6 +720,7 @@
int p_l = 0, p_r = 0, p_t = 0, p_b = 0;
char *i = NULL;
char *key = NULL;
+ char *group = NULL;
double width, height;
Ewl_Embed *emb = NULL;
@@ -753,16 +754,20 @@
* Calculate the length of the base key string, then allocate
* the memory for it plus room for placing /visible at the end.
*/
- len = strlen(w->appearance) + 6;
+ len = strlen(w->appearance) + 7;
key = NEW(char, len);
/*
* Retrieve the path to the theme file that will be loaded
- * return if no file to be loaded.
+ * return if no file to be loaded. Also get the group name in the
+ * theme file.
*/
- snprintf(key, len, "%s/base", w->appearance);
-
+ snprintf(key, len, "%s/file", w->appearance);
i = ewl_theme_image_get(w, key);
+
+ snprintf(key, len, "%s/group", w->appearance);
+ group = ewl_theme_data_get_str(w, key);
+
FREE(key);
if (i) {
@@ -774,8 +779,9 @@
* Load the theme object
*/
w->theme_object = edje_object_add(emb->evas);
- edje_object_file_set(w->theme_object, i, "EWL");
+ edje_object_file_set(w->theme_object, i, group);
FREE(i);
+ IF_FREE(group);
}
/*
-------------------------------------------------------
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
same time. Free trial click here: http://www.vmware.com/wl/offer/345/0
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs