E CVS: libs/ewl pfritz
Enlightenment CVS committal Author : pfritz Project : e17 Module : libs/ewl Dir : e17/libs/ewl/src/bin/tests/password Modified Files: ewl_password_test.c Log Message: change password entry color to red (it doesn't work tho) === RCS file: /cvs/e/e17/libs/ewl/src/bin/tests/password/ewl_password_test.c,v retrieving revision 1.2 retrieving revision 1.3 diff -u -3 -r1.2 -r1.3 --- ewl_password_test.c 26 Feb 2008 04:24:12 - 1.2 +++ ewl_password_test.c 3 Apr 2008 17:04:31 - 1.3 @@ -40,6 +40,7 @@ ewl_widget_show(password[0]); password[1] = ewl_password_new(); + ewl_text_color_set(EWL_TEXT(password[1]), 255, 0, 0, 255); ewl_password_text_set(EWL_PASSWORD(password[1]), E W L ! ! !); ewl_object_padding_set(EWL_OBJECT(password[1]), 5, 5, 0, 0); ewl_container_child_append(box, password[1]); - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace ___ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs
E CVS: e kwo
Enlightenment CVS committal Author : kwo Project : e16 Module : e Dir : e16/e Modified Files: configure.in ChangeLog timestamp.h Log Message: Thu Apr 3 19:48:45 CEST 2008 (Kim) --- 0.16.8.13 0.03 --- Fix bug, avoid allocating excessively large arrays in window placement. Eliminate RRoot and VRoot. Rewrap more X stuff. Remove obsolete (I think) sgi _NO_ANSIMODE stuff. Cleanups. === RCS file: /cvs/e/e16/e/configure.in,v retrieving revision 1.256 retrieving revision 1.257 diff -u -3 -r1.256 -r1.257 --- configure.in30 Mar 2008 12:21:38 - 1.256 +++ configure.in3 Apr 2008 17:49:45 - 1.257 @@ -1,5 +1,5 @@ m4_define([pkg_version], [0.16.8.13]) -m4_define([pkg_revision], [0.02]) +m4_define([pkg_revision], [0.03]) m4_define([pkg_ver_rev], m4_ifdef([pkg_revision], [pkg_version-pkg_revision], [pkg_version])) m4_define([rpm_revision], m4_ifdef([pkg_revision], [pkg_revision], [1])) === RCS file: /cvs/e/e16/e/ChangeLog,v retrieving revision 1.254 retrieving revision 1.255 diff -u -3 -r1.254 -r1.255 --- ChangeLog 26 Mar 2008 23:22:04 - 1.254 +++ ChangeLog 3 Apr 2008 17:49:45 - 1.255 @@ -4721,3 +4721,14 @@ Eliminate redundant VRoot vars. Fix potential segv during window placement. Background scaling tweak (debian bug 471577). + +--- + +Thu Apr 3 19:48:45 CEST 2008 +(Kim) + +--- 0.16.8.13 0.03 --- +Fix bug, avoid allocating excessively large arrays in window placement. +Eliminate RRoot and VRoot. +Rewrap more X stuff. +Remove obsolete (I think) sgi _NO_ANSIMODE stuff. Cleanups. === RCS file: /cvs/e/e16/e/timestamp.h,v retrieving revision 1.50 retrieving revision 1.51 diff -u -3 -r1.50 -r1.51 --- timestamp.h 26 Mar 2008 23:22:04 - 1.50 +++ timestamp.h 3 Apr 2008 17:49:46 - 1.51 @@ -1 +1 @@ -#define E_CHECKOUT_DATE $Date: 2008/03/26 23:22:04 $ +#define E_CHECKOUT_DATE $Date: 2008/04/03 17:49:46 $ - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace ___ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs
E CVS: libs/edje raster
Enlightenment CVS committal Author : raster Project : e17 Module : libs/edje Dir : e17/libs/edje/src/lib Modified Files: edje_calc.c edje_callbacks.c edje_load.c edje_match.c Log Message: 1. cedrics patches for speedups. they breka nothing. 2. fix mouse in/out and other event flags stuff again. === RCS file: /cvs/e/e17/libs/edje/src/lib/edje_calc.c,v retrieving revision 1.123 retrieving revision 1.124 diff -u -3 -r1.123 -r1.124 --- edje_calc.c 31 Mar 2008 21:38:51 - 1.123 +++ edje_calc.c 3 Apr 2008 18:18:36 - 1.124 @@ -1114,6 +1114,61 @@ } } +static int +_edje_nitoa_rec(char *string, int len, unsigned int value) +{ + const char *array = 0123456789; + int length; + int quotient; + int modulo; + + if (len = 0) return 0; + if (value == 0) return 0; + + quotient = value / 10; + modulo = value % 10; + + length = _edje_nitoa_rec(string, len - 1, quotient); + + if (length + 1 len) return length; + + string[length] = array[modulo]; + + return length + 1; +} + +static int +_edje_nitoa(char *string, int len, int value) +{ + int length; + + if (len = 0) return 0; + if (len == 1) + { + *string = '\0'; + return 1; + } + + if (value 0) + { + *string = '-'; + + ++string; + --len; + } + + if (value == 0) + { + strncpy(string, 0, len); + return 1; + } + + length = _edje_nitoa_rec(string, len, value); + string[length] = '\0'; + + return length; +} + static void _edje_image_recalc_apply(Edje *ed, Edje_Real_Part *ep, Edje_Calc_Params *p3, Edje_Part_Description *chosen_desc, double pos) { @@ -1173,7 +1228,11 @@ } else { -snprintf(buf, sizeof(buf), images/%i, image_id); +/* Replace snprint(images/%i) == memcpy + itoa */ +#define IMAGES images/ +memcpy(buf, IMAGES, strlen(IMAGES)); +_edje_nitoa(buf + strlen(IMAGES), sizeof(buf) - strlen(IMAGES), image_id); + evas_object_image_file_set(ep-object, ed-file-path, buf); if (evas_object_image_load_error_get(ep-object) != EVAS_LOAD_ERROR_NONE) { @@ -1391,8 +1450,12 @@ (pf-color.g * pf-color.a) / 255, (pf-color.b * pf-color.a) / 255, pf-color.a); - if (pf-visible) evas_object_show(ep-object); - else evas_object_hide(ep-object); + if (!pf-visible) + { + evas_object_hide(ep-object); + break; + } + evas_object_show(ep-object); /* move and resize are needed for all previous object = no break here. */ case EDJE_PART_TYPE_SWALLOW: case EDJE_PART_TYPE_GROUP: @@ -1436,10 +1499,14 @@ //(pf-color.g * pf-color.a) / 255, //(pf-color.b * pf-color.a) / 255, //pf-color.a); -evas_object_move(ep-swallowed_object, ed-x + pf-x, ed-y + pf-y); -evas_object_resize(ep-swallowed_object, pf-w, pf-h); -if (pf-visible) evas_object_show(ep-swallowed_object); -else evas_object_hide(ep-swallowed_object); +if (pf-visible) + { + evas_object_show(ep-swallowed_object); + evas_object_move(ep-swallowed_object, ed-x + pf-x, ed-y + pf-y); + evas_object_resize(ep-swallowed_object, pf-w, pf-h); + } +else + evas_object_hide(ep-swallowed_object); } } === RCS file: /cvs/e/e17/libs/edje/src/lib/edje_callbacks.c,v retrieving revision 1.27 retrieving revision 1.28 diff -u -3 -r1.27 -r1.28 --- edje_callbacks.c1 Apr 2008 21:33:17 - 1.27 +++ edje_callbacks.c3 Apr 2008 18:18:36 - 1.28 @@ -34,7 +34,9 @@ ev = event_info; ed = data; rp = evas_object_data_get(obj, real_part); - if (!rp || !(rp-part-ignore_flags ev-event_flags)) return; + if ((!rp) || + ((ev-event_flags) + (!(rp-part-ignore_flags ev-event_flags return; _edje_emit(ed, mouse,in, rp-part-name); return; e = NULL; @@ -50,7 +52,9 @@ ev = event_info; ed = data; rp = evas_object_data_get(obj, real_part); - if (!rp || !(rp-part-ignore_flags ev-event_flags)) return; + if ((!rp) || + ((ev-event_flags) + (!(rp-part-ignore_flags ev-event_flags return; _edje_emit(ed, mouse,out, rp-part-name); return; e = NULL; @@ -75,7 +79,7 @@ _edje_ref(ed); _edje_freeze(ed); - if (!ignored) + if ((ev-event_flags) (!ignored)) { if (ev-flags EVAS_BUTTON_TRIPLE_CLICK) snprintf(buf,
E CVS: libs/edje raster
Enlightenment CVS committal Author : raster Project : e17 Module : libs/edje Dir : e17/libs/edje/src/lib Modified Files: edje_callbacks.c Log Message: oops fix logic. done. === RCS file: /cvs/e/e17/libs/edje/src/lib/edje_callbacks.c,v retrieving revision 1.28 retrieving revision 1.29 diff -u -3 -r1.28 -r1.29 --- edje_callbacks.c3 Apr 2008 18:18:36 - 1.28 +++ edje_callbacks.c3 Apr 2008 18:22:22 - 1.29 @@ -35,7 +35,7 @@ ed = data; rp = evas_object_data_get(obj, real_part); if ((!rp) || - ((ev-event_flags) + ((ev-event_flags) (!(rp-part-ignore_flags ev-event_flags return; _edje_emit(ed, mouse,in, rp-part-name); return; @@ -79,7 +79,7 @@ _edje_ref(ed); _edje_freeze(ed); - if ((ev-event_flags) (!ignored)) + if ((!ev-event_flags) || (!ignored)) { if (ev-flags EVAS_BUTTON_TRIPLE_CLICK) snprintf(buf, sizeof(buf), mouse,down,%i,triple, ev-button); @@ -191,7 +191,7 @@ _edje_ref(ed); _edje_freeze(ed); - if ((ev-event_flags) (!ignored)) + if ((!ev-event_flags) || (!ignored)) { snprintf(buf, sizeof(buf), mouse,up,%i, ev-button); _edje_emit(ed, buf, rp-part-name); @@ -253,7 +253,7 @@ ignored = rp-part-ignore_flags ev-event_flags; _edje_ref(ed); - if ((ev-event_flags) (!ignored)) + if ((!ev-event_flags) || (!ignored)) _edje_emit(ed, mouse,move, rp-part-name); if (rp-still_in) - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace ___ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs
E CVS: libs/evas raster
Enlightenment CVS committal Author : raster Project : e17 Module : libs/evas Dir : e17/libs/evas Modified Files: README.in Log Message: deps lists/ debugging too... === RCS file: /cvs/e/e17/libs/evas/README.in,v retrieving revision 1.10 retrieving revision 1.11 diff -u -3 -r1.10 -r1.11 --- README.in 24 Oct 2007 18:21:37 - 1.10 +++ README.in 3 Apr 2008 18:47:14 - 1.11 @@ -4,24 +4,17 @@ that can draw anti-aliased text, smooth super and sub-sampled scaled images, alpha-blend objects much and more. --- -Requires: +Requirements: +- - freetype 2.1.7 and higher (I want to make this optional) +Must: + libc libm freetype2.1.9+ -Optional: +Recommended: + libX11 libXext libXrender fontconfig libpng libjpeg eet libpthread - X11R6 - XCB - DirectFB - SDL - OpenGL (underway at the moment) - Linux - Qtopia - libpng - libjpeg - libeet - libedb +Optional: + XCB SDL OpenGL Qtopia librsvg libtiff libgif edb DirectFB -- Evas as of 0.9.9 has a new (and incompatible) API. Why? It's much cleaner - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace ___ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs
E CVS: libs/ecore raster
Enlightenment CVS committal Author : raster Project : e17 Module : libs/ecore Dir : e17/libs/ecore Modified Files: README.in Log Message: deps lists/ debugging too... === RCS file: /cvs/e/e17/libs/ecore/README.in,v retrieving revision 1.1 retrieving revision 1.2 diff -u -3 -r1.1 -r1.2 --- README.in 10 Mar 2005 15:19:30 - 1.1 +++ README.in 3 Apr 2008 18:47:14 - 1.2 @@ -1,5 +1,18 @@ Ecore @VERSION@ +Requirements: +- + +Must: + libc libm + +Recommended: + libX11 libXext libXcursor libXprint libXinerama libXrandr libXss libXrender + libXcomposite libXfixes libXdamage libXdpms libXtest OpenSSL CURL + +Optional: + XCB SDL DirectFB + Ecore is the event/X abstraction layer that makes doing selections, Xdnd, general X stuff, event loops, timeouts and idle handlers fast, optimized, and convenient. It's a separate library so anyone can make - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace ___ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs
E CVS: libs/e_dbus raster
Enlightenment CVS committal Author : raster Project : e17 Module : libs/e_dbus Dir : e17/libs/e_dbus Modified Files: README Log Message: deps lists/ debugging too... === RCS file: /cvs/e/e17/libs/e_dbus/README,v retrieving revision 1.1 retrieving revision 1.2 diff -u -3 -r1.1 -r1.2 --- README 29 Oct 2007 02:20:47 - 1.1 +++ README 3 Apr 2008 18:47:14 - 1.2 @@ -1,5 +1,11 @@ e_dbus v0.01 +Requirements: +- + +Must: + libc libdbus ecore + This is the start of some basic convenience wrappers around dbus to ease integrating dbus with EFL based applications. When using e_dbus, direct use of the low level dbus api is still heavily required for processing messages. - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace ___ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs
E CVS: apps/e raster
Enlightenment CVS committal Author : raster Project : e17 Module : apps/e Dir : e17/apps/e/src/bin Modified Files: e_actions.c e_bindings.c Log Message: deps lists/ debugging too... === RCS file: /cvs/e/e17/apps/e/src/bin/e_actions.c,v retrieving revision 1.113 retrieving revision 1.114 diff -u -3 -r1.113 -r1.114 --- e_actions.c 12 Mar 2008 10:05:19 - 1.113 +++ e_actions.c 3 Apr 2008 18:47:13 - 1.114 @@ -1925,7 +1925,8 @@ bd = (E_Border *)obj; if ((bd-lock_user_size) || (bd-shaded) || (bd-shading) || (bd-fullscreen) || - ((bd-maximized == E_MAXIMIZE_FULLSCREEN) (!e_config-allow_manip))) + ((bd-maximized == E_MAXIMIZE_FULLSCREEN) +(!e_config-allow_manip))) return; if (bd-zone) man = bd-zone-container-manager; === RCS file: /cvs/e/e17/apps/e/src/bin/e_bindings.c,v retrieving revision 1.35 retrieving revision 1.36 diff -u -3 -r1.35 -r1.36 --- e_bindings.c14 Dec 2006 23:38:33 - 1.35 +++ e_bindings.c3 Apr 2008 18:47:13 - 1.36 @@ -59,6 +59,7 @@ { char params[32]; snprintf(params, sizeof(params), resize_%s, eb-params); +printf(## ADD mouse,in + mouse,out\n); e_bindings_signal_add(eb-context, mouse,in, eb-source, eb-modifiers, eb-any_mod, pointer_resize_push, params); e_bindings_signal_add(eb-context, mouse,out, eb-source, eb-modifiers, - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace ___ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs
E CVS: libs/edje raster
Enlightenment CVS committal Author : raster Project : e17 Module : libs/edje Dir : e17/libs/edje Modified Files: README Log Message: deps lists/ debugging too... === RCS file: /cvs/e/e17/libs/edje/README,v retrieving revision 1.11 retrieving revision 1.12 diff -u -3 -r1.11 -r1.12 --- README 11 Nov 2005 06:49:57 - 1.11 +++ README 3 Apr 2008 18:47:14 - 1.12 @@ -1,5 +1,11 @@ Edje 0.5.0 +Requirements: +- + +Must: + libc libm eet ecore ecore-evas ecore-job ecore-file embryo evas + A graphical layout and animation library for animated resizable, compressed and scalable themes. - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace ___ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs
E CVS: apps/e raster
Enlightenment CVS committal Author : raster Project : e17 Module : apps/e Dir : e17/apps/e Modified Files: README Log Message: deps lists/ debugging too... === RCS file: /cvs/e/e17/apps/e/README,v retrieving revision 1.15 retrieving revision 1.16 diff -u -3 -r1.15 -r1.16 --- README 19 Apr 2007 18:51:21 - 1.15 +++ README 3 Apr 2008 18:47:13 - 1.16 @@ -1,5 +1,18 @@ Enlightenment 0.17.0 - IN DEVELOPMENT... not a RELEASE. +Requirements: +- + +Must: + libc libm libX11 libXext evas ecore ecoreevas ecore-file ecore-ipc ecore-con + ecore-job ecore-imf ecore-img-evas edje eet embryo efreet efreet-mime + edbus ecore-txt + [png loader in evas, jpeg loader in evas, eet loader in evas, software_x11 + engine in evas, buffer engine in evas] + +Recommended: + libpam [xrender engine in evas] + NOTE: Users of DR16 will need to rename the $prefix/bin/enlightenment file prior to installing DR17 or it will be overwritten. @@ -9,16 +22,6 @@ ./configure --prefix=/usr/local/e17 You will, as usual need to add the subsequent bin dir to your $PATH etc. - -PREREQUISITES: - -The following Enlightenment Foundation Libraries are required by e17: - * eet - * evas - * ecore - * embryo - * edje - * efreet NOTES: - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace ___ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs
E CVS: libs/eet raster
Enlightenment CVS committal Author : raster Project : e17 Module : libs/eet Dir : e17/libs/eet Modified Files: README.in Log Message: deps lists/ debugging too... === RCS file: /cvs/e/e17/libs/eet/README.in,v retrieving revision 1.6 retrieving revision 1.7 diff -u -3 -r1.6 -r1.7 --- README.in 28 Mar 2008 14:37:29 - 1.6 +++ README.in 3 Apr 2008 18:47:14 - 1.7 @@ -1,5 +1,10 @@ Eet @VERSION@ +Requirements: +- +Must: + libc libm zlib libjpeg + ** *** *** THIS IS AN ALPHA RELEASE - PLEASE REPORT ANY PROBLEMS TO: - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace ___ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs
E CVS: libs/efreet raster
Enlightenment CVS committal Author : raster Project : e17 Module : libs/efreet Dir : e17/libs/efreet Modified Files: README Log Message: deps lists/ debugging too... === RCS file: /cvs/e/e17/libs/efreet/README,v retrieving revision 1.1 retrieving revision 1.2 diff -u -3 -r1.1 -r1.2 --- README 9 Feb 2007 08:18:20 - 1.1 +++ README 3 Apr 2008 18:47:14 - 1.2 @@ -1,5 +1,12 @@ Efreet -- + +Requirements: +- + +Must: + libc ecore ecore-file + An implementation of several specifications from freedesktop.org intended for use in Enlightenment DR17 (e17) and other applications using the Enlightenment Foundation Libraries (EFL). Currently, the following specifications are included: o Base Directory o Desktop Entry - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace ___ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs
E CVS: libs/embryo raster
Enlightenment CVS committal Author : raster Project : e17 Module : libs/embryo Dir : e17/libs/embryo Modified Files: README.in Log Message: deps lists/ debugging too... === RCS file: /cvs/e/e17/libs/embryo/README.in,v retrieving revision 1.2 retrieving revision 1.3 diff -u -3 -r1.2 -r1.3 --- README.in 15 Sep 2006 21:53:45 - 1.2 +++ README.in 3 Apr 2008 18:47:14 - 1.3 @@ -1,5 +1,11 @@ Embryo @VERSION@ +Requirements: +- + +Must: + libc libm + WARNING: gcc compatibility!!! There seems to be some bug (or disagreement) between embryo and gcc 3.2.x where IEEE floating point format encoding does not agree with embryo's own - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace ___ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs
E CVS: slideshow devilhorns
Enlightenment CVS committal Author : devilhorns Project : e_modules Module : slideshow Dir : e_modules/slideshow Modified Files: e_mod_config.c Log Message: Patch from Viktor Kojouharov to add a radio option for setting wallpaper on the current screen. === RCS file: /cvs/e/e_modules/slideshow/e_mod_config.c,v retrieving revision 1.35 retrieving revision 1.36 diff -u -3 -r1.35 -r1.36 --- e_mod_config.c 12 Nov 2007 07:58:34 - 1.35 +++ e_mod_config.c 3 Apr 2008 18:38:52 - 1.36 @@ -114,6 +114,8 @@ e_widget_framelist_object_append (of, ob); ob = e_widget_radio_add(evas, D_(Set wallpaper on current desktop), 0, rg); e_widget_framelist_object_append (of, ob); + ob = e_widget_radio_add(evas, D_(Set wallpaper on current screen), 2, rg); + e_widget_framelist_object_append (of, ob); if(ecore_x_xinerama_screen_count_get() 1) { ob = e_widget_radio_add(evas, D_(Set wallpaper on current monitor (Xinerama support)), 2, rg); - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace ___ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs
E CVS: apps/e pfritz
Enlightenment CVS committal Author : pfritz Project : e17 Module : apps/e Dir : e17/apps/e Modified Files: README Log Message: typo === RCS file: /cvs/e/e17/apps/e/README,v retrieving revision 1.16 retrieving revision 1.17 diff -u -3 -r1.16 -r1.17 --- README 3 Apr 2008 18:47:13 - 1.16 +++ README 3 Apr 2008 19:05:21 - 1.17 @@ -4,7 +4,7 @@ - Must: - libc libm libX11 libXext evas ecore ecoreevas ecore-file ecore-ipc ecore-con + libc libm libX11 libXext evas ecore ecore-evas ecore-file ecore-ipc ecore-con ecore-job ecore-imf ecore-img-evas edje eet embryo efreet efreet-mime edbus ecore-txt [png loader in evas, jpeg loader in evas, eet loader in evas, software_x11 - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace ___ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs
E CVS: libs/eet doursse
Enlightenment CVS committal Author : doursse Project : e17 Module : libs/eet Dir : e17/libs/eet Modified Files: README.in Log Message: add Windows requirement, remove trailing spaces === RCS file: /cvs/e/e17/libs/eet/README.in,v retrieving revision 1.7 retrieving revision 1.8 diff -u -3 -r1.7 -r1.8 --- README.in 3 Apr 2008 18:47:14 - 1.7 +++ README.in 3 Apr 2008 19:17:50 - 1.8 @@ -4,6 +4,7 @@ - Must: libc libm zlib libjpeg + Windows: evil ** *** @@ -34,12 +35,12 @@ make (do this as root unless you are installing in your users directories): make install - + -- BUILDING PACKAGES: RPM: To build rpm packages: - + sudo rpm -ta @[EMAIL PROTECTED]@[EMAIL PROTECTED] You will find rpm packages in your system /usr/src/redhat/* dirs (note you may - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace ___ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs
E CVS: libs/edje raster
Enlightenment CVS committal Author : raster Project : e17 Module : libs/edje Dir : e17/libs/edje/src/lib Modified Files: edje_calc.c edje_load.c edje_match.c Log Message: actually. these patches broke illume! aaak! revert.! === RCS file: /cvs/e/e17/libs/edje/src/lib/edje_calc.c,v retrieving revision 1.124 retrieving revision 1.125 diff -u -3 -r1.124 -r1.125 --- edje_calc.c 3 Apr 2008 18:18:36 - 1.124 +++ edje_calc.c 3 Apr 2008 19:27:53 - 1.125 @@ -1114,61 +1114,6 @@ } } -static int -_edje_nitoa_rec(char *string, int len, unsigned int value) -{ - const char *array = 0123456789; - int length; - int quotient; - int modulo; - - if (len = 0) return 0; - if (value == 0) return 0; - - quotient = value / 10; - modulo = value % 10; - - length = _edje_nitoa_rec(string, len - 1, quotient); - - if (length + 1 len) return length; - - string[length] = array[modulo]; - - return length + 1; -} - -static int -_edje_nitoa(char *string, int len, int value) -{ - int length; - - if (len = 0) return 0; - if (len == 1) - { - *string = '\0'; - return 1; - } - - if (value 0) - { - *string = '-'; - - ++string; - --len; - } - - if (value == 0) - { - strncpy(string, 0, len); - return 1; - } - - length = _edje_nitoa_rec(string, len, value); - string[length] = '\0'; - - return length; -} - static void _edje_image_recalc_apply(Edje *ed, Edje_Real_Part *ep, Edje_Calc_Params *p3, Edje_Part_Description *chosen_desc, double pos) { @@ -1228,11 +1173,7 @@ } else { -/* Replace snprint(images/%i) == memcpy + itoa */ -#define IMAGES images/ -memcpy(buf, IMAGES, strlen(IMAGES)); -_edje_nitoa(buf + strlen(IMAGES), sizeof(buf) - strlen(IMAGES), image_id); - +snprintf(buf, sizeof(buf), images/%i, image_id); evas_object_image_file_set(ep-object, ed-file-path, buf); if (evas_object_image_load_error_get(ep-object) != EVAS_LOAD_ERROR_NONE) { @@ -1450,12 +1391,8 @@ (pf-color.g * pf-color.a) / 255, (pf-color.b * pf-color.a) / 255, pf-color.a); - if (!pf-visible) - { - evas_object_hide(ep-object); - break; - } - evas_object_show(ep-object); + if (pf-visible) evas_object_show(ep-object); + else evas_object_hide(ep-object); /* move and resize are needed for all previous object = no break here. */ case EDJE_PART_TYPE_SWALLOW: case EDJE_PART_TYPE_GROUP: @@ -1499,14 +1436,10 @@ //(pf-color.g * pf-color.a) / 255, //(pf-color.b * pf-color.a) / 255, //pf-color.a); -if (pf-visible) - { - evas_object_show(ep-swallowed_object); - evas_object_move(ep-swallowed_object, ed-x + pf-x, ed-y + pf-y); - evas_object_resize(ep-swallowed_object, pf-w, pf-h); - } -else - evas_object_hide(ep-swallowed_object); +evas_object_move(ep-swallowed_object, ed-x + pf-x, ed-y + pf-y); +evas_object_resize(ep-swallowed_object, pf-w, pf-h); +if (pf-visible) evas_object_show(ep-swallowed_object); +else evas_object_hide(ep-swallowed_object); } } === RCS file: /cvs/e/e17/libs/edje/src/lib/edje_load.c,v retrieving revision 1.122 retrieving revision 1.123 diff -u -3 -r1.122 -r1.123 --- edje_load.c 3 Apr 2008 18:18:36 - 1.122 +++ edje_load.c 3 Apr 2008 19:27:53 - 1.123 @@ -1002,24 +1002,14 @@ static void _cb_signal_repeat(void *data, Evas_Object *obj, const char *signal, const char *source) { - Evas_Object *parent; - Edje*ed; - char new_src[4096]; /* XXX is this max reasonable? */ - int length_parent; - int length_source; + Evas_Object *parent; + Edje *ed; + char new_src[4096]; /* XXX is this max reasonable? */ parent = data; ed = _edje_fetch(obj); if (!ed) return; - /* Replace snprint(%s%c%s) == memcpy + *new_src + memcat */ - length_parent = strlen(ed-parent); - length_source = strlen(source); - if (length_source + length_parent + 2 sizeof(new_src)) - return ; - - memcpy(new_src, ed-parent, length_parent); - new_src[length_parent] = EDJE_PART_PATH_SEPARATOR; - memcpy(new_src + length_parent + 1, source, length_source + 1); - + snprintf(new_src, sizeof(new_src), %s%c%s, ed-parent, +EDJE_PART_PATH_SEPARATOR,
E CVS: libs/eet kwo
Enlightenment CVS committal Author : kwo Project : e17 Module : libs/eet Dir : e17/libs/eet/src/lib Modified Files: eet_image.c Log Message: Add netinet/in.h for htonl(). === RCS file: /cvs/e/e17/libs/eet/src/lib/eet_image.c,v retrieving revision 1.20 retrieving revision 1.21 diff -u -3 -r1.20 -r1.21 --- eet_image.c 28 Mar 2008 17:29:22 - 1.20 +++ eet_image.c 3 Apr 2008 19:29:55 - 1.21 @@ -23,6 +23,10 @@ void *alloca (size_t); #endif +#ifdef HAVE_NETINET_IN_H +# include netinet/in.h +#endif + #include stdio.h #include string.h #include zlib.h - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace ___ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs
E CVS: libs/eet kwo
Enlightenment CVS committal Author : kwo Project : e17 Module : libs/eet Dir : e17/libs/eet/src/lib Modified Files: eet_lib.c Log Message: Add unistd.h for unlink(), comment out unused code. === RCS file: /cvs/e/e17/libs/eet/src/lib/eet_lib.c,v retrieving revision 1.99 retrieving revision 1.100 diff -u -3 -r1.99 -r1.100 --- eet_lib.c 29 Mar 2008 07:28:18 - 1.99 +++ eet_lib.c 3 Apr 2008 19:30:08 - 1.100 @@ -32,6 +32,7 @@ #include string.h #include fnmatch.h #include fcntl.h +#include unistd.h #include zlib.h #ifdef HAVE_NETINET_IN_H @@ -172,7 +173,9 @@ static voideet_cache_add(Eet_File *ef, Eet_File ***cache, int *cache_num, int *cache_alloc); static voideet_cache_del(Eet_File *ef, Eet_File ***cache, int *cache_num, int *cache_alloc); static int eet_string_match(const char *s1, const char *s2); +#if 0 /* Unused */ static Eet_Error eet_flush(Eet_File *ef); +#endif static Eet_Error eet_flush2(Eet_File *ef); static Eet_File_Node *find_node_by_name(Eet_File *ef, const char *name); static int read_data_from_disk(Eet_File *ef, Eet_File_Node *efn, void *buf, int len); @@ -521,6 +524,7 @@ return error; } +#if 0 /* Unused */ /* flush out writes to an eet file */ static Eet_Error eet_flush(Eet_File *ef) @@ -640,6 +644,7 @@ ef-fp = NULL; return EET_ERROR_WRITE_ERROR; } +#endif EAPI int eet_init(void) @@ -1084,6 +1089,7 @@ return NULL; } +#if 0 /* No prototype */ EAPI Eet_File * eet_memopen_read(const void *data, size_t size) { @@ -1110,6 +1116,7 @@ return eet_internal_read(ef); } +#endif EAPI Eet_File * eet_open(const char *file, Eet_File_Mode mode) - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace ___ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs
E CVS: libs/eet kwo
Enlightenment CVS committal Author : kwo Project : e17 Module : libs/eet Dir : e17/libs/eet/src/lib Modified Files: eet_utils.c Log Message: Add missing headers. === RCS file: /cvs/e/e17/libs/eet/src/lib/eet_utils.c,v retrieving revision 1.7 retrieving revision 1.8 diff -u -3 -r1.7 -r1.8 --- eet_utils.c 8 Mar 2008 07:28:12 - 1.7 +++ eet_utils.c 3 Apr 2008 19:30:18 - 1.8 @@ -5,6 +5,9 @@ #include stdio.h #include math.h +#include Eet.h +#include Eet_private.h + int _eet_hash_gen(const char *key, int hash_size) { - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace ___ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs
E CVS: libs/eet doursse
Enlightenment CVS committal Author : doursse Project : e17 Module : libs/eet Dir : e17/libs/eet/src/lib Modified Files: eet_data.c Log Message: add unsued attribute when needed === RCS file: /cvs/e/e17/libs/eet/src/lib/eet_data.c,v retrieving revision 1.69 retrieving revision 1.70 diff -u -3 -r1.69 -r1.70 --- eet_data.c 28 Mar 2008 17:17:43 - 1.69 +++ eet_data.c 3 Apr 2008 19:47:07 - 1.70 @@ -6,6 +6,12 @@ # include config.h #endif +#if HAVE___ATTRIBUTE__ +#define __UNUSED__ __attribute__((unused)) +#else +#define __UNUSED__ +#endif + #include stdio.h #include string.h #include math.h @@ -243,7 +249,7 @@ /* CHAR TYPE */ static int -eet_data_get_char(const Eet_Dictionary *ed, const void *src, const void *src_end, void *dst) +eet_data_get_char(const Eet_Dictionary *ed __UNUSED__, const void *src, const void *src_end, void *dst) { char *s, *d; @@ -256,7 +262,7 @@ } static void * -eet_data_put_char(Eet_Dictionary *ed, const void *src, int *size_ret) +eet_data_put_char(Eet_Dictionary *ed __UNUSED__, const void *src, int *size_ret) { char *s, *d; @@ -271,7 +277,7 @@ /* SHORT TYPE */ static int -eet_data_get_short(const Eet_Dictionary *ed, const void *src, const void *src_end, void *dst) +eet_data_get_short(const Eet_Dictionary *ed __UNUSED__, const void *src, const void *src_end, void *dst) { short *d; @@ -283,7 +289,7 @@ } static void * -eet_data_put_short(Eet_Dictionary *ed, const void *src, int *size_ret) +eet_data_put_short(Eet_Dictionary *ed __UNUSED__, const void *src, int *size_ret) { short *s, *d; @@ -298,7 +304,7 @@ /* INT TYPE */ static int -eet_data_get_int(const Eet_Dictionary *ed, const void *src, const void *src_end, void *dst) +eet_data_get_int(const Eet_Dictionary *ed __UNUSED__, const void *src, const void *src_end, void *dst) { int *d; @@ -310,7 +316,7 @@ } static void * -eet_data_put_int(Eet_Dictionary *ed, const void *src, int *size_ret) +eet_data_put_int(Eet_Dictionary *ed __UNUSED__, const void *src, int *size_ret) { int *s, *d; @@ -325,7 +331,7 @@ /* LONG LONG TYPE */ static int -eet_data_get_long_long(const Eet_Dictionary *ed, const void *src, const void *src_end, void *dst) +eet_data_get_long_long(const Eet_Dictionary *ed __UNUSED__, const void *src, const void *src_end, void *dst) { unsigned long long *d; @@ -337,7 +343,7 @@ } static void * -eet_data_put_long_long(Eet_Dictionary *ed, const void *src, int *size_ret) +eet_data_put_long_long(Eet_Dictionary *ed __UNUSED__, const void *src, int *size_ret) { unsigned long long *s, *d; @@ -416,13 +422,13 @@ /* ALWAYS INLINED STRING TYPE */ static int -eet_data_get_istring(const Eet_Dictionary *ed, const void *src, const void *src_end, void *dst) +eet_data_get_istring(const Eet_Dictionary *ed __UNUSED__, const void *src, const void *src_end, void *dst) { return eet_data_get_string(NULL, src, src_end, dst); } static void * -eet_data_put_istring(Eet_Dictionary *ed, const void *src, int *size_ret) +eet_data_put_istring(Eet_Dictionary *ed __UNUSED__, const void *src, int *size_ret) { return eet_data_put_string(NULL, src, size_ret); } @@ -1222,7 +1228,7 @@ } static int -eet_data_descriptor_encode_hash_cb(void *hash, const char *key, void *hdata, void *fdata) +eet_data_descriptor_encode_hash_cb(void *hash __UNUSED__, const char *key, void *hdata, void *fdata) { Eet_Dictionary *ed; Eet_Data_Encode_Hash_Info*edehi; - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace ___ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs
E CVS: libs/eet doursse
Enlightenment CVS committal Author : doursse Project : e17 Module : libs/eet Dir : e17/libs/eet Modified Files: configure.in Log Message: add unsued attribute when needed === RCS file: /cvs/e/e17/libs/eet/configure.in,v retrieving revision 1.89 retrieving revision 1.90 diff -u -3 -r1.89 -r1.90 --- configure.in29 Mar 2008 08:27:44 - 1.89 +++ configure.in3 Apr 2008 19:47:07 - 1.90 @@ -28,8 +28,6 @@ version_info=`expr $VMAJ + $VMIN`:$VMIC:$VMIN AC_SUBST(version_info) -AC_FUNC_ALLOCA - WIN32_CFLAGS= WIN32_LIBS= create_shared_lib= @@ -51,6 +49,24 @@ AC_SUBST(WIN32_CFLAGS) AC_SUBST(WIN32_LIBS) AC_SUBST(create_shared_lib) + +dnl Checking for __attribute__ support +AC_MSG_CHECKING([for __attribute__]) +AC_CACHE_VAL(have___attribute__, + [ +AC_TRY_COMPILE([#include stdlib.h], + [int func(int x); int foo(int x __attribute__ ((unused))) { exit(1); }], + [have___attribute__=yes], + [have___attribute__=no]) + ] +) + +if test x${have___attribute__} = xyes ; then + AC_DEFINE(HAVE___ATTRIBUTE__, 1, [Define to 1 if your compiler has __attribute__]) +fi +AC_MSG_RESULT(${have___attribute__}) + +AC_FUNC_ALLOCA AC_CHECK_HEADER(zlib.h,, AC_MSG_ERROR(Cannot find zlib.h. Make sure your CFLAGS environment variable contains include lines for the location of this file)) AC_CHECK_HEADER(jpeglib.h,, AC_MSG_ERROR(Cannot find jpeglib.h. Make sure your CFLAGS environment variable contains include lines for the location of this file)) - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace ___ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs
E CVS: libs/edje cmarcelo
Enlightenment CVS committal Author : cmarcelo Project : e17 Module : libs/edje Dir : e17/libs/edje/src/lib Modified Files: edje_callbacks.c Log Message: Fix mouse_in/out flag checking. If we have event_flags and they match any bit in ignore_flags, return. === RCS file: /cvs/e/e17/libs/edje/src/lib/edje_callbacks.c,v retrieving revision 1.29 retrieving revision 1.30 diff -u -3 -r1.29 -r1.30 --- edje_callbacks.c3 Apr 2008 18:22:22 - 1.29 +++ edje_callbacks.c4 Apr 2008 00:07:07 - 1.30 @@ -34,9 +34,9 @@ ev = event_info; ed = data; rp = evas_object_data_get(obj, real_part); - if ((!rp) || + if ((!rp) || ((ev-event_flags) - (!(rp-part-ignore_flags ev-event_flags return; + (rp-part-ignore_flags ev-event_flags))) return; _edje_emit(ed, mouse,in, rp-part-name); return; e = NULL; @@ -52,9 +52,9 @@ ev = event_info; ed = data; rp = evas_object_data_get(obj, real_part); - if ((!rp) || - ((ev-event_flags) - (!(rp-part-ignore_flags ev-event_flags return; + if ((!rp) || + ((ev-event_flags) + (rp-part-ignore_flags ev-event_flags))) return; _edje_emit(ed, mouse,out, rp-part-name); return; e = NULL; - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace ___ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs
E CVS: libs/ewl pfritz
Enlightenment CVS committal Author : pfritz Project : e17 Module : libs/ewl Dir : e17/libs/ewl/src/lib Modified Files: Ewl.h Makefile.am ewl_entry.c ewl_entry.h ewl_text.c ewl_text.h Log Message: *API BREAK* replace ewl_password by ewl_text_obscure_set() === RCS file: /cvs/e/e17/libs/ewl/src/lib/Ewl.h,v retrieving revision 1.36 retrieving revision 1.37 diff -u -3 -r1.36 -r1.37 --- Ewl.h 27 Feb 2008 03:52:45 - 1.36 +++ Ewl.h 4 Apr 2008 00:25:49 - 1.37 @@ -46,7 +46,6 @@ #include ewl_colorpicker.h #include ewl_colordialog.h -#include ewl_password.h #include ewl_range.h #include ewl_seeker.h #include ewl_scrollbar.h === RCS file: /cvs/e/e17/libs/ewl/src/lib/Makefile.am,v retrieving revision 1.61 retrieving revision 1.62 diff -u -3 -r1.61 -r1.62 --- Makefile.am 14 Dec 2007 08:44:26 - 1.61 +++ Makefile.am 4 Apr 2008 00:25:49 - 1.62 @@ -70,7 +70,6 @@ ewl_object.h \ ewl_overlay.h \ ewl_paned.h \ - ewl_password.h \ ewl_popup.h \ ewl_progressbar.h \ ewl_radiobutton.h \ @@ -154,7 +153,6 @@ ewl_object.c \ ewl_overlay.c \ ewl_paned.c \ - ewl_password.c \ ewl_popup.c \ ewl_progressbar.c \ ewl_radiobutton.c \ @@ -196,6 +194,7 @@ libewl_la_LIBADD = $(GCOV_LIBS) @EMOTION_LIBS@ @EPSILON_LIBS@ @EFREET_LIBS@ @EDJE_LIBS@ @ECORE_LIBS@ @EVAS_LIBS@ -lm libewl_la_LDFLAGS = @create_shared_lib@ -version-info @INTERFACE_VERSION@ +libewl_la_LIBTOOLFLAGS = clean-local: @rm -f *.gcno === RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_entry.c,v retrieving revision 1.82 retrieving revision 1.83 diff -u -3 -r1.82 -r1.83 --- ewl_entry.c 6 Jan 2008 19:17:12 - 1.82 +++ ewl_entry.c 4 Apr 2008 00:25:49 - 1.83 @@ -111,6 +111,27 @@ } /** + * @return Returns a new password widget on success, NULL on failure. + * @brief Allocate and initialize a new password widget + * + * A password widget is an entry with a set obscure character. The default is a + * star (*) + */ +Ewl_Widget * +ewl_password_new(void) +{ + Ewl_Widget *e; + + DENTER_FUNCTION(DLEVEL_STABLE); + + e = ewl_entry_new(); + ewl_widget_appearance_set(e, password/EWL_ENTRY_TYPE); + ewl_text_obscure_set(EWL_TEXT(e), *); + + DRETURN_PTR(e, DLEVEL_STABLE); +} + +/** * @param e: The Ewl_Entry to initialize * @return Returns TRUE on success or FALSE on failure * @brief Initializes an Ewl_Entry widget to default values === RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_entry.h,v retrieving revision 1.31 retrieving revision 1.32 diff -u -3 -r1.31 -r1.32 --- ewl_entry.h 6 Jan 2008 19:17:12 - 1.31 +++ ewl_entry.h 4 Apr 2008 00:25:49 - 1.32 @@ -66,6 +66,7 @@ }; Ewl_Widget *ewl_entry_new(void); +Ewl_Widget *ewl_password_new(void); int ewl_entry_init(Ewl_Entry *e); voidewl_entry_multiline_set(Ewl_Entry *e, unsigned int multiline); === RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_text.c,v retrieving revision 1.190 retrieving revision 1.191 diff -u -3 -r1.190 -r1.191 --- ewl_text.c 6 Dec 2007 13:31:17 - 1.190 +++ ewl_text.c 4 Apr 2008 00:25:50 - 1.191 @@ -744,6 +744,59 @@ } /** + * @param e: the text to set the obscuring character + * @param o: the character to obscure the password characters. This need to be + * a string, because UTF-8 characters can be longer then one byte. + * If it is not a valid UTF-8 character it will fallback to an + * asterix (*). NULL will turn the option off and let the text widget + * return to the normal text view. + * @return Returns no value. + * @brief Sets the character used to obscure the text for a password. Every + * character will be replaced by this character on the output. + */ +void +ewl_text_obscure_set(Ewl_Text *t, const char *o) +{ + DENTER_FUNCTION(DLEVEL_STABLE); + DCHECK_PARAM_PTR(t); + DCHECK_TYPE(t, EWL_TEXT_TYPE); + + /* free the old character */ + IF_FREE(t-obscure); + + /* do some checking */ + if (ewl_text_char_utf8_is(o)) { + size_t len; + + len = EWL_TEXT_CHAR_BYTE_LEN(o); + t-obscure = NEW(char, len + 1); + memcpy(t-obscure, o, len); + t-obscure[len] = 0; + } + else + t-obscure = strdup(*); + + DLEAVE_FUNCTION(DLEVEL_STABLE); +} + +/** + * @param t: the text to retrieve the obscuring character + * @return Returns the character value of the obscuring character. This is + * a
E CVS: libs/ewl pfritz
Enlightenment CVS committal Author : pfritz Project : e17 Module : libs/ewl Dir : e17/libs/ewl/src/bin/tests/theme Modified Files: ewl_theme_test.c Log Message: *API BREAK* replace ewl_password by ewl_text_obscure_set() === RCS file: /cvs/e/e17/libs/ewl/src/bin/tests/theme/ewl_theme_test.c,v retrieving revision 1.2 retrieving revision 1.3 diff -u -3 -r1.2 -r1.3 --- ewl_theme_test.c10 Dec 2007 07:23:06 - 1.2 +++ ewl_theme_test.c4 Apr 2008 00:25:49 - 1.3 @@ -8,7 +8,6 @@ #include ewl_menu.h #include ewl_notebook.h #include ewl_paned.h -#include ewl_password.h #include ewl_radiobutton.h #include ewl_separator.h #include ewl_seeker.h @@ -228,7 +227,7 @@ ewl_widget_show(misc); misc = ewl_password_new(); - ewl_password_text_set(EWL_PASSWORD(misc), Password entry); + ewl_text_text_set(EWL_TEXT(misc), Password entry); ewl_object_alignment_set(EWL_OBJECT(misc), EWL_FLAG_ALIGN_LEFT); ewl_container_child_append(EWL_CONTAINER(vbox), misc); ewl_widget_show(misc); - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace ___ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs
E CVS: libs/ewl pfritz
Enlightenment CVS committal Author : pfritz Project : e17 Module : libs/ewl Dir : e17/libs/ewl/src/bin/tests/password Modified Files: ewl_password_test.c Log Message: *API BREAK* replace ewl_password by ewl_text_obscure_set() === RCS file: /cvs/e/e17/libs/ewl/src/bin/tests/password/ewl_password_test.c,v retrieving revision 1.3 retrieving revision 1.4 diff -u -3 -r1.3 -r1.4 --- ewl_password_test.c 3 Apr 2008 17:04:31 - 1.3 +++ ewl_password_test.c 4 Apr 2008 00:25:49 - 1.4 @@ -2,7 +2,7 @@ #include Ewl_Test.h #include ewl_test_private.h #include ewl_button.h -#include ewl_password.h +#include ewl_entry.h #include stdio.h #include stdlib.h @@ -30,7 +30,7 @@ Ewl_Widget *button_hbox, *button[2]; password[0] = ewl_password_new(); - ewl_password_text_set(EWL_PASSWORD(password[0]), Play with me ?); + ewl_text_text_set(EWL_TEXT(password[0]), Play with me ?); ewl_object_padding_set(EWL_OBJECT(password[0]), 5, 5, 5, 0); ewl_container_child_append(box, password[0]); ewl_callback_append(password[0], EWL_CALLBACK_VALUE_CHANGED, @@ -41,7 +41,7 @@ password[1] = ewl_password_new(); ewl_text_color_set(EWL_TEXT(password[1]), 255, 0, 0, 255); - ewl_password_text_set(EWL_PASSWORD(password[1]), E W L ! ! !); + ewl_text_text_append(EWL_TEXT(password[1]), E W L ! ! !); ewl_object_padding_set(EWL_OBJECT(password[1]), 5, 5, 0, 0); ewl_container_child_append(box, password[1]); ewl_callback_append(password[1], EWL_CALLBACK_VALUE_CHANGED, @@ -84,11 +84,11 @@ { char *s; - s = ewl_password_text_get(EWL_PASSWORD(password[0])); + s = ewl_text_text_get(EWL_TEXT(password[0])); printf(First password covers: %s\n, s); free(s); - s = ewl_password_text_get(EWL_PASSWORD(password[1])); + s = ewl_text_text_get(EWL_TEXT(password[1])); printf(Second password covers: %s\n, s); free(s); } @@ -97,7 +97,7 @@ cb_set_password_text(Ewl_Widget *w __UNUSED__, void *ev __UNUSED__, void *data __UNUSED__) { - ewl_password_text_set(EWL_PASSWORD(password[0]), Play with me ?); - ewl_password_text_set(EWL_PASSWORD(password[1]), E W L ! ! !); + ewl_text_text_set(EWL_TEXT(password[0]), Play with me ?); + ewl_text_text_set(EWL_TEXT(password[1]), E W L ! ! !); } - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace ___ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs
E CVS: libs/ewl pfritz
Enlightenment CVS committal Author : pfritz Project : e17 Module : libs/ewl Dir : e17/libs/ewl/src/lib Removed Files: ewl_password.c ewl_password.h Log Message: remove ewl_password - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace ___ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs