Enlightenment CVS committal Author : pfritz Project : e17 Module : libs/ewl
Dir : e17/libs/ewl/src/lib Modified Files: ewl_entry.c ewl_entry.h Log Message: one bit is enough =================================================================== RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_entry.c,v retrieving revision 1.76 retrieving revision 1.77 diff -u -3 -r1.76 -r1.77 --- ewl_entry.c 29 Jul 2007 00:02:08 -0000 1.76 +++ ewl_entry.c 2 Aug 2007 23:15:50 -0000 1.77 @@ -114,7 +114,7 @@ DCHECK_PARAM_PTR("e", e); DCHECK_TYPE("e", e, EWL_ENTRY_TYPE); - e->multiline = multiline; + e->multiline = !!multiline; DLEAVE_FUNCTION(DLEVEL_STABLE); } @@ -147,10 +147,10 @@ DCHECK_PARAM_PTR("e", e); DCHECK_TYPE("e", e, EWL_ENTRY_TYPE); - if (e->editable == editable) + if (e->editable == !!editable) DRETURN(DLEVEL_STABLE); - e->editable = editable; + e->editable = !!editable; if (e->editable) { =================================================================== RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_entry.h,v retrieving revision 1.27 retrieving revision 1.28 diff -u -3 -r1.27 -r1.28 --- ewl_entry.h 4 Mar 2007 00:52:01 -0000 1.27 +++ ewl_entry.h 2 Aug 2007 23:15:50 -0000 1.28 @@ -57,9 +57,9 @@ Ewl_Text text; /**< The Ewl_Text parent */ Ewl_Widget *cursor; /**< The cursor */ - unsigned int multiline; /**< Is the entry multi-line */ - unsigned int editable; /**< Is the entry editable */ - unsigned int in_select_mode; /**< Are we in select mode */ + unsigned int multiline:1; /**< Is the entry multi-line */ + unsigned int editable:1; /**< Is the entry editable */ + unsigned int in_select_mode:1; /**< Are we in select mode */ }; Ewl_Widget *ewl_entry_new(void); ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs