Commit Graph

1540 Commits

Author SHA1 Message Date
Tom Hacohen 181eda995a Evas textblock: Hopefully eliminate all issues with uninit cursors.
SVN revision: 61227
2011-07-11 07:23:12 +00:00
Tom Hacohen 0aab125684 Evas textblock: Fixed evas_textblock_cursor_eol_get.
SVN revision: 61207
2011-07-10 13:22:42 +00:00
Tom Hacohen 9fe4504574 Evas textblock: Fixed cursor_paragraph_text_length_get.
SVN revision: 61206
2011-07-10 13:22:38 +00:00
Tom Hacohen d30603e37f Evas textblock: Fixed a bug in _paragraph_char_last with the last par.
SVN revision: 61205
2011-07-10 13:22:33 +00:00
Tom Hacohen ad79facc8a Evas textblock: Fixed returned position of "clean" cursors.
Issue reported by Shilpa.

SVN revision: 61203
2011-07-10 12:18:48 +00:00
Tom Hacohen 70f9cf686f Evas textblock: textblock_cursor_get's return should not be const.
This does not break API as it's more permissive and behavior doesn't change.

SVN revision: 61201
2011-07-10 12:18:42 +00:00
Vincent Torri e9518f1521 Add unit tests + coverage support to evas, for Tasn.
unit tests : make check
coverage   : make coverage


SVN revision: 61167
2011-07-09 02:59:24 +00:00
Cedric BAIL ecb025bdff evas: prevent infinite insertion of object during recalc stage.
SVN revision: 61123
2011-07-07 15:24:16 +00:00
Tom Hacohen ba9e8ca113 Evas events: Added evas_event_refeed_event.
Patch by Aharon Hillel.

SVN revision: 61117
2011-07-07 13:59:50 +00:00
Gustavo Lima Chaves c56c7c8b89 [evas] Documenting/exemplifying the following:
- evas_object_smart_type_check
 - evas_object_smart_type_check_ptr
 - evas_object_static_clip_get
 - evas_object_static_clip_set
 - evas_smart_class_get
 - evas_smart_class_new
 - evas_smart_data_get
 - evas_smart_free
 - evas_smart_objects_calculate



SVN revision: 61096
2011-07-06 18:46:58 +00:00
Carsten Haitzler 90d7dbddd4 Fix bug in in mouse grabs while frozen events are in place.
SVN revision: 61070
2011-07-06 08:43:18 +00:00
Tom Hacohen a51b5660a2 Evas textblock: Fixed _cursor_char_coord_set with coords after the eol.
SVN revision: 61068
2011-07-06 07:32:23 +00:00
Tom Hacohen 3c6a42b04b Evas textblock: Fixed weird cursor behavior with empty textblocks.
SVN revision: 61067
2011-07-06 07:32:14 +00:00
Daniel Juyung Seo 3b80b133bf evas evas_map.c: Added warning messages to some codes. It has an
infinite loop issue.


SVN revision: 61066
2011-07-06 06:24:18 +00:00
Hyoyoung Chang 24a3c5a092 From: Hyoyoung Chang <hyoyoung.chang@samsung.com>
Subject: [E-devel] [patch] evas - add checking event type

Dear developers.

I found a bug about evas event handling.
In some situation, evas blocks some events by checking _evas_event_counter.
So I made a patch that is checking event type also event counter.

Reproduce steps:
1. make a window
2. show window before adding a elementary/genlist widget

--- codes ---
void _gl_mousedown_cb(void *data, Evas *evas, Evas_Object *obj, void *event_info)
{
  printf("_gl_mousedown_cb !! \n");
}

static Eina_Bool create_main_win(App *app)
{
  app->win = elm_win_add(NULL, "genlist-win", ELM_WIN_BASIC);
  evas_object_show(app->win);          <-- position 1
              
  Evas_Object *genlist = elm_genlist_add(app->win);
  elm_win_resize_object_add(app->win, genlist);
  evas_object_event_callback_add(genlist, EVAS_CALLBACK_MOUSE_DOWN, _gl_mousedown_cb, NULL);
  evas_object_show(genlist);
  
  evas_object_resize(app->win, 320, 240);
//evas_object_show(app->win);          <-- position 2
        
  return EINA_TRUE;
}
--- codes ---

In common use case, apps don't show main window at position 1.
However to reproduce, it can be at position 1. Then, focus is at just on main window.
In that situation, if a user clicks a genlist, its event is dropped by evas.
Because in mouse down callback, it give focus to genlist.

Then two events is made. First is mouse down, second is focus handling.
In event callback, evas processes mouse down after focus handling.
But evas found that mouse event is retarded event than focus handling.
So it ignores it.

This patch is introduce event handling type checking to
evas_object_event_callback_call.




SVN revision: 61026
2011-07-05 01:33:59 +00:00
Carsten Haitzler 17a27a3763 use eina mmap safety.
SVN revision: 60982
2011-07-04 09:44:11 +00:00
ChunEon Park 4e0544d8d8 evas/evas_map - removed white trailings.
SVN revision: 60916
2011-07-01 11:43:50 +00:00
ChunEon Park 01a9741c05 evas/evas_map - added workaround code for avoid afterimage problem temporary.
Since the last frame is not updated when map is disabled,
Afterimage problem is happened in s/w rendering. 
Need to find out the fundanmental reason then fix it. 



SVN revision: 60914
2011-07-01 11:30:17 +00:00
ChunEon Park bda8d0b373 evas/evas_map - reverted the work around code.
SVN revision: 60913
2011-07-01 10:58:58 +00:00
ChunEon Park 4d9ad50d67 evas/evas_map - fixed workaround code more properly.
SVN revision: 60906
2011-07-01 04:35:26 +00:00
Iván Briano 82bc5b8140 Not so unused
SVN revision: 60904
2011-07-01 02:02:02 +00:00
ChunEon Park f568df5ad2 evas/evas_map - added workaround code to remove afterimage problem.
Sine the last frame is not updated when map is disabled,
Afterimage problem is happened in software rendering.
Need to find out the reason in the rendering engine then fix it.
However, it's hard to fix the problem now, added a just workaround code temporary.

This problem will be fixed later or be removed when the rendering engine is refactored completely. 



SVN revision: 60901
2011-07-01 01:10:32 +00:00
Tom Hacohen 5a88f63381 Evas events: Fix issues with mouse_in/out caused by previous commit.
SVN revision: 60793
2011-06-29 05:05:35 +00:00
Tom Hacohen 3287d97442 Evas events: Re-apply commits 60787,60788.
SVN revision: 60792
2011-06-29 05:05:32 +00:00
Carsten Haitzler 99475ecdf3 REVERT commits 60787 and 60788 by tasn. BORK mouse in/out (e17 menus)
SVN revision: 60790
2011-06-29 03:14:57 +00:00
Tom Hacohen 5182b1d519 Evas events: Fixed more issues with pointer grabbing.
We want to free the grab even if mouse up happened outside of the
object's region (that's the whole point of grabbing...). Also, we don't
want to update the grabbed list anywhere but in mouse down.

SVN revision: 60788
2011-06-29 02:03:33 +00:00
Tom Hacohen 067053b970 Evas events: Fix 1 more issue with pointer grabbing.
We only need to change the list of grabbed objects if we are initiating
a new grab, and not if are already in a grab because of multi touch.

SVN revision: 60787
2011-06-29 02:03:25 +00:00
Gustavo Lima Chaves 003ab96f81 [evas] Documenting more functions on Evas objects:
- evas_object_event_callback_add
     - evas_object_event_callback_del_full
     - evas_object_focus_get
     - evas_object_focus_set
     - evas_object_key_grab
     - evas_object_key_ungrab
     - evas_object_pass_events_get
     - evas_object_pass_events_set
     - evas_object_precise_is_inside_get
     - evas_object_precise_is_inside_set
     - evas_object_propagate_events_get
     - evas_object_propagate_events_set
     - evas_object_repeat_events_get
     - evas_object_repeat_events_set

    Examples on them also follow.



SVN revision: 60769
2011-06-28 17:43:44 +00:00
Tom Hacohen c357c362fb Evas textblock: Yet another coord_set fix.
SVN revision: 60750
2011-06-28 08:27:26 +00:00
Tom Hacohen c81a71d18d Evas textblock: Fixed coord_set and line_coord set in a couple of cases.
SVN revision: 60749
2011-06-28 08:13:45 +00:00
Tom Hacohen 7ead474aae Evas polygon: Hopefully this time really fix is_inside calculation.
SVN revision: 60743
2011-06-28 02:10:31 +00:00
Tom Hacohen fa78e73f6b Evas polygon: Fix polygon is_inside calculation.
SVN revision: 60721
2011-06-27 05:31:07 +00:00
Tom Hacohen df97b91f09 Revert "bla" - Wasn't supposed to go in yet.
This reverts commit 60711.

SVN revision: 60713
2011-06-27 02:19:41 +00:00
Tom Hacohen e85f91b3a3 Evas polygon: Implement "is_inside" for polygons.
SVN revision: 60712
2011-06-27 02:18:34 +00:00
Tom Hacohen a6948c292f bla
SVN revision: 60711
2011-06-27 02:18:31 +00:00
Tom Hacohen 584bb92495 Evas events: handle MOUSE_OUT stuff only if there's no mouse grab on.
ATTENTION: if you find any weird issues, please let me know. After testing
here, reading the code and discussing it with raster I decided to commit it,
but this is a very sensitive area. :P

SVN revision: 60651
2011-06-24 06:59:30 +00:00
Carsten Haitzler 5bff0873d1 multitouch grab fix.
SVN revision: 60650
2011-06-24 05:35:33 +00:00
ChunEon Park a76601e123 evas_layer.c - fixed indenation and removed white spaces
SVN revision: 60472
2011-06-18 09:16:22 +00:00
ChunEon Park 8a6f620675 evas/evas_layer.c - added some missed exception handlings.
SVN revision: 60471
2011-06-18 09:08:33 +00:00
Carsten Haitzler 8575821c1a allow getting ot table packing child too.
SVN revision: 60447
2011-06-17 11:34:30 +00:00
Carsten Haitzler 5c5581fc95 evas table -> allow packing of same object again to update packing
parameters



SVN revision: 60446
2011-06-17 11:25:30 +00:00
Michael BOUCHAUD 396e256fc6 evas: warn dev to clip on a rect and not on an other object
SVN revision: 60443
2011-06-17 10:55:26 +00:00
ChunEon Park 19ef9ecc95 evas/evas_map - trivial changes.
SVN revision: 60425
2011-06-17 07:12:20 +00:00
ChunEon Park bac87b9e06 evas/evas_map - stuffed trivial missing things.
SVN revision: 60415
2011-06-17 01:16:16 +00:00
ChunEon Park f8bf6ff656 evas/evas_map - modified to use Eina_Bool values.
SVN revision: 60392
2011-06-16 12:18:19 +00:00
ChunEon Park 81672eac1c evas/evas_map - added magic check
SVN revision: 60390
2011-06-16 12:08:46 +00:00
ChunEon Park eac7a5832d evas/evas_map - just removed unused lines and moved internal function position
SVN revision: 60389
2011-06-16 11:48:41 +00:00
ChunEon Park a5537f4193 evas/evas_gl - fixed to release magic field and it's data type
SVN revision: 60387
2011-06-16 11:12:40 +00:00
ChunEon Park 14e66e3fb8 evas/canvas - ok. it works fine. modified to use the standard computation again.
SVN revision: 60386
2011-06-16 10:03:37 +00:00
ChunEon Park 6be9967699 evas/canvas - reverted evas_map since some texture mapping is incorrect.
SVN revision: 60381
2011-06-16 08:46:16 +00:00
ChunEon Park 1bece16fc0 evas/canvas - just made standard computation.
SVN revision: 60379
2011-06-16 08:21:39 +00:00
Tom Hacohen 4d13de35e9 Evas textblock: Should invalidate before declaring the object as changed.
SVN revision: 60353
2011-06-15 14:57:38 +00:00
Tom Hacohen 2da2cd7611 Evas textblock: Fixed scale update.
SVN revision: 60352
2011-06-15 14:57:21 +00:00
ChunEon Park 21713b5991 evas/canvas - sorry i added two lines should not be added.
SVN revision: 60334
2011-06-15 09:02:04 +00:00
ChunEon Park b310df818a evas/canvas - it will be more standard computation. and compute less than before.
SVN revision: 60333
2011-06-15 08:57:45 +00:00
ChunEon Park bca5315dca evas/canvas - just removed white trailings
SVN revision: 60321
2011-06-15 00:48:38 +00:00
Gustavo Lima Chaves 9618de0653 [evas] Documentation fixes for object manipulation
functions.



SVN revision: 60312
2011-06-14 20:12:20 +00:00
Tom Hacohen 80a5464888 Evas: Fixed some annoying Wshadow warnings.
SVN revision: 60305
2011-06-14 14:04:07 +00:00
Tom Hacohen b403eb49e0 Evas textblock: Fixed a rare issue with line wrapping and white stripping.
SVN revision: 60275
2011-06-13 16:04:55 +00:00
Carsten Haitzler cb74d132fb should now handle implicit object grabs with multi touch too..
SVN revision: 60265
2011-06-13 10:00:25 +00:00
Cedric BAIL 937cbfe675 evas: reorder accessing Evas_Object to prevent accessing them after their death.
SVN revision: 60260
2011-06-13 07:34:44 +00:00
Boris Faure e6119fa4d9 remove .cvsignore files
SVN revision: 60246
2011-06-12 21:38:37 +00:00
Tom Hacohen 04207db6b7 Evas textblock: Fixed charwrap for very small textblocks.
SVN revision: 60185
2011-06-10 10:12:51 +00:00
ChunEon Park 9442a38b81 evas/canvas - removed white trailing
SVN revision: 60112
2011-06-09 03:08:50 +00:00
ChunEon Park c982843cb3 evas/canvas - removed white spaces / fixed indentation
SVN revision: 60109
2011-06-09 02:45:59 +00:00
Christopher Michael a96a4c12a0 Evas: Make sure we return a value from image_load_orientation_get.
SVN revision: 60052
2011-06-07 22:09:18 +00:00
Cedric BAIL 260718c700 evas: add evas_object_image_load_orientation_set, evas_object_image_load_orientation_get.
SVN revision: 60040
2011-06-07 13:39:13 +00:00
Tom Hacohen 59a22ad090 Evas textblock: Fixed two ellipsis issues.
1. If there's no wrapping enabled, do ellipsis even if we still have vertical
room left.
2. Fixed updating of o->have_ellipsis.

SVN revision: 60038
2011-06-07 11:38:07 +00:00
ChunEon Park 431b652da9 evas/evas_gl - removed white spaces / fixed identation
SVN revision: 60019
2011-06-07 04:30:25 +00:00
Tom Hacohen 2e28418051 Evas textblock: make charwrap not force wrap in an illegal position.
SVN revision: 59965
2011-06-05 10:51:39 +00:00
Tom Hacohen 9bd8ccae80 Evas textblock: Fixed an issue with min size calculation introduced in 59899
SVN revision: 59901
2011-06-02 14:52:43 +00:00
Tom Hacohen 5311e3de70 Evas textblock: Fixed min size calculation with right aligned paragraphs.
SVN revision: 59899
2011-06-02 14:02:31 +00:00
Carsten Haitzler 5d2bd283c3 disable evas filter code. buggy. doesn't work right.
SVN revision: 59898
2011-06-02 10:40:43 +00:00
Carsten Haitzler 2ffa0f4075 disable masking support. back to clip rects.
SVN revision: 59896
2011-06-02 10:00:05 +00:00
Carsten Haitzler 7d08af1ed0 disable map mesh support - engine code still doesnt handle != 4 points
so pointless exposing it as its broken inthe engine.



SVN revision: 59895
2011-06-02 09:49:17 +00:00
Tom Hacohen 4b5440650e Evas text: Fix ellipsis bidi, broke it a couple of days ago.
SVN revision: 59877
2011-06-01 15:08:47 +00:00
Cedric BAIL 0e0dca586f evas: add evas_object_image_extension_can_load_get.
This functions let you check if a file could be opened by
Evas_Object_Image. It is threadsafe, and you should use it
from another thread as often as possible :-)



SVN revision: 59872
2011-06-01 14:32:08 +00:00
Tom Hacohen 1dfe691a36 Evas textblock: Start splitting layouting and layouting with rendering.
The difference is that we can now avoid doing some things when layouting but
not actually drawing, for example: bidi stuff.

SVN revision: 59871
2011-06-01 14:25:15 +00:00
Tom Hacohen 3e1727f7b1 Evas textblock: Use advance when calculating line breaks and widths.
SVN revision: 59870
2011-06-01 14:25:11 +00:00
Tom Hacohen 0a5b27c1bd Evas textblock: Added a paragraph property to indicate if bidi.
SVN revision: 59869
2011-06-01 14:25:08 +00:00
Tom Hacohen bebbe2253a Evas textblock: Only use paragraph bidi props in the layout code.
Next commits will clear them outside of it. I.e paragraph bidi props are only
valid in the layout code.

SVN revision: 59861
2011-06-01 08:35:25 +00:00
Tom Hacohen 2b23129955 Evas textblock: Paragraphs don't need a x coordinate - remove.
SVN revision: 59860
2011-06-01 08:35:21 +00:00
Tom Hacohen 87d196e4bb Evas textblock: Split _layout to _layout and _layout_pre.
This cleans the code a bit and will soon let us do smarter native size
calculation.

SVN revision: 59845
2011-05-31 12:55:57 +00:00
Tom Hacohen 7cdf099d5c Evas textblock: Remove calc_only from layout, not needed anymore.
SVN revision: 59844
2011-05-31 12:55:54 +00:00
Tom Hacohen 71fe0782d9 Evas textblock: Move native size calculation out of the regular layout.
SVN revision: 59843
2011-05-31 12:55:51 +00:00
Lucas De Marchi 10237c5b56 evas: fix misspellings
Misspellings found by codespell



SVN revision: 59822
2011-05-30 16:45:08 +00:00
Tom Hacohen b1d889a1df Evas textblock: There can be only one ellipsis item per textblock.
SVN revision: 59816
2011-05-30 13:19:13 +00:00
Tom Hacohen 5a785e86bf Evas textblock: Use Evas_Coord instead of int for coords.
SVN revision: 59815
2011-05-30 13:19:10 +00:00
Tom Hacohen 6d66a59333 Evas textblock: Removed some fat. Format should be a stringshare.
SVN revision: 59814
2011-05-30 13:19:07 +00:00
Tom Hacohen 943145d125 Evas textblock: Don't try to move text if the length to be moved is 0.
SVN revision: 59813
2011-05-30 13:19:03 +00:00
Tom Hacohen 56b6e2ed28 Evas textblock: Remove a bit of useless fat.
SVN revision: 59812
2011-05-30 13:19:00 +00:00
Tom Hacohen 44dec7a617 Evas text/textblock: Fixed warnings when frame_quening is on.
SVN revision: 59809
2011-05-30 10:55:35 +00:00
Tom Hacohen a403ca75c2 Evas text/textblock: init cur_fi to NULL.
SVN revision: 59808
2011-05-30 10:55:31 +00:00
Tom Hacohen 884eaf1c63 Evas textblock: Fix casting of font when calling pipe op.
SVN revision: 59807
2011-05-30 09:03:46 +00:00
Tom Hacohen a3719b21f9 Evas text/textblock: Check we actually found a font instance.
Currently we only check we have a font_set which is not enough.
Having a fontset and not having an fi should never happen, but it can.

SVN revision: 59804
2011-05-30 08:42:26 +00:00
Tom Hacohen 7e01aebd17 Evas textblock: clean up text_append, and possibly solve infinite loop.
I removed the workaround that solved it, for this cleaner, solution that
should work.

SVN revision: 59802
2011-05-30 08:16:35 +00:00
Tom Hacohen 0967176b12 Evas textblock: Removed ununeeded allocation.
SVN revision: 59801
2011-05-30 08:16:32 +00:00
Tom Hacohen 6b894e69fa Evas textblock: Fix an issue with empty textblocks.
SVN revision: 59800
2011-05-30 07:52:44 +00:00
Tom Hacohen 599d9992b6 Evas textblock: Possible workaround for the infinite loop morlenxus is having.
SVN revision: 59791
2011-05-29 21:11:58 +00:00
Tom Hacohen 228c7548a4 Evas font-engine: In continuation of the previous commit. Use Evas_Font_Set.
SVN revision: 59783
2011-05-29 13:35:45 +00:00