Enlightenment CVS committal

Author  : rbdpngn
Project : e17
Module  : libs/ewl

Dir     : e17/libs/ewl/src


Modified Files:
        ewl_textarea.c 


Log Message:
Fill in one of the textarea font calls. Lots more to go.

===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/ewl_textarea.c,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -3 -r1.26 -r1.27
--- ewl_textarea.c      17 May 2004 19:40:35 -0000      1.26
+++ ewl_textarea.c      18 May 2004 20:49:00 -0000      1.27
@@ -169,16 +169,37 @@
  */
 void ewl_text_color_set(Ewl_Text *ta, int r, int g, int b, int a)
 {
+       Ewl_Text_Op *op;
+
        DENTER_FUNCTION(DLEVEL_STABLE);
        DCHECK_PARAM_PTR("ta", ta);
 
+       op = ewl_text_op_color_new(ta, r, g, b, a);
+       ecore_list_append(ta->ops, op);
        if (REALIZED(ta))
-               etox_context_set_color(ta->context, r, g, b, a);
-       else {
-               Ewl_Text_Op *op;
-               op = ewl_text_op_color_new(ta, r, g, b, a);
-               ecore_list_append(ta->ops, op);
-       }
+               ewl_text_ops_apply(ta);
+
+       DLEAVE_FUNCTION(DLEVEL_STABLE);
+}
+
+/**
+ * @param ta: the text widget to change font
+ * @param font: the name of the font
+ * @param size: the size of the font
+ * @brief Changes the currently applied font of the text to specified values
+ * @return Returns no value.
+ */
+void ewl_text_font_set(Ewl_Text *ta, char *font, int size)
+{
+       Ewl_Text_Op *op;
+
+       DENTER_FUNCTION(DLEVEL_STABLE);
+       DCHECK_PARAM_PTR("ta", ta);
+
+       op = ewl_text_op_font_new(ta, font, size);
+       ecore_list_append(ta->ops, op);
+       if (REALIZED(ta))
+               ewl_text_ops_apply(ta);
 
        DLEAVE_FUNCTION(DLEVEL_STABLE);
 }




-------------------------------------------------------
This SF.Net email is sponsored by: SourceForge.net Broadband
Sign-up now for SourceForge Broadband and get the fastest
6.0/768 connection for only $19.95/mo for the first 3 months!
http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to