Enlightenment CVS committal
Author : pfritz
Project : e17
Module : libs/ewl
Dir : e17/libs/ewl/src/lib
Modified Files:
ewl_progressbar.c
Log Message:
use a label instead of ewl_text
===================================================================
RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_progressbar.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -3 -r1.10 -r1.11
--- ewl_progressbar.c 11 Aug 2006 04:00:57 -0000 1.10
+++ ewl_progressbar.c 14 Sep 2006 18:33:23 -0000 1.11
@@ -65,8 +65,8 @@
ewl_container_child_append(EWL_CONTAINER(p), p->bar);
ewl_widget_show(p->bar);
- p->label = ewl_text_new();
- ewl_text_text_set(EWL_TEXT(p->label), NULL);
+ p->label = ewl_label_new();
+ ewl_label_text_set(EWL_LABEL(p->label), NULL);
ewl_widget_layer_priority_set(p->label, 1);
ewl_object_alignment_set(EWL_OBJECT(p->label), EWL_FLAG_ALIGN_CENTER);
ewl_container_child_append(EWL_CONTAINER(p), p->label);
@@ -98,7 +98,7 @@
p->auto_label = FALSE;
if (label)
- ewl_text_text_set(EWL_TEXT(p->label), label);
+ ewl_label_text_set(EWL_LABEL(p->label), label);
DLEAVE_FUNCTION(DLEVEL_STABLE);
}
@@ -124,7 +124,7 @@
if (format_string) {
snprintf (label, PATH_MAX, format_string, r->value, r->max_val);
- ewl_text_text_set(EWL_TEXT(p->label), label);
+ ewl_label_text_set(EWL_LABEL(p->label), label);
}
DLEAVE_FUNCTION(DLEVEL_STABLE);
@@ -143,7 +143,7 @@
DCHECK_TYPE("p", p, EWL_PROGRESSBAR_TYPE);
p->auto_label = FALSE;
- ewl_text_text_set(EWL_TEXT(p->label), "");
+ ewl_label_text_set(EWL_LABEL(p->label), "");
DLEAVE_FUNCTION(DLEVEL_STABLE);
}
@@ -238,7 +238,7 @@
*/
snprintf (c, sizeof (c), "%.0lf%%", (r->value /
(r->max_val - r->min_val)) * 100);
- ewl_text_text_set(EWL_TEXT(p->label), c);
+ ewl_label_text_set(EWL_LABEL(p->label), c);
}
DLEAVE_FUNCTION(DLEVEL_STABLE);
-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs