Carsten Haitzler (Rasterman) [Thu, 8 Sep 2016 06:00:22 +0000 (15:00 +0900)]
efl ui image - fix janky blocking async image preload thread handling
fix the elm image threaded image preload to be far simpler and
actually threadsafe without blocking the mainloop at all even on
object deletion. this also ensures ar least the first 512M of any
async precached file are loaded in so the preload doesnt stall on
headers that are outside maybe the first 4k of the file. i saw this
happening all over the place in the test i created.
@optimize
Carsten Haitzler (Rasterman) [Thu, 8 Sep 2016 02:16:14 +0000 (11:16 +0900)]
epp - document that fallthrough is intended
Jean Guyomarc'h [Thu, 8 Sep 2016 05:49:20 +0000 (07:49 +0200)]
ecore_cocoa: fix build warning
Jee-Yong Um [Thu, 8 Sep 2016 01:59:54 +0000 (10:59 +0900)]
edje_cc: remove after programs lookup when removing program
Summary:
When removing program, program lookups for its after programs
should be removed.
@fix
Reviewers: cedric, jpeg, Hermet
Reviewed By: Hermet
Subscribers: taxi2se
Differential Revision: https://phab.enlightenment.org/D4286
Ji-Youn Park [Thu, 8 Sep 2016 01:26:30 +0000 (09:56 +0830)]
evas_render: fix clipping the whole area in each rendering.
evas_render should not be going and doing evas_object_clip_set () at all.
The framespace clip should be enforced at RENDER time.
Al Poole [Wed, 7 Sep 2016 23:41:59 +0000 (16:41 -0700)]
eio: fix kevent monitor to not SIGBUS.
Cedric BAIL [Wed, 7 Sep 2016 18:42:29 +0000 (11:42 -0700)]
elementary: fix call to efl_data_scope_get from another thread.
This should fix the breakage on elm_suite.
Cedric BAIL [Wed, 7 Sep 2016 18:28:24 +0000 (11:28 -0700)]
autotools: time to turn on systemd integration by default on Linux.
Carsten Haitzler (Rasterman) [Wed, 7 Sep 2016 15:05:25 +0000 (00:05 +0900)]
eo_compatible - improve usability of err/warnings by duplication impl
Carsten Haitzler (Rasterman) [Wed, 7 Sep 2016 14:55:36 +0000 (23:55 +0900)]
eodomain related docs - update as per some of gustavo's comments
Carsten Haitzler (Rasterman) [Wed, 7 Sep 2016 14:25:28 +0000 (23:25 +0900)]
eo - fix indenting in a file that was nuts and non-standard
Carsten Haitzler (Rasterman) [Wed, 7 Sep 2016 14:13:11 +0000 (23:13 +0900)]
eo - add single global mutex for all shared eo objects to they are th-safe
this adds a signle mutex (recursive) mutex for all eo objects that is
auto-called by _efl_object_call_resolve() and _efl_object_call_end()
that wrap all eo method calls and since its recursive it can be
blindly called for sub-calls. this will lock all shared objects during
any call to any shared object so only the thread calling now has
access until it releases. not fine-grained but good enough and the
best we can do "simplistically".
Carsten Haitzler (Rasterman) [Wed, 7 Sep 2016 14:12:02 +0000 (23:12 +0900)]
eina - add recursive mutex lock - apparently these are portable
new feature - recursive lock. same as normal lock just with recursive
attr set
@feature
Chris Michael [Wed, 7 Sep 2016 12:35:30 +0000 (08:35 -0400)]
Revert "evas: Remove set but not used variable"
This reverts commit
24c5df29b3b7fb8ae857959ba53a066a69409eaa.
This should not have been pushed. Removed the variable from the wrong
spot :(
Chris Michael [Wed, 7 Sep 2016 12:31:39 +0000 (08:31 -0400)]
evas: Remove set but not used variable
Gcc warns eo_child is set but not used here, so remove it.
NB: This should have been removed in previous evas_events commit. Oopise
Signed-off-by: Chris Michael <cp.michael@samsung.com>
Chris Michael [Wed, 7 Sep 2016 12:28:08 +0000 (08:28 -0400)]
evas: Remove set but unused variables
Gcc reports that these variables are set but not used, so remove them
Signed-off-by: Chris Michael <cp.michael@samsung.com>
Chris Michael [Wed, 7 Sep 2016 12:21:09 +0000 (08:21 -0400)]
evas: Remove set but unused variables
Gcc warns that these variables are 'set but not used'. After reading
the surrounding code, it turns out they are not actually used, so
remove them.
Signed-off-by: Chris Michael <cp.michael@samsung.com>
Andrii Kroitor [Wed, 7 Sep 2016 12:16:47 +0000 (15:16 +0300)]
edje_cc: fix group inherit
Summary: item spread property was not copied.
Reviewers: NikaWhite, Hermet, raster, cedric
Subscribers: jpeg, reutskiy.v.v
Differential Revision: https://phab.enlightenment.org/D4285
Carsten Haitzler (Rasterman) [Wed, 7 Sep 2016 11:52:50 +0000 (20:52 +0900)]
eo resolv call cache - make TLS with __thread, linker+compiler do it
this will now fix the call cache to be a tls data member and thus
threadsafe. this is the sanest way.
Carsten Haitzler (Rasterman) [Wed, 7 Sep 2016 08:53:33 +0000 (17:53 +0900)]
eo - make eo id table TLS private data for thread safety and speed
This moved all the eoid tables, eoid lookup caches, generation count
information ad eo_isa cache into a TLS segment of memory that is
thread private. There is also a shared domain for EO objects that all
threads can access, but it has an added cost of a lock. This means
objects accessed outside the thread they were created in cannot be
accessed by another thread unless they are adopted in temporarily, or
create4d with the shared domain active at the time of creation. child
objects will use their parent object domain if created with a parent
object passed in. If you were accessing EO (EFL) objects across threads
before then this will actually now cause your code to fail as it was
invalid before to do this as no actual objects were threadsafe in EFL,
so this will force things to "fail early".
ecore_thread_main_loop_begin() and end() still work as this uses the
eo domain adoption features to temporarily adopt a domain during this
section and then return it when done.
This returns speed back to eo brining the overhead in my tests of
lookup for the elm genlist autobounce test in elementary from about
5-7% down to 2.5-2.6%. A steep drop.
This does not mean everything is perfect. Still to do are:
1. Tests in the test suite
2. Some API's to help for sending objects from thread to thread
3. Make the eo call cache TLS data to make it also safe
4. Look at other locks in eo and probably move them to TLS data
5. Make eo resolve and call wrappers that call the real method func do
recursive mutex wrapping of the given object IF it is a shared object
to provide threadsafety transparently for shared objects (but adding
some overhead as a result)
6. Test test est, and that is why this commit is going in now for wider
testing
7. Decide how to make this work with sending IPC (between threads)
8. Deciding what makes an object sendable (a sendable property in base?)
9. Deciding what makes an object shareable (a sharable property in base?)
Jaehwan Kim [Wed, 7 Sep 2016 05:01:51 +0000 (14:01 +0900)]
edje: add missed break in the switch construction.
Amitesh Singh [Wed, 7 Sep 2016 04:18:39 +0000 (09:48 +0530)]
eeze: remove trailing whitespaces
Youngbok Shin [Tue, 6 Sep 2016 22:00:53 +0000 (15:00 -0700)]
elementary label: use text width when label calculates duration for slide
Summary:
When developers customize theme for making different type of sliding label,
it would be better to send a duration based on whole text.
[The whole text width - label object's w] is only useful for short, bounce
type sliding.
Test Plan: N/A
Reviewers: raster, tasn, herdsman, cedric
Reviewed By: cedric
Subscribers: minkyu, akanad, z-wony, Blackmole, jpeg
Differential Revision: https://phab.enlightenment.org/D4255
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
Andrii Kroitor [Tue, 6 Sep 2016 21:59:39 +0000 (14:59 -0700)]
eina: fix error reporting in cond_timedwait
Summary: EINA_FALSE was set into wrong variable.
Reviewers: jpeg, raster, Hermet, cedric
Reviewed By: cedric
Subscribers: NikaWhite
Differential Revision: https://phab.enlightenment.org/D4282
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
Amitesh Singh [Tue, 6 Sep 2016 15:12:26 +0000 (20:42 +0530)]
eeze: add support of GPIO sysfs detection and watch.
This adds support for detection and watch of GPIO pins in /sys/class/gpio/*
This detects both gpiochip<N> & gpio<N>.
@feature
Carsten Haitzler (Rasterman) [Tue, 6 Sep 2016 13:12:23 +0000 (22:12 +0900)]
eo base - fix free of all callbacks to set callbacks to NULL
we set count to 0 but not ptr to NULL. this we must do after free so
when other destructors run dont go relying on this ptr to be valid!
Tom Hacohen [Tue, 6 Sep 2016 12:57:55 +0000 (13:57 +0100)]
Eo benchmarks: Fix according to recent Eo changes.
Thanks to Stefan for the report.
Stefan Schmidt [Tue, 6 Sep 2016 12:48:31 +0000 (14:48 +0200)]
eo: update documentation after EFL_CLASS_DESCRIPTION_OPS removal
Remove the references to this removed macro.
Jean-Philippe Andre [Tue, 6 Sep 2016 08:48:13 +0000 (17:48 +0900)]
Efl.File: Remove method eject
Unused anywhere.
Jean-Philippe Andre [Mon, 5 Sep 2016 04:53:00 +0000 (13:53 +0900)]
evas: Implement support for external buffers
This brings support for the eo api for external buffers (like
the old data_set / data_get). The new API now works with slices
and planes.
The internal code still relies on the old cs.data array for
YUV color conversion. This makes the code a little bit too
complex to my taste.
Tested with expedite for RGBA and YUV 422 601 planar, both
SW and GL engines (x11).
Jean-Philippe Andre [Fri, 2 Sep 2016 08:55:33 +0000 (17:55 +0900)]
evas: Change internal function image_data_direct
Jean-Philippe Andre [Fri, 2 Sep 2016 08:41:36 +0000 (17:41 +0900)]
evas: Implement plane support for managed buffers
Jean-Philippe Andre [Thu, 1 Sep 2016 12:46:42 +0000 (21:46 +0900)]
evas: Switch EO APIs to Eina_Slice for gfx buffers (map)
This adds a plane and eina slice argument to the map/unmap
functions, instead of void_ptr + length.
Jean-Philippe Andre [Thu, 1 Sep 2016 12:04:37 +0000 (21:04 +0900)]
evas: Internally switch to Eina_Slice for buffers
This will be used for the gfx buffer map/unmap eo apis.
Jean-Philippe Andre [Thu, 1 Sep 2016 09:34:10 +0000 (18:34 +0900)]
evas events: Add "raw" x,y values for future extensions
For pen tablets, this exposes the values as given by the driver
(quite useless without knowledge of the device itself).
For mice, this exposes x,y as set by the display manager, without
any extra processing in terms of smoothing or prediction. IOW
this returns the same as x,y until a smoothing algorithm is
implemented (todo).
Hermet Park [Tue, 6 Sep 2016 07:52:56 +0000 (16:52 +0900)]
evas canvas: add missing brackets.
Hermet Park [Tue, 6 Sep 2016 07:45:23 +0000 (16:45 +0900)]
evas canvas: fix a wrong condition check in smart changed.
There were 2 wrong conditions.
1. visible check.
Smart changed can be skipped only if previous/current visibility are false.
2. clipper.
Actually, it needed to check previous/current clippers but previously,
it checked only previous clippers.
@fix
Andrii Kroitor [Tue, 6 Sep 2016 07:36:59 +0000 (16:36 +0900)]
ecore_con_url_curl.h: add missing include on windows
Summary: windows has its own sockets implementation
Reviewers: raster, bowonryu, vtorri, Hermet
Reviewed By: Hermet
Subscribers: cedric, jpeg
Differential Revision: https://phab.enlightenment.org/D4279
Woochan Lee [Tue, 6 Sep 2016 07:20:14 +0000 (16:20 +0900)]
elm_calendar: Add enum to mark display every day before event day.
Summary:
There was no way to add marks on every day before event day.
The user may want to add mark something on every day before today.
(passed mark or disable etc...)
Test Plan:
Run elementary_test
Calling "elm_calendar_mark_add()" with ELM_CALENDAR_REVERSE_DAILY value.
Reviewers: cedric, Hermet
Subscribers: cedric, jpeg
Differential Revision: https://phab.enlightenment.org/D4276
Tom Hacohen [Mon, 5 Sep 2016 16:51:07 +0000 (17:51 +0100)]
Eo array callback: Fix compilation on windows.
I knew Windows doesn't allow statically initialising pointers in the
global namespace, I had no idea it also applies to functions. That's
quite annoying.
Thanks to Cedric for reporting.
Tom Hacohen [Mon, 5 Sep 2016 15:57:35 +0000 (16:57 +0100)]
Rename efl_self to efl_added
It has been discussed on the ML (thread: "[RFC] rename efl_self") and
IRC, and has been decided we should rename it to this in order to avoid
confusion with the already established meaning of self which is very
similar to what we were using it for, but didn't have complete overlap.
Kudos to Marcel Hollerbach for initiating the discussion and
fighting for it until he convinced a significant mass. :)
This commit breaks API, and depending on compiler potentially ABI.
@feature
Tom Hacohen [Mon, 5 Sep 2016 15:45:37 +0000 (16:45 +0100)]
Efl object: Fix outdated docs.
Tom Hacohen [Mon, 5 Sep 2016 15:25:34 +0000 (16:25 +0100)]
Eo array callback: simplify code and fix reliance on gcc extensions.
As far as I remember, declaring structures and arrays in a cast is a GCC
extension. I'm not 100% sure I'm right, but I remember it was the case.
Regardless of whether it's an extension or not, this commit removes that
pattern and makes everything cleaner (and faster?).
Tom Hacohen [Mon, 5 Sep 2016 15:22:33 +0000 (16:22 +0100)]
Efl object: rename shadowing variable.
Tom Hacohen [Mon, 5 Sep 2016 15:00:23 +0000 (16:00 +0100)]
Efl object: change the way we set class's functions. (merge)
Merge the changes to the way we et the class's functions.
More information is available in the main commit of the change:
75f5d7947339296c9ed925c24cbea0ec6d3cc287
Breaks API and ABI!
Tom Hacohen [Mon, 5 Sep 2016 11:31:55 +0000 (12:31 +0100)]
Adjust the EFL to the Eo class_initilizer changes.
Tom Hacohen [Wed, 24 Aug 2016 14:59:28 +0000 (15:59 +0100)]
Efl object: change the way we set class's functions.
This is another follow up to the investigations of T4227. As stated
there, in any PIE (a shared library is one), structures, even const ones
end up being written to because of dynamic relocation. This means that
using static const structures has actually lead to no savings, only
waste. Since we never really needed them, using them made things even
worse than just having a different API that doesn't save them.
Thus, this commit changes the way we set the functions. Instead of
passing a pre-populated struct, we now just have an initialiser function
where you set the functions. This on its own doesn't significantly reduce
the amount of dirty memory pages for a reason I have yet to uncover,
though I believe it's done as a misguided compiler optimisation.
However, this design is flexible enough so we can change to another one
that is quite ugly, but I have already tested and proven that does that.
This patch series doesn't include the better improvement (passing
everything on the stack as va_args) because the API was too ugly
for me to bear, and I would rather first make sure there is no way to
force the compiler to do the right thing here.
Unfortunately this commit gives up on useless stricter validation.
Before this commit we would make sure that we are only overriding
functions correctly defined in our hierarchy. With this one, we don't
anymore. This is not a big problem though because this is a check that
is also enforced by Eolian. So as long as you are using Eolian, you
should be fine.
Breaks API and ABI!
@feature
Tom Hacohen [Thu, 1 Sep 2016 13:34:55 +0000 (14:34 +0100)]
Efl object: rename EFL_OBJECT_OVERRIDE_OPS_DEFINE.
It is now called EFL_OPS_DEFINE as it's used for general purpose ops
definition.
Tom Hacohen [Mon, 5 Sep 2016 14:59:19 +0000 (15:59 +0100)]
Eolian: Fix tests according to recent generator changes.
Daniel Kolesa [Wed, 24 Aug 2016 16:43:38 +0000 (17:43 +0100)]
eolian: update generation of op funcs
Tom Hacohen [Mon, 5 Sep 2016 14:25:14 +0000 (15:25 +0100)]
Efl object: Simplify test that was unneededly prone to breaking
Gustavo Sverzut Barbieri [Sat, 3 Sep 2016 22:57:43 +0000 (19:57 -0300)]
efl_net_server_fd: fix coverity issue.
fixes CID 1361945, minor but let's do it :-)
Daniel Hirt [Mon, 5 Sep 2016 11:25:19 +0000 (14:25 +0300)]
Edje entry: fix selection start with shift + mouse_down
Fixes T3043.
Starting a selection should be possible with shift + mouse_down. No need to
check the "have_selection" flag.
@fix
Stefan Schmidt [Mon, 5 Sep 2016 09:21:54 +0000 (11:21 +0200)]
tests: ecore: add some debug for ecore timer test case
This tests fails on Jenkins from time to time. The timeout is to big. Adding
some debug here top see how far we are off when this happens.
Stefan Schmidt [Mon, 5 Sep 2016 08:39:24 +0000 (10:39 +0200)]
cxx: follow EINA_ERROR_OUT_OF_MEMORY deprecation
Follow the rest of efl and use ENOMEM from now on. This avoids ugly deprecation
warnings.
Jean Guyomarc'h [Sat, 3 Sep 2016 14:25:17 +0000 (16:25 +0200)]
ecore_audio: fix distribution of eolian files
When a 'make dist' is executed on a repository that does not have
CoreAudio support, eolian files required for CoreAudio compilation will
not be distributed, making the source distribution incompatible where
CoreAudio is required.
There is the same potential issue for pulseaudio, but as it is a basic
requirement, it is likely to always have been distributed because the
distribution was always created from a base which enabled pulseaudio.
This allows to produce on Linux a sources tarball usable on Mac OS X.
@fix
Marcel Hollerbach [Sun, 4 Sep 2016 11:11:14 +0000 (13:11 +0200)]
edje: protect against no file set yet.
Summary:
There can be the case that the file of a edje is NULL. Even if this case
is a bit strange, we should not crash on it.
Sample code which produces the crash:
Edje_Object *edje;
int r, g, b, a;
edje = edje_object_add(evas);
edje_obj_color_class_get(edje, "bla",
EDJE_COLOR_CLASS_MODE_COLOR, &r, &g, &b, &a);
So better protect against this case.
Reviewers: raster, herdsman
Subscribers: cedric, jpeg
Differential Revision: https://phab.enlightenment.org/D4277
Felipe Magno de Almeida [Sat, 3 Sep 2016 22:50:41 +0000 (19:50 -0300)]
elementary-cxx: Speed C++ compilation test
Remove unnecessary linking libraries from test so
linking becomes fast
Cedric Bail [Fri, 2 Sep 2016 16:59:09 +0000 (09:59 -0700)]
eo: protect efl_isa from thread race condition.
Cedric BAIL [Thu, 1 Sep 2016 00:15:35 +0000 (17:15 -0700)]
eo: store registered callbacks in an array instead of a single chained list.
Cedric BAIL [Wed, 31 Aug 2016 21:12:02 +0000 (14:12 -0700)]
eo: improve speed of walking callback array by sorting them during creation.
This improve speed of processing events in genlist scrolling benchmark by 30%
inside the efl_object_event_callback_call code. Not a really big deal as it
goes from 0.9% to 0.6% of the total time spend. Welcome to micro optimization.
Gustavo Sverzut Barbieri [Tue, 30 Aug 2016 03:28:00 +0000 (00:28 -0300)]
efl_net_dialer_websocket: EFL now does WebSocket!
The Efl.Net.Dialer.Websocket is just like other Efl.Net.Dialers: you
can dial, you can close, monitor connected/address resolved and so
on. And you can use WebSocket primitives and events such as
text_send(), binary_send(), ping() and close_request() (since
WebSockets use a close process where you should state a close
reason). See efl_net_dialer_websocket_example.c
Even if WebSocket is a message-based protocol (like "packets" from
UDP), you can use efl_net_dialer_websocket_streaming_mode_set() to
tell it to handle text or binary messages as a stream. Then all the
Efl.Io.Reader and Efl.Io.Writer APIs work as expected, see
efl_io_copier_example.c updates.
Gustavo Sverzut Barbieri [Thu, 1 Sep 2016 17:21:55 +0000 (14:21 -0300)]
efl_net_dialer_http: use CURLOPT_NOSIGNAL.
EFL uses its own signal handlers, so we must disable CURL's usage of
those.
Gustavo Sverzut Barbieri [Thu, 1 Sep 2016 15:18:40 +0000 (12:18 -0300)]
efl_net_dialer_http: fix interaction with CURL on receiving data.
When CURLOPT_WRITEFUNCTION returns less then the requested amount,
CURL will fail, not call us back with the remaining data.
Then in such cases we must pause CURL and read nothing.
When unpausing we need to kick curl with timeout action so FD handlers
will be re-arranged.
Last but not least, sync our buffer limit with CURL, otherwise it may
always fail if we're smaller than CURL.
Gustavo Sverzut Barbieri [Wed, 31 Aug 2016 13:19:04 +0000 (10:19 -0300)]
efl_net_dialer_http: allow delete/close from CURL callbacks.
CURL doesn't play nice if handles are deleted or modified while it's
dispatching the callbacks, then we must not touch the CURL* easy
handle in those cases, just dissociate the handle from object and
schedule a job to do the deletion later.
Also, since from CURL callbacks we do not have the reference to the
object, if they are deleted from inside the callback, users of 'pd'
will crash. Thus keep an extra reference while the object and its
private data are in use.
The curl_multi_info_read() is used to notify of errors and
end-of-stream, if we do callback directly from there, the user may
efl_del(dialer), which will result in the "pd->easy" being destroyed
with curl_easy_cleanup() then "cm" and "cm->multi" being destroyed.
Thus postpone that action and keep a list of finished objects, calling
their event handlers which can delete the object (or siblings), thus
ref before dispatching and unref afterwards, taking care to monitor
EFL_EVENT_DEL so we do not use stale objects.
Gustavo Sverzut Barbieri [Wed, 31 Aug 2016 14:54:27 +0000 (11:54 -0300)]
efl_io_copier: keep extra ref when calling back from job.
while in a job we do not have the safety of eo holding us alive and
when we call back the user, he may have deleted the object, releasing
both the object and its private data that we're using.
then keep an extra reference, call the methods and release it.
Michaël Bouchaud (yoz) [Fri, 2 Sep 2016 00:25:30 +0000 (02:25 +0200)]
Elm: add missing @since into the doc about last added api to elm_progressbar.
Michaël Bouchaud (yoz) [Thu, 1 Sep 2016 23:58:27 +0000 (01:58 +0200)]
elementary: Introduce a new edje_external param to the progressbar widget.
This widget was lacking an edje_external param to notify the widget to start or
stop pulsing from edje.
@fix Now the edje_external progressbar test works as expected.
Andy Williams [Thu, 1 Sep 2016 22:15:34 +0000 (23:15 +0100)]
Elm: Dont insert errors by default in code
Instead insert the line if the gutter is clicked.
And provide a tooltip!
Andy Williams [Thu, 1 Sep 2016 22:14:11 +0000 (23:14 +0100)]
elm: Use the background highlight colors from our website in Elm_Code
Andy Williams [Thu, 1 Sep 2016 20:43:57 +0000 (21:43 +0100)]
Elm: Dont'd display a ghost 0 width line marker for elm_code.
Avoiding a ghost line when we have no width marker configured
Andy Williams [Thu, 1 Sep 2016 20:41:57 +0000 (21:41 +0100)]
Elm: Fix crashes with copy/paste of large code
Various fixes to the memory management of multiline strings
Jiwon Kim [Thu, 1 Sep 2016 17:08:11 +0000 (19:08 +0200)]
efl_net: check definition 'SO_REUSEPORT' for port reuse flag
Summary:
The port reuse feature and 'SO_REUSEPORT' flag are not supported by a few linux
In case of linux kernel, it supported from v 3.9
(https://kernelnewbies.org/Linux_3.9)
On the lower version of kernel, compile is failed
Reviewers: barbieri, jayji
Reviewed By: jayji
Subscribers: akanad, id213sin, cedric, jpeg
Differential Revision: https://phab.enlightenment.org/D4256
Minkyu Kang [Thu, 1 Sep 2016 11:20:53 +0000 (20:20 +0900)]
elm_genlist: apply the item_select_on_focus_disable feature on key_action_move
Summary:
Previously, focused item was always selected on first and last key action.
If item_select_on_focus_disable is true, item should not be selected.
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
Signed-off-by: jinwoo.shin <jw0227.shin@samsung.com>
Test Plan: elementary_test -to genlist
Reviewers: cedric, SanghyeonLee, Hermet
Reviewed By: Hermet
Subscribers: sju27, seoz, jpeg
Differential Revision: https://phab.enlightenment.org/D4272
Jee-Yong Um [Thu, 1 Sep 2016 11:08:55 +0000 (20:08 +0900)]
edje_cc: add lookup for inherited after program
Summary:
"after" program inherited from inherit_only group does not have original
program lookup, but _edje_program_copy() doesn't consider this case.
When it fails to copy program lookup, new program lookup should be appeded.
@fix
Test Plan: make attached program and run
Reviewers: cedric, jpeg, Hermet
Reviewed By: Hermet
Subscribers: taxi2se
Differential Revision: https://phab.enlightenment.org/D4253
Jee-Yong Um [Thu, 1 Sep 2016 11:04:48 +0000 (20:04 +0900)]
eina_matrix: add missing "*" for doxygen
Summary:
"/**" requires for doxygen, but one "*" is omitted for the reference
of eina_matrix3_multiply().
Reviewers: Hermet
Reviewed By: Hermet
Subscribers: cedric, jpeg
Differential Revision: https://phab.enlightenment.org/D4266
Carsten Haitzler (Rasterman) [Thu, 1 Sep 2016 09:54:42 +0000 (18:54 +0900)]
eo - make eoid table access threadsafe - was missing a lock around it
this now makes at least eoid deref and ojbect access safe across
threads. the downside is that oeid lookup goes from 2% to ~5% of cpu.
ugh.
Jean-Philippe Andre [Wed, 31 Aug 2016 06:41:12 +0000 (15:41 +0900)]
win: Add EO API to query state of multi touch points
This combines evas canvas functions to list and query
touch points into a single iterator:
- evas_touch_point_list_count
- evas_touch_point_list_nth_xy_get
- evas_touch_point_list_nth_id_get
- evas_touch_point_list_nth_state_get
This also fixes a number of issues related to feeding fake
input events.
Note: I wanted to add delta x,y information as well but it's
in fact not really possible outside the event callback itself,
as the previous x,y position will not be updated unless there's
an event.
@feature
Jean-Philippe Andre [Wed, 31 Aug 2016 05:24:14 +0000 (14:24 +0900)]
win: Move pointer "xy" and "inside" to input interface
Those two properties aren't related to a "drawing" canvas
but to the current state of input.
Note: both Efl.Input.Pointer (pointer input event data) and
Efl.Input.Interface (common interface for input handling objects)
expose a pointer position API. Not sure what to do about that.
Jean-Philippe Andre [Wed, 31 Aug 2016 04:35:15 +0000 (13:35 +0900)]
evas events: Fix axis input values
This adds support for distance, pressure, tilt and twist.
Not entirely sure if normalized & raw (x,y) should be exposed
in the eo interface. Also not sure what to do with tilt_x/y
(as used by libinput) or touch/tool width "major/minor" vs.
radius x/y.
Add debug logs in the example, including the distance.
I can't test most of these values due to a lack of compatible
hardware, but the most basic features seem to work :)
Jean-Philippe Andre [Thu, 1 Sep 2016 02:17:08 +0000 (11:17 +0900)]
evas: Fix unlikely crash with image cache
This happened to me when running elm_suite manually, during
elm_shutdown. At this point, cache shouldn't be null, but better
be safe anyway.
Jean-Philippe Andre [Thu, 1 Sep 2016 02:16:12 +0000 (11:16 +0900)]
ecore_poller: Fix unlikely crash if eo data is null
This happened to me when running elm_suite manually.
Jean-Philippe Andre [Wed, 31 Aug 2016 08:08:00 +0000 (17:08 +0900)]
js: Switch to Efl_Event
I haven't tested the compilation... but I guess this can't hurt.
Jean-Philippe Andre [Wed, 31 Aug 2016 08:07:04 +0000 (17:07 +0900)]
cxx: Fix compilation (Efl_Event)
Jee-Yong Um [Thu, 1 Sep 2016 02:33:04 +0000 (11:33 +0900)]
elementary: remove unused SMART_NAME strings
Summary: Smart name strings are not used any more.
Reviewers: Hermet, cedric, jpeg
Differential Revision: https://phab.enlightenment.org/D4261
Jean Guyomarc'h [Tue, 30 Aug 2016 14:12:47 +0000 (16:12 +0200)]
ecore_cocoa: fix wrong key assignment
Daniel Kolesa [Wed, 31 Aug 2016 15:17:25 +0000 (16:17 +0100)]
docs: add editable section writing to writer
Daniel Kolesa [Wed, 31 Aug 2016 15:10:04 +0000 (16:10 +0100)]
docs: hide date/user/link in included editable sections
Daniel Kolesa [Wed, 31 Aug 2016 15:01:53 +0000 (16:01 +0100)]
docs: initial test for user editable sections
Daniel Kolesa [Wed, 31 Aug 2016 14:53:39 +0000 (15:53 +0100)]
docs: allow false root in namespace tables
Daniel Kolesa [Wed, 31 Aug 2016 14:50:31 +0000 (15:50 +0100)]
docs: separate auto/user from root namespace
Daniel Kolesa [Wed, 31 Aug 2016 14:18:10 +0000 (15:18 +0100)]
docs: generate within the docs:efl:auto namespace (for future editable blocks)
Daniel Hirt [Mon, 1 Aug 2016 12:52:18 +0000 (15:52 +0300)]
Canvas text: fix ellipsis RTL handling
First, fixing ellipsis text positions: ellipsis items should be assigned the
text positions of the omitted text (while maintaining the formatting of the
last visual item). In the case where an entire item was rejected, it
will be assigned that item's text position. If an item was split, it will be
assigned the text position of the split portion.
The BiDi reorder code relies on properly-assigned text positions.
Second, fixing ellipsis handling: the width calc was only considering the
ellipsis item's width. However, if the ellipsis is placed as e.g. the first
visual item (such as in RTL cases), its advance value should've be considered,
instead.
Thanks Youngbok Shin for the test case and information.
@fix
Amitesh Singh [Wed, 31 Aug 2016 10:47:52 +0000 (16:17 +0530)]
eina: module - Add macros for adding module informations
Summary:
These macros allow you to define module informations like
author/description/version/license
e.g.
// Use "Name <email id>" or just "Name"
EINA_MODULE_AUTHOR("Enlightenment Community");
// Mention license
EINA_MODULE_LICENSE("GPL v2");
// What your module does
EINA_MODULE_DESCRIPTION("This is what this module does");
// Module version
EINA_MODULE_VERSION("0.1");
Now eina_modinfo can show these informations to users
$ eina_modinfo module.so
version: 0.1
description: Entry test
license: GPLv2
author: Enlightenment Community
@feature
Reviewers: cedric, tasn, raster, jpeg
Subscribers: seoz
Differential Revision: https://phab.enlightenment.org/D4257
Jean-Philippe Andre [Wed, 31 Aug 2016 02:33:20 +0000 (11:33 +0900)]
evas events: Fix repeated calls to mouse callbacks
After my many input events changes, a same object callback
could be called multiple times in a row because both mouse
and multi events were sent. As such, the multi event had no
direct effect (no callback called) but it reset the object's
last event type. This allowed the mouse event callbacks to be
called again.
Note that I haven't tested multi touch yet :(
Very good catch by @bu5hm4n!
Fixes T4462
Fixes T4467
WooHyun Jung [Wed, 31 Aug 2016 00:36:52 +0000 (09:36 +0900)]
elm widget: remove meaningless brackets
Andy Williams [Tue, 30 Aug 2016 22:22:41 +0000 (23:22 +0100)]
elm: Try to use the code highlight color from out website in Elm_Code
Vitor Sousa [Mon, 29 Aug 2016 23:13:22 +0000 (20:13 -0300)]
efl callbacks: update some events calls to no longer trigger legacy callbacks
Mykyta Biliavskyi [Tue, 30 Aug 2016 13:57:33 +0000 (16:57 +0300)]
Edje edit: allocate memory for mempools.
Just added allocations that missed in "edje - reduce another 400k or so
of memory usage (esp hello world)" commit.
Tom Hacohen [Tue, 30 Aug 2016 12:39:37 +0000 (13:39 +0100)]
Evas engine drm: Fix style (and thus compilation warning).
Double parenthesis in ifs, such as "if ((x = 5))" should only be used
iff using assignment inside of conditions (like the example above). This
explicitly conveys the intention to both the compiler and other
programmers and essentially eliminates the class of bugs that result
from accidental assignment when a comparison was intended and vise-versa
in conditions.