Enlightenment CVS committal

Author  : dj2
Project : e17
Module  : libs/ewl

Dir     : e17/libs/ewl/src/lib


Modified Files:
        ewl_theme.c ewl_widget.c ewl_widget.h 


Log Message:
- make ewl_widget_appearance_get only return what has been _set
- add ewl_widget_appearance_path_get to return the full widget path

===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/lib/ewl_theme.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -3 -r1.11 -r1.12
--- ewl_theme.c 20 Jul 2005 05:28:34 -0000      1.11
+++ ewl_theme.c 21 Jul 2005 04:02:35 -0000      1.12
@@ -396,7 +396,7 @@
        if (w) {
                char *tmp;
 
-               tmp = ewl_widget_appearance_get(w);
+               tmp = ewl_widget_appearance_path_get(w);
                if (tmp) {
                        snprintf(key, PATH_MAX, "%s/%s", tmp, k);
                        FREE(tmp);
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/lib/ewl_widget.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -3 -r1.11 -r1.12
--- ewl_widget.c        21 Jul 2005 00:47:58 -0000      1.11
+++ ewl_widget.c        21 Jul 2005 04:02:35 -0000      1.12
@@ -502,6 +502,20 @@
  */
 char *ewl_widget_appearance_get(Ewl_Widget * w)
 {
+       DENTER_FUNCTION(DLEVEL_STABLE);
+       DCHECK_PARAM_PTR_RET("w", w, NULL);
+
+       DRETURN_PTR((w->appearance ? strdup(w->appearance) : NULL), 
DLEVEL_STABLE);
+}
+
+/**
+ * @param w: the widget to retrieve the full appearance key
+ * @return Returns a pointer to the full appearance path string on success, 
NULL on
+ * failure.
+ * @brief Retrieve the appearance path key of the widget
+ */
+char *ewl_widget_appearance_path_get(Ewl_Widget * w)
+{
        char *ret = NULL, *tmp;
        int len;
 
@@ -509,7 +523,7 @@
        DCHECK_PARAM_PTR_RET("w", w, NULL);
 
        if (w->parent)
-               tmp = ewl_widget_appearance_get(w->parent);
+               tmp = ewl_widget_appearance_path_get(w->parent);
        else
                tmp = strdup("");
 
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/lib/ewl_widget.h,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -3 -r1.8 -r1.9
--- ewl_widget.h        17 Jul 2005 21:15:07 -0000      1.8
+++ ewl_widget.h        21 Jul 2005 04:02:35 -0000      1.9
@@ -162,6 +162,11 @@
 char           *ewl_widget_appearance_get(Ewl_Widget * w);
 
 /*
+ * Retrieve the full appearance string of the widget.
+ */
+char          *ewl_widget_appearance_path_get(Ewl_Widget * w);
+
+/*
  * Retrieve the last element of the appearance string of a widget.
  */
 char           *ewl_widget_appearance_single_get(Ewl_Widget * w);




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