Enlightenment CVS committal

Author  : pfritz
Project : e17
Module  : libs/ewl

Dir     : e17/libs/ewl/src/lib


Modified Files:
        ewl_text.c 


Log Message:
clip the text to the container's clip box instead to the fx_clip

===================================================================
RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_text.c,v
retrieving revision 1.193
retrieving revision 1.194
diff -u -3 -r1.193 -r1.194
--- ewl_text.c  5 Apr 2008 23:48:53 -0000       1.193
+++ ewl_text.c  7 Apr 2008 17:05:55 -0000       1.194
@@ -3286,8 +3286,13 @@
                ewl_text_context_release(ctx);
                FREE(fmt2);
 
-               if (w->fx_clip_box)
-                       evas_object_clip_set(t->textblock, w->fx_clip_box);
+               if (EWL_CONTAINER(w)->clip_box) {
+                       evas_object_clip_set(t->textblock, 
+                                       EWL_CONTAINER(w)->clip_box);
+                       evas_object_show(EWL_CONTAINER(w)->clip_box);
+               }
+               else
+                       DWARNING("Text does not have a clip box!");
 
                evas_object_pass_events_set(t->textblock, 1);
                evas_object_smart_member_add(t->textblock, w->smart_object);



-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Register now and save $200. Hurry, offer ends at 11:59 p.m., 
Monday, April 7! Use priority code J8TLD2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to