platform/upstream/efl.git
7 years agoElm.Widget: rename "event.*" methods to solve name conflict
Jee-Yong Um [Mon, 2 Jan 2017 07:48:17 +0000 (16:48 +0900)]
Elm.Widget: rename "event.*" methods to solve name conflict

Summary:
Elm.Widget.event_callback_add conflicts with Efl.Object.event_callback_add.
To solve this problem, "widget_" prefix is added to methods starting with
"event".

Reviewers: cedric, jpeg

Differential Revision: https://phab.enlightenment.org/D4521

7 years agoelementary_config: make compare of web_backend more secure
Marcel Hollerbach [Mon, 2 Jan 2017 16:18:31 +0000 (17:18 +0100)]
elementary_config: make compare of web_backend more secure

web_backend can get NULL when there is a error with the entry. Make sure
the pointers are different, or they are not NULL and the string contents
are different.

7 years agoeolian: correctly set the empty/auto flags in implements
Daniel Kolesa [Mon, 2 Jan 2017 15:25:26 +0000 (16:25 +0100)]
eolian: correctly set the empty/auto flags in implements

7 years agoeolian: disallow duplicate implements
Daniel Kolesa [Mon, 2 Jan 2017 15:09:04 +0000 (16:09 +0100)]
eolian: disallow duplicate implements

7 years agoeolian: fill ctor class early on
Daniel Kolesa [Mon, 2 Jan 2017 14:28:26 +0000 (15:28 +0100)]
eolian: fill ctor class early on

7 years agoeolian: no need to fill func in eolian_implement_function_get
Daniel Kolesa [Mon, 2 Jan 2017 14:00:38 +0000 (15:00 +0100)]
eolian: no need to fill func in eolian_implement_function_get

All implements are now filled in the previous stage.

7 years agoeolian: partially clean up implement filling logic
Daniel Kolesa [Mon, 2 Jan 2017 13:35:17 +0000 (14:35 +0100)]
eolian: partially clean up implement filling logic

7 years agoeolian: require specification of either get or set in property impls
Daniel Kolesa [Mon, 2 Jan 2017 13:02:44 +0000 (14:02 +0100)]
eolian: require specification of either get or set in property impls

7 years agoevas loader - don't stat NULL file paths
Carsten Haitzler (Rasterman) [Mon, 2 Jan 2017 13:58:24 +0000 (22:58 +0900)]
evas loader - don't stat NULL file paths

something i found valgrinding my recent async improvments. statting
null path. fix it.

7 years agoedje_cc_parse: Fix to insert missing double quotation marks
Jaehyun Cho [Mon, 2 Jan 2017 10:59:06 +0000 (19:59 +0900)]
edje_cc_parse: Fix to insert missing double quotation marks

7 years agoedje_cc_parse: Compile EDC file whose path contains space character.
Jaehyun Cho [Mon, 2 Jan 2017 10:25:45 +0000 (19:25 +0900)]
edje_cc_parse: Compile EDC file whose path contains space character.

Previously, edje_cc could not compile EDC file whose path contains space
character since edje_cc interpreted the EDC file as separate 2 inputs.
(i.e. "input file.edc" was interpreted as "input" and "file.edc")

This patch enables edje_cc to interpret above case correctly.

7 years agoevas generic loader - expand buffers in case of weird install location
Carsten Haitzler (Rasterman) [Sun, 1 Jan 2017 23:40:37 +0000 (08:40 +0900)]
evas generic loader - expand buffers in case of weird install location

so we had just 128 bytes for path to generic loader utility. in most
cases this is plenty but if you have bizarre symlinks and long paths
we may run out of space, so move up to 4k buffers as this is
realistically the max path len anyway on a system.

@fix

7 years agoevas image async preload - add option to also make header load async
Carsten Haitzler (Rasterman) [Sun, 1 Jan 2017 13:15:24 +0000 (22:15 +0900)]
evas image async preload - add option to also make header load async

to date if you use async preload we still load the header
synchronously and this can be horrible especially with generic
loaders. there is no way to farm this off to the preload thread. now
there is. youhave to set it as a skip head load option before doing a
file_set AND you need to issue a preload ... but now it's possible.

@feature

7 years agoevas cutouts - quickly avoid huge per issues with large nos of cutouts
Carsten Haitzler (Rasterman) [Fri, 30 Dec 2016 09:55:55 +0000 (18:55 +0900)]
evas cutouts - quickly avoid huge per issues with large nos of cutouts

i found evas_common_draw_context_apply_cutouts() was procsessing 300+
cutouts and as it's O(n^2)/2 to try and merge adjacent rects for
cutouts this really performs like complete junk. we apply cutout rects
a LOT. this is not the best solution, but it's quick and much faster
than doing the clipouts which drop framerate to like 1-2fps or so in the
nasty case i say (tyls -m of photos in a dir with a 2160 high
terminal).

this figures out the target area to limit the count of rects
significantly so O(n^2) is far far better when n is now < 10 most of
the time. and for the few operations where it's a high value this now
uses qsort to speed up merges etc. etc.

@optimize

7 years agoelm_naviframe: resize previous view before item pop transition.
Sungtaek Hong [Mon, 2 Jan 2017 06:41:20 +0000 (15:41 +0900)]
elm_naviframe: resize previous view before item pop transition.

Summary:
 - In commit rEFL9f5e9ec7ca120242a92ac97fb20016263c152d8e
   previous view is raised after item pop transition
   so that current view's pop animation can be shown.
 - But, previous view has to be in it's proper size
   during transition because some of animation might
   show previous view.

Reviewers: Jaehyun_Cho

Subscribers: cedric, conr2d, jpeg

Differential Revision: https://phab.enlightenment.org/D4535

7 years agoEvas GL:Bind texture to correct one.
Minkyoung Kim [Mon, 2 Jan 2017 06:29:48 +0000 (15:29 +0900)]
Evas GL:Bind texture to correct one.

Summary:
If user bind textureA and want to use it continuously, do not call glBindTexture(textureA) again.
But expect that textureA will be binding.
So EvasGL sould not change binded texture silently.
Restore texture to previous bound one after allocating new texture.
And when destroy texture, reset texture to 0 if it is current bound texture.

Test Plan: Tizen 3.0

Reviewers: wonsik, dkdk, cedric, jpeg

Reviewed By: jpeg

Differential Revision: https://phab.enlightenment.org/D4524

7 years agoevas: initalize orient property in file_set()
Jiwon Kim [Mon, 2 Jan 2017 06:22:04 +0000 (15:22 +0900)]
evas: initalize orient property in file_set()

Summary:
Someone calls evas_object_image_file_set() and set orient,
and then re-set another file.
At that time, there is a mismatch between Evas_Image_Data's
cur->orient and engine's orient data.

So, "file_set(a) -> orient_set(90) -> file_set(b) -> orient_set(90)"
is not working now.

Therefore, when a file_set() is finished, initialization is needed.

@fix

Reviewers: jypark, jpeg

Reviewed By: jpeg

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D4515

7 years agoelm_index: apply mirrored layout for index box
Sungtaek Hong [Mon, 2 Jan 2017 06:19:51 +0000 (15:19 +0900)]
elm_index: apply mirrored layout for index box

Summary:
 - When mirrored is set, horizontal box packs item
   reversely, from right to left. However, index box
   packs index item the same as before, from left to right.
   This commit changes index box custom layout to sync
   with other box.

Test Plan:
 - enable mirrored UI, or use elm_config_mirrored_set(EINA_TRUE);
   run elementary_test, "Index Horizontal".
 - Observe index item packs in a same direction with box contents.

Reviewers: cedric, Hermet, jpeg

Subscribers: conr2d

Differential Revision: https://phab.enlightenment.org/D4512

7 years agoevas_events: add checking NULL logic to source mouse event.
Hosang Kim [Mon, 2 Jan 2017 06:17:40 +0000 (15:17 +0900)]
evas_events: add checking NULL logic to source mouse event.

Summary:
When the proxy's source is updated, the proxy's event list will be
updated, too. But there is no way now. So add defensive code for
protecting segment fault.

@fix

Reviewers: woohyun, raster, jpeg

Reviewed By: jpeg

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D4508

7 years agoelm_config: fix for dereferencing after comparing to NULL
Alok Mishra [Mon, 2 Jan 2017 06:14:13 +0000 (15:14 +0900)]
elm_config: fix for dereferencing after comparing to NULL

Summary:
arr has been checked earlier so as to avoid when it is NULL.
If there is a possibility of being NULL earlier
then it should be checked even when freeing.
So added the NULL check before free.

@fix

Reviewers: singh.amitesh, bu5hm4n, tasn, cedric, raster, atulfokk, hyunseok, minkyu, Hermet, jpeg

Reviewed By: jpeg

Subscribers: cedric, jpeg

Differential Revision: https://phab.enlightenment.org/D4537

7 years agoelm_code: remove unneeded init code.
Andy Williams [Sun, 1 Jan 2017 20:10:07 +0000 (20:10 +0000)]
elm_code: remove unneeded init code.

Move elm_code init to the main elementary as that's where it lives

7 years agoelm_code: select when navigating or clicking with shift
Andy Williams [Sun, 1 Jan 2017 18:48:13 +0000 (18:48 +0000)]
elm_code: select when navigating or clicking with shift

test plan: hold shft whilst using a cursor key or mouse click with shift pressed

7 years agoUpdating italian translation
maxerba [Sun, 1 Jan 2017 15:30:36 +0000 (16:30 +0100)]
Updating italian translation

7 years agoelm_code: refactor auto indent about brace matching
YeongJong Lee [Sun, 1 Jan 2017 14:29:43 +0000 (14:29 +0000)]
elm_code: refactor auto indent about brace matching

Summary: return value of brace matching function no longer need free().

Test Plan:
1. run elementry_test - Code Editor or Edi.
2. Type some code with braces.
3. Check that closing brace has correct indent.

Reviewers: ajwillia.ms

Reviewed By: ajwillia.ms

Subscribers: cedric, jpeg

Differential Revision: https://phab.enlightenment.org/D4540

7 years agoelm_panel: decide whether a scrollable panel is open or not only when it has a size
Jaeun Choi [Fri, 30 Dec 2016 07:30:34 +0000 (16:30 +0900)]
elm_panel: decide whether a scrollable panel is open or not only when it has a size

in _state_sync() function, scrollable content's position is used to tell
whether the panel is open or not. in case of a top panel, for example,
it is considered to be open when the content's vertical position equals to zero.
however, this logic has a defect in that the position is always zero
if the content size is zero - not resized properly yet. it caused unwanted results.
this patch added some codes to check
1. if the panel's width or height is bigger than zero
2. if the box which contains panel contents is visible (resizable)

@fix

7 years agoEdje_cc: update images.set.image names when write edj file.
Mykyta Biliavskyi [Thu, 29 Dec 2016 14:14:23 +0000 (16:14 +0200)]
Edje_cc: update images.set.image names when write edj file.

There are few image formats that converted into *.png on data writing
stage (*.svg, *.tgv). After converting image, this image entry name
changes by <name>.<vector format ext>.png. This make possible save
vector images into edj file.
Because images set could contain vector images too - after save on
disk set image entry name wasn't updated. And still have original name:
<name>.<vector format ext>. This commit update image set entries
name accordingly to the global pool of images.

@fix

7 years agoecore_thread: reset waiter and worker when we have failed
Marcel Hollerbach [Tue, 27 Dec 2016 21:25:30 +0000 (22:25 +0100)]
ecore_thread: reset waiter and worker when we have failed

otherwise the func_end and func_cancel can get into a endless recursion.

7 years agoedje_cc - fix warning about freeing a const char ptr
Carsten Haitzler (Rasterman) [Wed, 28 Dec 2016 10:01:38 +0000 (19:01 +0900)]
edje_cc - fix warning about freeing a const char ptr

yes - the type is const char * for edje runtime (the library) but in
edje_cc we strdup these strings and yes - assign them to a const char *
thus the warning and the need to cast. it's specific co edje_cc only
and so this is correct.

7 years agoeldbus - fix warning for possibly undefined value being sent
Carsten Haitzler (Rasterman) [Wed, 28 Dec 2016 09:51:33 +0000 (18:51 +0900)]
eldbus - fix warning for possibly undefined value being sent

this ensures the integer "id" is at least set before using it, though
reality is it will be set, it's better to have less warnings and there
isn't any other way to silence this warning other that setting it.

7 years agoevas - clean up whitespace and 80 column wrapping and commented out code
Carsten Haitzler (Rasterman) [Wed, 28 Dec 2016 03:56:08 +0000 (12:56 +0900)]
evas - clean up whitespace and 80 column wrapping and commented out code

this doenst change functionality but just cleans up the file
whitespacing and formatting and removed commented out junk, 80 column
wrapping/overflow etc.

7 years agoevas - use freeq for common and cache images
Carsten Haitzler (Rasterman) [Wed, 28 Dec 2016 03:40:14 +0000 (12:40 +0900)]
evas - use freeq for common and cache images

this makes software rgba images and cache images use freeq to try and
minimize possible bugs and crashes if we hit use of freed data for
images.

7 years agoelm_code: Fix another public API using the wrong order
Andy Williams [Tue, 27 Dec 2016 22:17:01 +0000 (22:17 +0000)]
elm_code: Fix another public API using the wrong order

7 years agoelm_code: Fix filename/path for non-file based instances
Andy Williams [Tue, 27 Dec 2016 21:12:49 +0000 (21:12 +0000)]
elm_code: Fix filename/path for non-file based instances

And add tests appropriately

7 years agoeolian: enable cyclic dependencies between classes
Daniel Kolesa [Tue, 27 Dec 2016 20:53:00 +0000 (21:53 +0100)]
eolian: enable cyclic dependencies between classes

7 years agoeolian: remove old property impl syntax and clean up parsing
Daniel Kolesa [Tue, 27 Dec 2016 18:37:15 +0000 (19:37 +0100)]
eolian: remove old property impl syntax and clean up parsing

7 years agoeolian: allow new property impl syntax with auto/empty
Daniel Kolesa [Tue, 27 Dec 2016 18:33:12 +0000 (19:33 +0100)]
eolian: allow new property impl syntax with auto/empty

7 years agoelm: use new property implement syntax everywhere
Daniel Kolesa [Tue, 27 Dec 2016 18:15:41 +0000 (19:15 +0100)]
elm: use new property implement syntax everywhere

7 years agoecore_thread: null out the struct before returning it
Marcel Hollerbach [Tue, 27 Dec 2016 16:49:35 +0000 (17:49 +0100)]
ecore_thread: null out the struct before returning it

it can contain old callback values which are not overwritten in every
case. This just ensures that in both cases, empty trasher or none empty
trasher, are returning the same state of the struct.

7 years agoemotion: use new property impl syntax
Daniel Kolesa [Tue, 27 Dec 2016 16:48:44 +0000 (17:48 +0100)]
emotion: use new property impl syntax

7 years agoeio, edje: use new property impl syntax
Daniel Kolesa [Tue, 27 Dec 2016 16:47:00 +0000 (17:47 +0100)]
eio, edje: use new property impl syntax

7 years agoeolian gen: properly deal with __eolian wrappers and mixed prop impls
Daniel Kolesa [Tue, 27 Dec 2016 16:16:17 +0000 (17:16 +0100)]
eolian gen: properly deal with __eolian wrappers and mixed prop impls

7 years agoecore audio: use new property impl syntax
Daniel Kolesa [Tue, 27 Dec 2016 16:00:05 +0000 (17:00 +0100)]
ecore audio: use new property impl syntax

7 years agoecore con: use new property impl syntax
Daniel Kolesa [Tue, 27 Dec 2016 15:58:07 +0000 (16:58 +0100)]
ecore con: use new property impl syntax

7 years agoeldbus: use new property impl syntax
Daniel Kolesa [Tue, 27 Dec 2016 15:39:52 +0000 (16:39 +0100)]
eldbus: use new property impl syntax

7 years agoevas: use new property impl syntax
Daniel Kolesa [Tue, 27 Dec 2016 15:37:41 +0000 (16:37 +0100)]
evas: use new property impl syntax

7 years agoecore: use new property impl syntax
Daniel Kolesa [Tue, 27 Dec 2016 15:19:06 +0000 (16:19 +0100)]
ecore: use new property impl syntax

7 years agoector: use new property impl syntax
Daniel Kolesa [Tue, 27 Dec 2016 15:12:25 +0000 (16:12 +0100)]
ector: use new property impl syntax

7 years agoefl: move some eo files to new property impl syntax
Daniel Kolesa [Tue, 27 Dec 2016 15:06:19 +0000 (16:06 +0100)]
efl: move some eo files to new property impl syntax

7 years agoeolian: require semicolon after get/set in new property impl syntax
Daniel Kolesa [Tue, 27 Dec 2016 15:05:22 +0000 (16:05 +0100)]
eolian: require semicolon after get/set in new property impl syntax

7 years agoeio: Correct deletion backend
Ivan Furs [Tue, 27 Dec 2016 14:20:58 +0000 (16:20 +0200)]
eio: Correct deletion backend

Summary:

This patch fixes the bug Fileselector.
When backend is deleted need to remove event handler from the list.
This commit adds ecore_main_win32_handler_del for correct clean
handlers for cases when monitor backend was created by
eio_monitor_backend_add(Windows method) or eio_monitor_fallback_add. To
remove them needed to use eio_monitor_backend_del(Windows method) or
eio_monitor_fallback_del. To identify the method which should free
backend was added flag monitor->fallback instead of using static
_eio_monitor_win32_native. This solves conflicts if 2  monitors was
created and the second monitor changed the _eio_monitor_win32_native
variable value. When 1 monitor removed it will be deleted correctly .

@fix

Reviewers: NikaWhite

Subscribers: cedric, jpeg

Differential Revision: https://phab.enlightenment.org/D4518

7 years agoecore_main: don't wait on marked to delete handlers on Windows
Andrii Kroitor [Tue, 27 Dec 2016 13:52:30 +0000 (15:52 +0200)]
ecore_main: don't wait on marked to delete handlers on Windows

This could lead to greedy wait with 100% CPU consumption because on wait
error we never reach actual handlers deletion.

7 years agoFileselector: make parse path string windows platform support.
Mykyta Biliavskyi [Tue, 27 Dec 2016 08:17:43 +0000 (10:17 +0200)]
Fileselector: make parse path string windows platform support.

On windows platform file path contain '\\' instead of '/'.
Test plan:
   - on windows platform launch elemntary_test -to fileselector.
   - type something into search entry.

@fix

7 years agoefreet cache - handle corner case where efreetd keeps disconnecting
Carsten Haitzler (Rasterman) [Mon, 26 Dec 2016 04:06:35 +0000 (13:06 +0900)]
efreet cache - handle corner case where efreetd keeps disconnecting

so an odd one. there is a socket, but nothing is actually listening on
it, but clients keep spinning launching efreetd's because the launch,
connect, then get a disconnect and try again immediately keeping
things spinning heavily, so add a delay of 0.5 sec before launchnig
another efreetd if the launch + connect fails and gets a disconnect
within 0.5 sec ... so give up for 0.5 sec before trying again to avoid
a runaway system.

@fix

7 years agoRevert "spinner: call changed callback on value set."
Carsten Haitzler (Rasterman) [Sat, 24 Dec 2016 00:47:58 +0000 (09:47 +0900)]
Revert "spinner: call changed callback on value set."

This reverts commit 082ea9667343b7016d86143a625881a8c4aa30a4.

As per mail from Andrii, and he's right:

From: Andrii Kroitor <an.kroitor@samsung.com>
To: Enlightenment developer list <enlightenment-devel@lists.sourceforge.net>
Subject: [E-devel] elementary callbacks hell
Date: Fri, 23 Dec 2016 18:03:58 +0200

Recently existing callbacks behavior was broken once again. This time by
https://git.enlightenment.org/core/efl.git/commit/?id=082ea9667343b7016d86143a625881a8c4aa30a4
Before that commit "changed" callback was triggered only on user
changes, after - on user changes and changes from code.
I understand that in some cases this flow is needed. But previously you
could simply trigger your callback after setting value to spinner from
code to get desired missing behavior.
On the other side - now you can't distinguish value changes made by code
from value changes made by user without dirty and painful to support
hacks. If you don't want your callback to be
triggered by elm_spinner_value_set you need to add some flag meaning
"change from code", raise it before every call of value_set, check it
inside callback, remove it after the call.
And if you want to call it from spinner "changed" callback..? Good luck
here. This is possible, but requires additional wrappers around
spinner_add and spinner_value_set and replacement with custom signals.

So this change added bigger problems than solved.

7 years agoefl po files - update comment lines
Carsten Haitzler (Rasterman) [Sat, 24 Dec 2016 00:47:18 +0000 (09:47 +0900)]
efl po files - update comment lines

7 years agoEcore_Con_Url/Curl: add consistency for _c init/shutdown
Daniel Zaoui [Fri, 23 Dec 2016 20:57:16 +0000 (22:57 +0200)]
Ecore_Con_Url/Curl: add consistency for _c init/shutdown

_c_init was not called from Ecore_Con_Url although _c_shutdown was.

7 years agoEcore_Con_Url/Curl: add referencing on _c structure
Daniel Zaoui [Fri, 23 Dec 2016 20:53:52 +0000 (22:53 +0200)]
Ecore_Con_Url/Curl: add referencing on _c structure

The _c structure used to store the Curl function pointers needs
referencing to be sure it is not freed although still needed.
The non-referencing was leading to a crash during the destruction
of the dialers. The _c was still used although it has been freed
by ecore_con_url_shutdown.

7 years agoeolian: implement new partial property impl syntax
Daniel Kolesa [Fri, 23 Dec 2016 16:24:00 +0000 (17:24 +0100)]
eolian: implement new partial property impl syntax

Instead of

    Other.Class.some_prop.get;
    Other.Class.some_prop.set;

you can write

    Other.Class.some_prop { get; set; }

The other syntax is deprecated from now on.

7 years agoeolian: add dev warning for old style property implements
Daniel Kolesa [Fri, 23 Dec 2016 16:17:11 +0000 (17:17 +0100)]
eolian: add dev warning for old style property implements

7 years agoeolian implements: prepare API for whole-property implements
Daniel Kolesa [Fri, 23 Dec 2016 15:31:37 +0000 (16:31 +0100)]
eolian implements: prepare API for whole-property implements

7 years agoedje_data: add the missed vector data.
Jaehwan Kim [Fri, 23 Dec 2016 04:11:14 +0000 (13:11 +0900)]
edje_data: add the missed vector data.

7 years agoedje_pick: add vector resources into the output file.
Jaehwan Kim [Fri, 23 Dec 2016 04:10:14 +0000 (13:10 +0900)]
edje_pick: add vector resources into the output file.

7 years agoecore_exe: do not try to send 0 bytes
Andrii Kroitor [Thu, 22 Dec 2016 16:49:27 +0000 (18:49 +0200)]
ecore_exe: do not try to send 0 bytes

Summary: This action is meaningless when communicating with child process.

Reviewers: barbieri

Reviewed By: barbieri

Subscribers: jpeg, vtorri, cedric, raster

Differential Revision: https://phab.enlightenment.org/D4510

7 years agoedje_cc: add svg file name '.png' if it use as image
Vyacheslav Reutskiy [Thu, 22 Dec 2016 16:08:27 +0000 (18:08 +0200)]
edje_cc: add svg file name '.png' if it use as image

This path add notify for user in case when svg use in image section. It
need for clear understanding why vertor image scale like bitmap. And
add to file name new extension '.png'

7 years agoedje_cc: calculate and save the parts count in "edje/file"
Vyacheslav Reutskiy [Wed, 21 Dec 2016 11:57:41 +0000 (13:57 +0200)]
edje_cc: calculate and save the parts count in "edje/file"

7 years agoedje_pick: fix calculation of index for parent and depended groups
Vyacheslav Reutskiy [Wed, 21 Dec 2016 09:05:22 +0000 (11:05 +0200)]
edje_pick: fix calculation of index for parent and depended groups

7 years agoecore_exe_win32: fix typo in input poll thread
Andrii Kroitor [Thu, 22 Dec 2016 12:38:26 +0000 (14:38 +0200)]
ecore_exe_win32: fix typo in input poll thread

7 years agoecore_exe: fix send on Windows
Andrii Kroitor [Thu, 22 Dec 2016 12:10:10 +0000 (14:10 +0200)]
ecore_exe: fix send on Windows

Check for bytes written only if more than 0 bytes were sent.
I don't know why some efl code is trying to send 0 bytes, but that works on
Linux and therefore should be fixed on Windows.

7 years agoethumb: rewrite slave input/output
Andrii Kroitor [Thu, 22 Dec 2016 11:15:42 +0000 (13:15 +0200)]
ethumb: rewrite slave input/output

Using stdio instead of low-level read and write because low-level API has
different behaviour on Linux and Windows.

7 years agoecore: fix wait for stdin on Windows
Andrii Kroitor [Wed, 21 Dec 2016 13:08:58 +0000 (15:08 +0200)]
ecore: fix wait for stdin on Windows

We can't directly wait on stdin handle because it is signaled imediatly even
if there is no new data on input stream.

7 years agoevas: PNG save of ARGY88 needs unpremul
Jean-Philippe Andre [Thu, 22 Dec 2016 10:00:41 +0000 (19:00 +0900)]
evas: PNG save of ARGY88 needs unpremul

PNG saves unpremultiplied values, so we need to do that
for the newly supported ARGY88 colorspace as well. Fixes
the previous commit.

7 years agoRevert "elm theme makefile.am - remove misleading makefile not used"
Jean-Philippe Andre [Thu, 22 Dec 2016 10:14:16 +0000 (19:14 +0900)]
Revert "elm theme makefile.am - remove misleading makefile not used"

This reverts commit 5eef9da416801702c43e109adc35b93ece26bf17.

This breaks full rebuilds with the following error (Jenkins logs):

00:25:40 configure: creating ./config.status
00:25:41 config.status: creating Makefile
00:25:41 config.status: error: cannot find input file: `data/Makefile.in'

This also broke incremental builds with a different but just
as confusing autofoo error message.

7 years agoEdje_Edit: replace eet_read_direct by eet_read function.
Mykyta Biliavskyi [Thu, 22 Dec 2016 09:18:19 +0000 (11:18 +0200)]
Edje_Edit: replace eet_read_direct by eet_read function.

eet_read_direct function doesn't works with ciphered data, but it is
possible that edje file was ciphered. In this case data, that returned
by eet_read_direct always will be NULL.

7 years agoevas: Implement GRY8/AGRY88 save support for PNG
Jean-Philippe Andre [Thu, 22 Dec 2016 07:34:11 +0000 (16:34 +0900)]
evas: Implement GRY8/AGRY88 save support for PNG

This enables the PNG saver to save images with gray and
alpha + gray colorspaces. GRY8 is usually used for alpha only.

Note: This commit also introduces whitespace changes. Sorry
about the mess, but at least now we have spaces only. Read the
commit with show -w :)

@feature

7 years agoelm theme makefile.am - remove misleading makefile not used
Carsten Haitzler (Rasterman) [Thu, 22 Dec 2016 07:57:28 +0000 (16:57 +0900)]
elm theme makefile.am - remove misleading makefile not used

7 years agoefl window stacks - implement pop to for x11 in the portable way
Carsten Haitzler (Rasterman) [Thu, 22 Dec 2016 06:11:02 +0000 (15:11 +0900)]
efl window stacks - implement pop to for x11 in the portable way

7 years agoRevert "edje: fix float comparison warning in edje_cc."
Jean-Philippe Andre [Thu, 22 Dec 2016 05:08:51 +0000 (14:08 +0900)]
Revert "edje: fix float comparison warning in edje_cc."

This reverts commit 9730eb1f47341173063148332b9a833ff1377f45.

This introduces new issues, such as:
Warning: naviframe.edc:451: couldn't find an exact match in
 part 'elements_clip' when looking for 'hidden' 0.000000. Falling
 back to nearest one 'hidden' 0.000000.

Because some comparison was not done properly, and changed
float != 0 to float == 0.

Get it right if you insist on "fixing" those floating point
comparisons.

7 years agoecore_exe is broken on Windows
Andrii Kroitor [Thu, 22 Dec 2016 02:10:42 +0000 (11:10 +0900)]
ecore_exe is broken on Windows

Summary:
T4938

diff from @raster
Aaaargh! There is no other way to get code from diff on phab..

Reviewers: vtorri

Subscribers: vtorri, i.furs, cedric, jpeg, raster

Differential Revision: https://phab.enlightenment.org/D4448

7 years agobox: Fix bad floating point comparison
Jean-Philippe Andre [Thu, 22 Dec 2016 01:42:10 +0000 (10:42 +0900)]
box: Fix bad floating point comparison

This led to a completely invalid layout when using the Ui.Box
widget. Clearly the patch hasn't been thought through and tested
properly.

No comment.

Fixes dc022d602d3e7d396137bb6bfb290e70880d89dd

7 years agoedje_cc: Redefine STRDUP with eina
Jean-Philippe Andre [Wed, 21 Dec 2016 09:09:15 +0000 (18:09 +0900)]
edje_cc: Redefine STRDUP with eina

7 years agoedje_pick: include the resources that is only used.
Jaehwan Kim [Thu, 22 Dec 2016 01:16:32 +0000 (10:16 +0900)]
edje_pick: include the resources that is only used.

When it pick any groups, it just includes the resources that is used
in those groups.

7 years agoMerge branch 'devs/bdilly/edje_multiseat_filter'
Bruno Dilly [Thu, 22 Dec 2016 01:04:48 +0000 (23:04 -0200)]
Merge branch 'devs/bdilly/edje_multiseat_filter'

This series add support to filter events per seat
on edje parts.
With the flag allowed_seats the developer may choose which
seats are allowed to input each part.

Also it adds functions to embryo to set/unset focus, since
it's relevant when writting multiseat applications with
dynamic seats (not fixed number of seats). Seats are
optional arguments on such functions.

Reviewed By: iscaro

Differential Revision: https://phab.enlightenment.org/D4499

@feature

7 years agoexamples/edje: add seat filtering example
Bruno Dilly [Fri, 9 Dec 2016 21:50:33 +0000 (19:50 -0200)]
examples/edje: add seat filtering example

4 widgets:
 * seat1 only
 * seat2 only
 * seat1 + seat2
 * any seat

7 years agoedje: support filtering allowed seats per part
Bruno Dilly [Wed, 7 Dec 2016 23:10:34 +0000 (21:10 -0200)]
edje: support filtering allowed seats per part

collections.group.parts.part.allowed_seats keeps a list
of seat names to be used for events filter.

So when evas devices of seat type are added, filters
may be applied for each part.

If no seat is listed, every seat may interact with such
part.

7 years agoedje: clean erroneous documentation
Bruno Dilly [Wed, 14 Dec 2016 05:02:00 +0000 (03:02 -0200)]
edje: clean erroneous documentation

Not implemented functions

7 years agoedje: add function on embryo to control focus
Bruno Dilly [Wed, 14 Dec 2016 04:58:53 +0000 (02:58 -0200)]
edje: add function on embryo to control focus

Add set_focus(part_id) and unset_focus().
Both functions accept an optional argument "seat_name".
If not provided default seat will be assumed.

7 years agoedje: refactor _edje_program_run for FOCUS_SET action
Bruno Dilly [Wed, 14 Dec 2016 04:55:59 +0000 (02:55 -0200)]
edje: refactor _edje_program_run for FOCUS_SET action

Improve code readability and avoid code repetition.

7 years agoeina: try slight improvement of eina tests suite.
Cedric BAIL [Thu, 22 Dec 2016 00:38:16 +0000 (16:38 -0800)]
eina: try slight improvement of eina tests suite.

Still need to go through individual test to improve them.

7 years agoefl: add helper to run tests suite under valgrind.
Cedric BAIL [Thu, 22 Dec 2016 00:24:20 +0000 (16:24 -0800)]
efl: add helper to run tests suite under valgrind.

7 years agoefl: improve help displayed by each tests suite.
Cedric BAIL [Thu, 22 Dec 2016 00:23:44 +0000 (16:23 -0800)]
efl: improve help displayed by each tests suite.

7 years agoeldbus: always run the main loop.
Cedric BAIL [Wed, 21 Dec 2016 19:35:01 +0000 (11:35 -0800)]
eldbus: always run the main loop.

Now that future result are always delayed, we always need to run
the main loop to collect them.

7 years agoecore: we need to process future and promise before the internal start loop.
Cedric BAIL [Wed, 21 Dec 2016 19:33:10 +0000 (11:33 -0800)]
ecore: we need to process future and promise before the internal start loop.

7 years agoevas: don't use float comparison for integers
Chris Michael [Wed, 21 Dec 2016 18:18:02 +0000 (13:18 -0500)]
evas: don't use float comparison for integers

As derek pointed out, 'stride' here is an integer so does not need a
float comparison, so just use a simple integer comparison.

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoeolian: fix doc tests to match generation output
Daniel Kolesa [Wed, 21 Dec 2016 18:01:32 +0000 (19:01 +0100)]
eolian: fix doc tests to match generation output

7 years agoeolian gen: fix enum member reference generation
Daniel Kolesa [Wed, 21 Dec 2016 14:12:58 +0000 (15:12 +0100)]
eolian gen: fix enum member reference generation

7 years agoedje object: fix doc refs for part_external_param_type
Daniel Kolesa [Wed, 21 Dec 2016 14:07:46 +0000 (15:07 +0100)]
edje object: fix doc refs for part_external_param_type

7 years agoedje object: return EDJE_EXTERNAL_PARAM_TYPE_MAX properly
Daniel Kolesa [Wed, 21 Dec 2016 13:41:05 +0000 (14:41 +0100)]
edje object: return EDJE_EXTERNAL_PARAM_TYPE_MAX properly

The getter of part_external_type should return this enum value
on error. Thanks Artem Popov for original fix, which however
involved using an integer value directly instead of the less
error-prone enum (see D4502).

7 years agoRevert "build: enable -Wfloat-equal for compiling"
Stefan Schmidt [Wed, 21 Dec 2016 09:42:34 +0000 (10:42 +0100)]
Revert "build: enable -Wfloat-equal for compiling"

This reverts commit 25792d64165ad4f5f647a36f087af2d2206a6618.

100 patches later the build output is still noisy with all these warnings.
I'm happy to see this warnings added to the default CFLAGS once the current
warnings have been dealt with.

Enable this warning in the local CFLAGS, get the current warnings fixed,
add it to the efl default flags to make the warning prominent for newly added
code.

7 years agoevas gl engine - fix loading of pager backgrounds in e again...
Carsten Haitzler (Rasterman) [Wed, 21 Dec 2016 08:58:38 +0000 (17:58 +0900)]
evas gl engine - fix loading of pager backgrounds in e again...

fixes recent commitby jpeg

7 years agoeina freeq - add ability to set freeval and add a final freeval
Carsten Haitzler (Rasterman) [Wed, 21 Dec 2016 06:37:47 +0000 (15:37 +0900)]
eina freeq - add ability to set freeval and add a final freeval

this allows environment variables to set the byte falue to fill a
freeq item added to the queue and then another item to actually fill
memory with just before the free function so memory content difference
will tell you if its inside the free queue or already freed from it
completely. if you set tyhe freed value to 0 this will not fill with a
value just before free and leave the value as-is determined by the
first fill pattern value.