Re: [E-devel] Possible OpenGL ES 2.0 + Evas 3D Incompatibility Problem - only EVAS_3D_SHADE_MODE_DIFFUSE works
On Thu, Nov 13, 2014 at 12:29 PM, David Seikel onef...@gmail.com wrote: On Thu, 13 Nov 2014 11:29:17 +0800 Brian Wang brian.wang.0...@gmail.com wrote: Hello all, Symptoms: Running efl/src/examples/evas/evas-3d-xxx.c examples in efl-1.11 is generally unsuccessful on my target box (Allwinner A13 with Mali-400 MP GPU). They often result in no rendering at all. I have problems with that to, on similar hardware, an Allwinner A20. I've not experimented with it much though, so you have gotten further than me. For what it's worth, I have the A13 as well, but that's not meant for 3D work. The A20 is mine, the A13 belongs to a client. Nice to know I'm not the only one. :-) I think GLSL rendering problems or inconsistency are quite common as google showed me. evas-gl.c runs fine though. Only Evas 3D examples are causing troubles... Brian -- A big old stinking pile of genius that no one wants coz there are too many silver coated monkeys in the world. -- Comprehensive Server Monitoring with Site24x7. Monitor 10 servers for $9/Month. Get alerted through email, SMS, voice calls or mobile push notifications. Take corrective actions from your mobile device. http://pubads.g.doubleclick.net/gampad/clk?id=154624111iu=/4140/ostg.clktrk ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel -- brian -- iMaGiNaTiOn iS mOrE iMpOrTaNt tHaN kNoWlEdGe -- Comprehensive Server Monitoring with Site24x7. Monitor 10 servers for $9/Month. Get alerted through email, SMS, voice calls or mobile push notifications. Take corrective actions from your mobile device. http://pubads.g.doubleclick.net/gampad/clk?id=154624111iu=/4140/ostg.clktrk ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] Possible OpenGL ES 2.0 + Evas 3D Incompatibility Problem - only EVAS_3D_SHADE_MODE_DIFFUSE works
On Thu, Nov 13, 2014 at 12:35 PM, Sung W. Park sung...@gmail.com wrote: Hi Brian, Unfortunately, Evas 3D hasn't been extensively tested on a lot of GPUs, especially on the one that you're using. From what I know about Mali 400mp, it's an older GPU with separate vertext/fragment processors. By the way, I'm not the one who developed the library so I don't know all the details. From what I know about GPUs and from what I recall, it was only tested on a qualcomm mobile chipset. The developement happened on a desktop machine. Looking at your description, it appears that Mali 400mp has a hard time processing the shader code for other types of lighting mode, which would inevitabily require more complex shader codes. I guess one thing that you need to find out is if Mali400mp supports the kind of shader code that's there. like the number of uniforms and the complexity of the code. If it doesn't support the code, then i guess you'd need to figure out if you can do a workaround. Unfortunately, both of these require good understanding of shaders. I'm CC'ing Taekyun, the guy who wrote most of it, so he can aslo respond. Sorry for the late response. I got completely swamped with work after the weekend. Hope you can get it sorted out. Thank you, Sung. I digged further and found: --- Renders fine, SHADE_DIFFUSE --- VERT_SRC uniform mat4 uMatrixMvp; attribute vec4 aPosition0; void main() { vec4 position = vec4(aPosition0.xyz, 1.0); gl_Position = uMatrixMvp * position; } FRAG_SRC #extension GL_OES_texture_npot : enable precision highp float; uniform vec4uMaterialDiffuse; void main() { gl_FragColor = uMaterialDiffuse; } --- --- No rendering at all, and it does not look too complex... SHADE_VERTEX_COLOR --- VERT_SRC uniform mat4 uMatrixMvp; attribute vec4 aPosition0; attribute vec4 aColor0; varying vec4 vColor; void main() { vec4 position = vec4(aPosition0.xyz, 1.0); vec4 color = aColor0; gl_Position = uMatrixMvp * position; vColor = color; } FRAG_SRC #extension GL_OES_texture_npot : enable precision highp float; varying vec4vColor; void main() { gl_FragColor = vColor; } --- I played with the VERTEX COLOR part a bit and made some modifications on the color (aColor from vec4 to vec3): --- VERT_SRC precision mediump float; uniform mat4 uMatrixMvp; attribute vec4 aPosition0; attribute vec3 aColor0; varying vec4 vColor; void main() { vec4 position = vec4(aPosition0.xyz, 1.0); vec4 color = vec4(aColor0, 1.0); gl_Position = uMatrixMvp * position; vColor = color; } FRAG_SRC precision mediump float; varying vec4vColor; void main() { gl_FragColor = vColor; } --- Now it renders! I don't know why though... Hopefully, this would give the experts more clues on what is wrong. Brian cheers, Sung On Thu, Nov 13, 2014 at 12:29 PM, Brian Wang brian.wang.0...@gmail.com wrote: Hello all, Symptoms: Running efl/src/examples/evas/evas-3d-xxx.c examples in efl-1.11 is generally unsuccessful on my target box (Allwinner A13 with Mali-400 MP GPU). They often result in no rendering at all. Everything runs fine on my x86 box though (not OPENGL ES 2.0, I suppose) After some experiments, I have found that only EVAS_3D_SHADE_MODE_DIFFUSE works. Other shade modes, like vertex color, phong, map, etc., simply result in no rendering at all. I have been littering glGetError/GLERR calls in evas_3d files but could not get any further. There are no warnings or errors while running the non-rendering examples. Changing the shade mode to DIFFUSE will make the objects, say cube, appear on the screen. I did find some discrepancies between EFL and OPENGL ES document though. 1. Default precision should be set in the shader code. Some GPU implementations are pretty strict... 2. glTexImage2D usage may not be proper. In evas_gl_3d.c:e3d_texture_data_set(), glTexImage2D is called with different internal format and format, while the the official doc states that the internal format must match format. (Ref: https://www.khronos.org/opengles/sdk/docs/man/xhtml/glTexImage2D.xml). What can I do to narrow down the problem? _shader_compile does not issue any message. Any help is much appreciated. Thanks in advance. Brian -- brian -- iMaGiNaTiOn iS mOrE iMpOrTaNt tHaN kNoWlEdGe -- Comprehensive Server Monitoring with Site24x7. Monitor 10 servers for $9/Month. Get alerted through email, SMS, voice calls or mobile push notifications. Take corrective actions from your mobile device. http://pubads.g.doubleclick.net/gampad/clk?id=154624111iu=/4140/ostg.clktrk ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment
[E-devel] Possible OpenGL ES 2.0 + Evas 3D Incompatibility Problem - only EVAS_3D_SHADE_MODE_DIFFUSE works
Hello all, Symptoms: Running efl/src/examples/evas/evas-3d-xxx.c examples in efl-1.11 is generally unsuccessful on my target box (Allwinner A13 with Mali-400 MP GPU). They often result in no rendering at all. Everything runs fine on my x86 box though (not OPENGL ES 2.0, I suppose) After some experiments, I have found that only EVAS_3D_SHADE_MODE_DIFFUSE works. Other shade modes, like vertex color, phong, map, etc., simply result in no rendering at all. I have been littering glGetError/GLERR calls in evas_3d files but could not get any further. There are no warnings or errors while running the non-rendering examples. Changing the shade mode to DIFFUSE will make the objects, say cube, appear on the screen. I did find some discrepancies between EFL and OPENGL ES document though. 1. Default precision should be set in the shader code. Some GPU implementations are pretty strict... 2. glTexImage2D usage may not be proper. In evas_gl_3d.c:e3d_texture_data_set(), glTexImage2D is called with different internal format and format, while the the official doc states that the internal format must match format. (Ref: https://www.khronos.org/opengles/sdk/docs/man/xhtml/glTexImage2D.xml). What can I do to narrow down the problem? _shader_compile does not issue any message. Any help is much appreciated. Thanks in advance. Brian -- brian -- iMaGiNaTiOn iS mOrE iMpOrTaNt tHaN kNoWlEdGe -- Comprehensive Server Monitoring with Site24x7. Monitor 10 servers for $9/Month. Get alerted through email, SMS, voice calls or mobile push notifications. Take corrective actions from your mobile device. http://pubads.g.doubleclick.net/gampad/clk?id=154624111iu=/4140/ostg.clktrk ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
[E-devel] [PATCH] Do not use the non-existent ELM_SCALE_SIZE macro in test_notify.c for elementary-1.11
Hello all, Just a simple one-liner as follows: diff --git a/src/bin/test_notify.c b/src/bin/test_notify.c index f5ae7cb..472b226 100644 --- a/src/bin/test_notify.c +++ b/src/bin/test_notify.c @@ -62,7 +62,7 @@ test_notify(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_in lb = elm_label_add(win); elm_label_line_wrap_set(lb, ELM_WRAP_MIXED); - elm_label_wrap_width_set(lb, ELM_SCALE_SIZE(140)); + elm_label_wrap_width_set(lb, 140); elm_object_text_set(lb, This position is the default. This is multiline text.); elm_box_pack_end(bx, lb); evas_object_show(lb); Best regards, Brian -- brian -- iMaGiNaTiOn iS mOrE iMpOrTaNt tHaN kNoWlEdGe -- Comprehensive Server Monitoring with Site24x7. Monitor 10 servers for $9/Month. Get alerted through email, SMS, voice calls or mobile push notifications. Take corrective actions from your mobile device. http://pubads.g.doubleclick.net/gampad/clk?id=154624111iu=/4140/ostg.clktrk ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
[E-devel] Problem running evas_3d_cube example
Hello all, I tried to run evas_3d_cube example on my board. Lots of error messages output like these: --- ERR498:evas_main modules/evas/engines/gl_common/evas_gl_3d_shader.c:1112 _shader_compile() Shader compilation failed. 0:1: S0032: no default precision defined for variable ERR498:evas_main modules/evas/engines/gl_common/evas_gl_3d_shader.c:1140 _program_build() Failed to compile fragment shader. ERR498:evas-gl_common modules/evas/engines/gl_common/evas_gl_3d_renderer.c:229 e3d_renderer_draw() Failed to create shader program. --- EFL version is 1.11. I had the gears test of elementary_test running ok. I have no clue if this is my environment setup or a problem with EFL. Any hints will be appreciated. Thanks in advance. Brian -- brian -- iMaGiNaTiOn iS mOrE iMpOrTaNt tHaN kNoWlEdGe -- ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] Problem running evas_3d_cube example
On Fri, Nov 7, 2014 at 5:49 PM, ChunEon Park her...@naver.com wrote: failed compile shader sources with your opengl driver. did u launch the elementary_test with gl ? $ELM_ENGINE=gl elementary_test Yes, elementary_test is run with ELM_ENGINE=gl. The gears spin smoothly without problems. It is the evas_3d_cube and other evas 3D examples that are causing the problem. Is it a setup problem? Thank you. Brian -Regards, Hermet- -Original Message- From: Brian Wangbrian.wang.0...@gmail.com To: eenlightenment-devel@lists.sourceforge.net; Cc: Sent: 2014-11-07 (금) 17:36:37 Subject: [E-devel] Problem running evas_3d_cube example Hello all, I tried to run evas_3d_cube example on my board. Lots of error messages output like these: --- ERR498:evas_main modules/evas/engines/gl_common/evas_gl_3d_shader.c:1112 _shader_compile() Shader compilation failed. 0:1: S0032: no default precision defined for variable ERR498:evas_main modules/evas/engines/gl_common/evas_gl_3d_shader.c:1140 _program_build() Failed to compile fragment shader. ERR498:evas-gl_common modules/evas/engines/gl_common/evas_gl_3d_renderer.c:229 e3d_renderer_draw() Failed to create shader program. --- EFL version is 1.11. I had the gears test of elementary_test running ok. I have no clue if this is my environment setup or a problem with EFL. Any hints will be appreciated. Thanks in advance. Brian -- brian -- iMaGiNaTiOn iS mOrE iMpOrTaNt tHaN kNoWlEdGe -- ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel -- ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel -- brian -- iMaGiNaTiOn iS mOrE iMpOrTaNt tHaN kNoWlEdGe -- ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] Problem running evas_3d_cube example
On Fri, Nov 7, 2014 at 6:28 PM, Sung W. Park sung...@gmail.com wrote: I could be wrong but it seems like your gles compiler's complaining about precision not being set in the shader. Some GLES compilers will complain and others gracefully ignores it if one's not found. I don't have time to look at the code as I'll be away for the weekend but you may look at the evas_3d fragment shader code and see if there's something like precision mediump float;\n or precision highp float;\n is in there somewhere that would be my guess. Thank you for the hint. I added to evas_gl_3d_shader.c:_fragment_shader_string_variable_add() the following lines: --- ADD_LINE(#extension GL_OES_standard_derivatives : enable); ADD_LINE(precision mediump float;); ADD_LINE(precision mediump int;); ADD_LINE(precision lowp sampler2D;); ADD_LINE(precision lowp samplerCube;); --- Now, evas_3d_cube does not complain about no default precision defined anymore. The first line is required for dFdx, dFdy(), fwidth according to the doc (at least for OpenGL ES 2.0): https://www.khronos.org/registry/gles/extensions/OES/OES_standard_derivatives.txt However, there is nothing shown on the screen and there is no warning message at all. Running evas_3d_aabb will show the size-changing box but without the animated Sonic figure. I have no clue on how to solve the problem. When running the evas_gl example, there are lots of warning/error messages: --- ERR909:EvasGL modules/evas/engines/gl_common/evas_gl_core.c:1100 _internal_config_set() Unable to find the matching config format. ERR909:EvasGL modules/evas/engines/gl_common/evas_gl_core.c:1473 evgl_surface_create() Unsupported Format! ERR909:evas_main lib/evas/canvas/evas_gl.c:118 evas_gl_surface_create() Failed creating a surface from the engine. ERR909:evas_main lib/evas/canvas/evas_gl.c:273 evas_gl_native_surface_get() Invalid input parameters! ERR909:evas_main lib/evas/canvas/evas_gl.c:237 evas_gl_make_current() Bad match between surface: (nil) and context: 0x3f32f0 ERR909:EvasGL modules/evas/engines/gl_common/evas_gl_api.c:642 _evgl_glViewport() Unable to retrive Current Engine ERR909:EvasGL modules/evas/engines/gl_common/evas_gl_api.c:326 _evgl_glClear() Unable to retrive Current Engine --- There is a 3D box shown. However, when compared to the one running on my x86 box, the colors and the sides are different. Maybe this is a separate problem. I am running EFL on Allwinner A13 with ARM Mali-400 MP (binary MALI r3p0). Thanks in advance. Brian good luck. Sung On Fri, Nov 7, 2014 at 6:55 PM, Brian Wang brian.wang.0...@gmail.com wrote: On Fri, Nov 7, 2014 at 5:49 PM, ChunEon Park her...@naver.com wrote: failed compile shader sources with your opengl driver. did u launch the elementary_test with gl ? $ELM_ENGINE=gl elementary_test Yes, elementary_test is run with ELM_ENGINE=gl. The gears spin smoothly without problems. It is the evas_3d_cube and other evas 3D examples that are causing the problem. Is it a setup problem? Thank you. Brian -Regards, Hermet- -Original Message- From: Brian Wangbrian.wang.0...@gmail.com To: eenlightenment-devel@lists.sourceforge.net; Cc: Sent: 2014-11-07 (금) 17:36:37 Subject: [E-devel] Problem running evas_3d_cube example Hello all, I tried to run evas_3d_cube example on my board. Lots of error messages output like these: --- ERR498:evas_main modules/evas/engines/gl_common/evas_gl_3d_shader.c:1112 _shader_compile() Shader compilation failed. 0:1: S0032: no default precision defined for variable ERR498:evas_main modules/evas/engines/gl_common/evas_gl_3d_shader.c:1140 _program_build() Failed to compile fragment shader. ERR498:evas-gl_common modules/evas/engines/gl_common/evas_gl_3d_renderer.c:229 e3d_renderer_draw() Failed to create shader program. --- EFL version is 1.11. I had the gears test of elementary_test running ok. I have no clue if this is my environment setup or a problem with EFL. Any hints will be appreciated. Thanks in advance. Brian -- brian -- iMaGiNaTiOn iS mOrE iMpOrTaNt tHaN kNoWlEdGe -- ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel -- ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel -- brian -- iMaGiNaTiOn iS mOrE iMpOrTaNt
Re: [E-devel] Elementary edje_externals Label Problem
Hello all, More findings here: For EFL/Elementary 1.10.3, a sample gdb trace looks like when using edje external objects: --- #0 elm_object_style_set (obj=0x80011089, style=0x81f6af0 tm_control) at elm_main.c:1251 #1 0xb5a67c2b in external_common_state_set (data=0x0, obj=0x80011089, from_params=0x81d1760, to_params=0x0, pos=0) at elm.c:232 #2 0xb5a71dca in _external_hoversel_state_set (data=0x0, obj=0x80011089, from_params=0x81d1760, to_params=0x0, pos=0) at elm_hoversel.c:154 #3 0xb79002f5 in _edje_external_recalc_apply (ed=0x8168910, ep=0x814a690, params=0x0, chosen_desc=0x8171020) at lib/edje/edje_external.c:535 #4 0xb79025b4 in _edje_object_file_set_internal (obj=0x80005c2f, file=0x8168d98, group=0x804beae basic, parent=0x0, group_path=0x0, nested=0x8168ed0) at lib/edje/edje_load.c:799 #5 0xb791b948 in _edje_file_set (obj=0x80005c2f, _pd=0x8168910, file=0xbfffdcdc themes/default/tm_basic.edj, group=0x804beae basic) at lib/edje/edje_smart.c:357 ... --- For EFL/Elementary 1.11.x, no elm_object_style_set will be called. Something's wrong with the from_params parameter when calling external_common_state_set(). ExtButton of elementary_test will show blank buttons. Hope it helps. Brian On Sat, Sep 13, 2014 at 9:34 PM, Brian Wang brian.wang.0...@gmail.com wrote: On Fri, Sep 5, 2014 at 6:39 AM, Michaël Bouchaud y...@efl.so wrote: Hum something wrong here too. I have no labels with external object. You could fill a report with this subject. I haven't taken the time to look at it. But I think it's really a bug too.\ I just tried out the latest EFL, Elementary 1.11.2 release tarballs. Same blank labels for elementary external objects... Brian 2014-09-03 6:22 GMT+00:00 Brian Wang brian.wang.0...@gmail.com: Hello all, I just pulled the latest EFL and Elementary from git. The labels on the buttons within all the ExtButton, ExtSlider, Ext* tests of elementary_test are all blank. No text is shown. I am wondering if I am the only one having the problem, as my upgrade method may not be proper. Thanks in advance. Brian -- brian -- Cool-Karaoke - The smallest recording studio, in your palm, open-sourced http://cool-idea.com.tw/ iMaGiNaTiOn iS mOrE iMpOrTaNt tHaN kNoWlEdGe -- Slashdot TV. Video for Nerds. Stuff that matters. http://tv.slashdot.org/ ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel -- Michaël Bouchaud (yoz) y...@efl.so -- Slashdot TV. Video for Nerds. Stuff that matters. http://tv.slashdot.org/ ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel -- brian -- Cool-Karaoke - The smallest recording studio, in your palm, open-sourced http://cool-idea.com.tw/ iMaGiNaTiOn iS mOrE iMpOrTaNt tHaN kNoWlEdGe -- brian -- Cool-Karaoke - The smallest recording studio, in your palm, open-sourced http://cool-idea.com.tw/ iMaGiNaTiOn iS mOrE iMpOrTaNt tHaN kNoWlEdGe -- Want excitement? Manually upgrade your production database. When you want reliability, choose Perforce Perforce version control. Predictably reliable. http://pubads.g.doubleclick.net/gampad/clk?id=157508191iu=/4140/ostg.clktrk ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] Elementary edje_externals Label Problem
On Fri, Sep 5, 2014 at 6:39 AM, Michaël Bouchaud y...@efl.so wrote: Hum something wrong here too. I have no labels with external object. You could fill a report with this subject. I haven't taken the time to look at it. But I think it's really a bug too.\ I just tried out the latest EFL, Elementary 1.11.2 release tarballs. Same blank labels for elementary external objects... Brian 2014-09-03 6:22 GMT+00:00 Brian Wang brian.wang.0...@gmail.com: Hello all, I just pulled the latest EFL and Elementary from git. The labels on the buttons within all the ExtButton, ExtSlider, Ext* tests of elementary_test are all blank. No text is shown. I am wondering if I am the only one having the problem, as my upgrade method may not be proper. Thanks in advance. Brian -- brian -- Cool-Karaoke - The smallest recording studio, in your palm, open-sourced http://cool-idea.com.tw/ iMaGiNaTiOn iS mOrE iMpOrTaNt tHaN kNoWlEdGe -- Slashdot TV. Video for Nerds. Stuff that matters. http://tv.slashdot.org/ ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel -- Michaël Bouchaud (yoz) y...@efl.so -- Slashdot TV. Video for Nerds. Stuff that matters. http://tv.slashdot.org/ ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel -- brian -- Cool-Karaoke - The smallest recording studio, in your palm, open-sourced http://cool-idea.com.tw/ iMaGiNaTiOn iS mOrE iMpOrTaNt tHaN kNoWlEdGe -- Want excitement? Manually upgrade your production database. When you want reliability, choose Perforce Perforce version control. Predictably reliable. http://pubads.g.doubleclick.net/gampad/clk?id=157508191iu=/4140/ostg.clktrk ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
[E-devel] Elementary edje_externals Label Problem
Hello all, I just pulled the latest EFL and Elementary from git. The labels on the buttons within all the ExtButton, ExtSlider, Ext* tests of elementary_test are all blank. No text is shown. I am wondering if I am the only one having the problem, as my upgrade method may not be proper. Thanks in advance. Brian -- brian -- Cool-Karaoke - The smallest recording studio, in your palm, open-sourced http://cool-idea.com.tw/ iMaGiNaTiOn iS mOrE iMpOrTaNt tHaN kNoWlEdGe -- Slashdot TV. Video for Nerds. Stuff that matters. http://tv.slashdot.org/ ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] Any Advantage of Using the OpenGL Backend?
On Mon, Jun 16, 2014 at 6:45 PM, Carsten Haitzler ras...@rasterman.com wrote: On Sat, 14 Jun 2014 08:36:10 +0800 Brian Wang brian.wang.0...@gmail.com said: On Fri, Jun 13, 2014 at 10:47 PM, Cedric BAIL cedric.b...@free.fr wrote: On Fri, Jun 13, 2014 at 12:05 PM, Carsten Haitzler ras...@rasterman.com wrote: On Fri, 13 Jun 2014 15:28:30 +0800 Brian Wang brian.wang.0...@gmail.com said: Hello all, Are there any advantages when using the gl-x11 backend vs X11+software rendering? Any performance boost? I am now on a ARM Cortex-A8 processor with a MALI GPU and wondering if I should go through the hassle of setting up the driver/library. Thanks in advance. it depends, gl can be faster than the cpu - in many cases. but it comes at a memory cost too. try and find out. it'll depend on each case And battery also. It depends on the application... OK. I thought that if I am only doing 2D graphics, gl won't be much help. Do blitting and scaling go through gl too or are they done in software only? Please bear with me since this is obviously a newbie question... I could not find any info on how each backend helps rendering. fgor the gl back end all operations are done with the gpu (except generation of font glyphs from ttf files and loading/decoding of images). blitting and scaling are just bi-products of drawing triangles. evas actually never blits in the sens that things that scroll get copied around the screen to make them move like traditional widget sets. every change is a redraw of the area that changed (that are may expand to the whole window/screen depending on back end etc.). so scaling an image in gl is drawign 2 triangles with a texture so the tringles cover an area of a different size to the texture. blending may be on or off depending if it's needed. the software engine just does all of these operations with the cpu instead. OK. I finally got some time to put the EGL-x11 driver all together. The GLView Gears and GLView Many Gears tests in elementary_test work. 'top' shows elementary_test is eating 34% of CPU and X is eating 14% of CPU when running the GLView Many Gears test. Are the figures reasonable? This is the first time I am using a chip with a GPU... When running other tests, I could not tell the difference between x11 and gl backends except that when running with gl, sometimes the test window of elementary_test does not show up properly. It is invisible until I touch the window area... Probably due to faulty GPU drivers, but I have no clue how to debug it... Brian Thanks. Brian -- Cedric BAIL -- HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions Find What Matters Most in Your Big Data with HPCC Systems Open Source. Fast. Scalable. Simple. Ideal for Dirty Data. Leverages Graph Analysis for Fast Processing Easy Data Exploration http://p.sf.net/sfu/hpccsystems ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel -- brian -- Cool-Karaoke - The smallest recording studio, in your palm, open-sourced http://cool-idea.com.tw/ iMaGiNaTiOn iS mOrE iMpOrTaNt tHaN kNoWlEdGe -- HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions Find What Matters Most in Your Big Data with HPCC Systems Open Source. Fast. Scalable. Simple. Ideal for Dirty Data. Leverages Graph Analysis for Fast Processing Easy Data Exploration http://p.sf.net/sfu/hpccsystems ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel -- - Codito, ergo sum - I code, therefore I am -- The Rasterman (Carsten Haitzler)ras...@rasterman.com -- brian -- Cool-Karaoke - The smallest recording studio, in your palm, open-sourced http://cool-idea.com.tw/ iMaGiNaTiOn iS mOrE iMpOrTaNt tHaN kNoWlEdGe -- HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions Find What Matters Most in Your Big Data with HPCC Systems Open Source. Fast. Scalable. Simple. Ideal for Dirty Data. Leverages Graph Analysis for Fast Processing Easy Data Exploration http://p.sf.net/sfu/hpccsystems ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
[E-devel] Any Advantage of Using the OpenGL Backend?
Hello all, Are there any advantages when using the gl-x11 backend vs X11+software rendering? Any performance boost? I am now on a ARM Cortex-A8 processor with a MALI GPU and wondering if I should go through the hassle of setting up the driver/library. Thanks in advance. Brian -- brian -- Cool-Karaoke - The smallest recording studio, in your palm, open-sourced http://cool-idea.com.tw/ iMaGiNaTiOn iS mOrE iMpOrTaNt tHaN kNoWlEdGe -- HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions Find What Matters Most in Your Big Data with HPCC Systems Open Source. Fast. Scalable. Simple. Ideal for Dirty Data. Leverages Graph Analysis for Fast Processing Easy Data Exploration http://p.sf.net/sfu/hpccsystems ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] Any Advantage of Using the OpenGL Backend?
On Fri, Jun 13, 2014 at 10:47 PM, Cedric BAIL cedric.b...@free.fr wrote: On Fri, Jun 13, 2014 at 12:05 PM, Carsten Haitzler ras...@rasterman.com wrote: On Fri, 13 Jun 2014 15:28:30 +0800 Brian Wang brian.wang.0...@gmail.com said: Hello all, Are there any advantages when using the gl-x11 backend vs X11+software rendering? Any performance boost? I am now on a ARM Cortex-A8 processor with a MALI GPU and wondering if I should go through the hassle of setting up the driver/library. Thanks in advance. it depends, gl can be faster than the cpu - in many cases. but it comes at a memory cost too. try and find out. it'll depend on each case And battery also. It depends on the application... OK. I thought that if I am only doing 2D graphics, gl won't be much help. Do blitting and scaling go through gl too or are they done in software only? Please bear with me since this is obviously a newbie question... I could not find any info on how each backend helps rendering. Thanks. Brian -- Cedric BAIL -- HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions Find What Matters Most in Your Big Data with HPCC Systems Open Source. Fast. Scalable. Simple. Ideal for Dirty Data. Leverages Graph Analysis for Fast Processing Easy Data Exploration http://p.sf.net/sfu/hpccsystems ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel -- brian -- Cool-Karaoke - The smallest recording studio, in your palm, open-sourced http://cool-idea.com.tw/ iMaGiNaTiOn iS mOrE iMpOrTaNt tHaN kNoWlEdGe -- HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions Find What Matters Most in Your Big Data with HPCC Systems Open Source. Fast. Scalable. Simple. Ideal for Dirty Data. Leverages Graph Analysis for Fast Processing Easy Data Exploration http://p.sf.net/sfu/hpccsystems ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
[E-devel] [PATCH] elm_index : set it-letter to NULL after eina_stringshare_del
Hello all, In elm_index.c, _item_del_pre_hook calls _item_free, where it-letter is not set to NULL after eina_stringshare_del. This will cause invalid access later on. The attached patch fixes the problem, which is reproducible in my code before the fix. Please check if this makes sense. I am sorry that I was unable come up with a simple test app to demonstrate the problem. Thanks in advance. Brian -- brian -- Cool-Karaoke - The smallest recording studio, in your palm, open-sourced http://cool-idea.com.tw/ iMaGiNaTiOn iS mOrE iMpOrTaNt tHaN kNoWlEdGe Index: src/lib/elm_index.c === --- src/lib/elm_index.c (revision 75713) +++ src/lib/elm_index.c (working copy) @@ -29,7 +29,10 @@ ELM_INDEX_DATA_GET(WIDGET(it), sd); sd-items = eina_list_remove(sd-items, it); - if (it-letter) eina_stringshare_del(it-letter); + if (it-letter) { + eina_stringshare_del(it-letter); + it-letter = NULL; + } } static void -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] [PATCH] elm_index : set it-letter to NULL after eina_stringshare_del
On Mon, Aug 27, 2012 at 4:23 PM, ChunEon Park her...@naver.com wrote: in 74723 thank you. Cool! Thanks. :-) brian -Regards, Hermet- -Original Message- From: Brian Wangbrian.wang.0...@gmail.com To: eenlightenment-devel@lists.sourceforge.net; Cc: Sent: 2012-08-27 (월) 15:31:16 Subject: [E-devel] [PATCH] elm_index : set it-letter to NULL after eina_stringshare_del Hello all, In elm_index.c, _item_del_pre_hook calls _item_free, where it-letter is not set to NULL after eina_stringshare_del. This will cause invalid access later on. The attached patch fixes the problem, which is reproducible in my code before the fix. Please check if this makes sense. I am sorry that I was unable come up with a simple test app to demonstrate the problem. Thanks in advance. Brian -- brian -- Cool-Karaoke - The smallest recording studio, in your palm, open-sourced http://cool-idea.com.tw/ iMaGiNaTiOn iS mOrE iMpOrTaNt tHaN kNoWlEdGe -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel -- brian -- Cool-Karaoke - The smallest recording studio, in your palm, open-sourced http://cool-idea.com.tw/ iMaGiNaTiOn iS mOrE iMpOrTaNt tHaN kNoWlEdGe -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] [BUG REPORT] Edje Textblock Size Calculation Problem
On Mon, Aug 27, 2012 at 5:00 PM, Tom Hacohen tom.haco...@samsung.com wrote: Hey, Added a fix/workaround for your issue: r75730. The problem is that fit was only added recently and wasn't really tested or used. The second problem is that fit kinda changes how edje handles textblock and we now need to do fancier stuff like we do for text objects, e.g splitting recalc and recalc apply. This is a patch on the way to there. The fix is good for the both the simple test case and my application. Thanks! Brian -- Tom. On 27/08/12 08:47, Brian Wang wrote: Hello all, I have a textblock with fit: 1 1. When it first gets loaded, the text within the textblock is very small. After some time, I change the text and the text size seems to be more correct. I guess the geometry calculation of the textblock is somehow broken when the window is first created. Please find the attached for a simple demonstration of the problem. Thanks in advance. Brian -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel -- brian -- Cool-Karaoke - The smallest recording studio, in your palm, open-sourced http://cool-idea.com.tw/ iMaGiNaTiOn iS mOrE iMpOrTaNt tHaN kNoWlEdGe -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
[E-devel] [BUG REPORT] Edje Textblock Size Calculation Problem
Hello all, I have a textblock with fit: 1 1. When it first gets loaded, the text within the textblock is very small. After some time, I change the text and the text size seems to be more correct. I guess the geometry calculation of the textblock is somehow broken when the window is first created. Please find the attached for a simple demonstration of the problem. Thanks in advance. Brian -- brian -- Cool-Karaoke - The smallest recording studio, in your palm, open-sourced http://cool-idea.com.tw/ iMaGiNaTiOn iS mOrE iMpOrTaNt tHaN kNoWlEdGe #include stdio.h #include stdlib.h #include Elementary.h static void _init(void); static void _text_set(Evas_Object *ly, const char *str) { elm_object_part_text_set(ly, my-text, str); } static Eina_Bool _text_size_change(void *data) { Evas_Object *ly = data; fprintf(stderr, %s : in\n, __func__); _text_set(ly, We want a very long long text 2.); return ECORE_CALLBACK_CANCEL; } static void _init(void) { Evas_Object *win, *bg, *ly, *bt; win = elm_win_add(NULL, x, ELM_WIN_BASIC); elm_win_autodel_set(win, EINA_TRUE); /* add a standard bg */ bg = elm_bg_add(win); evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); evas_object_size_hint_align_set(bg, EVAS_HINT_FILL, EVAS_HINT_FILL); elm_win_resize_object_add(win, bg); evas_object_show(bg); ly = elm_layout_add(win); elm_layout_file_set(ly, theme.edj, bug); evas_object_size_hint_weight_set(ly, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); evas_object_size_hint_align_set(ly, EVAS_HINT_FILL, EVAS_HINT_FILL); elm_win_resize_object_add(win, ly); evas_object_show(ly); _text_set(ly, We want a very long long text.); evas_object_resize(win, 320, 240); evas_object_show(win); ecore_timer_add(3.0, _text_size_change, ly); } EAPI int elm_main(int argc, char **argv) { _init(); /* get going and draw/respond to the user */ elm_run(); elm_shutdown(); return 0; } ELM_MAIN() /* * vim:ts=8:sw=3:sts=8:noexpandtab:cino=5n-3f0^-2{2 */ collections { group { name: bug; styles { style { name: lyrics_style; base: font=Sans font_size=40 align=left color=#ff wrap=word; tag: br \n; tag: hilight + font=Sans:style=Bold; tag: att + style=shadow color=#f0e68cff shadow_color=#00; tag: quiet + style=shadow color=#ffe0 shadow_color=#00; } } parts { part { name: my-text; type: TEXTBLOCK; scale: 1; mouse_events: 0; repeat_events: 1; description { state: default 0.0; align: 0.0 0.5; fixed: 1 1; rel1 { relative: 0.0 0.0; } rel2 { relative: 1.0 0.5; } text { style: lyrics_style; min: 0 0; fit: 1 1; } } } } } } -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] How to Clone from http://git.enlightenment.fr
On Thu, Aug 23, 2012 at 2:22 PM, Martin Jansa martin.ja...@gmail.com wrote: On Thu, Aug 23, 2012 at 10:23:50AM +0800, Brian Wang wrote: On Thu, Aug 23, 2012 at 10:06 AM, Eduardo Lima (Etrunko) ebl...@gmail.com wrote: On Wed, Aug 22, 2012 at 10:57 PM, Brian Wang brian.wang.0...@gmail.com wrote: Hello all, This is probably a dumb question... How do I git clone from the git repositories at http://git.enlightenment.fr without ssh access? Git is able to clone from http protocol. So just give it the http:// url and it will work out its magic. Thanks for the quick response. You mean something like this: 1. git clone http://git.enlightenment.fr/vcs/svn/eina.git -- just waits indefinitely 2. git clone http://git.enlightenment.fr/eina.git -- gives fatal: http://git.enlightenment.fr/eina.git/info/refs not found: did you run git update-server-info on the server? I am not sure about the URL. Could you give me an example for cloning eina? By the way, I created clones of the main libraries on gitorious, which also supports git protocol. At the moment I'm updating the repositories every 5 minutes. http://gitorious.org/enlightenment I did find your git repos on gitorious. It just isn't clear if this is a repo with your own patches or it is a purely a git-svn updated repo from the official svn repo. The French git is mentioned in http://www.enlightenment.org/p.php?p=contribute. If your gitorious repo is synced with the official svn, it should probably be listed on that page too. :-) What about git://git.enlightenment.org/git/e.git This works! How frequently is this synced with the official svn? Thanks. :-) brian ? Thanks. Brian Best regards, Etrunko Thanks in advance. Brian -- brian -- Cool-Karaoke - The smallest recording studio, in your palm, open-sourced http://cool-idea.com.tw/ iMaGiNaTiOn iS mOrE iMpOrTaNt tHaN kNoWlEdGe -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel -- Eduardo de Barros Lima ◤✠◢ ebl...@gmail.com -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel -- brian -- Cool-Karaoke - The smallest recording studio, in your palm, open-sourced http://cool-idea.com.tw/ iMaGiNaTiOn iS mOrE iMpOrTaNt tHaN kNoWlEdGe -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel -- Martin 'JaMa' Jansa jabber: martin.ja...@gmail.com -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel -- brian -- Cool-Karaoke - The smallest recording studio, in your palm, open-sourced http://cool-idea.com.tw/ iMaGiNaTiOn iS mOrE iMpOrTaNt tHaN kNoWlEdGe -- Live Security Virtual Conference Exclusive live event will cover all
Re: [E-devel] How to Clone from http://git.enlightenment.fr
On Thu, Aug 23, 2012 at 3:07 PM, daniel.za...@samsung.com daniel.za...@samsung.com wrote: Just for information, git clone from http://git.enlightenment.fr/vcs/svn/eina.git works, it just takes 5 minutes without prints. Yes! It does work! You must be a very patient man. Thanks for trying. :) brian From gitorious, it works too, just move to HTTP (https://git.gitorious.org/enlightenment/eina.git) and clone. On 08/23/2012 09:22 AM, Martin Jansa wrote: On Thu, Aug 23, 2012 at 10:23:50AM +0800, Brian Wang wrote: On Thu, Aug 23, 2012 at 10:06 AM, Eduardo Lima (Etrunko) ebl...@gmail.com wrote: On Wed, Aug 22, 2012 at 10:57 PM, Brian Wang brian.wang.0...@gmail.com wrote: Hello all, This is probably a dumb question... How do I git clone from the git repositories at http://git.enlightenment.fr without ssh access? Git is able to clone from http protocol. So just give it the http:// url and it will work out its magic. Thanks for the quick response. You mean something like this: 1. git clone http://git.enlightenment.fr/vcs/svn/eina.git -- just waits indefinitely 2. git clone http://git.enlightenment.fr/eina.git -- gives fatal: http://git.enlightenment.fr/eina.git/info/refs not found: did you run git update-server-info on the server? I am not sure about the URL. Could you give me an example for cloning eina? By the way, I created clones of the main libraries on gitorious, which also supports git protocol. At the moment I'm updating the repositories every 5 minutes. http://gitorious.org/enlightenment I did find your git repos on gitorious. It just isn't clear if this is a repo with your own patches or it is a purely a git-svn updated repo from the official svn repo. The French git is mentioned in http://www.enlightenment.org/p.php?p=contribute. If your gitorious repo is synced with the official svn, it should probably be listed on that page too. :-) What about git://git.enlightenment.org/git/e.git ? Thanks. Brian Best regards, Etrunko Thanks in advance. Brian -- brian -- Cool-Karaoke - The smallest recording studio, in your palm, open-sourced http://cool-idea.com.tw/ iMaGiNaTiOn iS mOrE iMpOrTaNt tHaN kNoWlEdGe -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel -- Eduardo de Barros Lima ??? ebl...@gmail.com -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel -- brian -- Cool-Karaoke - The smallest recording studio, in your palm, open-sourced http://cool-idea.com.tw/ iMaGiNaTiOn iS mOrE iMpOrTaNt tHaN kNoWlEdGe -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel -- Live Security Virtual Conference Exclusive live event will cover all
[E-devel] How to Clone from http://git.enlightenment.fr
Hello all, This is probably a dumb question... How do I git clone from the git repositories at http://git.enlightenment.fr without ssh access? Thanks in advance. Brian -- brian -- Cool-Karaoke - The smallest recording studio, in your palm, open-sourced http://cool-idea.com.tw/ iMaGiNaTiOn iS mOrE iMpOrTaNt tHaN kNoWlEdGe -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] How to Clone from http://git.enlightenment.fr
On Thu, Aug 23, 2012 at 10:06 AM, Eduardo Lima (Etrunko) ebl...@gmail.com wrote: On Wed, Aug 22, 2012 at 10:57 PM, Brian Wang brian.wang.0...@gmail.com wrote: Hello all, This is probably a dumb question... How do I git clone from the git repositories at http://git.enlightenment.fr without ssh access? Git is able to clone from http protocol. So just give it the http:// url and it will work out its magic. Thanks for the quick response. You mean something like this: 1. git clone http://git.enlightenment.fr/vcs/svn/eina.git -- just waits indefinitely 2. git clone http://git.enlightenment.fr/eina.git -- gives fatal: http://git.enlightenment.fr/eina.git/info/refs not found: did you run git update-server-info on the server? I am not sure about the URL. Could you give me an example for cloning eina? By the way, I created clones of the main libraries on gitorious, which also supports git protocol. At the moment I'm updating the repositories every 5 minutes. http://gitorious.org/enlightenment I did find your git repos on gitorious. It just isn't clear if this is a repo with your own patches or it is a purely a git-svn updated repo from the official svn repo. The French git is mentioned in http://www.enlightenment.org/p.php?p=contribute. If your gitorious repo is synced with the official svn, it should probably be listed on that page too. :-) Thanks. Brian Best regards, Etrunko Thanks in advance. Brian -- brian -- Cool-Karaoke - The smallest recording studio, in your palm, open-sourced http://cool-idea.com.tw/ iMaGiNaTiOn iS mOrE iMpOrTaNt tHaN kNoWlEdGe -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel -- Eduardo de Barros Lima ◤✠◢ ebl...@gmail.com -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel -- brian -- Cool-Karaoke - The smallest recording studio, in your palm, open-sourced http://cool-idea.com.tw/ iMaGiNaTiOn iS mOrE iMpOrTaNt tHaN kNoWlEdGe -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
[E-devel] [BUG REPORT] elm_genlist inside elm_flip does not work
Hello all, For the recent elementary version, it seems that genlist does not work when set inside elm_flip. It used to work though. Please refer to the short test code attached. I totally have no clue what went wrong... Thanks in advance. brian -- brian -- Cool-Karaoke - The smallest recording studio, in your palm, open-sourced http://cool-idea.com.tw/ iMaGiNaTiOn iS mOrE iMpOrTaNt tHaN kNoWlEdGe #include stdio.h #include stdlib.h #include Elementary.h static char *_gl_text_get(void *data, Evas_Object *obj, const char *part) { char buf[256]; snprintf(buf, sizeof(buf), Item # %i, (int)(long)data); return strdup(buf); } static Evas_Object *_gl_init(Evas_Object *win) { Evas_Object *gl; Elm_Genlist_Item_Class *itc1; Elm_Object_Item *gli; int i; itc1 = elm_genlist_item_class_new(); itc1-item_style = default; itc1-func.text_get = _gl_text_get; itc1-func.content_get = NULL; itc1-func.state_get = NULL; itc1-func.del = NULL; gl = elm_genlist_add(win); evas_object_size_hint_weight_set(gl, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); evas_object_size_hint_align_set(gl, EVAS_HINT_FILL, EVAS_HINT_FILL); evas_object_show(gl); for (i = 0; i 10; i++) { gli = elm_genlist_item_append(gl, itc1, (void *)(long)i/* item data */, NULL/* parent */, ELM_GENLIST_ITEM_NONE, NULL, (void *)(long)(i+1)); } return gl; } static Evas_Object *_bt_init(Evas_Object *win) { Evas_Object *bt; bt = elm_button_add(win); elm_object_scale_set(bt, 2.0); elm_object_text_set(bt, hello); evas_object_show(bt); return bt; } static void _init(void) { Evas_Object *win, *bg, *fl, *gl; win = elm_win_add(NULL, x, ELM_WIN_BASIC); elm_win_autodel_set(win, EINA_TRUE); /* add a standard bg */ bg = elm_bg_add(win); evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); evas_object_size_hint_align_set(bg, EVAS_HINT_FILL, EVAS_HINT_FILL); elm_win_resize_object_add(win, bg); evas_object_show(bg); #if 1 fl = elm_flip_add(win); evas_object_size_hint_weight_set(fl, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); evas_object_size_hint_align_set(fl, EVAS_HINT_FILL, EVAS_HINT_FILL); elm_win_resize_object_add(win, fl); evas_object_show(fl); if (1) { gl = _gl_init(win); elm_object_part_content_set(fl, front, gl); } else { Evas_Object *bt; bt = _bt_init(win); elm_object_part_content_set(fl, front, bt); } #else gl = _gl_init(win); elm_win_resize_object_add(win, gl); #endif evas_object_resize(win, 320, 240); evas_object_show(win); } EAPI int elm_main(int argc, char **argv) { _init(); /* get going and draw/respond to the user */ elm_run(); elm_shutdown(); return 0; } ELM_MAIN() -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
[E-devel] [BUG REPORT] elementary does not compile when EMAP support is turned off
Hello all, If HAVE_ELEMENTARY_EMAP is not defined, elementary does not compile. I commented out some parts, added some semicolons and fixed some spellings to get it compiled. What I did is attached just for reference, as I did not check if it affects when HAVE_ELEMENTARY_EMAP is defined... Thanks. brian -- brian -- Cool-Karaoke - The smallest recording studio, in your palm, open-sourced http://cool-idea.com.tw/ iMaGiNaTiOn iS mOrE iMpOrTaNt tHaN kNoWlEdGe Index: src/lib/elm_map.c === --- src/lib/elm_map.c (revision 74962) +++ src/lib/elm_map.c (working copy) @@ -3880,6 +3880,7 @@ static void _elm_map_smart_add(Evas_Object *obj) { +#ifdef HAVE_ELEMENTARY_ECORE_CON Evas_Coord minw, minh; Elm_Map_Pan_Smart_Data *pan_data; @@ -3985,11 +3986,13 @@ if (!ecore_file_download_protocol_available(http://;)) ERR(Ecore must be built with curl support for the map widget!); +#endif } static void _elm_map_smart_del(Evas_Object *obj) { +#ifdef HAVE_ELEMENTARY_ECORE_CON Elm_Map_Route *r; Elm_Map_Name *na; Delayed_Data *dd; @@ -4063,6 +4066,7 @@ if (sd-map) evas_map_free(sd-map); ELM_WIDGET_CLASS(_elm_map_parent_sc)-base.del(obj); +#endif } static void @@ -4070,11 +4074,13 @@ Evas_Coord x, Evas_Coord y) { +#ifdef HAVE_ELEMENTARY_ECORE_CON ELM_MAP_DATA_GET(obj, sd); ELM_WIDGET_CLASS(_elm_map_parent_sc)-base.move(obj, x, y); evas_object_move(sd-hit_rect, x, y); +#endif } static void @@ -4082,28 +4088,33 @@ Evas_Coord w, Evas_Coord h) { +#ifdef HAVE_ELEMENTARY_ECORE_CON ELM_MAP_DATA_GET(obj, sd); ELM_WIDGET_CLASS(_elm_map_parent_sc)-base.resize(obj, w, h); evas_object_resize(sd-hit_rect, w, h); +#endif } static void _elm_map_smart_member_add(Evas_Object *obj, Evas_Object *member) { +#ifdef HAVE_ELEMENTARY_ECORE_CON ELM_MAP_DATA_GET(obj, sd); ELM_WIDGET_CLASS(_elm_map_parent_sc)-base.member_add(obj, member); if (sd-hit_rect) evas_object_raise(sd-hit_rect); +#endif } static void _elm_map_smart_set_user(Elm_Map_Smart_Class *sc) { +#ifdef HAVE_ELEMENTARY_ECORE_CON ELM_WIDGET_CLASS(sc)-base.add = _elm_map_smart_add; ELM_WIDGET_CLASS(sc)-base.del = _elm_map_smart_del; ELM_WIDGET_CLASS(sc)-base.move = _elm_map_smart_move; @@ -4113,11 +4124,13 @@ ELM_WIDGET_CLASS(sc)-on_focus = _elm_map_smart_on_focus; ELM_WIDGET_CLASS(sc)-theme = _elm_map_smart_theme; ELM_WIDGET_CLASS(sc)-event = _elm_map_smart_event; +#endif } EAPI const Elm_Map_Smart_Class * elm_map_smart_class_get(void) { +#ifdef HAVE_ELEMENTARY_ECORE_CON static Elm_Map_Smart_Class _sc = ELM_MAP_SMART_CLASS_INIT_NAME_VERSION(ELM_MAP_SMART_NAME); static const Elm_Map_Smart_Class *class = NULL; @@ -4130,6 +4143,9 @@ class = _sc; return class; +#else + return NULL; +#endif } EAPI Evas_Object * @@ -5396,7 +5412,7 @@ evas_object_smart_changed(overlay-wsd-pan_obj); #else (void)overlay; - (void)obj; + (void)content; #endif } @@ -5697,7 +5713,7 @@ ovl = grp-ovl; return ovl-members; #else - (void)clas; + (void)grp; return OVERLAY_CLASS_ZOOM_MAX; #endif } @@ -5860,8 +5876,8 @@ #else (void)obj; (void)flon; - (void)flat - (void) tlon; + (void)flat; + (void)tlon; (void)tlat; return NULL; #endif @@ -5917,7 +5933,7 @@ #else (void)overlay; (void)lon; - (void)lat + (void)lat; #endif } -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
[E-devel] [BUG REPORT] valgrind complaints on _elm_scroll_hold_animator and elm_flipselector
Hello all, Running valgrind on a relatively new elementary_test (r74896) and the rest of EFL are all pretty up-to-date, there are errors: 1. By scrolling around the tests selector scroller: - ==7397== Conditional jump or move depends on uninitialised value(s) ==7397==at 0x410F4ED: _elm_scroll_hold_animator (elm_interface_scrollable.c:2611) ==7397==by 0x431F4EE: _ecore_call_task_cb (ecore_private.h:265) ==7397==by 0x431F710: _do_tick (ecore_anim.c:113) ==7397==by 0x43203BE: _ecore_animator (ecore_anim.c:512) ==7397==by 0x432A027: _ecore_call_task_cb (ecore_private.h:265) ==7397==by 0x432B03E: _ecore_timer_expired_call (ecore_timer.c:792) ==7397==by 0x432AEDD: _ecore_timer_expired_timers_call (ecore_timer.c:746) ==7397==by 0x4328475: _ecore_main_loop_iterate_internal (ecore_main.c:1791) ==7397==by 0x4326AAC: ecore_main_loop_begin (ecore_main.c:934) ==7397==by 0x4123A86: elm_run (elm_main.c:880) ==7397==by 0x805A0A3: elm_main (test.c:776) ==7397==by 0x805A12E: main (test.c:789) - 2. By opening Selectors - Flip Selector and close the window: - ==7397== Invalid read of size 4 ==7397==at 0x40D4E2C: _item_del_pre_hook (elm_flipselector.c:300) ==7397==by 0x417CD70: _elm_widget_item_del (elm_widget.c:3802) ==7397==by 0x40D5872: _elm_flipselector_smart_del (elm_flipselector.c:573) ==7397==by 0x422913F: evas_object_smart_del (evas_object_smart.c:897) ==7397==by 0x421D7A4: evas_object_del (evas_object_main.c:460) ==7397==by 0x41817FE: _smart_del (elm_widget.c:4859) ==7397==by 0x409FD25: _elm_box_smart_del (elm_box.c:409) ==7397==by 0x422913F: evas_object_smart_del (evas_object_smart.c:897) ==7397==by 0x421D7A4: evas_object_del (evas_object_main.c:460) ==7397==by 0x41817FE: _smart_del (elm_widget.c:4859) ==7397==by 0x418497E: _elm_win_smart_del (elm_win.c:1227) ==7397==by 0x422913F: evas_object_smart_del (evas_object_smart.c:897) ==7397== Address 0x4b898d0 is 8 bytes after a block of size 24 free'd ==7397==at 0x438CEBD: eina_chained_mempool_free (eina_chained_mempool.c:342) ==7397==by 0x435D5D3: eina_mempool_free (eina_inline_mempool.x:142) ==7397==by 0x435D832: _eina_list_mempool_list_free (eina_list.c:217) ==7397==by 0x435EC3C: eina_list_remove_list (eina_list.c:749) ==7397==by 0x444D2FD: _edje_textblock_style_cleanup (edje_textblock_styles.c:410) ==7397==by 0x4434F0F: _edje_file_free (edje_load.c:1346) ==7397==by 0x43E5E1B: _edje_cache_file_clean (edje_cache.c:522) ==7397==by 0x43E5F92: edje_file_cache_flush (edje_cache.c:588) ==7397==by 0x41245B6: elm_cache_all_flush (elm_main.c:1064) ==7397==by 0x40B377A: _elm_cache_flush_cb (elm_config.c:890) ==7397==by 0x43297B6: _ecore_poller_cb_timer (ecore_poll.c:136) ==7397==by 0x432A027: _ecore_call_task_cb (ecore_private.h:265) - If you need more information, please let me know. Thanks. brian -- brian -- Cool-Karaoke - The smallest recording studio, in your palm, open-sourced http://cool-idea.com.tw/ iMaGiNaTiOn iS mOrE iMpOrTaNt tHaN kNoWlEdGe -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
[E-devel] Possible Unmatched LKL and LKU in _ecore_thread_shutdown
Hello all, In ecore_thread.c:_ecore_thread_shutdown(), if there is still some _ecore_running_job, ecore_thread_cancel() will be called while _ecore_pending_job_threads_mutex is being held. In ecore_thread_cancel(), it will try to acquire the same mutex, causing _ecore_thread_shutdown() to freeze. That's how I read the code while I was trying to debug why my app does not shutdown completely (there is a thread running, without being cancelled before calling elm_exit()). I do not know how to fix it other than moving LKU before calling ecore_thread_cancel; however, I do not know if it's safe to do or not. Thanks in advance. brian -- brian -- Cool-Karaoke - The smallest recording studio, in your palm, open-sourced http://cool-idea.com.tw/ iMaGiNaTiOn iS mOrE iMpOrTaNt tHaN kNoWlEdGe -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] Possible Unmatched LKL and LKU in _ecore_thread_shutdown
On Tue, Aug 7, 2012 at 11:47 AM, Cedric BAIL cedric.b...@free.fr wrote: On Tue, Aug 7, 2012 at 11:28 AM, Cedric BAIL cedric.b...@free.fr wrote: On Tue, Aug 7, 2012 at 10:18 AM, Brian Wang brian.wang.0...@gmail.com wrote: In ecore_thread.c:_ecore_thread_shutdown(), if there is still some _ecore_running_job, ecore_thread_cancel() will be called while _ecore_pending_job_threads_mutex is being held. In ecore_thread_cancel(), it will try to acquire the same mutex, causing _ecore_thread_shutdown() to freeze. That's how I read the code while I was trying to debug why my app does not shutdown completely (there is a thread running, without being cancelled before calling elm_exit()). I do not know how to fix it other than moving LKU before calling ecore_thread_cancel; however, I do not know if it's safe to do or not. Sadly, it is not as we need to take lock as long as we walk on that list. I will look at it and find a proper solution, but basically ecore_thread_cancel doesn't access the same list. So either I use another lock when accessing the _ecore_running_job or I tell somehow ecore_thread_cancel to not even try to access the _ecore_pending_job_threads and _ecore_pending_job_threads_feedback. Need to think, quickly, about it. I need to fix that before EFL release. Ok, fixed in r74953 by using another mutex. Nice! Tested! Thanks. :-) brian -- Cedric BAIL -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel -- brian -- Cool-Karaoke - The smallest recording studio, in your palm, open-sourced http://cool-idea.com.tw/ iMaGiNaTiOn iS mOrE iMpOrTaNt tHaN kNoWlEdGe -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] [BUG REPORT] valgrind complaints on _elm_scroll_hold_animator and elm_flipselector
On Tue, Aug 7, 2012 at 12:10 PM, Carsten Haitzler ras...@rasterman.com wrote: On Tue, 7 Aug 2012 09:08:39 +0800 Brian Wang brian.wang.0...@gmail.com said: first one i couldnt reproduce... but reading the code i can see how it might happen so i fixed it in theory. can you check? second one - yup. fixed it too in svn. :) Both are fixed! :-) Thanks. brian Hello all, Running valgrind on a relatively new elementary_test (r74896) and the rest of EFL are all pretty up-to-date, there are errors: 1. By scrolling around the tests selector scroller: - ==7397== Conditional jump or move depends on uninitialised value(s) ==7397==at 0x410F4ED: _elm_scroll_hold_animator (elm_interface_scrollable.c:2611) ==7397==by 0x431F4EE: _ecore_call_task_cb (ecore_private.h:265) ==7397==by 0x431F710: _do_tick (ecore_anim.c:113) ==7397==by 0x43203BE: _ecore_animator (ecore_anim.c:512) ==7397==by 0x432A027: _ecore_call_task_cb (ecore_private.h:265) ==7397==by 0x432B03E: _ecore_timer_expired_call (ecore_timer.c:792) ==7397==by 0x432AEDD: _ecore_timer_expired_timers_call (ecore_timer.c:746) ==7397==by 0x4328475: _ecore_main_loop_iterate_internal (ecore_main.c:1791) ==7397==by 0x4326AAC: ecore_main_loop_begin (ecore_main.c:934) ==7397==by 0x4123A86: elm_run (elm_main.c:880) ==7397==by 0x805A0A3: elm_main (test.c:776) ==7397==by 0x805A12E: main (test.c:789) - 2. By opening Selectors - Flip Selector and close the window: - ==7397== Invalid read of size 4 ==7397==at 0x40D4E2C: _item_del_pre_hook (elm_flipselector.c:300) ==7397==by 0x417CD70: _elm_widget_item_del (elm_widget.c:3802) ==7397==by 0x40D5872: _elm_flipselector_smart_del (elm_flipselector.c:573) ==7397==by 0x422913F: evas_object_smart_del (evas_object_smart.c:897) ==7397==by 0x421D7A4: evas_object_del (evas_object_main.c:460) ==7397==by 0x41817FE: _smart_del (elm_widget.c:4859) ==7397==by 0x409FD25: _elm_box_smart_del (elm_box.c:409) ==7397==by 0x422913F: evas_object_smart_del (evas_object_smart.c:897) ==7397==by 0x421D7A4: evas_object_del (evas_object_main.c:460) ==7397==by 0x41817FE: _smart_del (elm_widget.c:4859) ==7397==by 0x418497E: _elm_win_smart_del (elm_win.c:1227) ==7397==by 0x422913F: evas_object_smart_del (evas_object_smart.c:897) ==7397== Address 0x4b898d0 is 8 bytes after a block of size 24 free'd ==7397==at 0x438CEBD: eina_chained_mempool_free (eina_chained_mempool.c:342) ==7397==by 0x435D5D3: eina_mempool_free (eina_inline_mempool.x:142) ==7397==by 0x435D832: _eina_list_mempool_list_free (eina_list.c:217) ==7397==by 0x435EC3C: eina_list_remove_list (eina_list.c:749) ==7397==by 0x444D2FD: _edje_textblock_style_cleanup (edje_textblock_styles.c:410) ==7397==by 0x4434F0F: _edje_file_free (edje_load.c:1346) ==7397==by 0x43E5E1B: _edje_cache_file_clean (edje_cache.c:522) ==7397==by 0x43E5F92: edje_file_cache_flush (edje_cache.c:588) ==7397==by 0x41245B6: elm_cache_all_flush (elm_main.c:1064) ==7397==by 0x40B377A: _elm_cache_flush_cb (elm_config.c:890) ==7397==by 0x43297B6: _ecore_poller_cb_timer (ecore_poll.c:136) ==7397==by 0x432A027: _ecore_call_task_cb (ecore_private.h:265) - If you need more information, please let me know. Thanks. brian -- brian -- Cool-Karaoke - The smallest recording studio, in your palm, open-sourced http://cool-idea.com.tw/ iMaGiNaTiOn iS mOrE iMpOrTaNt tHaN kNoWlEdGe -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel -- - Codito, ergo sum - I code, therefore I am -- The Rasterman (Carsten Haitzler)ras...@rasterman.com -- brian -- Cool-Karaoke - The smallest recording studio, in your palm, open-sourced http://cool-idea.com.tw/ iMaGiNaTiOn iS mOrE iMpOrTaNt tHaN kNoWlEdGe -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263
[E-devel] [BUG REPORT] Elementary, elm_genlist invalid access
Hello all, A large genlist within my app crashed here and there. valgrind helps point out an invalid access. I do not know the exact sequence of how it occurs but it must have something to do with race conditions that probably only show up where the cpu is slow (running with valgrind would do it on my desktop too). Please find below a trivial inline patch to fix the problem. Hope it's the right fix. :-) Index: src/lib/elm_genlist.c === --- src/lib/elm_genlist.c (revision 70434) +++ src/lib/elm_genlist.c (working copy) @@ -2815,7 +2815,7 @@ dy = 0; break; } -if (wd-show_item) +if (wd-show_item wd-show_item-item-block) { if ((pan_w (wd-show_item-x + wd-show_item-item-block-x)) (pan_h (wd-show_item-y + wd-show_item-item-block-y + dy))) -- brian -- Cool-Karaoke - The smallest recording studio, in your palm, open-sourced http://cool-idea.com.tw/ iMaGiNaTiOn iS mOrE iMpOrTaNt tHaN kNoWlEdGe -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
[E-devel] [BUG REPORT] edc 'inherit' keyword causing problems
Hello all, I am not sure if this is intended. However, it used to work. Case : A part with multiple states (sizes) State #1 : default State #2 : inherit State #1, with different size (different rel1, rel2) -- State #2 seems to fail to change the rel1 and rel2 properties. Please see the attached edc file for the demonstration of the problem. Thanks in advance. brian -- brian -- Cool-Karaoke - The smallest recording studio, in your palm, open-sourced http://cool-idea.com.tw/ iMaGiNaTiOn iS mOrE iMpOrTaNt tHaN kNoWlEdGe collections { group { name: buggy; min: 320 200; max: 320 200; parts { part { name: song_title; type: RECT; description { state: default 0.0; fixed: 1 1; visible: 1; color: 255 0 0 255; rel1 { relative: 0.0 0.0; offset: 0 0; } rel2 { relative: 1.0 0.0; offset: 0 20; } } } part { name: song_info_box; type: RECT; mouse_events: 1; description { state: default 0.0; fixed: 1 1; visible: 1; color: 255 255 255 255; rel1 { to: song_title; relative: 0.5 1.0; offset: -5 0; } rel2 { to: song_title; relative: 0.5 1.0; offset: 5 10; } } description { state: visible 0.0; inherit: default 0.0; visible: 1; } description { state: visible,1 0.0; inherit: default 0.0; rel1 { to: song_title; relative: 0.5 1.0; offset: -5 0; } rel2 { to_x: song_title; relative: 0.5 1.0; offset: 5 -10; } } } } programs { program { name: buggy; signal: mouse,down,1; source: song_info_box; action: STATE_SET visible,1 0.0; transition: SINUSOIDAL 0.3; target: song_info_box; } } } } -- Better than sec? Nothing is better than sec when it comes to monitoring Big Data applications. Try Boundary one-second resolution app monitoring today. Free. http://p.sf.net/sfu/Boundary-dev2dev___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] [BUG REPORT] edje_cc seg fault
On Sat, Apr 14, 2012 at 9:55 AM, Carsten Haitzler ras...@rasterman.com wrote: On Sat, 14 Apr 2012 08:41:33 +0800 Brian Wang brian.wang.0...@gmail.com said: On Fri, Apr 13, 2012 at 6:25 PM, Carsten Haitzler ras...@rasterman.com wrote: On Fri, 13 Apr 2012 15:02:21 +0800 Brian Wang brian.wang.0...@gmail.com said: type my commit : 70168. i memset'd cinfo to 0 - how did this creep in here. it shuldn't have. g. :( Now, it doesn't seg fault. However, it now complains: -- /usr/bin/edje_cc -id ../../data/objects -fd ../../data/objects \ ../../data/objects/test.edc \ ../../data/objects/test.edj /usr/bin/edje_cc: Error. Unable to load image sky.jpg used by file ../../data/objects/test.edj: File (or file path) does not exist. Check if path to file sky.jpg is correct (both directory and file name). -- sky.jpg is there though. Is it the same issue as this one? http://www.mail-archive.com/enlightenment-devel@lists.sourceforge.net/msg32965.html The system jpeg library is libjpeg8. Thanks in advance. i guess libjpeg8 has problems... this has worked forever on libjpeg6/7. i suggest downgrading and seeing. libjpeg8 possibly broke compat I'd like to try but I have trouble redirecting eet and evas to use my own version of libjpeg at configure time. Could you give me some hint? Thanks. brian brian Hello list, I just checked out the latest EFL but failed to complete compilation. The first thing to fail is that edje_cc doesn't seem to like LOSSY n in some of the edc files. I just changed them to COMP to pass the compilation. The next thing is when building elementary/data/objects/test.edj, edje_cc seg faults. Here is the relevant part of valgrind complaints: -- ==21318== Conditional jump or move depends on uninitialised value(s) ==21318== at 0x51D5C98: _evas_jpeg_membuf_src_term (evas_image_load_jpeg.c:133) ==21318== by 0x51D609C: evas_image_load_file_head_jpeg_internal (evas_image_load_jpeg.c:268) ==21318== by 0x51D8577: evas_image_load_file_head_jpeg (evas_image_load_jpeg.c:1202) ==21318== by 0x420DD12: evas_common_load_rgba_image_module_from_file (evas_image_load.c:218) ==21318== by 0x41E2968: _evas_cache_image_entry_new (evas_cache_image.c:314) ==21318== by 0x41E39A9: evas_cache_image_request (evas_cache_image.c:830) ==21318== by 0x420F36F: evas_common_load_image_from_file (evas_image_main.c:732) ==21318== by 0x51C4992: eng_image_load (evas_engine.c:670) ==21318== by 0x4190A16: evas_object_image_file_set (evas_object_image.c:364) ==21318== by 0x804BB5B: data_write_images (edje_cc_out.c:533) ==21318== by 0x804D957: data_write (edje_cc_out.c:1205) ==21318== by 0x804AC03: main (edje_cc.c:240) ==21318== ==21318== Conditional jump or move depends on uninitialised value(s) ==21318== at 0x402B02F: free (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so) ==21318== by 0x51D5CA4: _evas_jpeg_membuf_src_term (evas_image_load_jpeg.c:134) ==21318== by 0x51D609C: evas_image_load_file_head_jpeg_internal (evas_image_load_jpeg.c:268) ==21318== by 0x51D8577: evas_image_load_file_head_jpeg (evas_image_load_jpeg.c:1202) ==21318== by 0x420DD12: evas_common_load_rgba_image_module_from_file (evas_image_load.c:218) ==21318== by 0x41E2968: _evas_cache_image_entry_new (evas_cache_image.c:314) ==21318== by 0x41E39A9: evas_cache_image_request (evas_cache_image.c:830) ==21318== by 0x420F36F: evas_common_load_image_from_file (evas_image_main.c:732) ==21318== by 0x51C4992: eng_image_load (evas_engine.c:670) ==21318== by 0x4190A16: evas_object_image_file_set (evas_object_image.c:364) ==21318== by 0x804BB5B: data_write_images (edje_cc_out.c:533) ==21318== by 0x804D957: data_write (edje_cc_out.c:1205) ==21318== ==21318== Invalid free() / delete / delete[] / realloc() ==21318== at 0x402B06C: free (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so) ==21318== by 0x51D5CA4: _evas_jpeg_membuf_src_term (evas_image_load_jpeg.c:134) ==21318== by 0x51D609C: evas_image_load_file_head_jpeg_internal (evas_image_load_jpeg.c:268) ==21318== by 0x51D8577: evas_image_load_file_head_jpeg (evas_image_load_jpeg.c:1202) ==21318== by 0x420DD12: evas_common_load_rgba_image_module_from_file (evas_image_load.c:218) ==21318== by 0x41E2968: _evas_cache_image_entry_new (evas_cache_image.c:314) ==21318== by 0x41E39A9: evas_cache_image_request (evas_cache_image.c:830) ==21318== by 0x420F36F: evas_common_load_image_from_file (evas_image_main.c:732) ==21318== by 0x51C4992: eng_image_load (evas_engine.c:670) ==21318== by 0x4190A16: evas_object_image_file_set (evas_object_image.c:364) ==21318== by 0x804BB5B: data_write_images (edje_cc_out.c:533) ==21318== by 0x804D957: data_write (edje_cc_out.c:1205) ==21318
Re: [E-devel] [BUG REPORT] edje_cc seg fault
On Mon, Apr 16, 2012 at 8:42 AM, Brian Wang brian.wang.0...@gmail.com wrote: On Sat, Apr 14, 2012 at 9:55 AM, Carsten Haitzler ras...@rasterman.com wrote: On Sat, 14 Apr 2012 08:41:33 +0800 Brian Wang brian.wang.0...@gmail.com said: On Fri, Apr 13, 2012 at 6:25 PM, Carsten Haitzler ras...@rasterman.com wrote: On Fri, 13 Apr 2012 15:02:21 +0800 Brian Wang brian.wang.0...@gmail.com said: type my commit : 70168. i memset'd cinfo to 0 - how did this creep in here. it shuldn't have. g. :( Now, it doesn't seg fault. However, it now complains: -- /usr/bin/edje_cc -id ../../data/objects -fd ../../data/objects \ ../../data/objects/test.edc \ ../../data/objects/test.edj /usr/bin/edje_cc: Error. Unable to load image sky.jpg used by file ../../data/objects/test.edj: File (or file path) does not exist. Check if path to file sky.jpg is correct (both directory and file name). -- sky.jpg is there though. Is it the same issue as this one? http://www.mail-archive.com/enlightenment-devel@lists.sourceforge.net/msg32965.html The system jpeg library is libjpeg8. Thanks in advance. i guess libjpeg8 has problems... this has worked forever on libjpeg6/7. i suggest downgrading and seeing. libjpeg8 possibly broke compat I'd like to try but I have trouble redirecting eet and evas to use my own version of libjpeg at configure time. Could you give me some hint? I just compiled jpeg62 lib and installed it to a tmp directory. I am overring the LIBS, CFLAGS and LDFLAGS variables for eet and evas. Now they seem to be using the old libjpeg62 now. Now, finally, compiling edc files works properly with 'LOSSY' and without seg faults. elementary_test is working properly finally as it does not seg fault here and there! I guess it's the new libjpeg8 stuff that is causing the troubles. I will live with this for now :-) However, there seems to be some momentum upgrading libjpeg to libjpeg8/libjpeg-turbo8 for various Linux distros. Fixing the issue with libjpeg8 will be nice. :-) brian Thanks. brian brian Hello list, I just checked out the latest EFL but failed to complete compilation. The first thing to fail is that edje_cc doesn't seem to like LOSSY n in some of the edc files. I just changed them to COMP to pass the compilation. The next thing is when building elementary/data/objects/test.edj, edje_cc seg faults. Here is the relevant part of valgrind complaints: -- ==21318== Conditional jump or move depends on uninitialised value(s) ==21318== at 0x51D5C98: _evas_jpeg_membuf_src_term (evas_image_load_jpeg.c:133) ==21318== by 0x51D609C: evas_image_load_file_head_jpeg_internal (evas_image_load_jpeg.c:268) ==21318== by 0x51D8577: evas_image_load_file_head_jpeg (evas_image_load_jpeg.c:1202) ==21318== by 0x420DD12: evas_common_load_rgba_image_module_from_file (evas_image_load.c:218) ==21318== by 0x41E2968: _evas_cache_image_entry_new (evas_cache_image.c:314) ==21318== by 0x41E39A9: evas_cache_image_request (evas_cache_image.c:830) ==21318== by 0x420F36F: evas_common_load_image_from_file (evas_image_main.c:732) ==21318== by 0x51C4992: eng_image_load (evas_engine.c:670) ==21318== by 0x4190A16: evas_object_image_file_set (evas_object_image.c:364) ==21318== by 0x804BB5B: data_write_images (edje_cc_out.c:533) ==21318== by 0x804D957: data_write (edje_cc_out.c:1205) ==21318== by 0x804AC03: main (edje_cc.c:240) ==21318== ==21318== Conditional jump or move depends on uninitialised value(s) ==21318== at 0x402B02F: free (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so) ==21318== by 0x51D5CA4: _evas_jpeg_membuf_src_term (evas_image_load_jpeg.c:134) ==21318== by 0x51D609C: evas_image_load_file_head_jpeg_internal (evas_image_load_jpeg.c:268) ==21318== by 0x51D8577: evas_image_load_file_head_jpeg (evas_image_load_jpeg.c:1202) ==21318== by 0x420DD12: evas_common_load_rgba_image_module_from_file (evas_image_load.c:218) ==21318== by 0x41E2968: _evas_cache_image_entry_new (evas_cache_image.c:314) ==21318== by 0x41E39A9: evas_cache_image_request (evas_cache_image.c:830) ==21318== by 0x420F36F: evas_common_load_image_from_file (evas_image_main.c:732) ==21318== by 0x51C4992: eng_image_load (evas_engine.c:670) ==21318== by 0x4190A16: evas_object_image_file_set (evas_object_image.c:364) ==21318== by 0x804BB5B: data_write_images (edje_cc_out.c:533) ==21318== by 0x804D957: data_write (edje_cc_out.c:1205) ==21318== ==21318== Invalid free() / delete / delete[] / realloc() ==21318== at 0x402B06C: free (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so) ==21318== by 0x51D5CA4: _evas_jpeg_membuf_src_term (evas_image_load_jpeg.c:134) ==21318== by 0x51D609C: evas_image_load_file_head_jpeg_internal (evas_image_load_jpeg.c:268
[E-devel] [BUG REPORT] edje_cc seg fault
Hello list, I just checked out the latest EFL but failed to complete compilation. The first thing to fail is that edje_cc doesn't seem to like LOSSY n in some of the edc files. I just changed them to COMP to pass the compilation. The next thing is when building elementary/data/objects/test.edj, edje_cc seg faults. Here is the relevant part of valgrind complaints: -- ==21318== Conditional jump or move depends on uninitialised value(s) ==21318==at 0x51D5C98: _evas_jpeg_membuf_src_term (evas_image_load_jpeg.c:133) ==21318==by 0x51D609C: evas_image_load_file_head_jpeg_internal (evas_image_load_jpeg.c:268) ==21318==by 0x51D8577: evas_image_load_file_head_jpeg (evas_image_load_jpeg.c:1202) ==21318==by 0x420DD12: evas_common_load_rgba_image_module_from_file (evas_image_load.c:218) ==21318==by 0x41E2968: _evas_cache_image_entry_new (evas_cache_image.c:314) ==21318==by 0x41E39A9: evas_cache_image_request (evas_cache_image.c:830) ==21318==by 0x420F36F: evas_common_load_image_from_file (evas_image_main.c:732) ==21318==by 0x51C4992: eng_image_load (evas_engine.c:670) ==21318==by 0x4190A16: evas_object_image_file_set (evas_object_image.c:364) ==21318==by 0x804BB5B: data_write_images (edje_cc_out.c:533) ==21318==by 0x804D957: data_write (edje_cc_out.c:1205) ==21318==by 0x804AC03: main (edje_cc.c:240) ==21318== ==21318== Conditional jump or move depends on uninitialised value(s) ==21318==at 0x402B02F: free (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so) ==21318==by 0x51D5CA4: _evas_jpeg_membuf_src_term (evas_image_load_jpeg.c:134) ==21318==by 0x51D609C: evas_image_load_file_head_jpeg_internal (evas_image_load_jpeg.c:268) ==21318==by 0x51D8577: evas_image_load_file_head_jpeg (evas_image_load_jpeg.c:1202) ==21318==by 0x420DD12: evas_common_load_rgba_image_module_from_file (evas_image_load.c:218) ==21318==by 0x41E2968: _evas_cache_image_entry_new (evas_cache_image.c:314) ==21318==by 0x41E39A9: evas_cache_image_request (evas_cache_image.c:830) ==21318==by 0x420F36F: evas_common_load_image_from_file (evas_image_main.c:732) ==21318==by 0x51C4992: eng_image_load (evas_engine.c:670) ==21318==by 0x4190A16: evas_object_image_file_set (evas_object_image.c:364) ==21318==by 0x804BB5B: data_write_images (edje_cc_out.c:533) ==21318==by 0x804D957: data_write (edje_cc_out.c:1205) ==21318== ==21318== Invalid free() / delete / delete[] / realloc() ==21318==at 0x402B06C: free (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so) ==21318==by 0x51D5CA4: _evas_jpeg_membuf_src_term (evas_image_load_jpeg.c:134) ==21318==by 0x51D609C: evas_image_load_file_head_jpeg_internal (evas_image_load_jpeg.c:268) ==21318==by 0x51D8577: evas_image_load_file_head_jpeg (evas_image_load_jpeg.c:1202) ==21318==by 0x420DD12: evas_common_load_rgba_image_module_from_file (evas_image_load.c:218) ==21318==by 0x41E2968: _evas_cache_image_entry_new (evas_cache_image.c:314) ==21318==by 0x41E39A9: evas_cache_image_request (evas_cache_image.c:830) ==21318==by 0x420F36F: evas_common_load_image_from_file (evas_image_main.c:732) ==21318==by 0x51C4992: eng_image_load (evas_engine.c:670) ==21318==by 0x4190A16: evas_object_image_file_set (evas_object_image.c:364) ==21318==by 0x804BB5B: data_write_images (edje_cc_out.c:533) ==21318==by 0x804D957: data_write (edje_cc_out.c:1205) ==21318== Address 0x4009cac is in the Text segment of /lib/i386-linux-gnu/ld-2.15.so ==21318== ==21318== Conditional jump or move depends on uninitialised value(s) ==21318==at 0x51D60A5: evas_image_load_file_head_jpeg_internal (evas_image_load_jpeg.c:269) ==21318==by 0x51D8577: evas_image_load_file_head_jpeg (evas_image_load_jpeg.c:1202) ==21318==by 0x420DD12: evas_common_load_rgba_image_module_from_file (evas_image_load.c:218) ==21318==by 0x41E2968: _evas_cache_image_entry_new (evas_cache_image.c:314) ==21318==by 0x41E39A9: evas_cache_image_request (evas_cache_image.c:830) ==21318==by 0x420F36F: evas_common_load_image_from_file (evas_image_main.c:732) ==21318==by 0x51C4992: eng_image_load (evas_engine.c:670) ==21318==by 0x4190A16: evas_object_image_file_set (evas_object_image.c:364) ==21318==by 0x804BB5B: data_write_images (edje_cc_out.c:533) ==21318==by 0x804D957: data_write (edje_cc_out.c:1205) ==21318==by 0x804AC03: main (edje_cc.c:240) -- Hope it helps. :-) Brian -- brian -- Cool-Karaoke - The smallest recording studio, in your palm, open-sourced http://cool-idea.com.tw/ iMaGiNaTiOn iS mOrE iMpOrTaNt tHaN kNoWlEdGe -- For Developers, A Lot Can Happen In A Second. Boundary is the first to Know...and Tell You. Monitor Your Applications in Ultra-Fine Resolution. Try it FREE! http://p.sf.net/sfu/Boundary-d2dvs2
[E-devel] Is Evas Compatible with libjpeg8/libjpeg-turbo8?
Hello all, I am using the latest EFL from svn. The previous problem with edje_cc was related to references to sky.jpg in elementary/data/objects/test.edc. When I played a bit with elementary_test, it is getting faults here and there. glibc backtrace shows invalid free in jpeg loader. Therefore, I suspect there is something wrong with the JPEG code. I just upgraded to Ubuntu 12.04 and do not know if this touches the default libjpeg in the system. Thanks in advance. Brian -- brian -- Cool-Karaoke - The smallest recording studio, in your palm, open-sourced http://cool-idea.com.tw/ iMaGiNaTiOn iS mOrE iMpOrTaNt tHaN kNoWlEdGe -- For Developers, A Lot Can Happen In A Second. Boundary is the first to Know...and Tell You. Monitor Your Applications in Ultra-Fine Resolution. Try it FREE! http://p.sf.net/sfu/Boundary-d2dvs2 ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] [BUG REPORT] edje_cc seg fault
On Fri, Apr 13, 2012 at 6:25 PM, Carsten Haitzler ras...@rasterman.com wrote: On Fri, 13 Apr 2012 15:02:21 +0800 Brian Wang brian.wang.0...@gmail.com said: type my commit : 70168. i memset'd cinfo to 0 - how did this creep in here. it shuldn't have. g. :( Now, it doesn't seg fault. However, it now complains: -- /usr/bin/edje_cc -id ../../data/objects -fd ../../data/objects \ ../../data/objects/test.edc \ ../../data/objects/test.edj /usr/bin/edje_cc: Error. Unable to load image sky.jpg used by file ../../data/objects/test.edj: File (or file path) does not exist. Check if path to file sky.jpg is correct (both directory and file name). -- sky.jpg is there though. Is it the same issue as this one? http://www.mail-archive.com/enlightenment-devel@lists.sourceforge.net/msg32965.html The system jpeg library is libjpeg8. Thanks in advance. brian Hello list, I just checked out the latest EFL but failed to complete compilation. The first thing to fail is that edje_cc doesn't seem to like LOSSY n in some of the edc files. I just changed them to COMP to pass the compilation. The next thing is when building elementary/data/objects/test.edj, edje_cc seg faults. Here is the relevant part of valgrind complaints: -- ==21318== Conditional jump or move depends on uninitialised value(s) ==21318== at 0x51D5C98: _evas_jpeg_membuf_src_term (evas_image_load_jpeg.c:133) ==21318== by 0x51D609C: evas_image_load_file_head_jpeg_internal (evas_image_load_jpeg.c:268) ==21318== by 0x51D8577: evas_image_load_file_head_jpeg (evas_image_load_jpeg.c:1202) ==21318== by 0x420DD12: evas_common_load_rgba_image_module_from_file (evas_image_load.c:218) ==21318== by 0x41E2968: _evas_cache_image_entry_new (evas_cache_image.c:314) ==21318== by 0x41E39A9: evas_cache_image_request (evas_cache_image.c:830) ==21318== by 0x420F36F: evas_common_load_image_from_file (evas_image_main.c:732) ==21318== by 0x51C4992: eng_image_load (evas_engine.c:670) ==21318== by 0x4190A16: evas_object_image_file_set (evas_object_image.c:364) ==21318== by 0x804BB5B: data_write_images (edje_cc_out.c:533) ==21318== by 0x804D957: data_write (edje_cc_out.c:1205) ==21318== by 0x804AC03: main (edje_cc.c:240) ==21318== ==21318== Conditional jump or move depends on uninitialised value(s) ==21318== at 0x402B02F: free (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so) ==21318== by 0x51D5CA4: _evas_jpeg_membuf_src_term (evas_image_load_jpeg.c:134) ==21318== by 0x51D609C: evas_image_load_file_head_jpeg_internal (evas_image_load_jpeg.c:268) ==21318== by 0x51D8577: evas_image_load_file_head_jpeg (evas_image_load_jpeg.c:1202) ==21318== by 0x420DD12: evas_common_load_rgba_image_module_from_file (evas_image_load.c:218) ==21318== by 0x41E2968: _evas_cache_image_entry_new (evas_cache_image.c:314) ==21318== by 0x41E39A9: evas_cache_image_request (evas_cache_image.c:830) ==21318== by 0x420F36F: evas_common_load_image_from_file (evas_image_main.c:732) ==21318== by 0x51C4992: eng_image_load (evas_engine.c:670) ==21318== by 0x4190A16: evas_object_image_file_set (evas_object_image.c:364) ==21318== by 0x804BB5B: data_write_images (edje_cc_out.c:533) ==21318== by 0x804D957: data_write (edje_cc_out.c:1205) ==21318== ==21318== Invalid free() / delete / delete[] / realloc() ==21318== at 0x402B06C: free (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so) ==21318== by 0x51D5CA4: _evas_jpeg_membuf_src_term (evas_image_load_jpeg.c:134) ==21318== by 0x51D609C: evas_image_load_file_head_jpeg_internal (evas_image_load_jpeg.c:268) ==21318== by 0x51D8577: evas_image_load_file_head_jpeg (evas_image_load_jpeg.c:1202) ==21318== by 0x420DD12: evas_common_load_rgba_image_module_from_file (evas_image_load.c:218) ==21318== by 0x41E2968: _evas_cache_image_entry_new (evas_cache_image.c:314) ==21318== by 0x41E39A9: evas_cache_image_request (evas_cache_image.c:830) ==21318== by 0x420F36F: evas_common_load_image_from_file (evas_image_main.c:732) ==21318== by 0x51C4992: eng_image_load (evas_engine.c:670) ==21318== by 0x4190A16: evas_object_image_file_set (evas_object_image.c:364) ==21318== by 0x804BB5B: data_write_images (edje_cc_out.c:533) ==21318== by 0x804D957: data_write (edje_cc_out.c:1205) ==21318== Address 0x4009cac is in the Text segment of /lib/i386-linux-gnu/ld-2.15.so ==21318== ==21318== Conditional jump or move depends on uninitialised value(s) ==21318== at 0x51D60A5: evas_image_load_file_head_jpeg_internal (evas_image_load_jpeg.c:269) ==21318== by 0x51D8577: evas_image_load_file_head_jpeg (evas_image_load_jpeg.c:1202) ==21318== by 0x420DD12: evas_common_load_rgba_image_module_from_file (evas_image_load.c:218) ==21318== by 0x41E2968: _evas_cache_image_entry_new (evas_cache_image.c:314) ==21318
Re: [E-devel] HEADER SIZE POLL
On Fri, Jul 29, 2011 at 12:42 AM, Mike Blumenkrantz m...@zentific.com wrote: This is a community project, so we can do stuff like having polls and taking votes right? Okay then, since there's been some disagreement with strong opinions on either side we're voting on a super important issue - header size. Specifically, the Elementary.h header. As with any serious vote, here is your ballot: 1) LEAVE AS-IS, CONTINUE ADDING DOCS TO Elementary.h 2) SPLIT INTO WIDGET HEADERS SIMILAR TO EINA 3) OTHER (Explain) #2. (me as an active Elementary user.) (forgot to reply all) This thread is for voting ONLY. Reply with your vote, no logical reasoning required. Any discussion can continue in the recently-made thread. PS. I expect all active developers to vote on this, even if you do not have a strong opinion. I WILL grep through the devs/ directory and email each of you individually if I have to. -- Mike Blumenkrantz Zentific: Coding in binary since '10. -- Got Input? Slashdot Needs You. Take our quick survey online. Come on, we don't ask for help often. Plus, you'll get a chance to win $100 to spend on ThinkGeek. http://p.sf.net/sfu/slashdot-survey ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel -- brian -- Cool-Karaoke - The smallest recording studio, in your palm, open-sourced http://cool-idea.com.tw/ iMaGiNaTiOn iS mOrE iMpOrTaNt tHaN kNoWlEdGe -- Got Input? Slashdot Needs You. Take our quick survey online. Come on, we don't ask for help often. Plus, you'll get a chance to win $100 to spend on ThinkGeek. http://p.sf.net/sfu/slashdot-survey ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
[E-devel] [BUG REPORT, with valgrind output] elm_flipselector : shorter flip interval causes the display to show invalid/wrong characters
==by 0x4139D71: _do_tick (ecore_anim.c:102) ==12363==by 0x413A85F: _ecore_animator (ecore_anim.c:568) ==12363==by 0x41441C2: _ecore_timer_call (ecore_timer.c:564) ==12363==by 0x4141B55: _ecore_main_loop_iterate_internal (ecore_main.c:1406) ==12363==by 0x4140969: ecore_main_loop_begin (ecore_main.c:689) ==12363==by 0x423D4C1: elm_run (elm_main.c:1098) ==12363==by 0x8050802: elm_main (cool-launcher2.c:1373) ==12363== ==12363== Conditional jump or move depends on uninitialised value(s) ==12363==at 0x48F7E8F: embryo_data_string_get (embryo_amx.c:660) ==12363==by 0x44B5F33: _edje_embryo_fn_set_text (edje_embryo.c:1067) ==12363==by 0x48F6FB0: _embryo_native_call (embryo_amx.c:94) ==12363==by 0x48FA169: embryo_program_run (embryo_amx.c:1776) ==12363==by 0x44E8588: _edje_var_anim_cb (edje_var.c:114) ==12363==by 0x4139D71: _do_tick (ecore_anim.c:102) ==12363==by 0x413A85F: _ecore_animator (ecore_anim.c:568) ==12363==by 0x41441C2: _ecore_timer_call (ecore_timer.c:564) ==12363==by 0x4141B55: _ecore_main_loop_iterate_internal (ecore_main.c:1406) ==12363==by 0x4140969: ecore_main_loop_begin (ecore_main.c:689) ==12363==by 0x423D4C1: elm_run (elm_main.c:1098) ==12363==by 0x8050802: elm_main (cool-launcher2.c:1373) On Wed, May 18, 2011 at 11:18 AM, Brian Wang brian.wang.0...@gmail.com wrote: Hello all, If elm_flipselector_interval_set() the interval to be shorter, say 0.25, the displayed item may be question marks or wrong characters. Thanks in advance. brian -- brian -- Cool-Karaoke - The smallest recording studio, in your palm, open-sourced http://cool-idea.com.tw/ iMaGiNaTiOn iS mOrE iMpOrTaNt tHaN kNoWlEdGe -- brian -- Cool-Karaoke - The smallest recording studio, in your palm, open-sourced http://cool-idea.com.tw/ iMaGiNaTiOn iS mOrE iMpOrTaNt tHaN kNoWlEdGe -- What Every C/C++ and Fortran developer Should Know! Read this article and learn how Intel has extended the reach of its next-generation tools to help Windows* and Linux* C/C++ and Fortran developers boost performance applications - including clusters. http://p.sf.net/sfu/intel-dev2devmay ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] [BUG REPORT] elm_diskselector : Bad text cutting with non-ASCII characters
On Wed, May 18, 2011 at 3:11 PM, Tom Hacohen tom.haco...@partner.samsung.com wrote: On Wed, 2011-05-18 at 10:04 +0300, Tom Hacohen wrote: There are the eina utf8 functions that do exactly that. I wonder what logic is implemented in that widget that needs that... I wonder what whoever who wrote it tried to do, cause I just took a look at the code and it makes zero sense :) You mean the eina utf8 functions or elm_diskselector? -- Tom. -- brian -- Cool-Karaoke - The smallest recording studio, in your palm, open-sourced http://cool-idea.com.tw/ iMaGiNaTiOn iS mOrE iMpOrTaNt tHaN kNoWlEdGe -- What Every C/C++ and Fortran developer Should Know! Read this article and learn how Intel has extended the reach of its next-generation tools to help Windows* and Linux* C/C++ and Fortran developers boost performance applications - including clusters. http://p.sf.net/sfu/intel-dev2devmay ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
[E-devel] [BUG REPORT] elm_diskselector : Bad text cutting with non-ASCII characters
Hello all, elm_diskselector seems to support only ASCII characters when cutting the text strings at the sides. _check_string/_check_letter() may be examined. Does evas has some handy exported functions to cut the text at proper UTF-8 character boundaries? Thanks in advance. brian -- brian -- Cool-Karaoke - The smallest recording studio, in your palm, open-sourced http://cool-idea.com.tw/ iMaGiNaTiOn iS mOrE iMpOrTaNt tHaN kNoWlEdGe -- What Every C/C++ and Fortran developer Should Know! Read this article and learn how Intel has extended the reach of its next-generation tools to help Windows* and Linux* C/C++ and Fortran developers boost performance applications - including clusters. http://p.sf.net/sfu/intel-dev2devmay ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
[E-devel] [BUG REPORT] elm_diskselector : shorter flip interval causes the display to show invalid/wrong characters
Hello all, If elm_flipselector_interval_set() the interval to be shorter, say 0.25, the displayed item may be question marks or wrong characters. Thanks in advance. brian -- brian -- Cool-Karaoke - The smallest recording studio, in your palm, open-sourced http://cool-idea.com.tw/ iMaGiNaTiOn iS mOrE iMpOrTaNt tHaN kNoWlEdGe -- What Every C/C++ and Fortran developer Should Know! Read this article and learn how Intel has extended the reach of its next-generation tools to help Windows* and Linux* C/C++ and Fortran developers boost performance applications - including clusters. http://p.sf.net/sfu/intel-dev2devmay ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
[E-devel] [PATCH] evas evas_textblock_cursor_content_get : don't strdup if NULL
Hello all, In some cases, evas_textblock_cursor_content_get() would seg fault due to strdup(NULL). The patch tries to avoid that. Please check the attached trivial patch and adjust it as you see fit. Thanks in advance. brian -- brian -- Cool-Karaoke - The smallest recording studio, in your palm, open-sourced http://cool-idea.com.tw/ iMaGiNaTiOn iS mOrE iMpOrTaNt tHaN kNoWlEdGe Index: evas/src/lib/canvas/evas_object_textblock.c === --- evas/src/lib/canvas/evas_object_textblock.c (revision 59345) +++ evas/src/lib/canvas/evas_object_textblock.c (working copy) @@ -6890,7 +6890,8 @@ tmp = evas_textblock_node_format_text_get( _evas_textblock_node_visible_at_pos_get( evas_textblock_cursor_format_get(cur))); -return strdup(tmp); +if (tmp) return strdup(tmp); + return NULL; } ustr = eina_ustrbuf_string_get(cur-node-unicode); -- Achieve unprecedented app performance and reliability What every C/C++ and Fortran developer should know. Learn how Intel has extended the reach of its next-generation tools to help boost performance applications - inlcuding clusters. http://p.sf.net/sfu/intel-dev2devmay___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] [PATCH] elm_slideshow : take care null item_prev/item_next when pre-creating the previous and next items
On Tue, May 10, 2011 at 4:39 PM, michael bouchaud michael.bouch...@gmail.com wrote: Thanks for report, fixed now in svn. Thanks. I haven't tested it but it seems good. :-) brian 2011/5/10 Brian Wang brian.wang.0...@gmail.com Hello all, When elm_slideshow's loop attribute is not set, _item_realize() will access NULL item_prev and item_next when trying to pre-create the previous and next items. Please find the trivial fix as attached and adjust it as you see fit. Thanks. brian -- brian -- Cool-Karaoke - The smallest recording studio, in your palm, open-sourced http://cool-idea.com.tw/ iMaGiNaTiOn iS mOrE iMpOrTaNt tHaN kNoWlEdGe -- Achieve unprecedented app performance and reliability What every C/C++ and Fortran developer should know. Learn how Intel has extended the reach of its next-generation tools to help boost performance applications - inlcuding clusters. http://p.sf.net/sfu/intel-dev2devmay ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel -- Michaël Bouchaud -- brian -- Cool-Karaoke - The smallest recording studio, in your palm, open-sourced http://cool-idea.com.tw/ iMaGiNaTiOn iS mOrE iMpOrTaNt tHaN kNoWlEdGe -- Achieve unprecedented app performance and reliability What every C/C++ and Fortran developer should know. Learn how Intel has extended the reach of its next-generation tools to help boost performance applications - inlcuding clusters. http://p.sf.net/sfu/intel-dev2devmay ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
[E-devel] [BUG REPORT] elm_genlist/Edje : Invisible Text When Switching the Elipsis Attribute of an Item
Hello all/tasn, This is definitely a bug but quite tricky to reproduce the problem. I'll do my best to describe the problem and my observation. I have a custom compressed genlist theme, which sets the elipsis attribute to 1.0 when an item is selected. The label part of a genlist item with the label of a certain width will become invisible when selected. The _magic_ width of course depends on a certain combination of the genlist scale, the text string and the font. Thus it may be difficult to reproduce the problem on different systems. Probably some boundary case in the text cutting code... Please let me know if there's anything else to test or report. Thanks in advance. brian -- brian -- Cool-Karaoke - The smallest recording studio, in your palm, open-sourced http://cool-idea.com.tw/ iMaGiNaTiOn iS mOrE iMpOrTaNt tHaN kNoWlEdGe -- WhatsUp Gold - Download Free Network Management Software The most intuitive, comprehensive, and cost-effective network management toolset available today. Delivers lowest initial acquisition cost and overall TCO of any competing solution. http://p.sf.net/sfu/whatsupgold-sd ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] [BUG REPORT] elm_genlist/Edje : Invisible Text When Switching the Elipsis Attribute of an Item
On Tue, May 10, 2011 at 1:23 AM, Tom Hacohen t...@stosb.com wrote: Fixed, in SVN, thanks. Confirmed fixed in r59305. Thanks. :-) brian -- Tom. -- brian -- Cool-Karaoke - The smallest recording studio, in your palm, open-sourced http://cool-idea.com.tw/ iMaGiNaTiOn iS mOrE iMpOrTaNt tHaN kNoWlEdGe -- Achieve unprecedented app performance and reliability What every C/C++ and Fortran developer should know. Learn how Intel has extended the reach of its next-generation tools to help boost performance applications - inlcuding clusters. http://p.sf.net/sfu/intel-dev2devmay ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
[E-devel] [PATCH] elm_slideshow : take care null item_prev/item_next when pre-creating the previous and next items
Hello all, When elm_slideshow's loop attribute is not set, _item_realize() will access NULL item_prev and item_next when trying to pre-create the previous and next items. Please find the trivial fix as attached and adjust it as you see fit. Thanks. brian -- brian -- Cool-Karaoke - The smallest recording studio, in your palm, open-sourced http://cool-idea.com.tw/ iMaGiNaTiOn iS mOrE iMpOrTaNt tHaN kNoWlEdGe Index: elementary/src/lib/elm_slideshow.c === --- elementary/src/lib/elm_slideshow.c (revision 59283) +++ elementary/src/lib/elm_slideshow.c (working copy) @@ -241,7 +241,8 @@ { --ac; --lc; - _item_next = _item_next_get(_item_next); + if (_item_next) +_item_next = _item_next_get(_item_next); if ((_item_next) (!_item_next-base.view) (_item_next-itc-func.get)) @@ -264,7 +265,8 @@ { --bc; --lc; - _item_prev = _item_prev_get(_item_prev); + if (_item_prev) + _item_prev = _item_prev_get(_item_prev); if ((_item_prev) (!_item_prev-base.view) (_item_prev-itc-func.get)) -- Achieve unprecedented app performance and reliability What every C/C++ and Fortran developer should know. Learn how Intel has extended the reach of its next-generation tools to help boost performance applications - inlcuding clusters. http://p.sf.net/sfu/intel-dev2devmay___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
[E-devel] [BUG REPORT] elm_genlist : Missing ASCII Characters When the Label Contains Mixed Chinese and ASCII Characters
Hello all, I just svn'd up (r59145) and found this strange problem. When a genlist item's label contains mixed Chinese and ASCII characters, the ASCII characters within the string are all gone! For example, _CHINESE_ will be displayed for the actual string, 1 _CHINESE_. Please see the attached for the demonstration of the problem. Thanks in advance. brian -- brian -- Cool-Karaoke - The smallest recording studio, in your palm, open-sourced http://cool-idea.com.tw/ iMaGiNaTiOn iS mOrE iMpOrTaNt tHaN kNoWlEdGe #include Elementary.h static Evas_Object *_win; static Elm_Genlist_Item_Class itc1; static void _gl_clear(void *data, Evas_Object *obj, void *event_info) { Evas_Object *gl = data; int i; elm_genlist_clear(gl); for (i = 0; i 10; i++) { elm_genlist_item_append(gl, itc1, (void *)i/* item data */, NULL/* parent */, ELM_GENLIST_ITEM_NONE, NULL/* func */, (void *)(i * 10)/* func data */); } } char *gl_label_get(void *data, Evas_Object *obj, const char *part) { char buf[256]; //snprintf(buf, sizeof(buf), Item # %i, (int)data); //snprintf(buf, sizeof(buf), 中文 1); snprintf(buf, sizeof(buf), 1 中文); return strdup(buf); } Evas_Object *gl_icon_get(void *data, Evas_Object *obj, const char *part) { return NULL; if (!strcmp(part, elm.swallow.end)) { Evas_Object *bt, *ic; #if 0 ic = elm_icon_add(_win); elm_icon_file_set(ic, icon.png, NULL); evas_object_show(ic); #endif bt = elm_button_add(_win); //elm_button_icon_set(bt, ic); elm_button_label_set(bt, bug); evas_object_smart_callback_add(bt, clicked, _gl_clear, obj); evas_object_show(bt); return bt; } return NULL; } Eina_Bool gl_state_get(void *data, Evas_Object *obj, const char *part) { return EINA_FALSE; } void gl_del(void *data, Evas_Object *obj) { } static void win_del(void *data, Evas_Object *obj, void *event_info) { printf(%s in\n, __func__); elm_exit(); } void test_genlist(void *data, Evas_Object *obj, void *event_info) { Evas_Object *win, *bg, *gl, *bx, *bt; Elm_Genlist_Item *gli; int i; _win = win = elm_win_add(NULL, genlist, ELM_WIN_BASIC); elm_win_title_set(win, Genlist); evas_object_smart_callback_add(win, delete-request, win_del, NULL); bg = elm_bg_add(win); elm_win_resize_object_add(win, bg); evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); evas_object_show(bg); bx = elm_box_add(win); evas_object_size_hint_weight_set(bx, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); elm_win_resize_object_add(win, bx); evas_object_show(bx); gl = elm_genlist_add(win); evas_object_size_hint_weight_set(gl, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); evas_object_size_hint_align_set(gl, EVAS_HINT_FILL, EVAS_HINT_FILL); //elm_genlist_homogeneous_set(gl, 1); // new elm_genlist_block_count_set(gl, 1); elm_genlist_no_select_mode_set(gl, 1); elm_object_scale_set(gl, 2.0); elm_box_pack_end(bx, gl); evas_object_show(gl); itc1.item_style = default; itc1.func.label_get = gl_label_get; itc1.func.icon_get = gl_icon_get; itc1.func.state_get = gl_state_get; itc1.func.del = gl_del; for (i = 0; i 1; i++) { gli = elm_genlist_item_append(gl, itc1, (void *)i/* item data */, NULL/* parent */, ELM_GENLIST_ITEM_NONE, NULL/* func */, (void *)(i * 10)/* func data */); } evas_object_resize(win, 320, 200); evas_object_show(win); } EAPI int elm_main(int argc, char **argv) { test_genlist(0,0,0); elm_run(); elm_shutdown(); return 0; } ELM_MAIN() -- WhatsUp Gold - Download Free Network Management Software The most intuitive, comprehensive, and cost-effective network management toolset available today. Delivers lowest initial acquisition cost and overall TCO of any competing solution. http://p.sf.net/sfu/whatsupgold-sd___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] [BUG REPORT] elm_genlist : Missing ASCII Characters When the Label Contains Mixed Chinese and ASCII Characters
On Tue, May 3, 2011 at 10:37 PM, Tom Hacohen tom.haco...@partner.samsung.com wrote: Oops, my bad ;P It's now fixed (in svn), sorry. Confirmed fixed with r59152. Thanks. :-) brian -- Tom. On Tue, 2011-05-03 at 19:12 +0800, Brian Wang wrote: Hello all, I just svn'd up (r59145) and found this strange problem. When a genlist item's label contains mixed Chinese and ASCII characters, the ASCII characters within the string are all gone! For example, _CHINESE_ will be displayed for the actual string, 1 _CHINESE_. Please see the attached for the demonstration of the problem. Thanks in advance. brian -- WhatsUp Gold - Download Free Network Management Software The most intuitive, comprehensive, and cost-effective network management toolset available today. Delivers lowest initial acquisition cost and overall TCO of any competing solution. http://p.sf.net/sfu/whatsupgold-sd ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel -- brian -- Cool-Karaoke - The smallest recording studio, in your palm, open-sourced http://cool-idea.com.tw/ iMaGiNaTiOn iS mOrE iMpOrTaNt tHaN kNoWlEdGe -- WhatsUp Gold - Download Free Network Management Software The most intuitive, comprehensive, and cost-effective network management toolset available today. Delivers lowest initial acquisition cost and overall TCO of any competing solution. http://p.sf.net/sfu/whatsupgold-sd ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] E SVN: raster trunk/evas/src/modules/loaders/bmp
On Thu, Mar 10, 2011 at 8:11 PM, Enlightenment SVN no-re...@enlightenment.org wrote: Log: ok - finally - biran wang... you get your hacky bmp loader. cool and thanks. :-) Author: raster Date: 2011-03-10 04:11:42 -0800 (Thu, 10 Mar 2011) New Revision: 57668 Trac: http://trac.enlightenment.org/e/changeset/57668 Modified: trunk/evas/src/modules/loaders/bmp/evas_image_load_bmp.c Modified: trunk/evas/src/modules/loaders/bmp/evas_image_load_bmp.c === --- trunk/evas/src/modules/loaders/bmp/evas_image_load_bmp.c 2011-03-10 12:04:00 UTC (rev 57667) +++ trunk/evas/src/modules/loaders/bmp/evas_image_load_bmp.c 2011-03-10 12:11:42 UTC (rev 57668) @@ -161,6 +161,7 @@ if (!read_int(f, tmp2)) goto close_file; important_colors = tmp2; // number of important colors - 0 if all if (image_size == 0) image_size = fsize - offset; + if ((comp == 0) (bit_count == 32)) hasa = 1; // GIMP seems to store it this way } else if (head_size == 108) // Windows 95/NT4 + (v4) { @@ -435,6 +436,7 @@ if (!read_int(f, tmp2)) goto close_file; important_colors = tmp2; // number of important colors - 0 if all if (image_size == 0) image_size = fsize - offset; + if ((comp == 0) (bit_count == 32)) hasa = 1; // GIMP seems to store it this way } else if (head_size == 108) // Windows 95/NT4 + (v4) { @@ -949,6 +951,7 @@ } else if (bit_count == 32) { + int none_zero_alpha = 0; pix = surface; for (y = 0; y h; y++) { @@ -959,6 +962,7 @@ g = p[1]; r = p[2]; a = p[3]; + if (a) none_zero_alpha = 1; if (!hasa) a = 0xff; *pix = ARGB_JOIN(a, r, g, b); p += 4; @@ -969,6 +973,17 @@ if (fix 0) p += 4 - fix; // align row read if (p = buffer_end) break; } + if (!none_zero_alpha) + { + ie-flags.alpha = 0; + if (hasa) + { + unsigned int *pixend = pix + (w * h); + + for (pix = surface; pix pixend; pix++) + A_VAL(pix) = 0xff; + } + } } else goto close_file; -- Colocation vs. Managed Hosting A question and answer guide to determining the best fit for your organization - today and in the future. http://p.sf.net/sfu/internap-sfd2d ___ enlightenment-svn mailing list enlightenment-...@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-svn -- brian -- Cool-Karaoke - The smallest recording studio, in your palm, open-sourced http://cool-idea.com.tw/ iMaGiNaTiOn iS mOrE iMpOrTaNt tHaN kNoWlEdGe -- Colocation vs. Managed Hosting A question and answer guide to determining the best fit for your organization - today and in the future. http://p.sf.net/sfu/internap-sfd2d ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
[E-devel] Is it possible to make elm_scroller always show an item?
Hello all, The widgets are: an elm_scroller contains an elm_box, which packs a list of elm_entry objects. Loading a long list of elm_entries (100+) is somehow slow on my device and the user may skip to the very end of the list. Therefore, to improve responsiveness, when the user skips to a particular entry, that entry is loaded immediately and the ones below are loaded subsequently in an idler. There is an entry populating idler that will later pack the remaining elm_entries above the entry being viewed. However, when the ones above the currently viewed entry are getting packed into the elm_box, the entry being viewed will be pushed down and go off screen. Is there a way to maintain the viewport of the scroller, or fix the viewport on a particular object? Or there's a better way of handling this? Thanks in advance. brian -- brian -- Cool-Karaoke - The smallest recording studio, in your palm, open-sourced http://cool-idea.com.tw/ iMaGiNaTiOn iS mOrE iMpOrTaNt tHaN kNoWlEdGe -- Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! Finally, a world-class log management solution at an even better price-free! Download using promo code Free_Logger_4_Dev2Dev. Offer expires February 28th, so secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsight-sfd2d ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
[E-devel] elm_scroller : _focus_region_hook() behaviour
Hello all, The current elm_scroller.c:_focus_region_hook() behaviour is somehow troublesome. The code snippet is pasted below. Why does it scroll? When I press/click on a scroller, the viewport seems to change and the sudden jumpy change is annoying (at least to me). I commented out the code and have not found any strange behaviour but I would like to know the reasoning of the code. Thanks in advance. static void _focus_region_hook(Evas_Object *obj, Evas_Coord x, Evas_Coord y, Evas_Coord w, Evas_Coord h) { Widget_Data *wd = elm_widget_data_get(obj); if (wd-scr) elm_smart_scroller_child_region_show(wd-scr, x, y, w, h); } brian -- brian -- Cool-Karaoke - The smallest recording studio, in your palm, open-sourced http://cool-idea.com.tw/ iMaGiNaTiOn iS mOrE iMpOrTaNt tHaN kNoWlEdGe -- Learn how Oracle Real Application Clusters (RAC) One Node allows customers to consolidate database storage, standardize their database environment, and, should the need arise, upgrade to a full multi-node Oracle RAC database without downtime or disruption http://p.sf.net/sfu/oracle-sfdevnl ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] elm_toolbar api and icons
On Wed, Nov 3, 2010 at 5:27 PM, Rui Miguel Silva Seabra r...@1407.org wrote: Em 03-11-2010 01:05, Brian Wang escreveu: On Wed, Nov 3, 2010 at 8:11 AM, Rui Miguel Silva Seabrar...@1407.org wrote: Hi, So I've been a bit surprised by the change of icons in elm_toolbar from an Evas_Object * into a const char *. How do I use an icon not predicted by elementary now? elm_theme_overlay_add() your theme file, which contains elm/icon/toolbar/YOUR_ICON_NAME/default as the group. Just copy and modify the part of the icon section of elementary's default.edc. I was surprised too. :-) Isn't that a bit too excessive just to change *one* icon? Forwarding this to the list... brian Rui -- brian -- Cool-Karaoke - The smallest recording studio, in your palm, open-sourced http://cool-idea.com.tw/ iMaGiNaTiOn iS mOrE iMpOrTaNt tHaN kNoWlEdGe -- Achieve Improved Network Security with IP and DNS Reputation. Defend against bad network traffic, including botnets, malware, phishing sites, and compromised hosts - saving your company time, money, and embarrassment. Learn More! http://p.sf.net/sfu/hpdev2dev-nov ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
[E-devel] [BUG REPORT] evas / fontconfig problem? Chinese display problem
Hello all, I just svn'd up and my app doesn't show Chinese characters properly anymore. All of them become square blocks... I tried embedding fonts in my theme file and it worked. Thus, probably a fontconfig usage problem? Any pointers? Thanks in advance. brian -- brian -- Cool-Karaoke - The smallest recording studio, in your palm, open-sourced http://cool-idea.com.tw/ iMaGiNaTiOn iS mOrE iMpOrTaNt tHaN kNoWlEdGe -- Nokia and ATT present the 2010 Calling All Innovators-North America contest Create new apps games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] [BUG REPORT] evas / fontconfig problem? Chinese display problem
On Mon, Nov 1, 2010 at 11:29 PM, Tom Hacohen tom.haco...@partner.samsung.com wrote: On Mon, 2010-11-01 at 23:21 +0800, Brian Wang wrote: Hello all, I just svn'd up and my app doesn't show Chinese characters properly anymore. All of them become square blocks... I tried embedding fonts in my theme file and it worked. Thus, probably a fontconfig usage problem? Can you by any chance tell from what revision and to what revision you updated? Sorry... I should have written down the revision number before any update. Anyway, I remember my previous bug report of elementary_config's needing efreet and raster fixed it quite soon in r53945. And r54074 is causing the problem. I do keep the list of files updated for svn up. For evas, it touches: Uevas/src/lib/cache/evas_cache_image.c Uevas/src/lib/include/evas_common.h Uevas/src/lib/engines/common/evas_font_draw.c Uevas/src/lib/engines/common/evas_font_load.c Uevas/src/lib/engines/common/evas_font_private.h Uevas/src/lib/engines/common/evas_font_query.c Uevas/src/lib/engines/common/evas_font_main.c Updated to revision 54074. Is the info enough? brian Thanks, Tom. -- brian -- Cool-Karaoke - The smallest recording studio, in your palm, open-sourced http://cool-idea.com.tw/ iMaGiNaTiOn iS mOrE iMpOrTaNt tHaN kNoWlEdGe -- Nokia and ATT present the 2010 Calling All Innovators-North America contest Create new apps games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] [BUG REPORT] evas / fontconfig problem? Chinese display problem
On Tue, Nov 2, 2010 at 12:14 AM, Tom Hacohen tom.haco...@partner.samsung.com wrote: On Mon, 2010-11-01 at 23:44 +0800, Brian Wang wrote: Sorry... I should have written down the revision number before any update. Nah, that's fine. Anyway, I remember my previous bug report of elementary_config's needing efreet and raster fixed it quite soon in r53945. And r54074 is causing the problem. I do keep the list of files updated for svn up. For evas, it touches: U evas/src/lib/cache/evas_cache_image.c U evas/src/lib/include/evas_common.h U evas/src/lib/engines/common/evas_font_draw.c U evas/src/lib/engines/common/evas_font_load.c U evas/src/lib/engines/common/evas_font_private.h U evas/src/lib/engines/common/evas_font_query.c U evas/src/lib/engines/common/evas_font_main.c Updated to revision 54074. Is the info enough? Seems so. Please try using commit 53986 (I think 53987 broke it, and that's the latest anyway). Does it fix it? Commit 53987 looks like it did evil stuff with the higher Unicode values (for example, Chinese), maybe that's it. Please let me know, Right on! With r53896, Chinese characters are shown properly. With r53986, they become rectangles. brian Tom. -- brian -- Cool-Karaoke - The smallest recording studio, in your palm, open-sourced http://cool-idea.com.tw/ iMaGiNaTiOn iS mOrE iMpOrTaNt tHaN kNoWlEdGe -- Nokia and ATT present the 2010 Calling All Innovators-North America contest Create new apps games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] [BUG REPORT] evas / fontconfig problem? Chinese display problem
On Tue, Nov 2, 2010 at 12:55 PM, Carsten Haitzler ras...@rasterman.com wrote: On Tue, 2 Nov 2010 00:31:38 +0800 Brian Wang brian.wang.0...@gmail.com said: fixed in commit #54085. :) Confirmed fixed. Thanks. brian On Tue, Nov 2, 2010 at 12:14 AM, Tom Hacohen tom.haco...@partner.samsung.com wrote: On Mon, 2010-11-01 at 23:44 +0800, Brian Wang wrote: Sorry... I should have written down the revision number before any update. Nah, that's fine. Anyway, I remember my previous bug report of elementary_config's needing efreet and raster fixed it quite soon in r53945. And r54074 is causing the problem. I do keep the list of files updated for svn up. For evas, it touches: U evas/src/lib/cache/evas_cache_image.c U evas/src/lib/include/evas_common.h U evas/src/lib/engines/common/evas_font_draw.c U evas/src/lib/engines/common/evas_font_load.c U evas/src/lib/engines/common/evas_font_private.h U evas/src/lib/engines/common/evas_font_query.c U evas/src/lib/engines/common/evas_font_main.c Updated to revision 54074. Is the info enough? Seems so. Please try using commit 53986 (I think 53987 broke it, and that's the latest anyway). Does it fix it? Commit 53987 looks like it did evil stuff with the higher Unicode values (for example, Chinese), maybe that's it. Please let me know, Right on! With r53896, Chinese characters are shown properly. With r53986, they become rectangles. brian Tom. -- brian -- Cool-Karaoke - The smallest recording studio, in your palm, open-sourced http://cool-idea.com.tw/ iMaGiNaTiOn iS mOrE iMpOrTaNt tHaN kNoWlEdGe -- Nokia and ATT present the 2010 Calling All Innovators-North America contest Create new apps games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel -- - Codito, ergo sum - I code, therefore I am -- The Rasterman (Carsten Haitzler) ras...@rasterman.com -- brian -- Cool-Karaoke - The smallest recording studio, in your palm, open-sourced http://cool-idea.com.tw/ iMaGiNaTiOn iS mOrE iMpOrTaNt tHaN kNoWlEdGe -- Nokia and ATT present the 2010 Calling All Innovators-North America contest Create new apps games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] E SVN: bdilly IN trunk/TMP/st/elementary/src: bin lib
On Wed, Oct 27, 2010 at 9:50 PM, Bruno Dilly bdi...@profusion.mobi wrote: On Wed, Oct 27, 2010 at 4:18 AM, David Seikel onef...@gmail.com wrote: On Tue, 26 Oct 2010 16:23:22 -0200 Bruno Dilly bdi...@profusion.mobi wrote: As requested by people that usually don't read the commit messages, I'm trying to make these elm_toolbar api changes more visible. On Tue, Oct 26, 2010 at 8:29 AM, Enlightenment SVN no-re...@enlightenment.org wrote: Log: Change toolbar API for consistency with other widgets Um, they could just read the commit messages, and save duplicating commit messages here. That's why we have a separate commit list. At Yeah, I completely agree with you. But people is complaining about the lack of advertising when changes on elm API are made. OK. That seems to be me. :-) However, I did suggest making a note on the subject line of the e-svn mailing list mails whenever the API is touched. Something like [API CHANGE]. The subject line is where people, at least me, scan quickly for something interesting. If the particular commit touches whatever I'm working on, I would expand the mail and read the commit message. But I guess maybe there's some technical difficulty with it to make it automatic. Don't know... I hope there's a better way that draws attention to warn EFL users about API changes since API changes are quite _scary_ when the application in development is to be shipped commercially... The heads-up warning is appreciated. :-) brian least trim the email so it's not got 64KB of code patch if all they need is to be informed. OK, I'll do it next time. -- Nokia and ATT present the 2010 Calling All Innovators-North America contest Create new apps games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel -- Nokia and ATT present the 2010 Calling All Innovators-North America contest Create new apps games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel -- brian -- Cool-Karaoke - The smallest recording studio, in your palm, open-sourced http://cool-idea.com.tw/ iMaGiNaTiOn iS mOrE iMpOrTaNt tHaN kNoWlEdGe -- Nokia and ATT present the 2010 Calling All Innovators-North America contest Create new apps games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
[E-devel] [BUG REPORT] invalid access to eina chained mempool (elm_toolbar_add - elm_theme - edje - eina mempool)
Hello list, I just svn'd up. A simple elm_toolbar_add call triggers this. Don't know which part of EFL is at fault (probably due to the newly introduced valgrind macros in eina mempools?). valgrind log: -- ==11056== Invalid free() / delete / delete[] ==11056==at 0x417F839: eina_chained_mempool_free (eina_chained_mempool.c:285) ==11056==by 0x4458012: eina_mempool_free (eina_inline_mempool.x:98) ==11056==by 0x445A392: _edje_file_del (edje_load.c:1001) ==11056==by 0x44587C5: _edje_object_file_set_internal (edje_load.c:328) ==11056==by 0x446C4D6: _edje_smart_file_set (edje_smart.c:324) ==11056==by 0x445805F: edje_object_file_set (edje_load.c:33) ==11056==by 0x41AB5EE: _elm_theme_set (elm_theme.c:140) ==11056==by 0x41AB4A8: _elm_theme_object_set (elm_theme.c:117) ==11056==by 0x4231528: elm_smart_scroller_object_theme_set (els_scroller.c:990) ==11056==by 0x41D675B: elm_toolbar_add (elm_toolbar.c:575) ==11056==by 0x804F827: _init_loop (cool-launcher.c:1227) ==11056==by 0x4122D16: _ecore_timer_call (ecore_timer.c:564) ==11056== Address 0x0 is not stack'd, malloc'd or (recently) free'd ==11056== ==11056== Invalid free() / delete / delete[] ==11056==at 0x417F839: eina_chained_mempool_free (eina_chained_mempool.c:285) ==11056==by 0x4458012: eina_mempool_free (eina_inline_mempool.x:98) ==11056==by 0x445A3D0: _edje_file_del (edje_load.c:1005) ==11056==by 0x44587C5: _edje_object_file_set_internal (edje_load.c:328) ==11056==by 0x446C4D6: _edje_smart_file_set (edje_smart.c:324) ==11056==by 0x445805F: edje_object_file_set (edje_load.c:33) ==11056==by 0x41AB5EE: _elm_theme_set (elm_theme.c:140) ==11056==by 0x41AB4A8: _elm_theme_object_set (elm_theme.c:117) ==11056==by 0x4231528: elm_smart_scroller_object_theme_set (els_scroller.c:990) ==11056==by 0x41D675B: elm_toolbar_add (elm_toolbar.c:575) ==11056==by 0x804F827: _init_loop (cool-launcher.c:1227) ==11056==by 0x4122D16: _ecore_timer_call (ecore_timer.c:564) ==11056== Address 0x0 is not stack'd, malloc'd or (recently) free'd ==11056== ==11056== Invalid free() / delete / delete[] ==11056==at 0x417F839: eina_chained_mempool_free (eina_chained_mempool.c:285) ==11056==by 0x4458012: eina_mempool_free (eina_inline_mempool.x:98) ==11056==by 0x445A392: _edje_file_del (edje_load.c:1001) ==11056==by 0x446BE9A: _edje_smart_del (edje_smart.c:142) ==11056==by 0x4088F97: evas_object_smart_del (evas_object_smart.c:902) ==11056==by 0x407F002: evas_object_del (evas_object_main.c:383) ==11056==by 0x41B762C: _smart_del (elm_widget.c:2425) ==11056==by 0x4088F97: evas_object_smart_del (evas_object_smart.c:902) ==11056==by 0x407F002: evas_object_del (evas_object_main.c:383) ==11056==by 0x41FC991: _del_pre_hook (elm_menu.c:81) ==11056==by 0x41B74F8: _smart_del (elm_widget.c:2404) ==11056==by 0x4088F97: evas_object_smart_del (evas_object_smart.c:902) ==11056== Address 0x0 is not stack'd, malloc'd or (recently) free'd ==11056== ==11056== Invalid free() / delete / delete[] ==11056==at 0x417F839: eina_chained_mempool_free (eina_chained_mempool.c:285) ==11056==by 0x4458012: eina_mempool_free (eina_inline_mempool.x:98) ==11056==by 0x445A3D0: _edje_file_del (edje_load.c:1005) ==11056==by 0x446BE9A: _edje_smart_del (edje_smart.c:142) ==11056==by 0x4088F97: evas_object_smart_del (evas_object_smart.c:902) ==11056==by 0x407F002: evas_object_del (evas_object_main.c:383) ==11056==by 0x41B762C: _smart_del (elm_widget.c:2425) ==11056==by 0x4088F97: evas_object_smart_del (evas_object_smart.c:902) ==11056==by 0x407F002: evas_object_del (evas_object_main.c:383) ==11056==by 0x41FC991: _del_pre_hook (elm_menu.c:81) ==11056==by 0x41B74F8: _smart_del (elm_widget.c:2404) ==11056==by 0x4088F97: evas_object_smart_del (evas_object_smart.c:902) ==11056== Address 0x0 is not stack'd, malloc'd or (recently) free'd -- Thanks in advance. brian -- brian -- Cool-Karaoke - The smallest recording studio, in your palm, open-sourced http://cool-idea.com.tw/ iMaGiNaTiOn iS mOrE iMpOrTaNt tHaN kNoWlEdGe -- Nokia and ATT present the 2010 Calling All Innovators-North America contest Create new apps games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] efl documentation (for 1.0.0)
On Mon, Oct 25, 2010 at 2:19 PM, Carsten Haitzler ras...@rasterman.com wrote: On Fri, 22 Oct 2010 07:05:09 -0200 Gustavo Sverzut Barbieri barbi...@profusion.mobi said: On Friday, October 22, 2010, Cedric BAIL cedric.b...@free.fr wrote: On Fri, Oct 22, 2010 at 7:22 AM, Carsten Haitzler ras...@rasterman.com wrote: ok as a general thing. this isn't any api break. doxyegen doc comments. should they go in .c files or in .h files? good question. eet has it all in Eet.h. the rest of efl has it in .c files. a good case has been made for it being in .h files instead of .c - that developers actually do read the .h files and then dont see the docs. they need to go get the src separately OR find the separately generated docs. having it all there in 1 place already shipped and installed is useful as docs are ready to read without needing to find the pretty generated html ones (or man pages). another bonus - it's instantly obvious what functions are and are not documented. what do people think? move docs to .h file(s)? (its really mostly a mechanical thing). It make a lot of sense to have the doc in the public header indeed. So I would vote for that too. -1 as it gets out of sync much easier, makes .h cluttered to be read by humans (elementary and evas are already bad) aaah. and this is actually the point made for having it there. if efl is released 1.0 - it gains many new novice efl users. they NEED docs. they are not experienced. they are not after a shorthand reference of function names. the first place they look is the header files and they are not finding the docs there. so for us few experienced people they get cluttered - and that was part of the consensus. but when we are outnumbered 100:1 with novices looking for info... then this changes the view a bit - and the case has been made to me that this is actually happening already. we just don't know about it happening. thus this email about it. Count me in as a novice EFL user. This is how I find the functions I need: 1. Look into /usr/include/xxx/xxx.h 2. If the header doesn't explain itself well, I'll google the function. Normally, the auto-generated doc goes to the top of the search results. However, sometimes it's buried in the search results. IMHO, put docs in the source and let doxygen generate beautifully formatted HTML. Put the URL of the auto-generated docs of the library on the top of the header file to make it easier to find. If the naming of the API is somehow confusing, simple docs in the header file help too. Reading doxygen comments isn't exactly a quick read and it doesn't provide linking in the raw form. Probably some vim plugins would help... Thus, cluttering the header file with doxygen comments will make the header file more difficult to read. By the way, I tried 'make pdf' and the resulting PDF doc is kind of ugly, font-wise. Is it a latex thing or is it because of my system setup? Beautiful doxygen-based PDF doc files are good too when I go offline... That's my two cents. brian so far i'd say the opinions are about evenly divided here. that makes this pretty much a 6 or half a dozen change so far. -- - Codito, ergo sum - I code, therefore I am -- The Rasterman (Carsten Haitzler) ras...@rasterman.com -- Nokia and ATT present the 2010 Calling All Innovators-North America contest Create new apps games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel -- brian -- Cool-Karaoke - The smallest recording studio, in your palm, open-sourced http://cool-idea.com.tw/ iMaGiNaTiOn iS mOrE iMpOrTaNt tHaN kNoWlEdGe -- Nokia and ATT present the 2010 Calling All Innovators-North America contest Create new apps games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] efl documentation (for 1.0.0)
On Mon, Oct 25, 2010 at 3:15 PM, Carsten Haitzler ras...@rasterman.com wrote: On Mon, 25 Oct 2010 15:10:30 +0800 Brian Wang brian.wang.0...@gmail.com said: On Mon, Oct 25, 2010 at 2:19 PM, Carsten Haitzler ras...@rasterman.com wrote: On Fri, 22 Oct 2010 07:05:09 -0200 Gustavo Sverzut Barbieri barbi...@profusion.mobi said: On Friday, October 22, 2010, Cedric BAIL cedric.b...@free.fr wrote: On Fri, Oct 22, 2010 at 7:22 AM, Carsten Haitzler ras...@rasterman.com wrote: ok as a general thing. this isn't any api break. doxyegen doc comments. should they go in .c files or in .h files? good question. eet has it all in Eet.h. the rest of efl has it in .c files. a good case has been made for it being in .h files instead of .c - that developers actually do read the .h files and then dont see the docs. they need to go get the src separately OR find the separately generated docs. having it all there in 1 place already shipped and installed is useful as docs are ready to read without needing to find the pretty generated html ones (or man pages). another bonus - it's instantly obvious what functions are and are not documented. what do people think? move docs to .h file(s)? (its really mostly a mechanical thing). It make a lot of sense to have the doc in the public header indeed. So I would vote for that too. -1 as it gets out of sync much easier, makes .h cluttered to be read by humans (elementary and evas are already bad) aaah. and this is actually the point made for having it there. if efl is released 1.0 - it gains many new novice efl users. they NEED docs. they are not experienced. they are not after a shorthand reference of function names. the first place they look is the header files and they are not finding the docs there. so for us few experienced people they get cluttered - and that was part of the consensus. but when we are outnumbered 100:1 with novices looking for info... then this changes the view a bit - and the case has been made to me that this is actually happening already. we just don't know about it happening. thus this email about it. Count me in as a novice EFL user. This is how I find the functions I need: 1. Look into /usr/include/xxx/xxx.h 2. If the header doesn't explain itself well, I'll google the function. Normally, the auto-generated doc goes to the top of the search results. However, sometimes it's buried in the search results. IMHO, put docs in the source and let doxygen generate beautifully formatted HTML. Put the URL of the auto-generated docs of the library on the top of the header file to make it easier to find. If the naming of the API is somehow confusing, simple docs in the header file help too. Reading doxygen comments isn't exactly a quick read and it doesn't provide linking in the raw form. Probably some vim plugins would help... Thus, cluttering the header file with doxygen comments will make the header file more difficult to read. By the way, I tried 'make pdf' and the resulting PDF doc is kind of ugly, font-wise. Is it a latex thing or is it because of my system setup? Beautiful doxygen-based PDF doc files are good too when I go offline... That's my two cents. the html docs should work offline too... just bring up index.html in a browser. Yes, it works! Cool! brian -- - Codito, ergo sum - I code, therefore I am -- The Rasterman (Carsten Haitzler) ras...@rasterman.com -- brian -- Cool-Karaoke - The smallest recording studio, in your palm, open-sourced http://cool-idea.com.tw/ iMaGiNaTiOn iS mOrE iMpOrTaNt tHaN kNoWlEdGe -- Nokia and ATT present the 2010 Calling All Innovators-North America contest Create new apps games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] Fwd: E SVN: acidx IN trunk/TMP/st/elementary/src: bin lib
On Thu, Oct 21, 2010 at 6:54 AM, Gustavo Sverzut Barbieri barbi...@profusion.mobi wrote: Brian and other interested peers, the elm menu changed WRT icon. Expect more changes soon to the way menus are structured. Thanks for the heads-up. I'm glad I'm not affected this time. :-) brian -- Forwarded message -- From: Enlightenment SVN no-re...@enlightenment.org Date: Wed, Oct 20, 2010 at 7:30 PM Subject: E SVN: acidx IN trunk/TMP/st/elementary/src: bin lib To: enlightenment-...@lists.sourceforge.net Log: [Elementary] Use elm_icon_standard_set() on Elm_Menu items. This breaks the API *and* the ABI, but this should be consistent with Elm_Toolbar. We'll probably need a tweak here and there, but I really think Elm_Menu should be rewritten. Author: acidx Date: 2010-10-20 14:30:00 -0700 (Wed, 20 Oct 2010) New Revision: 53694 Modified: trunk/TMP/st/elementary/src/bin/test_menu.c trunk/TMP/st/elementary/src/bin/test_toolbar.c trunk/TMP/st/elementary/src/lib/Elementary.h.in trunk/TMP/st/elementary/src/lib/elm_menu.c trunk/TMP/st/elementary/src/lib/elm_toolbar.c Modified: trunk/TMP/st/elementary/src/bin/test_menu.c === --- trunk/TMP/st/elementary/src/bin/test_menu.c 2010-10-20 20:55:42 UTC (rev 53693) +++ trunk/TMP/st/elementary/src/bin/test_menu.c 2010-10-20 21:30:00 UTC (rev 53694) @@ -4,8 +4,7 @@ #endif #ifndef ELM_LIB_QUICKLAUNCH -static Evas_Object *win, *bg, *menu, *rect, *ic;; -static char buf[PATH_MAX]; +static Evas_Object *win, *bg, *menu, *rect; static void _show(void *data, Evas *e __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info) @@ -18,83 +17,38 @@ static void _populate_4(Elm_Menu_Item *item) { - Evas_Object *ic; Elm_Menu_Item *item2; - ic = elm_icon_add(win); - snprintf(buf, sizeof(buf), %s/images/logo_small.png, PACKAGE_DATA_DIR); - elm_icon_file_set(ic, buf, NULL); - elm_menu_item_add(menu, item, ic, menu 2, NULL, NULL); - - ic = elm_icon_add(win); - snprintf(buf, sizeof(buf), %s/images/logo_small.png, PACKAGE_DATA_DIR); - elm_icon_file_set(ic, buf, NULL); - - elm_menu_item_add(menu, item, ic, menu 3, NULL, NULL); - + elm_menu_item_add(menu, item, go-bottom, menu 2, NULL, NULL); + elm_menu_item_add(menu, item, go-first, menu 3, NULL, NULL); elm_menu_item_separator_add(menu, item); - - ic = elm_icon_add(win); - snprintf(buf, sizeof(buf), %s/images/logo_small.png, PACKAGE_DATA_DIR); - elm_icon_file_set(ic, buf, NULL); - item2 = elm_menu_item_add(menu, item, ic, Disabled item, NULL, NULL); + item2 = elm_menu_item_add(menu, item, go-last, Disabled item, NULL, NULL); elm_menu_item_disabled_set(item2, 1); - - ic = elm_icon_add(win); - snprintf(buf, sizeof(buf), %s/images/logo_small.png, PACKAGE_DATA_DIR); - elm_icon_file_set(ic, buf, NULL); - item2 = elm_menu_item_add(menu, item, ic, Disabled item, NULL, NULL); + item2 = elm_menu_item_add(menu, item, go-next, Disabled item, NULL, NULL); elm_menu_item_disabled_set(item2, 1); - - ic = elm_icon_add(win); - snprintf(buf, sizeof(buf), %s/images/logo_small.png, PACKAGE_DATA_DIR); - elm_icon_file_set(ic, buf, NULL); - item2 = elm_menu_item_add(menu, item, ic, Disabled item, NULL, NULL); + item2 = elm_menu_item_add(menu, item, go-up, Disabled item, NULL, NULL); elm_menu_item_disabled_set(item2, 1); } static void _populate_3(Elm_Menu_Item *item) { - Evas_Object *ic; Elm_Menu_Item *item2; - ic = elm_icon_add(win); - snprintf(buf, sizeof(buf), %s/images/logo_small.png, PACKAGE_DATA_DIR); - elm_icon_file_set(ic, buf, NULL); - elm_menu_item_add(menu, item, ic, menu 2, NULL, NULL); - - ic = elm_icon_add(win); - snprintf(buf, sizeof(buf), %s/images/logo_small.png, PACKAGE_DATA_DIR); - elm_icon_file_set(ic, buf, NULL); - - elm_menu_item_add(menu, item, ic, menu 3, NULL, NULL); - + elm_menu_item_add(menu, item, media-eject, menu 2, NULL, NULL); + elm_menu_item_add(menu, item, media-playback-start, menu 3, NULL, NULL); elm_menu_item_separator_add(menu,item); - - ic = elm_icon_add(win); - snprintf(buf, sizeof(buf), %s/images/logo_small.png, PACKAGE_DATA_DIR); - elm_icon_file_set(ic, buf, NULL); - item2 = elm_menu_item_add(menu, item, ic, Disabled item, NULL, NULL); + item2 = elm_menu_item_add(menu, item, media-playback-stop, Disabled item, NULL, NULL); elm_menu_item_disabled_set(item2, 1); } static void _populate_2(Elm_Menu_Item *item) { - Evas_Object *ic; Elm_Menu_Item *item2, *item3; - ic = elm_icon_add(win); - snprintf(buf, sizeof(buf), %s/images/logo_small.png, PACKAGE_DATA_DIR); - elm_icon_file_set(ic, buf, NULL); - elm_menu_item_add(menu, item, ic, menu 2, NULL, NULL); - - ic = elm_icon_add(win); - snprintf(buf, sizeof(buf), %s/images/logo_small.png, PACKAGE_DATA_DIR); -
Re: [E-devel] [PATCH] elm_genlist: delete the swipe timer
Any comments? The invalid access occurs when the mouse is not up but elm_genlist_clear is called. On Sun, Oct 17, 2010 at 11:22 PM, Brian Wang brian.wang.0...@gmail.com wrote: Hello all, The swipe cancel timer isn't deleted in elm_genlist_clear, that will cause invalid access later on. Please ignore the first part of the patch. That affect performance on my device. Please apply the second part of the diff file. Thanks. :-) brian -- brian -- Cool-Karaoke - The smallest recording studio, in your palm, open-sourced http://cool-idea.com.tw/ iMaGiNaTiOn iS mOrE iMpOrTaNt tHaN kNoWlEdGe -- brian -- Cool-Karaoke - The smallest recording studio, in your palm, open-sourced http://cool-idea.com.tw/ iMaGiNaTiOn iS mOrE iMpOrTaNt tHaN kNoWlEdGe -- Download new Adobe(R) Flash(R) Builder(TM) 4 The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly Flex(R) Builder(TM)) enable the development of rich applications that run across multiple browsers and platforms. Download your free trials today! http://p.sf.net/sfu/adobe-dev2dev ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
[E-devel] [PATCH] elm_genlist: delete the swipe timer
Hello all, The swipe cancel timer isn't deleted in elm_genlist_clear, that will cause invalid access later on. Please ignore the first part of the patch. That affect performance on my device. Please apply the second part of the diff file. Thanks. :-) brian -- brian -- Cool-Karaoke - The smallest recording studio, in your palm, open-sourced http://cool-idea.com.tw/ iMaGiNaTiOn iS mOrE iMpOrTaNt tHaN kNoWlEdGe Index: elementary/src/lib/elm_genlist.c === --- elementary/src/lib/elm_genlist.c(revision 53513) +++ elementary/src/lib/elm_genlist.c(working copy) @@ -2067,7 +2067,8 @@ double t0, t; t0 = ecore_time_get(); - for (n = 0; (wd-queue) (n 128); n++) + //for (n = 0; (wd-queue) (n 128); n++) + for (n = 0; (wd-queue) (n 1); n++) { Elm_Genlist_Item *it; @@ -2341,6 +2342,7 @@ if (it-itc-func.del) it-itc-func.del((void *)it-base.data, it-base.widget); if (it-long_timer) ecore_timer_del(it-long_timer); +if (it-swipe_timer) ecore_timer_del(it-swipe_timer); elm_widget_item_del(it); } while (wd-blocks) -- Download new Adobe(R) Flash(R) Builder(TM) 4 The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly Flex(R) Builder(TM)) enable the development of rich applications that run across multiple browsers and platforms. Download your free trials today! http://p.sf.net/sfu/adobe-dev2dev___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] [Question] How to use the new Elementary toolbar API (elm_toolbar_item_add) to load non-standard icons
On Sat, Oct 16, 2010 at 1:31 AM, Gustavo Sverzut Barbieri barbi...@profusion.mobi wrote: On Friday, October 15, 2010, Brian Wang brian.wang.0...@gmail.com wrote: Hello list, I just svn'd up and found elm_toolbar_item_add() API is modified to take an icon string instead of the old Evas_Object * as its icon. I have bunch of dynamically loaded icons (associated with modules within subdirectories) and they are not part of a standard theme file. How do I set the toolbar icons with the new API? Preferably add them to one edj and register it as theme extension. Another option is to add them to freedesktop.org icon theme dir and enable it's usage. But as said the first option is the best. OK. Thanks. :-) A side question: How is this kind of API change discussed? As an EFL user, I find it sometimes quite troublesome failing to compile my apps after a svn update. Sorry, the API is not 1.0 so we can do it (yet, probably last month). It was discussed at irc only. As Leandro said, few others may change, such as menu. It's for good, but an annoyance :( Perhaps, we may get some warnings on the dev list about modifications to the existing API? Thanks in advance. brian -- brian -- Cool-Karaoke - The smallest recording studio, in your palm, open-sourced http://cool-idea.com.tw/ iMaGiNaTiOn iS mOrE iMpOrTaNt tHaN kNoWlEdGe -- Download new Adobe(R) Flash(R) Builder(TM) 4 The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly Flex(R) Builder(TM)) enable the development of rich applications that run across multiple browsers and platforms. Download your free trials today! http://p.sf.net/sfu/adobe-dev2dev ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel -- Gustavo Sverzut Barbieri http://profusion.mobi embedded systems -- MSN: barbi...@gmail.com Skype: gsbarbieri Mobile: +55 (19) 9225-2202 -- brian -- Cool-Karaoke - The smallest recording studio, in your palm, open-sourced http://cool-idea.com.tw/ iMaGiNaTiOn iS mOrE iMpOrTaNt tHaN kNoWlEdGe -- Download new Adobe(R) Flash(R) Builder(TM) 4 The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly Flex(R) Builder(TM)) enable the development of rich applications that run across multiple browsers and platforms. Download your free trials today! http://p.sf.net/sfu/adobe-dev2dev ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] [Question] How to use the new Elementary toolbar API (elm_toolbar_item_add) to load non-standard icons
On Sun, Oct 17, 2010 at 1:50 AM, Gustavo Sverzut Barbieri barbi...@profusion.mobi wrote: On Saturday, October 16, 2010, Brian Wang brian.wang.0...@gmail.com wrote: On Sat, Oct 16, 2010 at 1:31 AM, Gustavo Sverzut Barbieri barbi...@profusion.mobi wrote: On Friday, October 15, 2010, Brian Wang brian.wang.0...@gmail.com wrote: Hello list, I just svn'd up and found elm_toolbar_item_add() API is modified to take an icon string instead of the old Evas_Object * as its icon. I have bunch of dynamically loaded icons (associated with modules within subdirectories) and they are not part of a standard theme file. How do I set the toolbar icons with the new API? Preferably add them to one edj and register it as theme extension. Another option is to add them to freedesktop.org icon theme dir and enable it's usage. But as said the first option is the best. OK. Thanks. :-) A side question: How is this kind of API change discussed? As an EFL user, I find it sometimes quite troublesome failing to compile my apps after a svn update. Sorry, the API is not 1.0 so we can do it (yet, probably last month). It was discussed at irc only. As Leandro said, few others may change, such as menu. It's for good, but an annoyance :( Perhaps, we may get some warnings on the dev list about modifications to the existing API? That's a good practice I try to do, but sometimes it slips. However this one was mentioned in the e-svn ml. You mean r53407 commit? The subject line for e-svn ML, which I assume is automatically generated by a post-commit script, only shows the files that commit touches without a [WARNING: API Change] tag or something like that. Is it possible to monitor the commit diff that if there are changes to header files, put a nice little warning prefix to the subject line? Just an idea. :-) -- Gustavo Sverzut Barbieri http://profusion.mobi embedded systems -- MSN: barbi...@gmail.com Skype: gsbarbieri Mobile: +55 (19) 9225-2202 -- brian -- Cool-Karaoke - The smallest recording studio, in your palm, open-sourced http://cool-idea.com.tw/ iMaGiNaTiOn iS mOrE iMpOrTaNt tHaN kNoWlEdGe -- Download new Adobe(R) Flash(R) Builder(TM) 4 The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly Flex(R) Builder(TM)) enable the development of rich applications that run across multiple browsers and platforms. Download your free trials today! http://p.sf.net/sfu/adobe-dev2dev ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
[E-devel] [PATCH] Make elementary compile again
Hello list, Please apply the patch. Elementary doesn't compile due to TRUE instead of EINA_TRUE typos... Thanks. brian -- brian -- Cool-Karaoke - The smallest recording studio, in your palm, open-sourced http://cool-idea.com.tw/ iMaGiNaTiOn iS mOrE iMpOrTaNt tHaN kNoWlEdGe Index: src/lib/elm_panes.c === --- src/lib/elm_panes.c (revision 53503) +++ src/lib/elm_panes.c (working copy) @@ -101,7 +101,7 @@ unsigned char i = elm_widget_focus_get(chain[1]); if (elm_widget_focus_next_get(chain[i], dir, next)) - return TRUE; + return EINA_TRUE; i = !i; Index: src/lib/elc_fileselector_entry.c === --- src/lib/elc_fileselector_entry.c(revision 53503) +++ src/lib/elc_fileselector_entry.c(working copy) @@ -137,7 +137,7 @@ unsigned char i = elm_widget_focus_get(chain[1]); if (elm_widget_focus_next_get(chain[i], dir, next)) - return TRUE; + return EINA_TRUE; i = !i; -- Download new Adobe(R) Flash(R) Builder(TM) 4 The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly Flex(R) Builder(TM)) enable the development of rich applications that run across multiple browsers and platforms. Download your free trials today! http://p.sf.net/sfu/adobe-dev2dev___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] [BUG REPORT] Edje edje_object_part_text_cursor_next() never returns (infinite loops)
Hello all, It turns out that I'm not using elm_entry_cursor_content_get() correctly. I just assume it would return NULL if there's something wrong. Therefore, the infinity loop is my bad. Sorry for the false alarm. brian On Thu, Oct 14, 2010 at 2:44 PM, Brian Wang brian.wang.0...@gmail.com wrote: Hello all, I'm using a fairly recent svn version (r53178). Calling elm_entry_cursor_next() under a certain circumstance will cause an infinite loop somewhere. I'll try to describe the problem in my best: --- I have: elm_bubble |--- elm_scroller |--- elm_entry The elm_entry contains only a single line. Pressing (mouse,down) on the elm_entry obj will in turn call elm_entry_cursor_next(). The infinite loop happens when the mouse is clicked at the very bottom of elm_entry obj. There seems to be nothing (no text) at the clicked point. If you need more information, please let me know. It's probably very specific to my environment (theme). The gdb backtrace (captured when it's in some loops and I interrupted in the middle of the loops): --- #0 0xb7e8d2ec in eina_rbtree_inline_lookup (root=0x810a098, key=0xbfffd998, length=0, cmp=0xb7e8d40e _eina_hash_hash_rbtree_cmp_hash, data=0x0) at ../../src/include/eina_inline_rbtree.x:38 #1 0xb7e8d9cb in _eina_hash_find_by_hash (hash=0x84bb9b0, tuple=0xbfffd9dc, key_hash=3, hash_head=0xbfffd9ec) at eina_hash.c:338 #2 0xb7e8f9ba in eina_hash_find_by_hash (hash=0x84bb9b0, key=0xbfffda64, key_length=0, key_hash=443328659) at eina_hash.c:1449 #3 0xb7e8fb8d in eina_hash_find (hash=0x84bb9b0, key=0xbfffda64) at eina_hash.c:1485 #4 0xb7f7ed97 in evas_common_font_query_kerning (fi=0x84bb968, left=68, right=69, kerning=0xbfffdaac) at evas_font_query.c:19 #5 0xb7f7ef7a in evas_common_font_query_size (fn=0x84bbb10, text=0x8187cec Lbout] [above] [abroad] [absence] [absent] [absolute] [abstract] [academy] [accept] [access] [accident] [accommodate] [accompany] [accord] [account] [accumulate] , intl_props=0x84cfc80, w=0xbfffdc2c, h=0xbfffdc20) at evas_font_query.c:131 #6 0xb7f7f446 in evas_common_font_query_char_coords (fn=0x84bbb10, in_text=0x8187c58 L[a] [abandon] [ability] [able] [about] [above] [abroad] [absence] [absent] [absolute] [abstract] [academy] [accept] [access] [accident] [accommodate] [accompany] [accord] [account] ..., intl_props=0x84cfc80, pos=214, cx=0xbfffdc2c, cy=0xbfffdc28, cw=0xbfffdc24, ch=0xbfffdc20) at evas_font_query.c:395 #7 0xb709fd30 in eng_font_char_coords_get (data=0x80924e8, font=0x84bbb10, text=0x8187c58 L[a] [abandon] [ability] [able] [about] [above] [abroad] [absence] [absent] [absolute] [abstract] [academy] [accept] [access] [accident] [accommodate] [accompany] [accord] [account] ..., intl_props=0x84cfc80, pos=214, cx=0xbfffdc2c, cy=0xbfffdc28, cw=0xbfffdc24, ch=0xbfffdc20) at evas_engine.c:710 #8 0xb7f44265 in evas_textblock_cursor_char_geometry_get (cur=0x84ba9e8, cx=0xbfffdcfc, cy=0xbfffdcf8, cw=0xbfffdcf4, ch=0xbfffdcf0) at evas_object_textblock.c:6596 #9 0xb7f43e63 in evas_textblock_cursor_geometry_get (cur=0x84ba9e8, cx=0xbfffdcfc, cy=0xbfffdcf8, cw=0xbfffdcf4, ch=0xbfffdcf0, dir=0x0, ctype=EVAS_TEXTBLOCK_CURSOR_UNDER) at evas_object_textblock.c:6451 #10 0xb7bfaa65 in _edje_entry_real_part_configure (rp=0x80d2a08) at edje_entry.c:1860 #11 0xb7bfb853 in _edje_entry_cursor_next (rp=0x80d2a08, cur=EDJE_CURSOR_MAIN) at edje_entry.c:2234 #12 0xb7c1887c in edje_object_part_text_cursor_next (obj=0x84b6570, part=0xb7e79ffc elm.text, cur=EDJE_CURSOR_MAIN) at edje_util.c:1865 #13 0xb7e1fbe7 in elm_entry_cursor_next (obj=0x84b6390) at elm_entry.c:1828 #14 0xb6fdc83d in entry_cursor_word_get (obj=0x84b6390) at module.c:806 #15 0xb6fdcc47 in entry_match_pressed (data=0x0, obj=0x84b6390, event_info=0x0) at module.c:966 #16 0xb7f283fd in evas_object_smart_callback_call (obj=0x84b6390, event=0xb7e79ec2 press, event_info=0x0) at evas_object_smart.c:517 #17 0xb7e1e382 in _signal_mouse_down (data=0x84b6390, obj=0x84b6570, emission=0x84b28f8 mouse,down,1, source=0x84aaf80 elm.text) at elm_entry.c:1197 #18 0xb7c0db97 in _edje_emit_cb (ed=0x84b66a8, sig=0x84b28f8 mouse,down,1, src=0x84aaf80 elm.text) at edje_program.c:1271 #19 0xb7c0d9ef in _edje_emit_handle (ed=0x84b66a8, sig=0x84b28f8 mouse,down,1, src=0x84aaf80 elm.text) at edje_program.c:1219 #20 0xb7c096df in _edje_message_process (em=0x8105de0) at edje_message_queue.c:650 #21 0xb7c09af8 in _edje_message_queue_process () at edje_message_queue.c:755 #22 0xb7c08aa2 in _edje_job (data=0x0) at edje_message_queue.c:173 #23 0xb7ed9f88 in _ecore_job_event_handler (data=0x0, type=11, ev=0x81269d0) at ecore_job.c:98 #24 0xb7ed57ef in _ecore_event_call () at ecore_events.c:577 #25 0xb7edb563 in _ecore_main_loop_iterate_internal (once_only=0) at ecore_main.c:1346 #26 0xb7eda1c1
[E-devel] [Question] How to use the new Elementary toolbar API (elm_toolbar_item_add) to load non-standard icons
Hello list, I just svn'd up and found elm_toolbar_item_add() API is modified to take an icon string instead of the old Evas_Object * as its icon. I have bunch of dynamically loaded icons (associated with modules within subdirectories) and they are not part of a standard theme file. How do I set the toolbar icons with the new API? A side question: How is this kind of API change discussed? As an EFL user, I find it sometimes quite troublesome failing to compile my apps after a svn update. Thanks in advance. brian -- brian -- Cool-Karaoke - The smallest recording studio, in your palm, open-sourced http://cool-idea.com.tw/ iMaGiNaTiOn iS mOrE iMpOrTaNt tHaN kNoWlEdGe -- Download new Adobe(R) Flash(R) Builder(TM) 4 The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly Flex(R) Builder(TM)) enable the development of rich applications that run across multiple browsers and platforms. Download your free trials today! http://p.sf.net/sfu/adobe-dev2dev ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
[E-devel] [BUG REPORT] Edje edje_object_part_text_cursor_next() never returns (infinite loops)
Hello all, I'm using a fairly recent svn version (r53178). Calling elm_entry_cursor_next() under a certain circumstance will cause an infinite loop somewhere. I'll try to describe the problem in my best: --- I have: elm_bubble |--- elm_scroller |--- elm_entry The elm_entry contains only a single line. Pressing (mouse,down) on the elm_entry obj will in turn call elm_entry_cursor_next(). The infinite loop happens when the mouse is clicked at the very bottom of elm_entry obj. There seems to be nothing (no text) at the clicked point. If you need more information, please let me know. It's probably very specific to my environment (theme). The gdb backtrace (captured when it's in some loops and I interrupted in the middle of the loops): --- #0 0xb7e8d2ec in eina_rbtree_inline_lookup (root=0x810a098, key=0xbfffd998, length=0, cmp=0xb7e8d40e _eina_hash_hash_rbtree_cmp_hash, data=0x0) at ../../src/include/eina_inline_rbtree.x:38 #1 0xb7e8d9cb in _eina_hash_find_by_hash (hash=0x84bb9b0, tuple=0xbfffd9dc, key_hash=3, hash_head=0xbfffd9ec) at eina_hash.c:338 #2 0xb7e8f9ba in eina_hash_find_by_hash (hash=0x84bb9b0, key=0xbfffda64, key_length=0, key_hash=443328659) at eina_hash.c:1449 #3 0xb7e8fb8d in eina_hash_find (hash=0x84bb9b0, key=0xbfffda64) at eina_hash.c:1485 #4 0xb7f7ed97 in evas_common_font_query_kerning (fi=0x84bb968, left=68, right=69, kerning=0xbfffdaac) at evas_font_query.c:19 #5 0xb7f7ef7a in evas_common_font_query_size (fn=0x84bbb10, text=0x8187cec Lbout] [above] [abroad] [absence] [absent] [absolute] [abstract] [academy] [accept] [access] [accident] [accommodate] [accompany] [accord] [account] [accumulate] , intl_props=0x84cfc80, w=0xbfffdc2c, h=0xbfffdc20) at evas_font_query.c:131 #6 0xb7f7f446 in evas_common_font_query_char_coords (fn=0x84bbb10, in_text=0x8187c58 L[a] [abandon] [ability] [able] [about] [above] [abroad] [absence] [absent] [absolute] [abstract] [academy] [accept] [access] [accident] [accommodate] [accompany] [accord] [account] ..., intl_props=0x84cfc80, pos=214, cx=0xbfffdc2c, cy=0xbfffdc28, cw=0xbfffdc24, ch=0xbfffdc20) at evas_font_query.c:395 #7 0xb709fd30 in eng_font_char_coords_get (data=0x80924e8, font=0x84bbb10, text=0x8187c58 L[a] [abandon] [ability] [able] [about] [above] [abroad] [absence] [absent] [absolute] [abstract] [academy] [accept] [access] [accident] [accommodate] [accompany] [accord] [account] ..., intl_props=0x84cfc80, pos=214, cx=0xbfffdc2c, cy=0xbfffdc28, cw=0xbfffdc24, ch=0xbfffdc20) at evas_engine.c:710 #8 0xb7f44265 in evas_textblock_cursor_char_geometry_get (cur=0x84ba9e8, cx=0xbfffdcfc, cy=0xbfffdcf8, cw=0xbfffdcf4, ch=0xbfffdcf0) at evas_object_textblock.c:6596 #9 0xb7f43e63 in evas_textblock_cursor_geometry_get (cur=0x84ba9e8, cx=0xbfffdcfc, cy=0xbfffdcf8, cw=0xbfffdcf4, ch=0xbfffdcf0, dir=0x0, ctype=EVAS_TEXTBLOCK_CURSOR_UNDER) at evas_object_textblock.c:6451 #10 0xb7bfaa65 in _edje_entry_real_part_configure (rp=0x80d2a08) at edje_entry.c:1860 #11 0xb7bfb853 in _edje_entry_cursor_next (rp=0x80d2a08, cur=EDJE_CURSOR_MAIN) at edje_entry.c:2234 #12 0xb7c1887c in edje_object_part_text_cursor_next (obj=0x84b6570, part=0xb7e79ffc elm.text, cur=EDJE_CURSOR_MAIN) at edje_util.c:1865 #13 0xb7e1fbe7 in elm_entry_cursor_next (obj=0x84b6390) at elm_entry.c:1828 #14 0xb6fdc83d in entry_cursor_word_get (obj=0x84b6390) at module.c:806 #15 0xb6fdcc47 in entry_match_pressed (data=0x0, obj=0x84b6390, event_info=0x0) at module.c:966 #16 0xb7f283fd in evas_object_smart_callback_call (obj=0x84b6390, event=0xb7e79ec2 press, event_info=0x0) at evas_object_smart.c:517 #17 0xb7e1e382 in _signal_mouse_down (data=0x84b6390, obj=0x84b6570, emission=0x84b28f8 mouse,down,1, source=0x84aaf80 elm.text) at elm_entry.c:1197 #18 0xb7c0db97 in _edje_emit_cb (ed=0x84b66a8, sig=0x84b28f8 mouse,down,1, src=0x84aaf80 elm.text) at edje_program.c:1271 #19 0xb7c0d9ef in _edje_emit_handle (ed=0x84b66a8, sig=0x84b28f8 mouse,down,1, src=0x84aaf80 elm.text) at edje_program.c:1219 #20 0xb7c096df in _edje_message_process (em=0x8105de0) at edje_message_queue.c:650 #21 0xb7c09af8 in _edje_message_queue_process () at edje_message_queue.c:755 #22 0xb7c08aa2 in _edje_job (data=0x0) at edje_message_queue.c:173 #23 0xb7ed9f88 in _ecore_job_event_handler (data=0x0, type=11, ev=0x81269d0) at ecore_job.c:98 #24 0xb7ed57ef in _ecore_event_call () at ecore_events.c:577 #25 0xb7edb563 in _ecore_main_loop_iterate_internal (once_only=0) at ecore_main.c:1346 #26 0xb7eda1c1 in ecore_main_loop_begin () at ecore_main.c:568 --- -- brian -- Cool-Karaoke - The smallest recording studio, in your palm, open-sourced http://cool-idea.com.tw/ iMaGiNaTiOn iS mOrE iMpOrTaNt tHaN kNoWlEdGe -- Beautiful is writing same markup.
[E-devel] [PATCH] _edje_text_fit_x problem with non-ascii strings
Hello list, Edje's text chopping code seems to be mixing up the usage of UTF-8 character index with Unicode character index. This causes Chinese text strings to be cut off at the very beginning leaving lots of spaces following the elipsis. Please see the patch for the fix/hack. And it's not a properly patch since my own comment is not removed. Thanks in advance. brian -- brian -- Cool-Karaoke - The smallest recording studio, in your palm, open-sourced http://cool-idea.com.tw/ iMaGiNaTiOn iS mOrE iMpOrTaNt tHaN kNoWlEdGe Index: edje/src/lib/edje_text.c === --- edje/src/lib/edje_text.c(revision 53139) +++ edje/src/lib/edje_text.c(working copy) @@ -161,6 +161,28 @@ if ((c1 == 0) (c2 == 0)) return text; + /* coolbrian: convert c1 and c2 to utf8 pos */ + { + int i; + int pos; + + if (c1 0) { + pos = 0; + for (i = 0 ; i c1; i++) { + pos += evas_string_char_len_get(text + pos); + } + c1 = pos; + } + + if (c2 0) { + pos = 0; + for (i = 0 ; i c2; i++) { + pos += evas_string_char_len_get(text + pos); + } + c2 = pos; + } + } + orig_len = strlen(text); /* don't overflow orig_len by adding extra -- Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today. http://p.sf.net/sfu/beautyoftheweb___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] [PATCH] _edje_text_fit_x problem with non-ascii strings
The fix isn't correct. I'm testing more. hold on. On Thu, Oct 7, 2010 at 6:50 PM, Brian Wang brian.wang.0...@gmail.com wrote: Hello list, Edje's text chopping code seems to be mixing up the usage of UTF-8 character index with Unicode character index. This causes Chinese text strings to be cut off at the very beginning leaving lots of spaces following the elipsis. Please see the patch for the fix/hack. And it's not a properly patch since my own comment is not removed. Thanks in advance. brian -- brian -- Cool-Karaoke - The smallest recording studio, in your palm, open-sourced http://cool-idea.com.tw/ iMaGiNaTiOn iS mOrE iMpOrTaNt tHaN kNoWlEdGe -- brian -- Cool-Karaoke - The smallest recording studio, in your palm, open-sourced http://cool-idea.com.tw/ iMaGiNaTiOn iS mOrE iMpOrTaNt tHaN kNoWlEdGe -- Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today. http://p.sf.net/sfu/beautyoftheweb ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
[E-devel] [Question] Is it possible to copy the image snapshot of an Evas_Object to another Evas_Object?
Hello list, My question is pretty much as the title. I want to take a snapshot (just the rendered image) of an Evas_Object to another Image Evas_Object and so some effect on the new object. It's like store a screenshot of an evas object in another evas object. Thanks in advance. brian -- brian -- Cool-Karaoke - The smallest recording studio, in your palm, open-sourced http://cool-idea.com.tw/ iMaGiNaTiOn iS mOrE iMpOrTaNt tHaN kNoWlEdGe -- Virtualization is moving to the mainstream and overtaking non-virtualized environment for deploying applications. Does it make network security easier or more difficult to achieve? Read this whitepaper to separate the two and get a better understanding. http://p.sf.net/sfu/hp-phase2-d2d ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] [Question] Is it possible to copy the image snapshot of an Evas_Object to another Evas_Object?
On Mon, Oct 4, 2010 at 3:16 PM, Carsten Haitzler ras...@rasterman.com wrote: On Mon, 4 Oct 2010 15:11:30 +0800 Brian Wang brian.wang.0...@gmail.com said: you can't do that (yet). :) Shoot... I thought it was trivial for Evas to do this kind of task... Thanks. :-) brian Hello list, My question is pretty much as the title. I want to take a snapshot (just the rendered image) of an Evas_Object to another Image Evas_Object and so some effect on the new object. It's like store a screenshot of an evas object in another evas object. Thanks in advance. brian -- brian -- Cool-Karaoke - The smallest recording studio, in your palm, open-sourced http://cool-idea.com.tw/ iMaGiNaTiOn iS mOrE iMpOrTaNt tHaN kNoWlEdGe -- Virtualization is moving to the mainstream and overtaking non-virtualized environment for deploying applications. Does it make network security easier or more difficult to achieve? Read this whitepaper to separate the two and get a better understanding. http://p.sf.net/sfu/hp-phase2-d2d ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel -- - Codito, ergo sum - I code, therefore I am -- The Rasterman (Carsten Haitzler) ras...@rasterman.com -- brian -- Cool-Karaoke - The smallest recording studio, in your palm, open-sourced http://cool-idea.com.tw/ iMaGiNaTiOn iS mOrE iMpOrTaNt tHaN kNoWlEdGe -- Virtualization is moving to the mainstream and overtaking non-virtualized environment for deploying applications. Does it make network security easier or more difficult to achieve? Read this whitepaper to separate the two and get a better understanding. http://p.sf.net/sfu/hp-phase2-d2d ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] [BUG REPORT] Edje Compilation Problem with Cross MinGW32
On Sun, Sep 26, 2010 at 1:11 AM, Vincent Torri vto...@univ-evry.fr wrote: On Sat, 25 Sep 2010, Brian Wang wrote: r52593 commit broke this. Some header file definitions cause this problem. Please find below the patch (probably not the right fix?) or as attached (if it goes through properly): Index: src/lib/edje_private.h === --- src/lib/edje_private.h (revision 52735) +++ src/lib/edje_private.h (working copy) @@ -41,6 +41,19 @@ #include lauxlib.h #include setjmp.h +#ifdef _WIN32 +# ifdef EFL_EDJE_BUILD +# ifdef DLL_EXPORT +# undef EAPI +# define EAPI __declspec(dllexport) +# else +# define EAPI +# endif /* ! DLL_EXPORT */ +# else +# define EAPI __declspec(dllimport) +# endif /* ! EFL_EDJE_BUILD */ +#endif + EAPI extern int _edje_default_log_dom ; #ifdef EDJE_DEFAULT_LOG_COLOR I put everything in edje_private.h. I don't like that at all, but it was the fastest way to fix the problem. update edje and try again Nice! It's working again! Now the only part that doesn't compile for cross mingw32 is elementary's edje_externals. I just commented out the target in Makefile. The errors: -- Creating library file: .libs/module.dll.a .libs/elm.o:elm.c:(.text+0x1d): undefined reference to `__imp__edje_external_type_array_unregister' .libs/elm.o:elm.c:(.text+0x2a): undefined reference to `__imp__eina_log_domain_unregister' .libs/elm.o:elm.c:(.text+0x6e): undefined reference to `__imp__ecore_app_args_get' .libs/elm.o:elm.c:(.text+0x8f): undefined reference to `__imp__eina_log_domain_register' .libs/elm.o:elm.c:(.text+0xa1): undefined reference to `__imp__edje_external_type_array_register' .libs/elm.o:elm.c:(.text+0x106): undefined reference to `__imp__evas_object_smart_parent_get' .libs/elm.o:elm.c:(.text+0x118): undefined reference to `__imp__edje_object_file_get' .libs/elm.o:elm.c:(.text+0x133): undefined reference to `__imp__evas_object_evas_get' .libs/elm.o:elm.c:(.text+0x13c): undefined reference to `__imp__edje_object_add' .. Vincent -- brian -- Cool-Karaoke - The smallest recording studio, in your palm, open-sourced http://cool-idea.com.tw/ iMaGiNaTiOn iS mOrE iMpOrTaNt tHaN kNoWlEdGe -- Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] [BUG REPORT] Edje Compilation Problem with Cross MinGW32
On Sun, Sep 26, 2010 at 3:50 PM, Vincent Torri vto...@univ-evry.fr wrote: On Sun, 26 Sep 2010, Brian Wang wrote: Now the only part that doesn't compile for cross mingw32 is elementary's edje_externals. I just commented out the target in Makefile. The errors: -- Creating library file: .libs/module.dll.a .libs/elm.o:elm.c:(.text+0x1d): undefined reference to `__imp__edje_external_type_array_unregister' .libs/elm.o:elm.c:(.text+0x2a): undefined reference to `__imp__eina_log_domain_unregister' .libs/elm.o:elm.c:(.text+0x6e): undefined reference to `__imp__ecore_app_args_get' .libs/elm.o:elm.c:(.text+0x8f): undefined reference to `__imp__eina_log_domain_register' .libs/elm.o:elm.c:(.text+0xa1): undefined reference to `__imp__edje_external_type_array_register' .libs/elm.o:elm.c:(.text+0x106): undefined reference to `__imp__evas_object_smart_parent_get' .libs/elm.o:elm.c:(.text+0x118): undefined reference to `__imp__edje_object_file_get' .libs/elm.o:elm.c:(.text+0x133): undefined reference to `__imp__evas_object_evas_get' .libs/elm.o:elm.c:(.text+0x13c): undefined reference to `__imp__edje_object_add' I just compiled on Windows XP (so natively) and I have no undef ref. Can you compile with make V=1 and paste the link command of the edje externals ? Making all in edje_externals make[3]: Entering directory `/home/kma/development/EFLWindowsXP/TMP/st/elementary/src/edje_externals' /bin/sh ../../libtool --tag=CC --mode=link i586-mingw32msvc-gcc -I/home/kma/local/mingw/include -O2 -pipe -no-undefined -module -avoid-version -shared -fPIC -L/home/kma/local/mingw/lib -Wl,-s -o module.la -rpath /home/kma/local/mingw/lib/edje/modules/elm/mingw32msvc-i586-1.0.0 elm.lo elm_anchorblock.lo elm_anchorview.lo elm_bubble.lo elm_button.lo elm_check.lo elm_clock.lo elm_fileselector.lo elm_fileselector_button.lo elm_genlist.lo elm_hoversel.lo elm_list.lo elm_map.lo elm_notepad.lo elm_photocam.lo elm_progressbar.lo elm_radio.lo elm_scrolled_entry.lo elm_slider.lo elm_slideshow.lo elm_spinner.lo elm_thumb.lo elm_toggle.lo elm_toolbar.lo elm_notify.lo elm_panes.lo ../../src/lib/libelementary.la libtool: link: rm -fr .libs/module.dll.a libtool: link: i586-mingw32msvc-gcc -shared .libs/elm.o .libs/elm_anchorblock.o .libs/elm_anchorview.o .libs/elm_bubble.o .libs/elm_button.o .libs/elm_check.o .libs/elm_clock.o .libs/elm_fileselector.o .libs/elm_fileselector_button.o .libs/elm_genlist.o .libs/elm_hoversel.o .libs/elm_list.o .libs/elm_map.o .libs/elm_notepad.o .libs/elm_photocam.o .libs/elm_progressbar.o .libs/elm_radio.o .libs/elm_scrolled_entry.o .libs/elm_slider.o .libs/elm_slideshow.o .libs/elm_spinner.o .libs/elm_thumb.o .libs/elm_toggle.o .libs/elm_toolbar.o .libs/elm_notify.o .libs/elm_panes.o -L/home/kma/local/mingw/lib ../../src/lib/.libs/libelementary.dll.a -Wl,-s -o .libs/module.dll -Wl,--enable-auto-image-base -Xlinker --out-implib -Xlinker .libs/module.dll.a Creating library file: .libs/module.dll.a .libs/elm.o:elm.c:(.text+0x1d): undefined reference to `__imp__edje_external_type_array_unregister' .libs/elm.o:elm.c:(.text+0x2a): undefined reference to `__imp__eina_log_domain_unregister' .libs/elm.o:elm.c:(.text+0x6e): undefined reference to `__imp__ecore_app_args_get' Vincent -- brian -- Cool-Karaoke - The smallest recording studio, in your palm, open-sourced http://cool-idea.com.tw/ iMaGiNaTiOn iS mOrE iMpOrTaNt tHaN kNoWlEdGe -- Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] [BUG REPORT] Edje Compilation Problem with Cross MinGW32
On Sun, Sep 26, 2010 at 4:10 PM, Vincent Torri vto...@univ-evry.fr wrote: On Sun, 26 Sep 2010, Brian Wang wrote: On Sun, Sep 26, 2010 at 3:50 PM, Vincent Torri vto...@univ-evry.fr wrote: On Sun, 26 Sep 2010, Brian Wang wrote: and paste the link command of the edje externals ? Making all in edje_externals make[3]: Entering directory `/home/kma/development/EFLWindowsXP/TMP/st/elementary/src/edje_externals' /bin/sh ../../libtool --tag=CC --mode=link i586-mingw32msvc-gcc -I/home/kma/local/mingw/include -O2 -pipe -no-undefined -module -avoid-version -shared -fPIC -L/home/kma/local/mingw/lib -Wl,-s -o module.la -rpath /home/kma/local/mingw/lib/edje/modules/elm/mingw32msvc-i586-1.0.0 elm.lo elm_anchorblock.lo elm_anchorview.lo elm_bubble.lo elm_button.lo elm_check.lo elm_clock.lo elm_fileselector.lo elm_fileselector_button.lo elm_genlist.lo elm_hoversel.lo elm_list.lo elm_map.lo elm_notepad.lo elm_photocam.lo elm_progressbar.lo elm_radio.lo elm_scrolled_entry.lo elm_slider.lo elm_slideshow.lo elm_spinner.lo elm_thumb.lo elm_toggle.lo elm_toolbar.lo elm_notify.lo elm_panes.lo ../../src/lib/libelementary.la here, ../../src/lib/libelementary.la says that you link against elementary and its dep, but... libtool: link: rm -fr .libs/module.dll.a libtool: link: i586-mingw32msvc-gcc -shared .libs/elm.o .libs/elm_anchorblock.o .libs/elm_anchorview.o .libs/elm_bubble.o .libs/elm_button.o .libs/elm_check.o .libs/elm_clock.o .libs/elm_fileselector.o .libs/elm_fileselector_button.o .libs/elm_genlist.o .libs/elm_hoversel.o .libs/elm_list.o .libs/elm_map.o .libs/elm_notepad.o .libs/elm_photocam.o .libs/elm_progressbar.o .libs/elm_radio.o .libs/elm_scrolled_entry.o .libs/elm_slider.o .libs/elm_slideshow.o .libs/elm_spinner.o .libs/elm_thumb.o .libs/elm_toggle.o .libs/elm_toolbar.o .libs/elm_notify.o .libs/elm_panes.o -L/home/kma/local/mingw/lib ../../src/lib/.libs/libelementary.dll.a -Wl,-s -o .libs/module.dll -Wl,--enable-auto-image-base -Xlinker --out-implib -Xlinker .libs/module.dll.a ... you just have ../../src/lib/.libs/libelementary.dll.a. You should have had all the .dll.a of all other libs (edje, embryo, etc...). Paste the content of libelementary.la (it's a text file). Vincent # libelementary.la - a libtool library file # Generated by ltmain.sh (GNU libtool) 2.2.6b Debian-2.2.6b-2ubuntu1 # # Please DO NOT delete this file! # It is necessary for linking the library. # The name that we can dlopen(3). dlname='libelementary-ver-pre-svn-07-0.dll' # Names of this library. library_names='libelementary.dll.a' # The name of the static archive. old_library='libelementary.a' # Linker flags that can not go in dependency_libs. inherited_linker_flags='' # Libraries that this one depends upon. dependency_libs=' -L/home/kma/local/mingw/lib /home/kma/local/mingw/lib/libecore_evas.la /home/kma/local/mingw/lib/libecore_input_evas.la /home/kma/local/mingw/lib/libedje.la /home/kma/local/mingw/lib/libecore_file.la /home/kma/local/mingw/lib/libembryo.la -llua /home/kma/local/mingw/lib/libecore_imf_evas.la /home/kma/local/mingw/lib/libecore_imf.la /home/kma/local/mingw/lib/libevas.la -lfreetype /home/kma/local/mingw/lib/libeet.la -lz -ljpeg -lfontconfig /home/kma/local/mingw/lib/libecore_win32.la -lgdi32 /home/kma/local/mingw/lib/libecore_input.la /home/kma/local/mingw/lib/libecore.la -lintl -lpthreadGC2 /home/kma/local/mingw/lib/libeina.la -liconv /home/kma/local/mingw/lib/libdl.la /home/kma/local/mingw/lib/libevil.la -lole32 -lws2_32 -lsecur32' # Names of additional weak libraries provided by this library weak_library_names='' # Version information for libelementary. current=7 age=7 revision=0 # Is this an already installed library? installed=no # Should we warn about portability when linking against -modules? shouldnotlink=no # Files to dlopen/dlpreopen dlopen='' dlpreopen='' # Directory that this library needs to be installed in: libdir='/home/kma/local/mingw/lib' -- brian -- Cool-Karaoke - The smallest recording studio, in your palm, open-sourced http://cool-idea.com.tw/ iMaGiNaTiOn iS mOrE iMpOrTaNt tHaN kNoWlEdGe -- Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] [BUG REPORT] Edje Compilation Problem with Cross MinGW32
On Sun, Sep 26, 2010 at 6:42 PM, Vincent Torri vto...@univ-evry.fr wrote: On Sun, 26 Sep 2010, Brian Wang wrote: On Sun, Sep 26, 2010 at 4:34 PM, Vincent Torri vto...@univ-evry.fr wrote: On Sun, 26 Sep 2010, Brian Wang wrote: k...@kma-laptop:~/development/EFLWindowsXP/TMP/st/elementary$ svn status M src/lib/elm_config.c M src/lib/elm_win.c M src/lib/elm_main.c ? src/bin/elementary_test.exe ? src/bin/elementary_config.exe Those changes are printf left-overs while I was debugging EFL startup time. I'll try with cross compilation too I tried, and I have no problem :/ in elm top dir, run: make maintainer-clean ./autogen.sh --prefix=/home/torri/local/mingw --host=i586-mingw32msvc --with-edje-cc=~/local/e17/bin/edje_cc --with-eet-eet=~/local/e17/bin/eet replace the prefix, host and edje_cc/eet values by what suit your configuration, and tell me if there is still the problem Hello Vincent, After make maintainer-clean, the problem persists. Actually, there are two problems with elementary when compiling with cross mingw32. edje_externals is one of them. The other one was mentioned in my previous emails regarding having to pass ELEMENTARY_WIN32_LIBS=\-lecore_win32 -levil -ldl\ to autogen.sh/configure in order for the core elementary to be built. IIRC, you said you have no problem without passing ELEMENTARY_WIN32_LIBS. Is there any chance that you have set some env variables in your bash rc file that might solve the problem automagically? brian Vincent -- brian -- Cool-Karaoke - The smallest recording studio, in your palm, open-sourced http://cool-idea.com.tw/ iMaGiNaTiOn iS mOrE iMpOrTaNt tHaN kNoWlEdGe -- Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] [BUG REPORT] Edje Compilation Problem with Cross MinGW32
On Mon, Sep 27, 2010 at 1:05 PM, Vincent Torri vto...@univ-evry.fr wrote: On Mon, 27 Sep 2010, Brian Wang wrote: On Mon, Sep 27, 2010 at 2:37 AM, Vincent Torri vto...@univ-evry.fr wrote: On Mon, 27 Sep 2010, Brian Wang wrote: After make maintainer-clean, the problem persists. Actually, there are two problems with elementary when compiling with cross mingw32. edje_externals is one of them. The other one was mentioned in my previous emails regarding having to pass ELEMENTARY_WIN32_LIBS=\-lecore_win32 -levil -ldl\ to autogen.sh/configure in order for the core elementary to be built. IIRC, you said you have no problem without passing ELEMENTARY_WIN32_LIBS. Is there any chance that you have set some env variables in your bash rc file that might solve the problem automagically? I don't think so. Remove ELEMENTARY_WIN32_LIBS and give me the error and the link command (don't forget V=1) As attached. There is something very strange : evil does not appear. Are you sure you have compiled and installed it ? Yes. The rest of EFL (evas, ecore, edje, etc.) compiles just fine and I think they depend on evil as well? Vincent -- brian -- Cool-Karaoke - The smallest recording studio, in your palm, open-sourced http://cool-idea.com.tw/ iMaGiNaTiOn iS mOrE iMpOrTaNt tHaN kNoWlEdGe -- Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
[E-devel] [BUG REPORT] Edje Compilation Problem with Cross MinGW32
Hello list, I just svn'd up EFL and here's a new mingw32 cross compilation problem: -- In file included from edje_module.c:35: edje_private.h:1420: warning: ‘_edje_edd_init’ redeclared without dllimport attribute: previous dllimport ignored edje_private.h:1421: warning: ‘_edje_edd_shutdown’ redeclared without dllimport attribute: previous dllimport ignored edje_module.c:53: warning: ‘edje_module_load’ already declared with dllexport attribute: dllimport ignored edje_module.c:90: warning: ‘_edje_module_init’ redeclared without dllimport attribute: previous dllimport ignored edje_module.c:123: warning: ‘_edje_module_shutdown’ redeclared without dllimport attribute: previous dllimport ignored edje_module.c:141: warning: ‘edje_available_modules_get’ already declared with dllexport attribute: dllimport ignored -- Any idea? I totally have no clue of what the errors are related to. Thanks in advance. brian -- brian -- Cool-Karaoke - The smallest recording studio, in your palm, open-sourced http://cool-idea.com.tw/ iMaGiNaTiOn iS mOrE iMpOrTaNt tHaN kNoWlEdGe -- Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] [BUG REPORT] Edje Compilation Problem with Cross MinGW32
On Sat, Sep 25, 2010 at 9:58 PM, Vincent Torri vto...@univ-evry.fr wrote: On Sat, 25 Sep 2010, Brian Wang wrote: Hello list, I just svn'd up EFL and here's a new mingw32 cross compilation problem: -- In file included from edje_module.c:35: edje_private.h:1420: warning: ÿÿ_edje_edd_initÿÿ redeclared without dllimport attribute: previous dllimport ignored edje_private.h:1421: warning: ÿÿ_edje_edd_shutdownÿÿ redeclared without dllimport attribute: previous dllimport ignored edje_module.c:53: warning: ÿÿedje_module_loadÿÿ already declared with dllexport attribute: dllimport ignored edje_module.c:90: warning: ÿÿ_edje_module_initÿÿ redeclared without dllimport attribute: previous dllimport ignored edje_module.c:123: warning: ÿÿ_edje_module_shutdownÿÿ redeclared without dllimport attribute: previous dllimport ignored edje_module.c:141: warning: ÿÿedje_available_modules_getÿÿ already declared with dllexport attribute: dllimport ignored -- Any idea? I totally have no clue of what the errors are related to. The problem is when compiling edje_convert, right ? I guess it's compiling edje_module.c of libedje. -- CC edje_textblock_styles.lo CC edje_edit.lo CC edje_script_only.lo CC edje_lua_script_only.lo CC edje_entry.lo CC edje_external.lo CC edje_module.lo In file included from edje_module.c:35: edje_private.h:1420: warning: ‘_edje_edd_init’ redeclared without dllimport attribute: previous dllimport ignored edje_private.h:1421: warning: ‘_edje_edd_shutdown’ redeclared without dllimport attribute: previous dllimport ignored edje_module.c:53: warning: ‘edje_module_load’ already declared with dllexport attribute: dllimport ignored edje_module.c:90: warning: ‘_edje_module_init’ redeclared without dllimport attribute: previous dllimport ignored edje_module.c:123: warning: ‘_edje_module_shutdown’ redeclared without dllimport attribute: previous dllimport ignored edje_module.c:141: warning: ‘edje_available_modules_get’ already declared with dllexport attribute: dllimport ignored make[3]: *** [edje_module.lo] Error 1 make[3]: Leaving directory `/home/kma/development/EFLWindowsXP/edje/src/lib' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/home/kma/development/EFLWindowsXP/edje/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/kma/development/EFLWindowsXP/edje' make: *** [all] Error 2 --- However, I only see 'warning's but not any error?!! Vincent -- brian -- Cool-Karaoke - The smallest recording studio, in your palm, open-sourced http://cool-idea.com.tw/ iMaGiNaTiOn iS mOrE iMpOrTaNt tHaN kNoWlEdGe -- Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] [BUG REPORT] Edje Compilation Problem with Cross MinGW32
On Sat, Sep 25, 2010 at 10:47 PM, Brian Wang brian.wang.0...@gmail.com wrote: On Sat, Sep 25, 2010 at 9:58 PM, Vincent Torri vto...@univ-evry.fr wrote: On Sat, 25 Sep 2010, Brian Wang wrote: Hello list, I just svn'd up EFL and here's a new mingw32 cross compilation problem: -- In file included from edje_module.c:35: edje_private.h:1420: warning: ÿÿ_edje_edd_initÿÿ redeclared without dllimport attribute: previous dllimport ignored edje_private.h:1421: warning: ÿÿ_edje_edd_shutdownÿÿ redeclared without dllimport attribute: previous dllimport ignored edje_module.c:53: warning: ÿÿedje_module_loadÿÿ already declared with dllexport attribute: dllimport ignored edje_module.c:90: warning: ÿÿ_edje_module_initÿÿ redeclared without dllimport attribute: previous dllimport ignored edje_module.c:123: warning: ÿÿ_edje_module_shutdownÿÿ redeclared without dllimport attribute: previous dllimport ignored edje_module.c:141: warning: ÿÿedje_available_modules_getÿÿ already declared with dllexport attribute: dllimport ignored -- Any idea? I totally have no clue of what the errors are related to. The problem is when compiling edje_convert, right ? I guess it's compiling edje_module.c of libedje. -- CC edje_textblock_styles.lo CC edje_edit.lo CC edje_script_only.lo CC edje_lua_script_only.lo CC edje_entry.lo CC edje_external.lo CC edje_module.lo In file included from edje_module.c:35: edje_private.h:1420: warning: ‘_edje_edd_init’ redeclared without dllimport attribute: previous dllimport ignored edje_private.h:1421: warning: ‘_edje_edd_shutdown’ redeclared without dllimport attribute: previous dllimport ignored edje_module.c:53: warning: ‘edje_module_load’ already declared with dllexport attribute: dllimport ignored edje_module.c:90: warning: ‘_edje_module_init’ redeclared without dllimport attribute: previous dllimport ignored edje_module.c:123: warning: ‘_edje_module_shutdown’ redeclared without dllimport attribute: previous dllimport ignored edje_module.c:141: warning: ‘edje_available_modules_get’ already declared with dllexport attribute: dllimport ignored make[3]: *** [edje_module.lo] Error 1 make[3]: Leaving directory `/home/kma/development/EFLWindowsXP/edje/src/lib' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/home/kma/development/EFLWindowsXP/edje/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/kma/development/EFLWindowsXP/edje' make: *** [all] Error 2 --- However, I only see 'warning's but not any error?!! r52593 commit broke this. Some header file definitions cause this problem. Please find below the patch (probably not the right fix?) or as attached (if it goes through properly): Index: src/lib/edje_private.h === --- src/lib/edje_private.h (revision 52735) +++ src/lib/edje_private.h (working copy) @@ -41,6 +41,19 @@ #include lauxlib.h #include setjmp.h +#ifdef _WIN32 +# ifdef EFL_EDJE_BUILD +# ifdef DLL_EXPORT +# undef EAPI +# define EAPI __declspec(dllexport) +# else +# define EAPI +# endif /* ! DLL_EXPORT */ +# else +# define EAPI __declspec(dllimport) +# endif /* ! EFL_EDJE_BUILD */ +#endif + EAPI extern int _edje_default_log_dom ; #ifdef EDJE_DEFAULT_LOG_COLOR Vincent -- brian -- Cool-Karaoke - The smallest recording studio, in your palm, open-sourced http://cool-idea.com.tw/ iMaGiNaTiOn iS mOrE iMpOrTaNt tHaN kNoWlEdGe -- brian -- Cool-Karaoke - The smallest recording studio, in your palm, open-sourced http://cool-idea.com.tw/ iMaGiNaTiOn iS mOrE iMpOrTaNt tHaN kNoWlEdGe Index: edje/src/lib/edje_private.h === --- edje/src/lib/edje_private.h (revision 52735) +++ edje/src/lib/edje_private.h (working copy) @@ -41,6 +41,19 @@ #include lauxlib.h #include setjmp.h +#ifdef _WIN32 +# ifdef EFL_EDJE_BUILD +# ifdef DLL_EXPORT +# undef EAPI +# define EAPI __declspec(dllexport) +# else +# define EAPI +# endif /* ! DLL_EXPORT */ +# else +# define EAPI __declspec(dllimport) +# endif /* ! EFL_EDJE_BUILD */ +#endif + EAPI extern int _edje_default_log_dom ; #ifdef EDJE_DEFAULT_LOG_COLOR -- Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] How to Package a MinGW-based SDK
On Wed, Sep 15, 2010 at 2:00 PM, Vincent Torri vto...@univ-evry.fr wrote: Hey, I've followed the guide @http://trac.enlightenment.org/e/wiki/EFLWindowsXP. Thanks to the wiki, with just a few glitches, I've finally built my EFL + Elementary!!! The question now is: how do I move the whole runtime environment of EFL to Windows (XP)? My dev/compile environment is: * x86 ubuntu box * i586-mingw32msvc cross toolchain 1) just get the DLL (EFL + dependencies). Not easy, as, for example, evas modules must be placed correctly. 2) you can use on Windows the MSYS/MinGW SDK I created to have a working environment: http://www.maths.univ-evry.fr/pages_perso/vtorri/files/msys.7z Untar it (using 7zip for example) in a path without space. You'll be able to launch an MSYS terminal. All the needed dependencies should be there. Just check out the libs and compile them using the wiki. I'm sticked to my linux box... It's a personal preference. I feel much more comfortable with ubuntu. 3) You can wait 2 days. I'll finish a new installer quite soon. Vincent PS: if the wiki has some errors, please fix them or report them to me. How do I fix them (wiki) or how do I report them? Sorry, newbie question... -- brian -- Cool-Karaoke - The smallest recording studio, in your palm, open-sourced http://cool-idea.com.tw/ iMaGiNaTiOn iS mOrE iMpOrTaNt tHaN kNoWlEdGe -- Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] How to Package a MinGW-based SDK
On Wed, Sep 15, 2010 at 2:08 PM, Vincent Torri vto...@univ-evry.fr wrote: On Wed, 15 Sep 2010, Brian Wang wrote: On Wed, Sep 15, 2010 at 12:51 PM, Carsten Haitzler ras...@rasterman.com wrote: On Wed, 15 Sep 2010 10:49:35 +0800 Brian Wang brian.wang.0...@gmail.com said: Hello list/Vincent, I've followed the guide @http://trac.enlightenment.org/e/wiki/EFLWindowsXP. Thanks to the wiki, with just a few glitches, I've finally built my EFL + Elementary!!! The question now is: how do I move the whole runtime environment of EFL to Windows (XP)? My dev/compile environment is: * x86 ubuntu box * i586-mingw32msvc cross toolchain Thanks in advance. why would you want to? :) I'm writing a WIN32 gui helper utility for my device. I'm using wxWidgets right now and after some experience of EFL, I feel like moving to EFL (a lot fancier). I want to package the app/libraries/config files in one self-contained file. Maybe the question should be how to package my EFL app? I've figured out some parts. elementary_test.exe runs on my Windows XP but it feels _slow_ (a lot slower than wxWidgets). Maybe it's because it's running inside VirtualBox. I'll definitely test it on a native Windows box. Windows is slow, so Windows in VirtualBox... Well, there are several reasons why it is slow: * The quantity of messages sent via printf is just too huge. I'm sure it slow down the app. * are you sure you compiled with -O2 or -O3 ? yes (-g -O2). * for now, only GDI (the default) and DirectDraw are working. I had no time to update the gl engine, nor the direct3d one. GDI is slow, as it is not hardware accelerated. So, I should switch to DirectDraw and that is working properly? I'm still trying to figure out how to get my font right. The font used in elementary_test.exe looks ugly... Well, I have nice fonts. Note that if your fontconfig setup is messed, the chosen fonts will be ugly. Any example fontconfig setup files? I'll play with it a bit. Thanks. :-) Vincent -- brian -- Cool-Karaoke - The smallest recording studio, in your palm, open-sourced http://cool-idea.com.tw/ iMaGiNaTiOn iS mOrE iMpOrTaNt tHaN kNoWlEdGe -- Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] How to Package a MinGW-based SDK
On Wed, Sep 15, 2010 at 2:12 PM, Vincent Torri vto...@univ-evry.fr wrote: On Wed, 15 Sep 2010, Brian Wang wrote: On Wed, Sep 15, 2010 at 12:51 PM, Carsten Haitzler ras...@rasterman.com wrote: On Wed, 15 Sep 2010 10:49:35 +0800 Brian Wang brian.wang.0...@gmail.com said: I'm writing a WIN32 gui helper utility for my device. I'm using wxWidgets right now and after some experience of EFL, I feel like moving to EFL (a lot fancier). I want to package the app/libraries/config files in one self-contained file. Maybe the question should be how to package my EFL app? about a self contained file, everything can be linked statically. I tried it on Linux and it works (it's just a matter of passing the correct flag to libtool). I think it should work on Windows too Can evas modules be statically linked too? Since my app is the sole user of EFL, I guess it's better to statically link all the stuff to save some space and that should also improve the startup speed. That's what I'm going to try next. Vincent -- brian -- Cool-Karaoke - The smallest recording studio, in your palm, open-sourced http://cool-idea.com.tw/ iMaGiNaTiOn iS mOrE iMpOrTaNt tHaN kNoWlEdGe -- Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] How to Package a MinGW-based SDK
On Wed, Sep 15, 2010 at 2:38 PM, Vincent Torri vto...@univ-evry.fr wrote: On Wed, 15 Sep 2010, Brian Wang wrote: Untar it (using 7zip for example) in a path without space. You'll be able to launch an MSYS terminal. All the needed dependencies should be there. Just check out the libs and compile them using the wiki. I'm sticked to my linux box... It's a personal preference. I feel much more comfortable with ubuntu. then use wine, it should work. PS: if the wiki has some errors, please fix them or report them to me. How do I fix them (wiki) or how do I report them? Sorry, newbie question... report them to me. Privately or in the ML. That will be sufficient OK. I'll definitely do that after some experiments. :-) thank you Vincent -- brian -- Cool-Karaoke - The smallest recording studio, in your palm, open-sourced http://cool-idea.com.tw/ iMaGiNaTiOn iS mOrE iMpOrTaNt tHaN kNoWlEdGe -- Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] EFL on WindowsXP Slowness (Startup time) --- eet_open()
On Thu, Sep 16, 2010 at 1:13 PM, Vincent Torri vto...@univ-evry.fr wrote: Hey, EFL/Elementary app is slow to launch on Windows XP (gdi-based). Please find the log (captured by Process Monitor) in CSV format as attached. There will be some garbage characters displayed (Chinese characters, I think). Please ignore them. Here are the two lines with big timestamp gaps: * 09:54:11.0247158,eMBK.exe,3204,RegCloseKey,HKLM\System\CurrentControlSet\Services\WinSock2\Parameters,SUCCESS, * 09:54:17.9069715,eMBK.exe,3204,CreateFile,C:\home\kma\local\mingw\share\elementary\config\profile.cfg,PATH -- 6.x seconds!!! strange :-) When i launch elementary_test, it takes less than 2s Anyone knows what EFL is doing right before opening elementary's profile.cfg? There's no stdout/stderr message in between. I have to look at the code, i don't know that part. Anyway, process monitor could be a good tool, but it's hard to find informations in the main window. Too much garbage... I just did a dummy printf exercise and found eet_open($HOME/.elementary/config/profile.cfg) is causing the slowdown: elementary/src/lib/elm_config.c:_profile_get() // usser profile snprintf(buf, sizeof(buf), %s/.elementary/config/profile.cfg, home); ef = eet_open(buf, EET_FILE_MODE_READ); The file passed to eet_open() does not exist on my system. I just commented out the code and set ef to NULL. Now elementary_test.exe and my testing eMBK.exe pop up within 2 seconds! Much better and good enough for now! I briefly looked at eet_open code. It's not a straight file open/read stuff and involves with some cache mechanism. That's probably causing the problem. I'm moving on as a happy EFLWindowsXP user! Vincent -- brian -- Cool-Karaoke - The smallest recording studio, in your palm, open-sourced http://cool-idea.com.tw/ iMaGiNaTiOn iS mOrE iMpOrTaNt tHaN kNoWlEdGe -- Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
[E-devel] How to Package a MinGW-based SDK
Hello list/Vincent, I've followed the guide @http://trac.enlightenment.org/e/wiki/EFLWindowsXP. Thanks to the wiki, with just a few glitches, I've finally built my EFL + Elementary!!! The question now is: how do I move the whole runtime environment of EFL to Windows (XP)? My dev/compile environment is: * x86 ubuntu box * i586-mingw32msvc cross toolchain Thanks in advance. brian -- brian -- Cool-Karaoke - The smallest recording studio, in your palm, open-sourced http://cool-idea.com.tw/ iMaGiNaTiOn iS mOrE iMpOrTaNt tHaN kNoWlEdGe -- Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] How to Package a MinGW-based SDK
On Wed, Sep 15, 2010 at 12:51 PM, Carsten Haitzler ras...@rasterman.com wrote: On Wed, 15 Sep 2010 10:49:35 +0800 Brian Wang brian.wang.0...@gmail.com said: Hello list/Vincent, I've followed the guide @http://trac.enlightenment.org/e/wiki/EFLWindowsXP. Thanks to the wiki, with just a few glitches, I've finally built my EFL + Elementary!!! The question now is: how do I move the whole runtime environment of EFL to Windows (XP)? My dev/compile environment is: * x86 ubuntu box * i586-mingw32msvc cross toolchain Thanks in advance. why would you want to? :) I'm writing a WIN32 gui helper utility for my device. I'm using wxWidgets right now and after some experience of EFL, I feel like moving to EFL (a lot fancier). I want to package the app/libraries/config files in one self-contained file. Maybe the question should be how to package my EFL app? I've figured out some parts. elementary_test.exe runs on my Windows XP but it feels _slow_ (a lot slower than wxWidgets). Maybe it's because it's running inside VirtualBox. I'll definitely test it on a native Windows box. I'm still trying to figure out how to get my font right. The font used in elementary_test.exe looks ugly... brian -- brian -- Cool-Karaoke - The smallest recording studio, in your palm, open-sourced http://cool-idea.com.tw/ iMaGiNaTiOn iS mOrE iMpOrTaNt tHaN kNoWlEdGe -- Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel -- - Codito, ergo sum - I code, therefore I am -- The Rasterman (Carsten Haitzler) ras...@rasterman.com -- brian -- Cool-Karaoke - The smallest recording studio, in your palm, open-sourced http://cool-idea.com.tw/ iMaGiNaTiOn iS mOrE iMpOrTaNt tHaN kNoWlEdGe -- Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
[E-devel] [BUG REPORT, RE: Edje cursor content get?] elm_entry_cursor_content_get BROKEN with tags
Hello all, If there are tags (babc def/b) in elm_entry, elm_entry_cursor_content_get() returns the wrong character. It seems to be off by the length of the starting tag and may be short due to the closing tag. Please see the attached source for demonstration of the problem. brian -- brian -- Cool-Karaoke - The smallest recording studio, in your palm, open-sourced http://cool-idea.com.tw/ iMaGiNaTiOn iS mOrE iMpOrTaNt tHaN kNoWlEdGe #include Elementary.h static int is_delimiter(char ch) { if ((unsigned char)ch = 0x80) return 1; if (!isalpha(ch) !isdigit(ch) (ch != '\'') (ch != '-')) //if (!isalpha(ch) !isdigit(ch) (ch != '\'')) return 1; else return 0; } static char *_entry_cursor_word(Evas_Object *obj) { const char *content; char buf[256]; int idx = 0; // // Go to the beginning of the word // while ((content = elm_entry_cursor_content_get(obj))) { if (elm_entry_cursor_is_format_get(obj)) { if (idx 0) { idx--; elm_entry_cursor_next(obj); } break; } //printf(%d. %s\n, idx, content); if (is_delimiter(content[0])) { elm_entry_cursor_next(obj); break; } if (!elm_entry_cursor_prev(obj)) { break; } idx++; } buf[0] = 0; while (!elm_entry_cursor_is_format_get(obj) (content = elm_entry_cursor_content_get(obj))) { //printf(%d. %s\n, idx, content); if (is_delimiter(content[0])) { break; } strcat(buf, content); if (!elm_entry_cursor_next(obj)) { break; } } //printf(%s : idx=%d buf='%s'\n, __func__, idx, buf); //printf(%s : clicked on '%s' - '%s'\n, __FUNCTION__, buf, elm_entry_markup_to_utf8(buf)); elm_entry_select_none(obj); if (!buf[0]) return NULL; else { int len; char *p; // // Check if there are multiple hyphens... // p = strchr(buf, '-'); if (p) { char *q = strchr(p+1, '-'); if (q) { // got you! if (idx = (p - buf)) { /* latter part */ char buf2[256]; q = strrchr(buf, '-'); strcpy(buf2, q+1); strcpy(buf, buf2); } else { /* front part */ *p = 0; } } } // // Check if it's a simple plural form // len = strlen(buf); if (len = 2 !strncmp(buf + len - 2, 's, 2)) buf[len-2] = 0; printf( - word='%s'\n, buf); return strdup(buf); } //return elm_entry_markup_to_utf8(buf); } static void _entry_retrieve_clicked_word(Evas_Object *obj) { const char *content; while ((content = elm_entry_cursor_content_get(obj))) { if (!content[0]) break; printf(Content: '%s'\n, content); if (!elm_entry_cursor_next(obj)) break; } } static void _entry_clicked(void *data, Evas_Object *obj, void *event_info) { #if 0 char *word; printf(%s in\n, __FUNCTION__); //_entry_retrieve_clicked_word(obj); word = _entry_cursor_word(obj); printf( word: '%s'\n, word); #else const char *clicked; clicked = elm_entry_cursor_content_get(obj); printf(Clicked: '%s'\n, clicked); #endif } /* if someone presses the close button on our window - exit nicely */ static void win_del(void *data, Evas_Object *obj, void *event_info) { /* cleanly exit */ elm_exit(); } EAPI int elm_main(int argc, char **argv) { Evas_Object *win, *bg, *bx, *en; win = elm_win_add(NULL, dialog, ELM_WIN_BASIC); evas_object_smart_callback_add(win, delete-request, win_del, NULL); bg = elm_bg_add(win); evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); elm_win_resize_object_add(win, bg); evas_object_show(bg); bx = elm_box_add(win); evas_object_size_hint_weight_set(bx,
[E-devel] Powered by EFL Logo ?
Hello list, Is there any offical powered by EFL logo available for use on a website/project wiki/device? Thanks in advance. brian -- brian -- Cool-Karaoke - The smallest recording studio, in your palm, open-sourced http://cool-idea.com.tw/ iMaGiNaTiOn iS mOrE iMpOrTaNt tHaN kNoWlEdGe -- This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] Powered by EFL Logo ?
On Tue, Aug 17, 2010 at 10:05 PM, Cedric BAIL cedric.b...@free.fr wrote: On Tue, Aug 17, 2010 at 3:58 PM, Rafael Antognolli antogno...@profusion.mobi wrote: On Tue, Aug 17, 2010 at 3:09 AM, Brian Wang brian.wang.0...@gmail.com wrote: Hello list, Is there any offical powered by EFL logo available for use on a website/project wiki/device? Hi Brian, This is not an official one, but if everyone else approves, it could be. Feel free to use it: http://imgur.com/77lbj Of course some designer could send some idea too, but it hardly can become better than this one. PS: The drawing was made by Luis Felipe (lfelipe) and I colored it. We already told you guys : NEVER DO DESIGN AND DRAWING AGAIN ! GO BACK TO CODE ! Good advice. :-) -- Cedric BAIL -- brian -- Cool-Karaoke - The smallest recording studio, in your palm, open-sourced http://cool-idea.com.tw/ iMaGiNaTiOn iS mOrE iMpOrTaNt tHaN kNoWlEdGe -- This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] E SVN: raster IN trunk/eina: . doc src/include src/lib
That was scary... A little svn up broke the compilation... eina-0 to eina-1 patch for the libraries I use is attached. It's exciting to see the recent movements toward EFL 1.0 release. With the _heated_ discussions about the coding styles and release plans, EFL is only getting better and better. Nice work to every dev! brian very satisified EFL customer :-) On Mon, Aug 16, 2010 at 1:40 PM, Enlightenment SVN no-re...@enlightenment.org wrote: Log: well got to start somewhere. eina 1.0.0 alpha readied. need to go over code formatting still (headers specifically). bring doc building in-line with other efl libs. README is useful now. Changelog waiting to be filled in for 1.0.0 Author: raster Date: 2010-08-15 22:40:50 -0700 (Sun, 15 Aug 2010) New Revision: 51154 Added: trunk/eina/eina-1.pc.in Removed: trunk/eina/eina-0.pc.in Modified: trunk/eina/ChangeLog trunk/eina/Makefile.am trunk/eina/README trunk/eina/configure.ac trunk/eina/doc/Makefile.am trunk/eina/src/include/eina_accessor.h trunk/eina/src/include/eina_array.h trunk/eina/src/include/eina_benchmark.h trunk/eina/src/include/eina_binshare.h trunk/eina/src/include/eina_convert.h trunk/eina/src/include/eina_counter.h trunk/eina/src/include/eina_error.h trunk/eina/src/include/eina_file.h trunk/eina/src/include/eina_hash.h trunk/eina/src/include/eina_main.h trunk/eina/src/lib/Makefile.am Modified: trunk/eina/ChangeLog === --- trunk/eina/ChangeLog 2010-08-16 04:44:45 UTC (rev 51153) +++ trunk/eina/ChangeLog 2010-08-16 05:40:50 UTC (rev 51154) @@ -0,0 +1,4 @@ +20YY-MM-2DD NAME OF RELEASER + + MAJOR.MINOR.MICRO release + Modified: trunk/eina/Makefile.am === --- trunk/eina/Makefile.am 2010-08-16 04:44:45 UTC (rev 51153) +++ trunk/eina/Makefile.am 2010-08-16 05:40:50 UTC (rev 51154) @@ -19,16 +19,15 @@ missing pkgconfigdir = $(libdir)/pkgconfig -pkgconfig_DATA = eina-0.pc +pkgconfig_DATA = eina-1.pc EXTRA_DIST = \ AUTHORS \ COPYING \ -OLD-COPYING.PLAIN \ README \ $(pkgconfig_DATA) \ autogen.sh \ -eina-0.pc.in \ +eina-1.pc.in \ eina.spec \ eina.spec.in \ m4/ac_attribute.m4 \ Modified: trunk/eina/README === --- trunk/eina/README 2010-08-16 04:44:45 UTC (rev 51153) +++ trunk/eina/README 2010-08-16 05:40:50 UTC (rev 51154) @@ -1,2 +1,47 @@ -Data types library (List, hash, etc) +Eina 1.0.0 ALPHA +** + + FOR ANY ISSUES PLEASE EMAIL: + enlightenment-devel@lists.sourceforge.net + +** + +Requirements: +- +Must have: + libc + libm + (For windows you also need: evil) + +Eina is a library providing data structure utilities for EFL that are meant +to be lean, efficient and tailored to EFL's needs. This saves each +library implementing its own custom datatype handling and duplicating +the code. Some of the datatypes handles are: + Arrays (variable sized) + Hash tables + Inlined linked lists + Linked lists + Matricies + Quadtrees + Red/black trees + Strinbuffers (expandable string bufers) + +In addition Eina supports shared string token hashes with Stringshare +and Unistringshare (standard ascii/utf8 strings and full unicode +strings). It has a Trash pointer collector for deferring freeing until +work is complete on a dataset, Unicode string wrapping and handling, +UTF8 string parsing, 2D tile structure handling and rectangle +utilities, module loading wrapper, Memory pools for faster allocation +and less fragmentation of the heap, Output logging and selective +aborting on critical enough states, fixed point math functions, CPU +feature detection (like MMX, SSE, VFP, NEON etc.), Counters, binary +token sharing and more. + +-- +COMPILING AND INSTALLING: + + ./configure + make +(do this as root unless you are installing in your users directories): + make install Modified: trunk/eina/configure.ac === --- trunk/eina/configure.ac 2010-08-16 04:44:45 UTC (rev 51153) +++ trunk/eina/configure.ac 2010-08-16 05:40:50 UTC (rev 51154) @@ -1,25 +1,24 @@ ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--## ##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--## -m4_define([v_maj], [0]) -m4_define([v_min], [9]) -m4_define([v_mic], [9]) +m4_define([v_maj], [1]) +m4_define([v_min], [0]) +m4_define([v_mic], [0]) m4_define([v_rev], m4_esyscmd([(svnversion ${SVN_REPO_PATH:-.} | grep -v export || echo 0) | awk -F : '{printf(%s\n, $1);}' | tr -d ' :MSP\n']))
Re: [E-devel] E SVN: raster IN trunk/eina: . doc src/include src/lib
On Mon, Aug 16, 2010 at 4:51 PM, Carsten Haitzler ras...@rasterman.com wrote: On Mon, 16 Aug 2010 14:27:33 +0800 Brian Wang brian.wang.0...@gmail.com said: wish i could say yes to the patch.. but i actually changed it from eina-1 to eina ... just check eina = 1.0.0 :) consistency with the rest of efl :) OK. When I was changing eina-0 to eina-1, I was wondering why only eina has a tiny version attached in its pkgconfig file. Now, it makes more sense. I am just a victim caught in the middle of massive build system changes. :-) That was scary... A little svn up broke the compilation... eina-0 to eina-1 patch for the libraries I use is attached. It's exciting to see the recent movements toward EFL 1.0 release. With the _heated_ discussions about the coding styles and release plans, EFL is only getting better and better. Nice work to every dev! brian very satisified EFL customer :-) On Mon, Aug 16, 2010 at 1:40 PM, Enlightenment SVN no-re...@enlightenment.org wrote: Log: well got to start somewhere. eina 1.0.0 alpha readied. need to go over code formatting still (headers specifically). bring doc building in-line with other efl libs. README is useful now. Changelog waiting to be filled in for 1.0.0 Author: raster Date: 2010-08-15 22:40:50 -0700 (Sun, 15 Aug 2010) New Revision: 51154 Added: trunk/eina/eina-1.pc.in Removed: trunk/eina/eina-0.pc.in Modified: trunk/eina/ChangeLog trunk/eina/Makefile.am trunk/eina/README trunk/eina/configure.ac trunk/eina/doc/Makefile.am trunk/eina/src/include/eina_accessor.h trunk/eina/src/include/eina_array.h trunk/eina/src/include/eina_benchmark.h trunk/eina/src/include/eina_binshare.h trunk/eina/src/include/eina_convert.h trunk/eina/src/include/eina_counter.h trunk/eina/src/include/eina_error.h trunk/eina/src/include/eina_file.h trunk/eina/src/include/eina_hash.h trunk/eina/src/include/eina_main.h trunk/eina/src/lib/Makefile.am Modified: trunk/eina/ChangeLog === --- trunk/eina/ChangeLog 2010-08-16 04:44:45 UTC (rev 51153) +++ trunk/eina/ChangeLog 2010-08-16 05:40:50 UTC (rev 51154) @@ -0,0 +1,4 @@ +20YY-MM-2DD NAME OF RELEASER + + MAJOR.MINOR.MICRO release + Modified: trunk/eina/Makefile.am === --- trunk/eina/Makefile.am 2010-08-16 04:44:45 UTC (rev 51153) +++ trunk/eina/Makefile.am 2010-08-16 05:40:50 UTC (rev 51154) @@ -19,16 +19,15 @@ missing pkgconfigdir = $(libdir)/pkgconfig -pkgconfig_DATA = eina-0.pc +pkgconfig_DATA = eina-1.pc EXTRA_DIST = \ AUTHORS \ COPYING \ -OLD-COPYING.PLAIN \ README \ $(pkgconfig_DATA) \ autogen.sh \ -eina-0.pc.in \ +eina-1.pc.in \ eina.spec \ eina.spec.in \ m4/ac_attribute.m4 \ Modified: trunk/eina/README === --- trunk/eina/README 2010-08-16 04:44:45 UTC (rev 51153) +++ trunk/eina/README 2010-08-16 05:40:50 UTC (rev 51154) @@ -1,2 +1,47 @@ -Data types library (List, hash, etc) +Eina 1.0.0 ALPHA +** + + FOR ANY ISSUES PLEASE EMAIL: + enlightenment-devel@lists.sourceforge.net + +** + +Requirements: +- +Must have: + libc + libm + (For windows you also need: evil) + +Eina is a library providing data structure utilities for EFL that are meant +to be lean, efficient and tailored to EFL's needs. This saves each +library implementing its own custom datatype handling and duplicating +the code. Some of the datatypes handles are: + Arrays (variable sized) + Hash tables + Inlined linked lists + Linked lists + Matricies + Quadtrees + Red/black trees + Strinbuffers (expandable string bufers) + +In addition Eina supports shared string token hashes with Stringshare +and Unistringshare (standard ascii/utf8 strings and full unicode +strings). It has a Trash pointer collector for deferring freeing until +work is complete on a dataset, Unicode string wrapping and handling, +UTF8 string parsing, 2D tile structure handling and rectangle +utilities, module loading wrapper, Memory pools for faster allocation +and less fragmentation of the heap, Output logging and selective +aborting on critical enough states, fixed point math functions, CPU +feature detection (like MMX, SSE, VFP, NEON etc.), Counters, binary +token sharing and more. + +-- +COMPILING AND INSTALLING: + + ./configure + make +(do this as root unless you are installing in your users directories): + make install Modified: trunk/eina/configure.ac
Re: [E-devel] [PATCH] evas BMP loader - fix for 32-bit BMP files saved by GIMP
On Sat, Aug 14, 2010 at 6:24 PM, Carsten Haitzler ras...@rasterman.com wrote: On Wed, 11 Aug 2010 10:27:58 +0800 Brian Wang brian.wang.0...@gmail.com said: Hello raster, I stole some time and made an app for showing bitmaps in bmpsuite.zip. Please see the PNG screenshot disguised in txt as attached. All bitmaps are shown (properly, i think). gqview seems a bit weaker than evas. :-) And yes, 32-bit bmp is a format i care a lot of since the loading is a lot faster. :-) On a platform with weak computing power, i have to save bits and pieces here and there. If there's no problem, please check my patch and correct it when you see fit. hmm well the text file attached corrupted - cant see it. but... i also created a mini image viewer too for this purpose. as such your patch will break transparent bmp's (100%) which is really an incorrect thing. if you can find a way to make it not incorrect - no problems. i really don't like the fix because of its nature. Well, that's what GIMP does. I guess it's a workaround and it'll be 99.99% accurate since 100% transparent BMPs aren't exactly popular. 32-bit BMPs aren't popular either. If my patch is not ok for the upstream, I'll just keep it private. I'm perfectly ok with it. but what i'm more concerned about is.. why are bmp's faster to load? really? seriously? you've tested? vs what other formats? i really didnt make any effort to make the bmp loader fast. i just implemented it to follow the standards (that's why u find evas's bmp loader beat gqview by a large mile as the gtk one is enferior with standards support than evas's). when i do something i tend to like to do it right. now - you'll need to convince me much more that your hack is a valid patch as it really doesnt follow a standard. what is more of interest to me is the bmp loading being faster than... something else? what is that something else? I haven't benchmarked BMP vs PNG loading speed with Evas. The 'BMP is faster to load' argument is based on various icon-loading (small 32x32 icons) tests I performed on my prior project (ARM920T device @400MHz), which uses SDL/SDL_Image. I think Evas is smarter with images but I just assume loading/render of raw data (BMP) would be faster than with compressed PNG files. -- - Codito, ergo sum - I code, therefore I am -- The Rasterman (Carsten Haitzler) ras...@rasterman.com -- brian -- Cool-Karaoke - The smallest recording studio, in your palm, open-sourced http://cool-idea.com.tw/ iMaGiNaTiOn iS mOrE iMpOrTaNt tHaN kNoWlEdGe -- This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] [PATCH] evas BMP loader - fix for 32-bit BMP files saved by GIMP
On Sat, Aug 14, 2010 at 9:11 PM, Carsten Haitzler ras...@rasterman.com wrote: On Sat, 14 Aug 2010 21:06:33 +0800 Brian Wang brian.wang.0...@gmail.com said: On Sat, Aug 14, 2010 at 6:24 PM, Carsten Haitzler ras...@rasterman.com wrote: On Wed, 11 Aug 2010 10:27:58 +0800 Brian Wang brian.wang.0...@gmail.com said: Hello raster, I stole some time and made an app for showing bitmaps in bmpsuite.zip. Please see the PNG screenshot disguised in txt as attached. All bitmaps are shown (properly, i think). gqview seems a bit weaker than evas. :-) And yes, 32-bit bmp is a format i care a lot of since the loading is a lot faster. :-) On a platform with weak computing power, i have to save bits and pieces here and there. If there's no problem, please check my patch and correct it when you see fit. hmm well the text file attached corrupted - cant see it. but... i also created a mini image viewer too for this purpose. as such your patch will break transparent bmp's (100%) which is really an incorrect thing. if you can find a way to make it not incorrect - no problems. i really don't like the fix because of its nature. Well, that's what GIMP does. I guess it's a workaround and it'll be 99.99% accurate since 100% transparent BMPs aren't exactly popular. 32-bit BMPs aren't popular either. If my patch is not ok for the upstream, I'll just keep it private. I'm perfectly ok with it. sure - though it's once thing being a paining program (gimp) and getting a bmp load of a totally blank bmp wrong and being a generic library that loads images generically for any purpose. gimp can afford to get it wrong without much hassle - it's a bigger problem for evas to get it wrong as the intended usage is much less clearly defined :) OK. That's a sane argument. Please note that Evas does not load 32-bit BMP with non-opaque pixels created by GIMP properly. I guess GIMP just creates those based on a standard with added flavors. By the way, SDL_image loads those just fine (Evas also beats it on compatibilities too). If I ever have time and come up with a patch that does not break 100% transparent 32-bit BMPs, I'll let the list know. :-) but what i'm more concerned about is.. why are bmp's faster to load? really? seriously? you've tested? vs what other formats? i really didnt make any effort to make the bmp loader fast. i just implemented it to follow the standards (that's why u find evas's bmp loader beat gqview by a large mile as the gtk one is enferior with standards support than evas's). when i do something i tend to like to do it right. now - you'll need to convince me much more that your hack is a valid patch as it really doesnt follow a standard. what is more of interest to me is the bmp loading being faster than... something else? what is that something else? I haven't benchmarked BMP vs PNG loading speed with Evas. The 'BMP is faster to load' argument is based on various icon-loading (small 32x32 icons) tests I performed on my prior project (ARM920T device @400MHz), which uses SDL/SDL_Image. I think Evas is smarter with images but I just assume loading/render of raw data (BMP) would be faster than with compressed PNG files. well that depends. you pay a decompress cost - cpu time, but uncompressed (raw) images you pay an IO cost. so which is worse. load 50kb from flash and spend cpu time decompressing... or load 200kb from flash and spend no cpu time decompressing. also with png you can select your compression level and tune things. i suggest you do some actual examining of this with your current target and try png's with various compression levels. you also can use eet to store images (all even in a single file) and then use lossy or lossless compression, as well as zero compression (raw argb). so if performance is an issue - bmp isnt your only option. other formats give you a wider choice. On my device and based on my experiments, raw data I/O beats compressed data I/O + decompression. Of course, it doesn't apply to all platforms with different I/O performance and computing power. Just for the record, I'm not saying BMP offers a _huge_ performance gain. I'll try to find time and play with different formats. and thanks for the eet tip. I'll see if that causes any problem with my icon/UI artist. :-) BR, brian -- - Codito, ergo sum - I code, therefore I am -- The Rasterman (Carsten Haitzler) ras...@rasterman.com -- brian -- Cool-Karaoke - The smallest recording studio, in your palm, open-sourced http://cool-idea.com.tw/ iMaGiNaTiOn iS mOrE iMpOrTaNt tHaN kNoWlEdGe -- This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev ___ enlightenment-devel
Re: [E-devel] E SVN: tasn trunk/edje/src/lib
Thanks! It works! On Tue, Aug 10, 2010 at 3:16 PM, Enlightenment SVN no-re...@enlightenment.org wrote: Log: Edje: Fixed edje_object_part_text_cursor_content_get to handle non-english. Thanks to Brian Wang for reporting. Author: tasn Date: 2010-08-10 00:16:45 -0700 (Tue, 10 Aug 2010) New Revision: 50953 Modified: trunk/edje/src/lib/edje_entry.c Modified: trunk/edje/src/lib/edje_entry.c === --- trunk/edje/src/lib/edje_entry.c 2010-08-10 03:37:21 UTC (rev 50952) +++ trunk/edje/src/lib/edje_entry.c 2010-08-10 07:16:45 UTC (rev 50953) @@ -2437,16 +2437,21 @@ Evas_Textblock_Cursor *c = _cursor_get(rp, cur); const char *s; static char buf[16]; - int pos, pos2, ch; + int pos, pos2, i; if (!c) return NULL; s = evas_textblock_node_format_text_get(evas_textblock_cursor_format_get(c)); if (s) return s; s = evas_textblock_cursor_paragraph_text_get(c); if (!s) return NULL; pos = evas_textblock_cursor_pos_get(c); - pos2 = evas_string_char_next_get(s, pos, ch); - strncpy(buf, s + pos, pos2 - pos); - buf[pos2 - pos] = 0; + /* Get the actual utf8 pos */ + for (i = 0 ; pos 0 ; pos--) + { + i = evas_string_char_next_get(s, i, NULL); + } + pos2 = evas_string_char_next_get(s, i, NULL); + strncpy(buf, s + i, pos2 - i); + buf[pos2 - i] = 0; return buf; } -- This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev ___ enlightenment-svn mailing list enlightenment-...@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-svn -- brian -- Cool-Karaoke - The smallest recording studio, in your palm, open-sourced http://cool-idea.com.tw/ iMaGiNaTiOn iS mOrE iMpOrTaNt tHaN kNoWlEdGe -- This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] Major Evas font engine overhauls
On Sun, Aug 8, 2010 at 2:37 PM, Tom Hacohen tom.haco...@partner.samsung.com wrote: On Sun, 2010-08-08 at 09:33 +0800, Brian Wang wrote: Hello Tom, Thanks for looking into this problem. Is r50887 fresh enough? r50887 is what I first tried and failed. I reverted evas to r50594 and r50595 (while all other EFL libraries stay at r50887) to confirm it's the r50595 commit the causes this problem. METRIC_CACHE and WORD_CACHE are not enabled in all cases (they're disabled by default, I believe). I am not sure if you performed the same test I did. If you use the source code attached previously, you have to click on elm_entry and check the stdout output (preferably with gdb to show the returned strings in bytes). It seems I didn't perform the same test, mind explaining exactly what you did? I just tried entering chinese characters and saw everything is fine. :) Hello Tom, Please use the test source code I previously attached. ** Within the elm_entry object (three chinese characters in the front, followed by some english letters), click with your mouse on any of the chinese characters at the start of the string and check stdout. There are garbage characters returned. I guess the problem is somehow with the usage of Eina_Unicode. Are Eina_Unicode strings the same as the usual UTF-8 strings? Please find below the backtrace of gdb (r50595 evas) for your investigation. The new evas_common_font_query_char_at_coords() returns the INDEX of the CHARACTER, while the old evas_common_font_query_text_at_pos() returns the INDEX of the BYTE of the start of the character. This returned value is kept as _Evas_Textblock_Cursor's pos. Does 'pos' mean the number of bytes into the string or the number of character into the string? I guess the recent discussion of the docs would help here. :-) --- Breakpoint 1, evas_common_font_query_char_at_coords (fn=0x80e7f20, in_text=0x8176dd8 L中英混合 english mixed with c, intl_props=0x80da6e4, x=68, y=0, cx=0xbfffef94, cy=0xbfffef90, cw=0xbfffef8c, ch=0xbfffef88) at evas_font_query.c:466 466int char_index = 0; /* the index of the current char */ (gdb) bt #0 evas_common_font_query_char_at_coords (fn=0x80e7f20, in_text=0x8176dd8 L中英混合 english mixed with c, intl_props=0x80da6e4, x=68, y=0, cx=0xbfffef94, cy=0xbfffef90, cw=0xbfffef8c, ch=0xbfffef88) at evas_font_query.c:466 #1 0xb7fc52c2 in eng_font_char_at_coords_get (data=0x807a200, font=0x80e7f20, text=0x8176dd8 L中英混合 english mixed with c, intl_props=0x80da6e4, x=68, y=0, cx=0xbfffef94, cy=0xbfffef90, cw=0xbfffef8c, ch=0xbfffef88) at evas_engine.c:1024 #2 0xb7f32e4b in evas_textblock_cursor_char_coord_set (cur=0x80e5a30, x=68, y=11) at evas_object_textblock.c:5195 #3 0xb792424f in _edje_part_mouse_up_cb (data=0x80c6640, e=0x8077488, obj=0x80e58f8, event_info=0xb094) at edje_entry.c:1687 #4 0xb7ef41d9 in evas_object_event_callback_call (obj=0x80e58f8, type=EVAS_CALLBACK_MOUSE_UP, event_info=0xb094) at evas_callbacks.c:220 #5 0xb7ef6e4f in evas_event_feed_mouse_up (e=0x8077488, b=1, flags=EVAS_BUTTON_NONE, timestamp=976110, data=0x0) at evas_events.c:412 #6 0xb7943962 in _ecore_event_evas_mouse_button (e=0x817cac0, press=ECORE_UP) at ecore_input_evas.c:161 #7 0xb7943bfc in ecore_event_evas_mouse_button_up (data=0x0, type=21, event=0x817cac0) at ecore_input_evas.c:203 #8 0xb7ebaffe in _ecore_event_call () at ecore_events.c:577 #9 0xb7ec0e39 in _ecore_main_loop_iterate_internal (once_only=0) at ecore_main.c:1031 #10 0xb7ebfd5c in ecore_main_loop_begin () at ecore_main.c:275 #11 0xb7dff68f in elm_run () at elm_main.c:862 #12 0x08048e00 in elm_main (argc=1, argv=0xb354) at elm-entry.c:74 #13 0x08048e39 in main (argc=1, argv=0xb354) at elm-entry.c:80 --- -- Tom. -- brian -- Cool-Karaoke - The smallest recording studio, in your palm, open-sourced http://cool-idea.com.tw/ iMaGiNaTiOn iS mOrE iMpOrTaNt tHaN kNoWlEdGe -- This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] Major Evas font engine overhauls
On Sun, Aug 8, 2010 at 7:33 PM, Tom Hacohen tom.haco...@partner.samsung.com wrote: On Sun, 2010-08-08 at 18:00 +0800, Brian Wang wrote: Please use the test source code I previously attached. ** Within the elm_entry object (three chinese characters in the front, followed by some english letters), click with your mouse on any of the chinese characters at the start of the string and check stdout. There are garbage characters returned. I will, terribly busy ATM :P (I need to finish the textblock overhaul until tomorrow). That's ok. :-) I guess the problem is somehow with the usage of Eina_Unicode. Are Eina_Unicode strings the same as the usual UTF-8 strings? No, as stated in the Eina_Unicode docs, Eina_Unicode are unicode code points (essentially 32bit ints or wchar_t's if big enough). OK. Please find below the backtrace of gdb (r50595 evas) for your investigation. The new evas_common_font_query_char_at_coords() returns the INDEX of the CHARACTER, while the old evas_common_font_query_text_at_pos() returns the INDEX of the BYTE of the start of the character. Yes, but this is ok because we now handle it as an index, and not a byte index. OK. Ths returned value is kept as _Evas_Textblock_Cursor's pos. Does 'pos' mean the number of bytes into the string or the number of character into the string? I guess the recent discussion of the docs would help here. As said, it's ok, because I also changed textblock to conform with that change. OK. Is Edje handling strings in UTF-8 or Eina_Unicode/Unicode? It seems to be using utf8 seems the use of Eina_Unicode does not exit in Edje code. However, it passes the cursor position (CHARACTER index) to evas_string_char_next_get()... Please find below the gdb backtrace. --- #0 evas_common_encoding_utf8_get_next (buf=0x8176558 中英混合 english mixed with chinese, iindex=0xbfffeecc) at evas_encoding.c:20 #1 0xb7f246bc in evas_string_char_next_get (str=0x8176558 中英混合 english mixed with chinese, pos=3, decoded=0xbfffeefc) at evas_object_text.c:1298 #2 0xb7926c0c in _edje_entry_cursor_content_get (rp=0x80c6478, cur=EDJE_CURSOR_MAIN) at edje_entry.c:2648 #3 0xb78fa87b in edje_object_part_text_cursor_content_get (obj=0x80b3550, part=0xb7e60bbc elm.text, cur=EDJE_CURSOR_MAIN) at edje_util.c:2116 #4 0xb7e1b0a7 in elm_entry_cursor_content_get (obj=0x80b3378) at elm_entry.c:1904 #5 0x08048bb4 in _entry_retrieve_clicked_word (obj=0x80b3378) at elm-entry.c:7 --- In Frame #1, the 'pos' argument to evas_string_char_next_get() is the CHARACTER index, which is then passed onto evas_common_encoding_utf8_get_next() in 'iindex', which seems to be used as the BYTE index. The usage of the cursor position as the CHARACTER index and BYTE index seems to be mixed up. Maybe in Frame #2, _edje_entry_cursor_content_get() should call a different evas API to reflect the string is in utf8 and pos is in CHARACTERS? -- brian -- Cool-Karaoke - The smallest recording studio, in your palm, open-sourced http://cool-idea.com.tw/ iMaGiNaTiOn iS mOrE iMpOrTaNt tHaN kNoWlEdGe -- This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] Major Evas font engine overhauls
On Wed, Jul 28, 2010 at 7:59 PM, Tom Hacohen tom.haco...@partner.samsung.com wrote: Hi all, Although the commit (and log) gives enough information by itself, I decided to write this post to further clarify the subject. This commit changed the font engine, textblock object and text object to use Eina_Unicode instead of utf8 internally. This commit does not affect API in any way (except for engine writing API which is pretty internal). There are a couple of reasons for this commit: 1. With utf8 you can't jump to specific string indexes for example: the 4th letter of a string. 2. All the internal font functions already work with Unicode code points, so we had to convert encodings all the time. 3. The BiDi algorithm in general and fribidi in specific, require the text to be encoded in Unicode because jumping between text positions, resolving visual-logical indexes and reordering letters are pretty common there. 4. This cleaned the code quite a lot, because retrieving specific indexes was now made easier. In this commit I also started relying on the new FriBiDi version (0.19.2 which was released an year and a half ago) as implied in my previous mail about BiDi. This commit also includes a bit of renaming, evas_intl_* got renamed to evas_bidi_*, evas_common_font_utf8_* got renamed to evas_common_encoding_utf8_* (the previous ones still exist but marked as deprecated). Currently, the changes I did in the font engine are pretty clean, though I can't say same about the textblock object. In the textblock object I still do stuff as if the string is stored in utf8, that is, I still kept the current design and didn't do any major changes (that change flow too dramatically). The code works, and it's not uglier than it was, it's just not a clean as it will be once I get over with it. I had to commit now in order to allow raster to uncrustify everything, let other people continue to work on other parts of Evas without a merging hell, and because it's better than how it was. I will overhaul the textblock object in the following weeks (hopefully will do a small API breaking commit tomorrow in order to make get it in efl 1.0) and after that will redesign textblock to work more naturally with unicode. I did a lot of testing, but I still can't be sure everything works ok, to me it seemed that everything is exactly as it was except for the bugs I fixed. If you find anything fishy, please let me know. Sorry for the big commit, but it includes many interdependent changes. It's also time to mention I did *not* test on Mac OS/Windows/Exotic engines, although I did modify the code where needed, I can't assure it works there, so again, if you find anything, drop me an email. If you have any questions, please let me know, Tom. Hello Tom, I can confirm this commit breaks evas text handling for Chinese characters. Please find the attached file for reproducing the problem. I reverted evas to r50594 and elm_entry_cursor_content_get() works properly. Then I tried r50595 evas, which is this svn commit, it fails. Chinese characters are returned with garbage bytes appended. Any ideas what went wrong? I am happy to help test more. Thanks. brian -- The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://ad.doubleclick.net/clk;226879339;13503038;l? http://clk.atdmt.com/CRS/go/247765532/direct/01/ ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel -- brian -- Cool-Karaoke - The smallest recording studio, in your palm, open-sourced http://cool-idea.com.tw/ iMaGiNaTiOn iS mOrE iMpOrTaNt tHaN kNoWlEdGe #include Elementary.h static void _entry_retrieve_clicked_word(Evas_Object *obj) { const char *content; while ((content = elm_entry_cursor_content_get(obj))) { if (!content[0]) break; printf(Content: '%s'\n, content); if (!elm_entry_cursor_next(obj)) break; } } static void _entry_clicked(void *data, Evas_Object *obj, void *event_info) { printf(%s in\n, __FUNCTION__); _entry_retrieve_clicked_word(obj); } /* if someone presses the close button on our window - exit nicely */ static void win_del(void *data, Evas_Object *obj, void *event_info) { /* cleanly exit */ elm_exit(); } EAPI int elm_main(int argc, char **argv) { Evas_Object *win, *bg, *bx, *en; win = elm_win_add(NULL, dialog, ELM_WIN_BASIC); evas_object_smart_callback_add(win, delete-request, win_del, NULL); bg = elm_bg_add(win); evas_object_size_hint_weight_set(bg,
Re: [E-devel] Major Evas font engine overhauls
On Sat, Aug 7, 2010 at 9:32 PM, Tom Hacohen t...@stosb.com wrote: On Sat, Aug 7, 2010 at 11:04 AM, Brian Wang brian.wang.0...@gmail.com wrote: I can confirm this commit breaks evas text handling for Chinese characters. Please find the attached file for reproducing the problem. I reverted evas to r50594 and elm_entry_cursor_content_get() works properly. Then I tried r50595 evas, which is this svn commit, it fails. Chinese characters are returned with garbage bytes appended. Any ideas what went wrong? I am happy to help test more. I found a bit of spare time, tried it here, and it looks like it works (latest rev,not the one you mentioned, and it makes sense, since there were fixes added especially if you used word/metric caches). I can only verify it works to some extent, I see white squares (chinese fonts did not get detected here for some reason, not sure if I even have them) which is what expected, no garbage added. Hello Tom, Thanks for looking into this problem. Is r50887 fresh enough? r50887 is what I first tried and failed. I reverted evas to r50594 and r50595 (while all other EFL libraries stay at r50887) to confirm it's the r50595 commit the causes this problem. METRIC_CACHE and WORD_CACHE are not enabled in all cases (they're disabled by default, I believe). I am not sure if you performed the same test I did. If you use the source code attached previously, you have to click on elm_entry and check the stdout output (preferably with gdb to show the returned strings in bytes). I suggest you try later revs just to make sure it's not something fixed in a later commit. See above. -- Tom. -- brian -- Cool-Karaoke - The smallest recording studio, in your palm, open-sourced http://cool-idea.com.tw/ iMaGiNaTiOn iS mOrE iMpOrTaNt tHaN kNoWlEdGe -- This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
[E-devel] Question: how to force using bitmap fonts when the font size if smaller than NN?
Hello all, For Chinese characters, small text looks bad with all those anti-aliasing edges and it affects readability of the text. How do I make sure that Evas/Edje/Elementary uses bitmap fonts when the font size is small and uses scalable fonts when the font size is larger? Or is it a font setup problem? I just put my Chinese bitmaps fonts (*.pcf) on my device and Evas is complaining NOT SCALABLE! a lot and text becomes 'invisible'. Thanks in advance. brian -- brian -- Cool-Karaoke - The smallest recording studio, in your palm, open-sourced http://cool-idea.com.tw/ iMaGiNaTiOn iS mOrE iMpOrTaNt tHaN kNoWlEdGe -- The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://ad.doubleclick.net/clk;226879339;13503038;l? http://clk.atdmt.com/CRS/go/247765532/direct/01/ ___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
Re: [E-devel] [PATCH] evas BMP loader - fix for 32-bit BMP files saved by GIMP
On Wed, Jul 28, 2010 at 7:55 AM, Carsten Haitzler ras...@rasterman.com wrote: On Wed, 14 Jul 2010 18:22:24 +0800 Brian Wang brian.wang.0...@gmail.com said: unfortunately this breaks loading of images from a bmp test suite i have. (as such evas's loader loads more files correctly than gqview can). images that break are attached. I have tested the broken image. I guess you mean they're invisible with my patch? GIMP can load them correctly. I briefly browsed GIMP's bmp plug-in code but could not find how it determines the correct alpha mask for 32-bit BMP. I could not find relevant specification about ARGB 32-bit BMP in BMP v3 specification. Without proper reference, I can only come up with a workaround... Any BMP wizards here? However, I think the attached patch does the trick. It first sets hasa flag and if all pixels are transparent (I guess it's an uninteresting/useless image if the user can't see any pixel of it), it set the Image_Entry's alpha flag to zero. g32def.bmp, g32bf.bmp and the attached Icon.bmp can all be loaded properly. Any more interesting BMPs? :-) Thanks for looking into this. brian Hello all, GIMP (2.6.8) seems to save 32-bit BMP in the Windows 3.0 + (v3) format mentioned in evas_image_load_bmp.c. I'm not sure if the patch breaks anything (or images created by other tools). Please correct it if you see fit. This patch should enable support for ARGB BMP files for evas. It's tested on my x86 box. Cheers, brian -- brian -- Cool-Karaoke - The smallest recording studio, in your palm, open-sourced http://cool-idea.com.tw/ iMaGiNaTiOn iS mOrE iMpOrTaNt tHaN kNoWlEdGe -- - Codito, ergo sum - I code, therefore I am -- The Rasterman (Carsten Haitzler) ras...@rasterman.com -- brian -- Cool-Karaoke - The smallest recording studio, in your palm, open-sourced http://cool-idea.com.tw/ iMaGiNaTiOn iS mOrE iMpOrTaNt tHaN kNoWlEdGe Index: evas/src/modules/loaders/bmp/evas_image_load_bmp.c === --- evas/src/modules/loaders/bmp/evas_image_load_bmp.c (revision 50528) +++ evas/src/modules/loaders/bmp/evas_image_load_bmp.c (working copy) @@ -148,6 +148,7 @@ if (!read_int(f, tmp2)) goto close_file; important_colors = tmp2; // number of important colors - 0 if all if (image_size == 0) image_size = fsize - offset; +if ((comp == 0) (bit_count == 32)) hasa = 1; // GIMP seems to store it this way } else if (head_size == 108) // Windows 95/NT4 + (v4) { @@ -423,6 +424,7 @@ if (!read_int(f, tmp2)) goto close_file; important_colors = tmp2; // number of important colors - 0 if all if (image_size == 0) image_size = fsize - offset; +if ((comp == 0) (bit_count == 32)) hasa = 1; // GIMP seems to store it this way } else if (head_size == 108) // Windows 95/NT4 + (v4) { @@ -933,6 +935,7 @@ } else if (bit_count == 32) { + int none_zero_alpha = 0; pix = surface; for (y = 0; y h; y++) { @@ -943,6 +946,7 @@ g = p[1]; r = p[2]; a = p[3]; +if (a) none_zero_alpha = 1; if (!hasa) a = 0xff; *pix = ARGB_JOIN(a, r, g, b); p += 4; @@ -953,6 +957,7 @@ if (fix 0) p += 4 - fix; // align row read if (p = buffer_end) break; } +if (!none_zero_alpha) ie-flags.alpha = 0; } else goto close_file; attachment: Icon.bmp-- The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://ad.doubleclick.net/clk;226879339;13503038;l? http://clk.atdmt.com/CRS/go/247765532/direct/01/___ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel