Carsten Haitzler (The Rasterman) wrote: > On Mon, 28 Nov 2005 17:50:43 +0100 xnowfall <[EMAIL PROTECTED]> babbled: > > >>i think this is an edje/embryo issue. it happens for other apps too, >>like the session list toggle on entrance. it appears to be a problem >>with get/set_int not setting or retrieving the variable properly > > > it more likely is gettign strings. eet changed so now empty strings by default > are decoded as NULL not empty strings to avoid excess alloc counts. apps need > to be adapted to accountfor this and not assume decoded string membersd will > be > allocated.
the thing i noticed not working was stuff like this (which used to work): program { name: "dock.toggle.click"; signal: "mouse,clicked,1"; source: "dock.toggle"; script { if ( get_int(main_state) == 0 ) emit("show", "main"); else emit("hide", "main"); } } program { name: "main.show"; signal: "show"; source: "main"; script { set_int(main_state, 1); } action: STATE_SET "visible" 0.0; target: "background"; } program { name: "main.hide"; signal: "hide"; source: "main"; script { set_int(main_state, 0); } action: STATE_SET "default" 0.0; target: "background"; } watching the output of loading the .edj with the edje command in a terminal, get_int appears to always return 0 as it is always the show main that is emitted ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ enlightenment-users mailing list enlightenment-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-users