Commit Graph

414 Commits

Author SHA1 Message Date
Gustavo Sverzut Barbieri 4668d04f04 efl: cleanup HAVE_THREADS and pthread usage outside of eina.
Eina now abstracts threads, so use that.

the touched files had the EFL_HAVE_THREADS as it's mandatory now.



SVN revision: 81935
2012-12-31 16:14:40 +00:00
Gustavo Sverzut Barbieri 12e0602452 efl: eio checks cleanup
some functions were being checked but their IFDEF not being handled,
others (getpwnam and getgrnam) were isolated in a code that is now
Windows, then no need to check them as well as these are POSIX.



SVN revision: 81934
2012-12-31 15:16:49 +00:00
Cedric BAIL e985899c9c efl: and fix a potential memory leak.
SVN revision: 81922
2012-12-31 01:59:00 +00:00
Cedric BAIL db2a8c62f4 efl: fix issue when text didn't get properly replaced.
Thanks to hannes.janetzek@gmail.com !


SVN revision: 81921
2012-12-31 01:49:36 +00:00
Cedric BAIL 209347f148 efl: rename eina_inarray_add to eina_inarray_grow.
SVN revision: 81918
2012-12-31 01:27:58 +00:00
Cedric BAIL 375be85b27 efl: add a way to allocate without memcpy data in an Eina_Inarray.
SVN revision: 81913
2012-12-31 00:05:02 +00:00
Cedric BAIL f8ea554926 efl: limit regression with async rendering.
NOTE: There is still an issue with text rendering, that
is still 4 times slower and impact all text object (text,
textblock and textgrid).


SVN revision: 81912
2012-12-30 23:39:11 +00:00
Cedric BAIL 35a5c733ff eo: let's make weak ref safer to manipulate.
SVN revision: 81899
2012-12-30 12:26:25 +00:00
Gustavo Sverzut Barbieri 4bc0210bd3 efl: merge efreet.
seems to be fine, pass distcheck and friends. please report.

changes:
 - documentation hierarchy fixes
 - replaced __UNUSED__ with EINA_UNUSED
 - replaced PKG_DATA_DIR with PACKAGE_DATA_DIR"/efreet"



SVN revision: 81889
2012-12-29 23:04:40 +00:00
Carsten Haitzler 717f0823e0 small change - use xdg runtime dir if available instead of home. nicer
in xdg worlds. still falls back tho.



SVN revision: 81858
2012-12-29 03:39:20 +00:00
Gustavo Sverzut Barbieri 2608f68571 efl/docs: clean-up and make it more uniform.
now unified docs are bit more uniform in their start pages, overall
improved but much to do :-(



SVN revision: 81851
2012-12-28 23:26:05 +00:00
Ulisses Furquim 4f6a4e59a4 edbus: do not crash when dispatching signals
Make sure the next signal handler for the connection is always known and
not vanish under us.

Patch by: Ulisses Furquim <ulisses@profusion.mobi>



SVN revision: 81847
2012-12-28 21:05:57 +00:00
Gustavo Sverzut Barbieri 489bbff765 efl/eio: fix docs.
SVN revision: 81846
2012-12-28 20:47:25 +00:00
Gustavo Sverzut Barbieri d01565adcf efl/ecore_x: fix doxygen hierarchy.
PLEASE someone unify xlib and xcb docs, makes no sense to have them
both as they should be exactly the same!



SVN revision: 81845
2012-12-28 20:46:54 +00:00
Mike Blumenkrantz 6196c88b1b same edbus commit as last commit
SVN revision: 81840
2012-12-28 20:02:31 +00:00
Gustavo Sverzut Barbieri f36a20850c efl/ecore_imf: fix doxygen hierarchy.
someone should move the docs to header, too much for me to do right now.


SVN revision: 81838
2012-12-28 19:50:06 +00:00
Gustavo Sverzut Barbieri eb362c18e4 efl/ecore_ipc: fix doxygen hierarchy.
SVN revision: 81837
2012-12-28 19:49:35 +00:00
Gustavo Sverzut Barbieri 2d3da46379 efl/ecore_fb: fix doxygen hierarchy.
SVN revision: 81836
2012-12-28 19:49:12 +00:00
Gustavo Sverzut Barbieri caa2004b4c efl/ecore_evas: fix doxygen hierarchy.
SVN revision: 81835
2012-12-28 19:48:40 +00:00
Gustavo Sverzut Barbieri f29be8f793 efl/ecore_con: fix doxygen hierarchy.
SVN revision: 81834
2012-12-28 19:48:12 +00:00
Gustavo Sverzut Barbieri 0cfc04ae7d efl/ecore_audio: fix doxygen hierarchy.
SVN revision: 81833
2012-12-28 19:47:31 +00:00
Gustavo Sverzut Barbieri 05212a3d0e efl/ecore_wayland: move docs to header.
SVN revision: 81832
2012-12-28 19:36:01 +00:00
Gustavo Sverzut Barbieri e86d9e0dd9 efl/eina: fix doc for content access
SVN revision: 81831
2012-12-28 19:08:42 +00:00
Gustavo Sverzut Barbieri 9b94a00e1f efl/docs: fix Evil x Escape conflicts
SVN revision: 81828
2012-12-28 18:42:57 +00:00
Gustavo Sverzut Barbieri 6104a51efe efl/docs: fix evil x escape conflicts
SVN revision: 81827
2012-12-28 18:42:35 +00:00
Gustavo Sverzut Barbieri 331488d1ce efl: merge edbus (v2).
SVN revision: 81825
2012-12-28 17:53:25 +00:00
Ulisses Furquim 5f493f2c38 evas/evas_render: use rendering flag only when async rendering
Also postpone marking the rendering flag until we know we will have
the draw thread do its work. This way we avoid waiting forever at
evas_render_rendering_wait() when the draw thread is also blocked.

Patch by: Ulisses Furquim <ulisses@profusion.mobi>



SVN revision: 81798
2012-12-28 13:00:37 +00:00
ChunEon Park 4079b164b7 evas/image - return as possible as soon.
SVN revision: 81794
2012-12-28 11:41:29 +00:00
Cedric BAIL f9ebc7bdcd evas: simplify logic for ellipsis.
SVN revision: 81773
2012-12-28 00:58:10 +00:00
Mike McCormack 7b2b9da7cb efl: Remove unused label
Signed-off-by: Mike McCormack <mikem@atratus.org>

SVN revision: 81736
2012-12-27 08:58:40 +00:00
Carsten Haitzler 4cd65475d4 this is small but critical - failure to connect isnt something to
ERR() log about... it's simply a matter of the other end not being
there... it can be a perfectly normal condition.



SVN revision: 81734
2012-12-27 08:16:05 +00:00
Cedric BAIL 0d86917bbe efl: when you remove option at least make the default sane or don't do it.
SVN revision: 81731
2012-12-27 06:46:29 +00:00
Carsten Haitzler ebaf0ce575 xi2 leak--
SVN revision: 81724
2012-12-27 05:26:14 +00:00
Mike Blumenkrantz 300ee59f38 eio functions no longer crash when passed NULL and throw errors accordingly
SVN revision: 81668
2012-12-24 09:44:21 +00:00
Mike Blumenkrantz b2de05f49a all efl object deletion functions now take NULL without crashing or erroring
SVN revision: 81667
2012-12-24 09:35:56 +00:00
Mike Blumenkrantz f5a98df8de eina_magic_fail now only ERRs on NULL instead of CRI, making debugging much easier
SVN revision: 81666
2012-12-24 09:16:56 +00:00
Boris Faure d7b55afca2 eina: fix code indentation
SVN revision: 81660
2012-12-23 17:30:56 +00:00
Carsten Haitzler ff3a370b9b font draw - dont alloc font props for 32 chrs.. if we are only ever
going to have less than 32.. eg textgrid. 1 per prop.



SVN revision: 81654
2012-12-23 11:02:50 +00:00
Hannes Janetzek 55f2e87201 fix crash in eio_monitor_del
SVN revision: 81630
2012-12-22 01:56:10 +00:00
Paulo Alcantara 0809c7de3f efl/cserve2: Fix ref/unef of image entries for threads
Signed-off-by: Paulo Alcantara <pcacjr@profusion.mobi>


SVN revision: 81584
2012-12-21 21:13:06 +00:00
Paulo Alcantara fb97c82882 efl/cserve2: Fix some bugs regarding fonts
Signed-off-by: Paulo Alcantara <pcacjr@profusion.mobi>


SVN revision: 81582
2012-12-21 21:11:23 +00:00
Leandro Pereira 6516727164 evas/canvas: Make sure rendering finishes before image_data_set() and image_native_set()
SVN revision: 81563
2012-12-21 17:30:44 +00:00
Tomas Cech cafaecfce1 efl: Fix typo in evas_object_textblock
Patch by: Tomas Cech <tcech@suse.cz>

SVN revision: 81559
2012-12-21 15:56:26 +00:00
Jonas M. Gastal 55845c5a3e efl: Adding much improved textblock style documentation.
SVN revision: 81485
2012-12-20 20:42:45 +00:00
Gustavo Sverzut Barbieri 3f5fa6170c efl/evas_object_image_is_inside: fixed implementation.
This function was basically never working correctly. Everything was
fixed by simulating the evas_object_image_render() workflow, but
instead of actually draw we just check the pixel transparency.

Bugs fixed:

 * fails when image is scaled up (could segv) or down (incorrect values);
 * fails when image is moved to negative x,y;
 * fails when border was being used.

Now everything is fixed and seems to work properly, except I'm not
handling the map and get_pixels() cases, these are marked with ERR()
so we can fix them if someone needs.




SVN revision: 81410
2012-12-19 22:41:12 +00:00
Gustavo Sverzut Barbieri 7c19e1b34d efl/evas_cache: copied images should be considered loaded.
Whenever we copy an image, making it write-able
(evas_object_image_data_get(o, 1)) or just start painting a pristine
buffer (evas_object_image_size_set(o, w, h)), we must mark the image
as loaded to avoid trying to load it (and failing, marking the whole
thing as EVAS_LOAD_ERROR_GENERIC).



SVN revision: 81409
2012-12-19 22:36:13 +00:00
Paulo Alcantara 19a52f4efd efl/evas: Fix XCB/Xlib crash when closing applications
We need to wait draw threads finishing their stuff before freeing canvas.

Signed-off-by: Paulo Alcantara <pcacjr@profusion.mobi>


SVN revision: 81395
2012-12-19 18:03:38 +00:00
Paulo Alcantara 76932dcc9f evas/engines: Introduce render mode
The render mode should be useful for engines other than software one.

Signed-off-by: Paulo Alcantara <pcacjr@profusion.mobi>


SVN revision: 81384
2012-12-19 16:15:58 +00:00
Carsten Haitzler 9e5266109d fix 24bpp rendering problem and pixel fetch problem found in qemu/kvm.
SVN revision: 81378
2012-12-19 15:40:52 +00:00
Christopher Michael 9f0e2fc7e8 Fix some minor formatting in Alex Wu's cpu patch.
Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 81361
2012-12-19 13:58:52 +00:00
Christopher Michael 58304e01ab ecore-wayland: (version 2)Fix monitoring ECORE_FD_WRITE defaultly on wayland display fd lead to 100% cpu usage
In ecore_wl_init(), adding wayland display fd with ECORE_FD_WRITE
flag make CPU usage 100%. The proper way to monitor the ECORE_FD_WRITE
is when the wl_display_flush() return value < 0 and errno == EAGAIN.
And if wl_display_flush() return, we remove ECORE_FD_WRITE flag from
the display fd.

Change from v1:
Add idle enterer destroy code into _ecore_wl_shutdown() to avoid
using freed wl_display.

SVN revision: 81360
2012-12-19 13:58:48 +00:00
Stefan Schmidt 8d956c8e99 efl/evas_bidi: Fix memleak.
Make sure we also free udelmin when we retrun from from the for loop early.

SVN revision: 81334
2012-12-19 09:28:02 +00:00
Vincent Torri a4f4aa00b3 fix returned value
SVN revision: 81323
2012-12-19 07:06:22 +00:00
Carsten Haitzler 076204d166 oops-- -> call c func not mmx funf .. in the c only render path!
SVN revision: 81315
2012-12-19 00:55:32 +00:00
Paulo Alcantara 6483c8d1e6 evas/render: Avoid race when sending render data and updates_cb
Signed-off-by: Paulo Alcantara <pcacjr@profusion.mobi>



SVN revision: 81303
2012-12-18 20:20:45 +00:00
Gustavo Sverzut Barbieri b5197eb128 efl/ecore_evas: be loud on errors.
SVN revision: 81302
2012-12-18 20:14:11 +00:00
Gustavo Sverzut Barbieri b6724ed9ce efl/ecore_evas: abort when object does not contain Ecore_Evas.
SVN revision: 81301
2012-12-18 20:10:48 +00:00
Gustavo Sverzut Barbieri be79115198 efl/ecore_evas: do not silently fail on incorrect interface.
SVN revision: 81300
2012-12-18 20:09:51 +00:00
Jonas M. Gastal e3ae81e65f efl: Created Ecore group and added existing Ecore groups to it.
SVN revision: 81293
2012-12-18 18:38:44 +00:00
Jonas M. Gastal d487f9d744 efl: Created Evil group and added existing Evil groups to it.
SVN revision: 81292
2012-12-18 18:38:35 +00:00
Jonas M. Gastal 42cf8df080 efl: Created Embryo group and added existing Embryo groups to it.
SVN revision: 81291
2012-12-18 18:38:30 +00:00
Jonas M. Gastal a6b491fc01 efl: Created Eina group and added existing Eina groups to it.
SVN revision: 81290
2012-12-18 18:38:25 +00:00
Jonas M. Gastal 22a6966653 efl: Created Eet group and added existing Eet groups to it.
SVN revision: 81289
2012-12-18 18:38:19 +00:00
Jonas M. Gastal b23fb8a16b efl: Created Evas group and added all existing evas groups to it.
SVN revision: 81288
2012-12-18 18:25:12 +00:00
Leandro Pereira cb10c7d019 evas: Modify software_generic and gl_x11 to with with threaded renderer
SVN revision: 81284
2012-12-18 16:28:55 +00:00
Leandro Pereira 613659b1d8 ecore-evas: Async render
SVN revision: 81283
2012-12-18 16:27:26 +00:00
Leandro Pereira a7b4a3c12d evas: Async render
SVN revision: 81282
2012-12-18 16:26:44 +00:00
Leandro Pereira 645dcff9d2 evas: Add function to ref an Image_Entry
SVN revision: 81281
2012-12-18 16:22:47 +00:00
Leandro Pereira 9b2b121e6f evas: Add thread threaded render queue
SVN revision: 81280
2012-12-18 16:21:03 +00:00
Jonas M. Gastal d41d76ca38 efl: Modified section names as doxygen reuses titles for same named sections in different pages.
SVN revision: 81279
2012-12-18 16:18:28 +00:00
Jonas M. Gastal 93cdccf144 efl: Give different names for example pages in different libs.
SVN revision: 81278
2012-12-18 16:18:24 +00:00
Jonas M. Gastal 65a7188905 efl: Unifying authors page.
SVN revision: 81277
2012-12-18 16:18:19 +00:00
Jonas M. Gastal 6ecaa33f22 efl: Adding a unified main page that links to the "mainpage" of libs.
SVN revision: 81273
2012-12-18 16:12:56 +00:00
Daniel Willmann 15ec12fabc efl: Add ChangeLog, NEWS and @since for ecore_audio
Vtorri is right of course.

Signed-off-by: Daniel Willmann <d.willmann@samsung.com>

SVN revision: 81268
2012-12-18 15:51:47 +00:00
Cedric BAIL 9cbe37a36a efl: another leak-- in Evas_Object_Text.
SVN revision: 81198
2012-12-18 01:31:52 +00:00
Leandro Pereira aa03e70141 evas/common: Prepare soil to land map code for threaded render
SVN revision: 81189
2012-12-17 21:30:07 +00:00
Leandro Pereira b4ceb3f2ba evas/common: Prepare soil to land scaling code for threaded render
SVN revision: 81188
2012-12-17 21:29:33 +00:00
Leandro Pereira 6ea2723322 evas/common: Prepare soil to land polygon drawing code for threaded render
SVN revision: 81187
2012-12-17 21:29:01 +00:00
Leandro Pereira b51ab5fc02 evas/common: Prepare soil to land rect drawing code for threaded render
SVN revision: 81186
2012-12-17 21:28:32 +00:00
Leandro Pereira 52104d26c8 evas/common: Prepare soil to land line drawing code for threaded render
SVN revision: 81185
2012-12-17 21:28:08 +00:00
Leandro Pereira bfe46f54ff evas: Do not unload pixels from RGBA_Image if cache refcount > 0
SVN revision: 81184
2012-12-17 21:27:40 +00:00
Leandro Pereira 274c9159c9 evas: Use refcounted glyph arrays
This is in preparation for threaded render landing: the render thread will
hold a reference to a text object's glyphs while it hasn't been rendered
yet (and will drop that reference after drawing). This changes the internal
API a little bit (evas_common_font_rgba_draw() now takes an Evas_Glyph_Array
instead of an Evas_Text_Props).


SVN revision: 81183
2012-12-17 21:27:07 +00:00
Leandro Pereira f96a5aac5c evas: Get rid of RGBA_Image ref member
(It's not by anything in the code.)



SVN revision: 81182
2012-12-17 21:26:15 +00:00
Cedric BAIL 6adce01faa efl: fix some of the memory leak.
SVN revision: 81136
2012-12-17 13:04:35 +00:00
Daniel Zaoui e57e9ee684 Fix docs
Signed-off-by: Daniel Zaoui <daniel.zaoui@samsung.com>

SVN revision: 81130
2012-12-17 12:43:35 +00:00
Cedric BAIL dbc5d63555 efl: detect all text change properly and don't destroy text if we don't relayout it.
SVN revision: 81061
2012-12-17 03:34:08 +00:00
Carsten Haitzler dd00dba75e small change - dont let update rect list for image object become a
runaway endless list if evas doenst come around and render (pick it
up) any time soon - limit to 512 update rects.



SVN revision: 81039
2012-12-16 02:01:11 +00:00
Carsten Haitzler fc5c62500d warn-- .. but this is suspicios as we goto the end where is_v and
was_v are used... and never do set them.



SVN revision: 81038
2012-12-16 01:49:36 +00:00
Cedric BAIL 24e8207971 efl: should fix some issue related to scale.
SVN revision: 81020
2012-12-15 14:16:08 +00:00
Daniel Willmann 29931c273f efl: Add build system support for ecore_audio
Disabled by default, enable with --enable-audio
ALSA support is disabled as it is not there yet. Pulseaudio should work
though.

Support for .ogg and .wav is there as well (.mp3 is not)

Signed-off-by: Daniel Willmann <d.willmann@samsung.com>

SVN revision: 81000
2012-12-14 23:38:25 +00:00
Daniel Willmann eb15fa9e9c ecore_audio: Add rudimentary ALSA support
By rudimentary I mean I barely got it to work. For my particular test
case. It will not work for you and needs lots of love until it can be
used.

Signed-off-by: Daniel Willmann <d.willmann@samsung.com>

SVN revision: 80999
2012-12-14 23:38:21 +00:00
Daniel Willmann d49fe90b18 ecore_audio: Add support for adding a custom callback
Very hackish implementation and probably not needed as libsndfile
virtual IO can be used instead, though it's a little more complicated

Signed-off-by: Daniel Willmann <d.willmann@samsung.com>

SVN revision: 80998
2012-12-14 23:38:18 +00:00
Daniel Willmann 94ccfd45e8 ecore_audio: Add support for simple tone output
Just plays a sine wave of set frequency and duration

Signed-off-by: Daniel Willmann <d.willmann@samsung.com>

SVN revision: 80997
2012-12-14 23:38:14 +00:00
Daniel Willmann 8c96a841e4 ecore_audio: Add support for libsndfile
Allows reading from and writing to wav, ogg, etc. files. Support for
virtual IO as well to allow playing sounds from eet, which will be
needed in edje multisense.

Signed-off-by: Daniel Willmann <d.willmann@samsung.com>

SVN revision: 80996
2012-12-14 23:38:11 +00:00
Daniel Willmann 9293581c62 ecore_audio: Add support for PulseAudio
Only outputs are supported at the moment

Signed-off-by: Daniel Willmann <d.willmann@samsung.com>

SVN revision: 80995
2012-12-14 23:38:08 +00:00
Daniel Willmann 318a88b61f efl: Introducing ecore_audio - the audio API for efl
This is still very much a work in progress, so expect some issues. The
signalling is using ecore events for now - that will change to callbacks
you can register callbacks for events on specific Ecore_Audio_Objects.
EO wasn't there when Ecore_Audio started, but it will probably move to
that in the future.

Otherwise have fun, don't break it (too much) and please send bug
reports and feedback to me.

Signed-off-by: Daniel Willmann <d.willmann@samsung.com>

SVN revision: 80994
2012-12-14 23:38:01 +00:00
Leandro Dorileo 35a3326371 evas: fix a memory leak introduced on rev 78644
_nodes_clear() is called on object removal and it's not supposed
alloc anything at that stage.


SVN revision: 80984
2012-12-14 20:03:31 +00:00
Leandro Dorileo 99a56aa411 eo: fix memory leak on _eo_class_mro_add
SVN revision: 80983
2012-12-14 20:03:25 +00:00
Alex Wu a3f102f742 Reverting 80476 and 80479. This solution is flawed and causes some weird
collateral damages that need further investigation. All programs running with
wayland engines are consuming 100% CPU.

ecore-wayland: Fix monitoring ECORE_FD_WRITE defaultly on
   wayland display fd lead to 100% cpu usage

  In ecore_wl_init(), adding wayland display fd with ECORE_FD_WRITE
  flag make CPU usage 100%. The proper way to monitor the ECORE_FD_WRITE
  is when the wl_display_flush() return value < 0 and errno == EAGAIN.
  And if wl_display_flush() return, we remove ECORE_FD_WRITE flag from
  the display fd.

  Patch by: Alex Wu <zhiwen.wu@linux.intel.com>


SVN revision: 80981
2012-12-14 19:00:53 +00:00
Cedric BAIL c4c7fe5d2d efl: don't skip redraw when needed.
SVN revision: 80921
2012-12-14 09:07:38 +00:00
Cedric BAIL 498b46802c eina: fix Eina_Barrier when pthread doesn't provide one.
Patch by Ulisses Furquim <ulisses@profusion.mobi>


SVN revision: 80907
2012-12-14 02:18:02 +00:00
Stefan Schmidt 2dc790bf47 evas/bidi: Make sure we access the correct memory here.
Without that it would crash as we just freed it and assigned the realloc
code to tmp_ret.

SVN revision: 80863
2012-12-13 14:17:33 +00:00
Cedric BAIL 2ade3fa902 evas: fix case when we were in the middle of a charactere.
SVN revision: 80811
2012-12-13 10:36:00 +00:00
Cedric BAIL 5828c04123 evas: preserve ellipsis.
SVN revision: 80797
2012-12-13 06:50:08 +00:00
Cedric BAIL a3f52650b9 evas: make Evas_Object_Text ellipsis handle faster by not recalculating what was already calculated.
SVN revision: 80790
2012-12-13 05:12:14 +00:00
Carsten Haitzler 5898909947 ecore-evas moduels broke listing of modules... names all changed!
fix... the long ugly way! :(



SVN revision: 80788
2012-12-13 00:55:53 +00:00
Daniel Willmann 9772e3b5dc efl: Fix possible memory corruption in ecore xrandr EDID functions
Report from Klocwork. I checked that the actual max size of the name is
13 bytes. Now we allocate one more to hold the terminating NULL byte and
not write into unallocated memory.

Signed-off-by: Daniel Willmann <d.willmann@samsung.com>

SVN revision: 80773
2012-12-12 17:23:09 +00:00
Daniel Willmann e9bd0b7a27 eet: Fix possible buffer overflow in functions relying on EET_T_LAST.
Issue reported by Klocwork. Backport, ChangeLog, NEWS included

Signed-off-by: Daniel Willmann <d.willmann@samsung.com>

SVN revision: 80767
2012-12-12 14:49:49 +00:00
Cedric BAIL a16f6e2330 evas: add ellipsis support in evas.
Patch done with help from Tom Hacohen.



SVN revision: 80763
2012-12-12 14:05:29 +00:00
Cedric BAIL ebd83134a4 efl: check that the object is not deleted or NULL before accessing it.
SVN revision: 80744
2012-12-12 09:45:49 +00:00
Cedric BAIL 0d1b29e5e1 eet: fix memory leak with OpenSSL.
Reported by Leandro Santiago <leandrosansilva@gmail.com>.


SVN revision: 80648
2012-12-11 11:52:53 +00:00
Gustavo Sverzut Barbieri c5667e3802 efl/ecore_getopt: add ECORE_GETOPT_ACTION_BREAK.
Thanks to PrinceAMD (Deon Thomas) for bugging me to implement this,
then test and add a fix, now we can implement something similar to
"xterm -e" in terminology.

ECORE_GETOPT_ACTION_BREAK will allow generic options to behave the
same as GNU's --, breaking out of argument parsing logic.



SVN revision: 80619
2012-12-10 18:43:36 +00:00
Carsten Haitzler fab2f4b8a2 poolers typo--
SVN revision: 80560
2012-12-10 03:28:05 +00:00
Igor Murzov d2062a0d27 From: Igor Murzov <e-mail@date.by>
Subject: [E-devel] [PATCH][Ecore] Fixes for invalid memory read issues
discovered by cppcheck

One more patch to fix issues discovered by cppcheck.



SVN revision: 80559
2012-12-10 03:19:38 +00:00
Sebastian Dransfeld 0ca3d42c6d ecore_x: right name for variable
SVN revision: 80534
2012-12-08 20:45:09 +00:00
Gustavo Sverzut Barbieri f8c480fc83 efl/ecore_x: add version and backend to header file.
instead of -DHAVE_ECORE_X_XCB in the pc, which is a super-hack, add a
proper compile-time generated ecore_x_version.h that is included by
Ecore_X.h

This file contains HAVE_ECORE_X_XLIB or HAVE_ECORE_X_XCB defined and
will also define ECORE_X_VERSION_MAJOR and ECORE_X_VERSION_MINOR as
per other EFL (Ecore), also defining the runtime version in
Ecore_X_Version.



SVN revision: 80524
2012-12-08 15:26:27 +00:00
Carsten Haitzler 05066801d3 lets have fcntl.h in eh?
SVN revision: 80521
2012-12-08 14:07:24 +00:00
Alex Wu 4c534eb0e0 ecore-wayland: Fix monitoring ECORE_FD_WRITE defaultly on
wayland                display fd lead to 100% cpu usage

In ecore_wl_init(), adding wayland display fd with ECORE_FD_WRITE
flag make CPU usage 100%. The proper way to monitor the ECORE_FD_WRITE
is when the wl_display_flush() return value < 0 and errno == EAGAIN.
And if wl_display_flush() return, we remove ECORE_FD_WRITE flag from
the display fd.

Patch by: Alex Wu <zhiwen.wu@linux.intel.com>



SVN revision: 80476
2012-12-07 17:38:21 +00:00
Gustavo Sverzut Barbieri 892c64297e efl: begin (still partial!) to make an uniform choice of engines ecore/evas
still lots to do, but some improvements:

 - ecore_evas does not inherit pkg-config from modules since modules are SO

 - renamed internal ecore evas define from SOFTWARE_BUFFER to BUFFER,
   to make consistent.



SVN revision: 80473
2012-12-07 17:18:17 +00:00
Cedric BAIL 88ba56d9d5 efl: don't leak fd on exec.
SVN revision: 80434
2012-12-07 11:01:41 +00:00
Cedric BAIL 21bb5db3e2 efl: fix build with debug profile.
SVN revision: 80406
2012-12-07 02:32:11 +00:00
Gustavo Sverzut Barbieri 81bd007e5b efl: share HAVE_ATFILE_SOURCE between eina_file, ecore_file...
SVN revision: 80391
2012-12-06 21:15:30 +00:00
Flavio Vinicius Alvares Ceolin 186156afbc ecore_evas: Removing warning about unused function
Now the engines are modules, the checking for the engine is not done
in the compile time anymore, so we're removing these checks.



SVN revision: 80389
2012-12-06 20:39:20 +00:00
Gustavo Sverzut Barbieri bdbf2171fe efl/evas: simplify dither mask handling.
* a single option --with-evas-dither-mask=TYPE (big, small, line or none).

 * make a wise decision to fallback to small dither mask for
   conversions that do not support "no-dither" or "line". Before if
   you did not specify it would fallback to big (128x128).



SVN revision: 80383
2012-12-06 19:44:11 +00:00
Gustavo Sverzut Barbieri 62bb4646c9 efl/ecore_file: refactor to be more like eio in providing backends.
instead of the previous mess, just define the functions with common
names and call the backend that was compiled in, similar to what eio
does.

also do not be silent on errors, use eina_safety_checks to issue warnings.



SVN revision: 80360
2012-12-06 13:38:34 +00:00
Gustavo Sverzut Barbieri 6a5eaacc6a efl: common inotify checks, simplified.
Another try to make inotify checks more common.

This time uses AC_CHECK_HEADERS() as for others, that already define
HAVE_SYS_INOTIFY_H, then uses that.

I still kept AM_CONDITIONAL([HAVE_INOTIFY]) because I plan to convert
ecore_file to the same, smarter, method that is used in eio (compiling
the file depending on the backend.



SVN revision: 80358
2012-12-06 13:02:59 +00:00
Gustavo Sverzut Barbieri f8dd49ded4 efl: ecore thread safety (remove option, keep code, add instructions).
* remove the option, as it shouldn't really exist.

 * keep code, as requested by Cedric, someone may fix it someday. And
   the default is the DISABLED, as the enable was broken.

 * Add instructions on how to solve the problem, if a brave folk is up
   to it.



SVN revision: 80352
2012-12-06 12:18:24 +00:00
Vincent Torri 8e1879ade9 inotify: revert : i want to keep autotools **modularized**. Instead, use in Eio what has been detected in Ecore_File.
SVN revision: 80298
2012-12-06 07:23:50 +00:00
Cedric BAIL 1a3bb9f009 efl: revert r80290 as it bork the world.
SVN revision: 80296
2012-12-06 03:02:47 +00:00
Gustavo Sverzut Barbieri 9d93fc18da efl: simplify inotify by moving it to common.
also deprecate very ancient inotify usage by direct syscall.



SVN revision: 80292
2012-12-06 00:57:29 +00:00
Gustavo Sverzut Barbieri 2731721d50 efl: thread safety by default.
it's better to test this case and make it the only one and make it
work, than have two options that may not work.



SVN revision: 80290
2012-12-06 00:30:46 +00:00
Gustavo Sverzut Barbieri 48120ec0c8 efl: both eet and ecore_con now share --with-crypto and defines.
* rename USE_GNUTLS and USE_OPENSSL to HAVE_GNUTLS and HAVE_OPENSSL
   in ecore_con, to match other modules such as Eet.

 * define requirements_pc_crypto, requirements_pc_deps_crypto and
   requirements_libs_crypto so modules can use that.

 * move to a common check section.



SVN revision: 80288
2012-12-06 00:11:14 +00:00
Gustavo Sverzut Barbieri 511d8e8672 efl/eet: bumped requirement for gnutls >= 2.11 thus remove legacy code.
SVN revision: 80287
2012-12-05 23:44:45 +00:00
Carsten Haitzler 7b7a611805 if you are going to use symbols implicitly from a module provided by a
lib.. you have to EAPI them!



SVN revision: 80283
2012-12-05 23:11:46 +00:00
Flavio Vinicius Alvares Ceolin ad7579c129 ecore_evas: Make the engines loadable modules
Implementing support for loadables modules. It makes the engines been
loaded when they are needed. It not breakes the api, so each engine
still has its own api.

The implementation basically is:

* Functions that creates Ecore_Evas, for example
  ecore_evas_software_x11_new, request to load its module and then get
  the module's function to create the Ecore_Evas.
* The other functions such as \(.*\)_window_get from the Ecore_Evas
  its interface and then call the appropriate method.
* As there is no unified interface to communicate with the engines
  (not break api problem), all interfaces were declared in
  ecore_evas_private.h
* Now the data necessary for each module is not declared in the
  Ecore_Evas_Engine structure, instead of this, the struct has a void
  pointer that is used by the modules.
* In this first moment engines as software_x11 and gl_x11 were put
  together in the same module, but obviously exporting all the things
  necessary.


SVN revision: 80280
2012-12-05 21:15:42 +00:00
Gustavo Sverzut Barbieri bb0e4d65ed efl/ecore_evas: move more removed/deprecated stuff to own file and mark.
x11-16, x11-8, xrender were also removed but not marked as EINA_DEPRECATED.

move those to ecore_evas_deprecated.c file.



SVN revision: 80255
2012-12-05 14:09:49 +00:00
Gustavo Sverzut Barbieri 1227340c12 efl/ecore_evas: move deprecated functions to separate file, mark them.
mark every deprecated function with EINA_DEPRECATED.

move them to a separate file so we can easily delete them in future.



SVN revision: 80253
2012-12-05 13:59:09 +00:00
Gustavo Sverzut Barbieri a332d1c869 efl/evas: remove mask of non-rectangle objects.
it was broken and mostly disabled, so now we do remove it in the hope
who does that next time, does it properly.



SVN revision: 80252
2012-12-05 13:52:59 +00:00
Gustavo Sverzut Barbieri 545057d0b1 efl/evas/filters: say goodbye.
This task wasn't completed and it was all disabled in code, then
remove it so it doesn't add cruft to be looked at.



SVN revision: 80240
2012-12-05 13:03:51 +00:00
Gustavo Sverzut Barbieri 625f6edd09 efl/evas: there is no more EVAS_FRAME_QUEUING anymore.
SVN revision: 80237
2012-12-05 12:41:47 +00:00
Gustavo Sverzut Barbieri dfe93a7f0a directfb says bye...
After agreement in the mail list, core developers agree to remove this
engine that was not being supported for a long time.

Given that most operations Evas uses are not accelerated in DirectFB,
or at least hardware that exclusively supports DirectFB, it's better
for those people to just use Evas/Ecore software (buffer) rendering
and expose DirectFB's framebuffer as destination surface.



SVN revision: 80232
2012-12-05 12:24:01 +00:00
Sung-Jin Park 2636da4e00 From: Sung-Jin Park <sj76.park@samsung.com>
Subject: Re: Re: Re: [E-devel] Fwd: Review request : [Ecore XI2] Add
codes for selecting/retrieving XI2 touch events

Dear developers,
I added codes for selecting XI2 touch events(cf. XI_TouchBegin,
XI_TouchUpdate and XI_TouchEnd)
and codes for retrieving touched finger(s) index from corresponding
events.



SVN revision: 80218
2012-12-05 06:57:30 +00:00
Gwanglim Lee 74cdf85ea9 From: Gwanglim Lee <gl77.lee@samsung.com>
Subject: Re: Re: Re: [E-devel] [RFC] Virtual desktop window profile

I've attached 4th patch. May the 4th be with you.

ecore patch has been merged with efl and all files are based on r80123.

Thanks & Regards,
Gwanglim

------- Original Message -------
Sender : Daniel Juyung Seo<seojuyung2@gmail.com>
Date : 2012-12-04 01:55 (GMT+09:00)
Title : Re: Re: [E-devel] [RFC] Virtual desktop window profile

It looks ok to me.
Sorry but can you re-generate the patch according to the recent ecore
merge to efl single tree?

Daniel Juyung Seo (SeoZ)


On Thu, Nov 29, 2012 at 12:29 AM, Gwanglim Lee <gl77.lee@samsung.com>
wrote:

Dear Raster and Daniel Juyung Seo,

I've attached 3rd patches and test_config according to your reviews.
These are based on r79782.

[elementary & ecore]
1. "profile,set" -> "profile,changed" - done
2. spaces after EINA_LIST_FOREACH - done
3. variable type - keep
4. author - done
5. removing deprecated marking in patch - done
6. add elm_win_available_profiles_get to test_config for the debugging
purpose - done

7. check whether a given profile is present in an available profiles.
otherwise window profile will be one of the item
    in available profiles. - newly added thing to the elm_win
    8. merge with EO - done. :(
    
    
    Any comments would be appreciated.
    


SVN revision: 80214
2012-12-05 06:48:46 +00:00
Daniel Zaoui 25ea899dfa Some KlocWork fixes.
Signed-off-by: Daniel Zaoui <daniel.zaoui@samsung.com>

SVN revision: 80211
2012-12-05 06:25:49 +00:00
Cedric BAIL f03023b28b efl: Fix build of Ecore_Evas_Extn.
Patch by Robert David <robert.david.public@gmail.com>


SVN revision: 80206
2012-12-05 02:52:03 +00:00
Vincent Torri 81c86b19f6 merge: eio + fix compilation on windows + minor fixes + po files
don't move eio to IN-EFL right now


SVN revision: 80180
2012-12-04 17:40:58 +00:00
Paulo Alcantara dcd25a2d9c evas/image: Fix uninitialised data passed to Cserve2
If information like size, scale down, dpi or region is set to any object,
or even if reload of that object is required, evas_object_image_load() is
called and Evas needs to pass scaling information through load_opts as
evas_object_image_file_set() does to Cserve2 as well.

Signed-off-by: Paulo Alcantara <pcacjr@profusion.mobi>

Patch by: Paulo Alcantara <pcacjr@profusion.mobi>



SVN revision: 80176
2012-12-04 15:39:51 +00:00
Cedric BAIL 014b5a1a29 evas: let fix all unref in the same way.
SVN revision: 80120
2012-12-04 01:54:22 +00:00
Cedric BAIL 9445974cb8 ecore: don't crash if the animator is already destroyed.
SVN revision: 80038
2012-12-03 10:22:19 +00:00
Vincent Torri dc0c272d2f ecore: remove useless ECORE_HAVE_EET, remove old XCB code and remove BUILD_ECORE_CON checks as ecore_con is always compiled anyway
SVN revision: 80024
2012-12-03 08:35:53 +00:00
Vincent Torri a154c405e1 ecore_sdl: remove 1 empty line
SVN revision: 80023
2012-12-03 08:18:50 +00:00
Vincent Torri 2f4b741ccd ecore: missing files...
SVN revision: 80022
2012-12-03 08:16:27 +00:00
Vincent Torri a3562c0173 ecore: whitespaces--
SVN revision: 80017
2012-12-03 07:37:17 +00:00
Vincent Torri 6961362425 ecore: backport #79614
SVN revision: 80016
2012-12-03 07:30:33 +00:00
Vincent Torri e1fa3ea931 ecore: backport #79650
SVN revision: 80015
2012-12-03 07:26:47 +00:00
Vincent Torri 5afa16903d ecore: backport #79766 and #79769
SVN revision: 80013
2012-12-03 07:14:13 +00:00
Vincent Torri e861082271 ecore: backport #79818
SVN revision: 80010
2012-12-03 07:01:02 +00:00
Cedric BAIL 5ddc4b550d ecore: in case of double free, bad things happen.
SVN revision: 80005
2012-12-03 05:28:11 +00:00
Vincent Torri 7d6010b12c merge: add escape ecore, fix several bugs
SVN revision: 79995
2012-12-02 22:35:45 +00:00
Vincent Torri 09358c71d1 merge: remove direct3d (there are some remaining files, they will be deleted with ecore merge)
SVN revision: 79989
2012-12-02 21:07:10 +00:00
Mike McCormack 1eac4b2f47 efl: Fix warning
lib/evas/cache/evas_cache_image.c:573:4: warning: missing braces around initializer [-Wmissing-braces]

Signed-off-by: Mike McCormack <mikem@atratus.org>

SVN revision: 79987
2012-12-02 20:33:55 +00:00
Mike McCormack 88053411c6 efl: Remove unused variables
Signed-off-by: Mike McCormack <mikem@atratus.org>

SVN revision: 79957
2012-12-01 01:12:35 +00:00
Gustavo Sverzut Barbieri 8ecc925249 bugfix: evas_object_box should reset size_hint_min to zero when no child exists.
there are some early-return code that were leaving the size_hint as it
was before, then if you removed every child it should go to 0x0 but
couldn't.

PLEASE BACKPORT THIS TO 1.7 BRANCH FOR ME :-(



SVN revision: 79948
2012-11-30 20:59:30 +00:00
Cedric BAIL ba3a53b5c2 evas: revert patch from Zbigniew Kosinski due to Tom's good argument.
SVN revision: 79872
2012-11-30 07:58:31 +00:00
Paulo Alcantara cae8fd7ed4 evas/map: Refactor common code for map drawing
This patch refactors common code for map draws - so that it can be used
by other engines and *threaded* X11.

Signed-off-by: Paulo Alcantara <pcacjr@profusion.mobi>

Patch by: Paulo Alcantara <pcacjr@profusion.mobi>



SVN revision: 79855
2012-11-29 20:55:16 +00:00
Paulo Alcantara cf1360416e evas/line: Refactor common code for line drawing
This patch refactors common code for line draws - so that it can be used
by other engines and *threaded* X11.

Signed-off-by: Paulo Alcantara <pcacjr@profusion.mobi>

Patch by: Paulo Alcantara <pcacjr@profusion.mobi>



SVN revision: 79854
2012-11-29 20:48:24 +00:00
Paulo Alcantara a9bdfcca37 evas/font: Refactor common code for font drawing
This patch refactors common code for font draws - so that it can be used
by other engines and *threaded* X11.

Signed-off-by: Paulo Alcantara <pcacjr@profusion.mobi>

Patch by: Paulo Alcantara <pcacjr@profusion.mobi>



SVN revision: 79853
2012-11-29 20:47:12 +00:00
Cedric BAIL cbb6b39466 evas: only destroy font instance when we don't reference font anymore.
SVN revision: 79806
2012-11-29 05:36:56 +00:00
Cedric BAIL 06b9a559b4 efl: silent warning in evas_pipe.
SVN revision: 79805
2012-11-29 05:35:53 +00:00
Paulo Alcantara 6ae7344683 evas/image: Refactor common code for image drawing
This patch refactors common code for image draws - so that it can be used
by other engines and *threaded* X11.

Signed-off-by: Paulo Alcantara <pcacjr@profusion.mobi>

Patch by: Paulo Alcantara <pcacjr@profusion.mobi>



SVN revision: 79795
2012-11-28 22:49:19 +00:00
Paulo Alcantara 7dd926fbae evas/rectangle: Refactor common code for rectangle drawing
This patch refactors common code for rectangle draws - so that it can be
used by other engines and *threaded* X11.

Signed-off-by: Paulo Alcantara <pcacjr@profusion.mobi>

Patch by: Paulo Alcantara <pcacjr@profusion.mobi>



SVN revision: 79785
2012-11-28 19:17:00 +00:00
Cedric BAIL 7dba79949e evas: improve documentation.
Patch by Zbigniew Kosinski <z.kosinski@samsung.com>


SVN revision: 79774
2012-11-28 10:12:23 +00:00
Paulo Alcantara f8f79f8599 evas/cserve2: Add scalecache support
Signed-off-by: Paulo Alcantara <pcacjr@profusion.mobi>

Patch by: Paulo Alcantara <pcacjr@profusion.mobi>



SVN revision: 79754
2012-11-27 18:23:25 +00:00
Daniel Zaoui 5f875d92f0 Increased MAX_MSG_SIZE for support of Clouseau - needed for next
Clouseau commit (screenshots)

Signed-off-by: Daniel Zaoui <daniel.zaoui@samsung.com>

SVN revision: 79744
2012-11-27 14:36:12 +00:00
Daniel Zaoui d7783e11d6 Added missing descriptions for Eo defines whose functions hadn't
descriptions at all. Needed in language bindings.

Signed-off-by: Daniel Zaoui <daniel.zaoui@samsung.com>

SVN revision: 79646
2012-11-25 09:00:21 +00:00
Carsten Haitzler 63cbf85067 eobj changes - protect against null eo data gets.
SVN revision: 79635
2012-11-24 16:08:45 +00:00
ChunEon Park a3bceeb600 evas - Re: [E-devel] [PATCH] [EVAS] evas_object_key_grab add check for same modifiers
Hi all,

I had prepare some fix for evas_object_key_grab function.

In my opinion when given modifiers are equal it should return FALSE.

Please verify attached file.

Regards,

Patrick

Signed-Off-By: Patryk Kaczmarek<patryk.k@samsung.com>




SVN revision: 79563
2012-11-23 15:30:38 +00:00
Carsten Haitzler a89d61079c fix evil textprop leak in textblock! :)
SVN revision: 79503
2012-11-21 09:12:42 +00:00
ChunEon Park f90641200b evas - fix the memory leak - eina_rectangles allocated for clip_changes.
SVN revision: 79469
2012-11-20 11:52:16 +00:00
Jérémy Zurcher 9aa23128b6 [eina] path sanitizing now takes care of '/./' and
breaks loop on '/..$'



Patch by: Jérémy Zurcher <jeremy@asynk.ch>



SVN revision: 79449
2012-11-19 13:13:31 +00:00
Mike McCormack c1672ed8cf efl: Fix more shadow warnings
Signed-off-by: Mike McCormack <mikem@atratus.org>

SVN revision: 79447
2012-11-19 13:10:14 +00:00
Carsten Haitzler 66a43d2a7a more warn-- in efl tree.
SVN revision: 79314
2012-11-15 05:19:14 +00:00
Carsten Haitzler b8ad8ae5fe lets not have system("format c:") even tho its amusing as it just
creates warnings. :)



SVN revision: 79310
2012-11-15 04:29:34 +00:00
Christopher Michael 10567cca05 Add missing UNLOCK_CACHE in eet_open function.
Change-Id: I79db6bedf49c27499f3caa63d04dc6bb3ecfee60

SVN revision: 79290
2012-11-14 11:52:25 +00:00
Carsten Haitzler 630d662a3b have ss3 etc. tests not be run (and thus fail) if env vars disable them.
SVN revision: 79231
2012-11-13 14:06:28 +00:00
ChunEon Park b313edd3e4 evas/event - don't transform the output in the source events.
and use the Point structure for clean code.

Signed-Off-By: Leandro Dorileo<dorileo@profusion.mobi>
Signed-Off-By: ChunEon Park<hermet@hermet.pe.kr>



SVN revision: 79224
2012-11-13 10:59:38 +00:00
ChunEon Park 9cf4d766ab evas/map - Don't extrapolate outside coords unsafely from map_coords_get()
Don't know why is it actually needed.



SVN revision: 79214
2012-11-13 10:15:29 +00:00
ChunEon Park 9467a3169a evas/map - simple refactoring.
SVN revision: 79197
2012-11-13 05:34:47 +00:00
Leandro Dorileo 2e6aaf35f1 evas - return quickly if you got the result.
Signed-Off-By: Leandro Dorileo <dorileo@profusion.mobi>



SVN revision: 79196
2012-11-13 04:08:16 +00:00
Carsten Haitzler 208ad94428 more null checks in evas to avoid segs.
SVN revision: 79167
2012-11-12 14:45:07 +00:00
Gustavo Lima Chaves a4b2a48dc0 [eina] Better pretty printing of eina_value timeval buddies.
SVN revision: 79154
2012-11-12 12:26:07 +00:00
Mike Blumenkrantz 43eb9749ab @since for eina_list_last_data_get
SVN revision: 79149
2012-11-12 10:53:10 +00:00
Mike Blumenkrantz 7ba993749d add eina_list_last_data_get() macro to simplify calling eina_list_data_get(eina_list_last())
SVN revision: 79142
2012-11-12 09:58:48 +00:00
Carsten Haitzler 0bbec07e69 protect against a whole bunch of NULLS that the new eo stuff brings out.
SVN revision: 79129
2012-11-12 02:22:39 +00:00
ChunEon Park 1bd3bbfdd3 evas/event - add the xy origin to object when coords are transformed
Signed-Off-By: Leandro Dorileo<dorileo@profusioin.mobi>



SVN revision: 79098
2012-11-10 12:52:00 +00:00
ChunEon Park dbc578ca0d evas - don't update events if the object is invisible source
SVN revision: 79087
2012-11-10 09:05:05 +00:00
Vincent Torri 650d3d723c Eina: Fix build on Solaris 10
Patch by Robert David


SVN revision: 79085
2012-11-10 08:35:11 +00:00
Carsten Haitzler f5f650833a check return values of eo_data_get more... :)
SVN revision: 79078
2012-11-10 03:44:04 +00:00
Vincent Torri 60bdd4c22e unused variable
SVN revision: 79067
2012-11-09 21:35:03 +00:00
Vincent Torri f45f7ab5b1 Evas: fix memset bug and no need to check returned value of alloca
SVN revision: 79064
2012-11-09 21:22:04 +00:00