summaryrefslogtreecommitdiff
path: root/src (unfollow)
AgeCommit message (Collapse)Author
40 hoursui transit: improve zoom effect smoothness by subpixel rendering.devs/hermet/lottieHermet Park
Summary: evas image might have a better quaility if scaling/transform is not necessary, so we have a condition to check if image is axis-aligned transformed or not. On the other hand sub-pixel(floating point coordinates unit) rendering necessary if image has an effect such a zooming. This would result in a smoother effect than integer coodinate system. We need a more precise condition to confirm this, so we intrduce "anti-alias" option to decide the condition. now, anti-aliased objects will have a sub-pixel rendering always. Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D12194
3 daysecore x - dont free previous resource dbCarsten Haitzler (Rasterman)
3 daysecore-x - add xresource set/get/load etc.Carsten Haitzler (Rasterman)
new ecore-x calls to support the things xrdb does @feat
6 daysevas gl: make 9 patch workShinwoo Kim
Summary: The 9 patch is using image_stretch_region_get, but GL did not override it. So the 9 patch did not work for GL engine at all. Test Plan: Evas_Object*img = evas_object_image_filled_add(evas); evas_object_image_file_set(img, "test.9.png", 0); evas_object_show(img); Reviewers: Hermet, jsuya, herb, cedric Reviewed By: Hermet Subscribers: #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D12192
6 daysevas_textblock: reduce content fit calculationsali-alzyod
Reviewers: woohyun, id213sin Reviewed By: woohyun, id213sin Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D12187
7 dayselm_entry: legacy smart selection[start,cleared] callback fixAli Alzyod
Summary: due to changes in latest text apis in unified, legacy selection call back [start,clear] does not work anymore, Now add the support for legacy callback [selection,start selection,cleared] Reviewers: woohyun, bowonryu, stefan_schmidt Reviewed By: bowonryu Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D12126
12 daysevas test - fix evas suite image data compareCarsten Haitzler (Rasterman)
the test was wrong and waiting to fail. it worked by luck before, but it was comparing a deleted image's data vs a new one that replaced it. this fixes that. makes the test suite now reliable. asan pointed this out. @fix
13 daysevil: Rename EAPI macro to EVIL_API in Evil libraryFelipe Magno de Almeida
Summary: Patch from a series of patches to rename EAPI symbols to specific library DSOs. EAPI was designed to be able to pass ```__attribute__ ((visibility ("default")))``` for symbols with GCC, which would mean that even if -fvisibility=hidden was used when compiling the library, the needed symbols would get exported. MSVC __almost__ works like GCC (or mingw) in which you can declare everything as export and it will just work (slower, but it will work). But there's a caveat: global variables will not work the same way for MSVC, but works for mingw and GCC. For global variables (as opposed to functions), MSVC requires correct DSO visibility for MSVC: instead of declaring a symbol as export for everything, you need to declare it as import when importing from another DSO and export when defining it locally. With current EAPI definitions, we get the following example working in mingw and MSVC (observe it doesn't define any global variables as exported symbols). ``` Example 1: dll1: ``` EAPI void foo(void); EAPI void bar() { foo(); } ``` dll2: ``` EAPI void foo() { printf ("foo\n"); } ``` This works fine with API defined as __declspec(dllexport) in both cases and for gcc defining as ```__atttribute__((visibility("default")))``` However, the following: Example 2: dll1: ``` EAPI extern int foo; EAPI void foobar(void); EAPI void bar() { foo = 5; foobar(); } ``` dll2: ``` EAPI int foo = 0; EAPI void foobar() { printf ("foo %d\n", foo); } ``` This will work on mingw but will not work for MSVC. And that's why EAPI is the only solution that worked for MSVC. Co-authored-by: João Paulo Taylor Ienczak Zanette <jpaulotiz@gmail.com> Co-authored-by: Ricardo Campos <ricardo.campos@expertise.dev> Co-authored-by: Lucas Cavalcante de Sousa <lucks.sousa@gmail.com> Reviewers: raster, vtorri, jptiz, lucas, woohyun Reviewed By: vtorri, jptiz Subscribers: ProhtMeyhet, cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D12182
2020-11-10ecore evas - wayland clients - dont set invalid min/max widthCarsten Haitzler (Rasterman)
max width < 0 is wrong.. dont set it. min width < 1 for efl is stupid/invalid and dont set it either, so clamp these and now things work right in corner cases. @fix
2020-11-10evas - object - grabs - dont delete NULL event grabsCarsten Haitzler (Rasterman)
segv while shutting down and removing grabs - obj->events was null... dont follow that poointer while deleting grabs. @fix
2020-11-05Revert "eo_test_general.c: Make eo_signals tests pass on Windows"Carsten Haitzler (Rasterman)
This reverts commit fc949660f70f99fe97e63de65b1b67377d16c6da.
2020-11-04eo_test_general.c: Make eo_signals tests pass on WindowsWander Lairson Costa
Summary: EFL_CALLBACKS_ARRAY_DEFINE reorders the callbacks according to efl_callbacks_cmp. efl_callbacks_cmp compares the address of the desc field, which depends on the memory layout generated by the linker. To make the test run deterministically, we define the array of callbacks manually. Reviewers: vtorri, felipealmeida, raster Reviewed By: raster Subscribers: cedric, #reviewers, #committers, jptiz, felipealmeida Tags: #efl Differential Revision: https://phab.enlightenment.org/D12043
2020-11-02vg_load_svg: Prevent memory overflow for tag_nameJunsuChoi
Summary: When copying tag_name, if length of referenced string is longer than general case, it is not used as tag_name. Test Plan: N/A Reviewers: Hermet, smohanty Reviewed By: Hermet Subscribers: kimcinoo, herb, cedric, #committers, #reviewers Tags: #efl Differential Revision: https://phab.enlightenment.org/D12185
2020-10-28evas/textblock: apply style paddings in fit calculationYoungbok Shin
Summary: The style paddings should be calculated for fitting text into the given object's size. Test Plan: 1. Put shadow effect in your style string. "... style=shadow,far_bottom shadow_color=#000 ..." 2. Apply fit option( and ellipsis to see how it goes wrong without this patch.) 3. See results. Reviewers: woohyun, ali.alzyod Reviewed By: woohyun, ali.alzyod Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D12183
2020-10-27evil: undef setlocale to avoid recursionFelipe Magno de Almeida
Summary: evil_setlocale implementation must not call itself, so it must #undef setlocale to avoid replacing with evil_setlocale. Reviewers: vtorri, jptiz, lucas Reviewed By: vtorri, jptiz Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D12184
2020-10-20efl.ui.text : Fixing cursor movement using keyboard arrows/mouse clickabdulleh Ghujeh
Summary: if we have an emoji or a cluster combining multiple Unicode inside ui textbox, we can move the cursor inside the emoji/cluster using keyboard arrows/mouse click. so we should use cluster movement instead of character movement (same as entry). {F3868931} this should resolve T8666 Test Plan: #define EFL_EO_API_SUPPORT 1 #define EFL_BETA_API_SUPPORT 1 #include <Efl_Ui.h> static void _gui_quit_cb(void *data EINA_UNUSED, const Efl_Event *event EINA_UNUSED) { efl_exit(0); } static void _gui_setup() { Eo *win, *box; win = efl_add(EFL_UI_WIN_CLASS, efl_main_loop_get(), efl_ui_win_type_set(efl_added, EFL_UI_WIN_TYPE_BASIC), efl_text_set(efl_added, "Hello World"), efl_ui_win_autodel_set(efl_added, EINA_TRUE)); // when the user clicks "close" on a window there is a request to delete efl_event_callback_add(win, EFL_UI_WIN_EVENT_DELETE_REQUEST, _gui_quit_cb, NULL); box = efl_add(EFL_UI_BOX_CLASS, win, efl_content_set(win, efl_added), efl_gfx_hint_size_min_set(efl_added, EINA_SIZE2D(360, 240))); efl_add(EFL_UI_TEXTBOX_CLASS, box, efl_gfx_hint_weight_set(efl_added, 1.0, 1.0), efl_gfx_hint_align_set(efl_added, 1.0, 1.0), efl_text_markup_set(efl_added, "A&#x262a;&#xfe0f;"), efl_pack(box, efl_added)); } EAPI_MAIN void efl_main(void *data EINA_UNUSED, const Efl_Event *ev EINA_UNUSED) { _gui_setup(); } EFL_MAIN() Reviewers: ali.alzyod, zmike, woohyun, bu5hm4n Reviewed By: ali.alzyod, woohyun Subscribers: zmike, cedric, #reviewers, #committers Tags: #efl Maniphest Tasks: T8666 Differential Revision: https://phab.enlightenment.org/D11745
2020-10-14vg_load_svg: Implement ClipPath featureJunsuChoi
Summary: Supports case of using style attribute for defined <clipPath> and node. In SVG, <clipPath> can be used as a "clipPath" attribute or a style "clip-path". If there is a clip-path node, save it as a composition node and use composition method(matte_alpha) to compose it. Below node types support clip-path. <circle> <ellipse> <g> <path> <polygon> <polyline> <rect> Test Plan: Please see attached svg files {F4026162} Reviewers: Hermet, smohanty Reviewed By: Hermet Subscribers: #reviewers, #committers, cedric, herb, kimcinoo Tags: #efl Differential Revision: https://phab.enlightenment.org/D12179
2020-10-14vg_load_svg: Implement ClipPath featureJunsuChoi
Summary: Supports case of using style attribute for defined <clipPath> and node. In SVG, <clipPath> can be used as a "clipPath" attribute or a style "clip-path". If there is a clip-path node, save it as a composition node and use composition method(matte_alpha) to compose it. Below node types support clip-path. <circle> <ellipse> <g> <path> <polygon> <polyline> <rect> Test Plan: Please see attached svg files {F4026162} Reviewers: Hermet, smohanty Reviewed By: Hermet Subscribers: #reviewers, #committers, cedric, herb, kimcinoo Tags: #efl Differential Revision: https://phab.enlightenment.org/D12179
2020-10-13Ecore_Win32: add the API ecore_win32_window_maximized_set()Vincent Torri
Summary: ecore_evas win32 engine is updated to support it. This fixes the "maximized/unmaximized" elm "windows states" test. Test Plan: elm_test Reviewers: raster, jptiz, felipealmeida Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D12177
2020-10-13Ecore_Evas win32: fix activate() functionVincent Torri
Summary: activating the function needs un-iconified first Test Plan: elm windows status tests Reviewers: raster, jptiz, felipealmeida Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D12176
2020-10-12evas svg: Fix build errorJunsuChoi
Fix build error from 9e14a57020
2020-10-12evas svg: avoid unnecessary memory clear.Hermet Park
2020-10-12vg_load_svg: Add points copy of missing polygon/polylineJunsuChoi
Summary: When using <use> node, do atrribute copy. At that time, when target(url) is polygon or polyline, points array is not copied, causing a problem in output. So, add missing array copy. Test Plan: - Test SVG code <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 64 64" enable-background="new 0 0 64 64" xml:space="preserve"> <g opacity="0.5"> <defs> <polygon id="test" opacity="0.5" points="41.8,14.5 22.2,14.5 22.2,22.8 41.8,40.7"/> </defs> <use xlink:href="#test" overflow="visible"/> </g> </svg> Reviewers: Hermet, smohanty Reviewed By: Hermet Subscribers: #reviewers, #committers, kimcinoo, herb, cedric Tags: #efl Differential Revision: https://phab.enlightenment.org/D12174
2020-10-12vg_load_svg: Add points copy of missing polygon/polylineJunsuChoi
Summary: When using <use> node, do atrribute copy. At that time, when target(url) is polygon or polyline, points array is not copied, causing a problem in output. So, add missing array copy. Test Plan: - Test SVG code <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 64 64" enable-background="new 0 0 64 64" xml:space="preserve"> <g opacity="0.5"> <defs> <polygon id="test" opacity="0.5" points="41.8,14.5 22.2,14.5 22.2,22.8 41.8,40.7"/> </defs> <use xlink:href="#test" overflow="visible"/> </g> </svg> Reviewers: Hermet, smohanty Reviewed By: Hermet Subscribers: #reviewers, #committers, kimcinoo, herb, cedric Tags: #efl Differential Revision: https://phab.enlightenment.org/D12174
2020-10-10Ecore_Evas win32 module: do not set evas viewport size to 0Vincent Torri
Summary: When a window is iconified, its size is 0x0 and is passed to evas viewport. Set the size to 1x1 in that case Test Plan: Elementary "windows states" test Reviewers: raster, jpcordovae, felipealmeida, jptiz Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D12171
2020-10-09elua test: fix undeclared variableVincent Torri
Reviewers: raster Reviewed By: raster Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D12172
2020-10-09efl ui image - dont cancel preload on image if image is an edje objectCarsten Haitzler (Rasterman)
fixes invalid request on non-image object. @fix
2020-10-08Evil : move mkstemp(s) and mkdtemp in eina_file directlyVincent Torri
Summary: Also replace all mkstemp(s) and mkdtemp with the eina_file functions in the source Test Plan: run eina_file test Reviewers: raster Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D12170
2020-10-08Revert "Revert "evas_textblock: rainbow flag emoji treated as two ↵WooHyun Jung
clusters(update unibreak to version 4.2)"" This reverts commit 173b3a108e1b2093ac37650619a61568aaed4e04. This was reverted because of freezing codes for release. Now, release work was over. So, I think it's ok to restore this.
2020-10-06Ecore_file: on Windows, fix errno value when dst exists.Vincent Torri
Summary: This also fixes the saving of elementary_config file Test Plan: execution of elementary_config Reviewers: jptiz, raster Reviewed By: raster Subscribers: johnny1337, cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D12165
2020-10-05eina - eina eifle - rename eina_file.c to indicate its for posixCarsten Haitzler (Rasterman)
2020-10-05elementary image zoomable: fix non supported oversized image.Hermet Park
Summary: if image size is larger than system support, photocam can not show the image. Not like other types of image, photocam is originally designed for huge-size of image, this result is not allowed by users, we should avoid the worst case as we can do. This might not be the best idea, so you can improve it if you have a better solution. Reviewers: kimcinoo Reviewed By: kimcinoo Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D12164
2020-10-03singularize srand in eina_init - only once in one placeCarsten Haitzler (Rasterman)
simplify down to having a single srand() in eina_init and use urandom if it works and is there - if not, time(NULL) will do. it's the best we can...
2020-09-30Windows: fix copy'n pasteVincent Torri
Summary: fix seat id and clean cnp data when needed Test Plan: Ctrl-c and Ctrl-V (elm-->app, app--> elm elm-->elm) Reviewers: jptiz, walac, cochisecesar, bu5hm4n, felipealmeida, raster Reviewed By: felipealmeida, raster Subscribers: netstar, cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D12166
2020-09-29efreet - windows - still call stat but skip lstat/readlinkCarsten Haitzler (Rasterman)
now stat is filled with data on windows @fix
2020-09-28evas: sw font draw - protect against null pointer accessYoungbok Shin
The image data of dst could be null in a rare case. @fix Reviewed-by: Christopher Michael <devilhorns@comcast.net> Differential Revision: https://phab.enlightenment.org/D12163
2020-09-25build: addition to abf0e9dffe35da8fa6e20055f53786b2adbec271Marcel Hollerbach
the fix is also needed in ecore_imf modules. Thank you Ross!
2020-09-25fix order and simplify a bit order of _init|_shutdown functionsVincent Torri
Summary: in bin/ ecore_evas.c : remove useless ecore_init eetpack.c : remove use eina_init and evas_init eet_main.c : reorder eet_init efl_debug.c : remove useless eina_init efl_debugd : reorder log domain ethumbd.c : remove eina_init ethumbd_client.c : remove ecore_init (which was anyway misplaced) Test Plan: compilation Reviewers: raster Reviewed By: raster Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D12162
2020-09-25Ethumb: reorder _init/shutdown functions, ecore and evas init/shutdown are ↵Vincent Torri
useless, as ecore_evas already manages them Test Plan: compilation Reviewers: raster Reviewed By: raster Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D12161
2020-09-25edje_external_inspector: re-order _init a bit: log after eina, remove ↵Vincent Torri
ecore_init/shutdown as it is already managed by edje_init/shutdown Reviewers: raster Reviewed By: raster Subscribers: raster, cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D12160
2020-09-24build: fix dependencies of software engineMarcel Hollerbach
before the efl-one refactoring ecore_x_deps contained all the dependencies for x11. After that not anymore, however, we should link software_x11 to x11 libs directly, which is again happening after this here.
2020-09-24evas vg: check vg changedShinwoo Kim
Summary: It is not able to render even though vg object has a chance to render, because evas_object_smart_changed_get checks only Evas_Object_Protected_Data, when Efl_Canvas_Vg_Object_Data.changed is TRUE. Reviewers: Hermet, jsuya, herb Reviewed By: Hermet Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D12152
2020-09-22edje: efl: add new EFL_VERSION_1_26 define for new dev cycleStefan Schmidt
Thios allows to mark edje file supported for specific versions.
2020-09-22efl_gfx_path: When path end(Z,z), Current point are returned to starting ↵JunsuChoi
point(M,m) Summary: When path ends with 'z' or 'Z' command, if 'm' comes as next command, the current point is incorrectly referenced. Since 'Z', 'z' means to close the path, so, Save point and reuse it when 'M' or 'm' is called. Test Plan: [Error Case] <svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"> <path d="M 52.17,20 H 11.92 V 43 H 52.17 Z m -1.5,21.5 H 13.42 v -20 H 50.67 Z " fill="#a8b7c1" stroke="#F00" stroke-width="0.5" /> </svg> Reviewers: Hermet, smohanty Reviewed By: Hermet Subscribers: cedric, herb, kimcinoo, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D12158
2020-09-21elm_config: don't prepend /tmp/ to file nameVincent Torri
eina_file_mkstemp() already takes care of this. Differential Revision: https://phab.enlightenment.org/D12155
2020-09-21Revert "elm - collection view - check return and fix coverity wanring"Stefan Schmidt
This reverts commit f3fdcf56923c8a2ca126e14d915e6386c7c4ff7e. This commit leads to ninja test timeout. When returning result here the future will never fire and we will keep spinning.
2020-09-21elm - toiolbar - use correct theme icon for more itemCarsten Haitzler (Rasterman)
there is a specific thme icon for "more" items when a toolbar compresses. it literally was not being used. it should use it. "go-down" that it was using isn't exactly very expressive of what this item does... @fix
2020-09-20ecore - efl thread - dont close invalid < 0 fd'sCarsten Haitzler (Rasterman)
fix CID 1396951
2020-09-20ecore - efl exe - check returns of open and dup2 for stdin etc. fdsCarsten Haitzler (Rasterman)
check returns - fix CID 1397002
2020-09-20eina bench - have default values inside benc dtoaCarsten Haitzler (Rasterman)
addess CID 1400856