Enlightenment CVS committal

Author  : dj2
Project : e17
Module  : libs/ewl

Dir     : e17/libs/ewl/src/lib


Modified Files:
        ewl_button.c 


Log Message:
- copy the save/open/close buttons from etk
- add a 'body' name to the hbox in the button to make themeing easier
- pad the stock items out from the button text

===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/lib/ewl_button.c,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -3 -r1.17 -r1.18
--- ewl_button.c        24 Oct 2005 14:31:27 -0000      1.17
+++ ewl_button.c        21 Nov 2005 05:12:29 -0000      1.18
@@ -81,6 +81,7 @@
 
        b->body = ewl_hbox_new();
        ewl_container_child_append(EWL_CONTAINER(b), b->body);
+       ewl_widget_appearance_set(b->body, "body");
        ewl_object_alignment_set(EWL_OBJECT(b->body), EWL_FLAG_ALIGN_CENTER);
        ewl_object_fill_policy_set(EWL_OBJECT(b->body), EWL_FLAG_FILL_VFILL);
        ewl_widget_internal_set(b->body, TRUE);
@@ -211,11 +212,9 @@
        DCHECK_PARAM_PTR("file", file);
        DCHECK_TYPE("b", b, "button");
 
-       if (b->image_object) {
+       if (b->image_object)
                ewl_widget_destroy(b->image_object);
 
-       }
-
        b->image_object = ewl_image_new();
        ewl_container_child_prepend(EWL_CONTAINER(b), b->image_object);
        ewl_image_file_set(EWL_IMAGE(b->image_object), file, key);




-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to