Jean-Philippe Andre [Tue, 12 Apr 2016 05:11:37 +0000 (14:11 +0900)]
Elm: Compile in box and grid
Ui.Grid is definitely not complete.
Ui.Box still needs a few adjustments:
- alternative layout
- aspect ratio support
- RTL support
- remove evas box
Jean-Philippe Andre [Tue, 12 Apr 2016 05:10:47 +0000 (14:10 +0900)]
Efl.Ui.Grid: Add implementation of a grid/table
This is only a partial implementation, work in progress.
The grid object should be a replacement for evas and elementary's
table and grid. Only the layout of items inside the container
is different, otherwise the API should be the same.
For now, this widget is based on an evas table but the full
layout logic will need to be reimplemented, eventually.
@feature
Jean-Philippe Andre [Tue, 12 Apr 2016 05:10:05 +0000 (14:10 +0900)]
Efl.Ui.Box: Add implementation of a simple box
This should be the only linear packing container.
This replaces: evas box and elm box.
Edje box needs to be kept around for compatibility,
but it stays an EDC object only (for apps).
Lots of things are still to be fleshed out in this
box implementation:
- Simplify smart object / elm widget code
- Maybe stop using evas object box altogether
- Implement other layout strategies
@feature
Jean-Philippe Andre [Tue, 12 Apr 2016 05:08:35 +0000 (14:08 +0900)]
Efl: Add skeletton for new containers "Pack" API
I chose the name "pack" instead of containers because it
is shorter, and allows out-of-the-box short C names like
efl_pack_end() instead of efl_container_pack_end().
All Pack interfaces will use the same efl_pack eo prefix.
This is still work in progress.
@feature
Derek Foreman [Tue, 19 Apr 2016 20:38:58 +0000 (15:38 -0500)]
wayland_shm: Remove debug detritus
Should've been removed before push. Oops.
Derek Foreman [Fri, 15 Apr 2016 17:34:07 +0000 (12:34 -0500)]
wayland_shm: Add dmabuf support
This adds a separate backend to the "shm" engine that allows allocation
of buffers via libdrm that can be turned into dmabuf handles and used
with the wayland dmabuf extension.
Currently only the intel buffer manager is supported.
The benefit of dmabuf buffers is that they don't require a texture upload
like shm buffers do, and when we have plane support they can be dropped
directly into a plane without a memcpy.
Derek Foreman [Tue, 19 Apr 2016 18:42:20 +0000 (13:42 -0500)]
static_libs: Add libdrm headers (for wayland_shm)
wayland_shm's dmabuf implementation needs acess to libdrm headers for
doing GPU specific memory allocations. We search for these libraries
at runtime with dlopen, so we don't need to find them at build time,
however certain struct definitions and defines are still required.
Derek Foreman [Fri, 15 Apr 2016 15:38:28 +0000 (10:38 -0500)]
wayland_shm: Refactor surface creation
Split this into two parts, one that makes the base surface, one that
calls the potential back ends.
Once the dmabuf backend is added this will allow a fallback path to
re-initialize the surface as wl_shm if dmabuf fails.
Derek Foreman [Fri, 15 Apr 2016 15:32:29 +0000 (10:32 -0500)]
wayland_shm: pass engine info to shm_surface_create
Gratuitous change to pass less parameters and make some code prettier.
Derek Foreman [Fri, 15 Apr 2016 15:29:14 +0000 (10:29 -0500)]
wayland_shm: Pull the damage stuff out of evas_shm
This doesn't really care what the buffers were allocated with, so
let's make this chunk of code useful to both the shm method and the
upcoming dmabuf one
Derek Foreman [Wed, 13 Apr 2016 18:58:15 +0000 (13:58 -0500)]
wayland_shm: Minor clean up of _evas_shm_surface_post
Some gratuitous cosmetic fixes
Derek Foreman [Tue, 12 Apr 2016 20:46:52 +0000 (15:46 -0500)]
wayland_shm: Don't pass num_buff to reconfigure
We can't really reconfigure the number of buffers after they're created,
there's nothing above us that would try to do it...
Derek Foreman [Tue, 12 Apr 2016 18:03:37 +0000 (13:03 -0500)]
wayland_shm: Gratuitous code simplification
Refactor evas_outbuf_setup a bit so there's only one call to
_evas_shm_surface_create.
Also makes the NULL return on unhandled rotation a lot more obvious.
Derek Foreman [Tue, 12 Apr 2016 17:39:45 +0000 (12:39 -0500)]
wayland_shm: Pass Evas_Engine_Info_Wayland_Shm directly to setup functions
We pretty much pass all its contents anyway.
Derek Foreman [Mon, 11 Apr 2016 21:10:33 +0000 (16:10 -0500)]
wayland_shm: Add dmabuf to engine info
Get the dmabuf protocol object from ecore_wl2 and store it in engine info
Derek Foreman [Mon, 11 Apr 2016 21:09:12 +0000 (16:09 -0500)]
ecore_wl2: Add API to get dmabuf protocol object
Derek Foreman [Mon, 11 Apr 2016 20:39:09 +0000 (15:39 -0500)]
wayland_shm: Abstract the actual shm operations
Make the Surface carry function pointers and the shm surface create
function set them. This refactor makes implementing dmabuf operations
simpler.
Derek Foreman [Mon, 11 Apr 2016 20:17:13 +0000 (15:17 -0500)]
wayland_shm: Remove outbuf_reconfigure function pointer
We only ever call it from one place, and we only ever initialize it
to one value, so there's no need for a function pointer.
Derek Foreman [Mon, 11 Apr 2016 20:12:29 +0000 (15:12 -0500)]
wayland_shm: Remove unused dx, dy params from resize functions
We don't appear to actually use these for anything except long term storage
Derek Foreman [Mon, 11 Apr 2016 15:35:15 +0000 (10:35 -0500)]
wayland_shm: Drop ifdefs around damage_buffer
We now depend on wayland 1.10.0 so damage_buffer is always going to be
present in the headers - we no longer need ifdef checks.
Derek Foreman [Mon, 11 Apr 2016 15:34:23 +0000 (10:34 -0500)]
build: Bump wayland version dependency
Anything that needed wayland now needs wayland 1.10.0
Derek Foreman [Fri, 8 Apr 2016 20:11:21 +0000 (15:11 -0500)]
wayland_shm: Make new Surface abstraction to wrap Shm_Surface
Wraps the Shm_Surface allocator in a new Surface type that will
potentially use different allocators, such as dmabuf in a future commit.
Derek Foreman [Fri, 8 Apr 2016 20:17:00 +0000 (15:17 -0500)]
ecore_wl2: Bind dmabuf global if available
Bind the dmabuf global so we can make use of it later.
Derek Foreman [Fri, 8 Apr 2016 20:09:37 +0000 (15:09 -0500)]
ecore_wl2: Add generated dmabuf files
This adds the framework for the dmabuf protocol for wayland - the files
are generated with wayland-scanner.
Derek Foreman [Fri, 8 Apr 2016 20:04:33 +0000 (15:04 -0500)]
wayland_shm: Move Shm private structures into evas_shm
Refactor all the shm specific stuff into evas_shm so it can better
co-exist with upcoming dmabuf allocations
Derek Foreman [Fri, 8 Apr 2016 19:51:40 +0000 (14:51 -0500)]
wayland_shm: Remove flags
We only used this for resize, and didn't actually even need it then.
Derek Foreman [Fri, 8 Apr 2016 19:28:56 +0000 (14:28 -0500)]
wayland_shm: Don't use number of buffers in swap mode calculation
The number of allocated buffers shouldn't change a thing...
Derek Foreman [Fri, 8 Apr 2016 18:24:22 +0000 (13:24 -0500)]
wayland_shm: Return buffer age from shm_surface_assign
This makes refactoring the Surface abstraction a little easier.
Cedric BAIL [Tue, 19 Apr 2016 18:56:17 +0000 (11:56 -0700)]
Revert "Set the name for table, box items"
This reverts commit
6f7608befd006f8076d237bee5d17c9e9e1e09ac.
Item in table and box do not need names as they have an index. This
is breaking ABI for edje application that rely on getting the index
properly when a signal is emitted. To be precise, this did break
elemines.
Cedric BAIL [Tue, 19 Apr 2016 18:28:36 +0000 (11:28 -0700)]
eo: fix borkage.
Tom Hacohen [Tue, 19 Apr 2016 16:16:20 +0000 (17:16 +0100)]
Merge strict eolian type checking branch.
In this branch I turned on strict eolian type checking and silenced all
of the errors that came to be because of it (fixed some).
I did it so new code will not introduce new errors. We've had more
errors introduced recently, and I believe it's because of ignorance. No
more excuses, compilation will now fail if you fail to handle types
correctly.
We need to fix my workarounds. Many of the .eo files that I worked
around on need to be removed anyway, and a lot of the rest need a lot of
changes, so there was no point wasting my time into fixing it properly.
Tom Hacohen [Tue, 19 Apr 2016 16:04:33 +0000 (17:04 +0100)]
Eolian: Turn on strict type checking.
Thanks to q66 for the code.
I'm stealing credit here because:
1. I'm lazy.
2. He's lazy and doesn't deserve it.
Tom Hacohen [Tue, 19 Apr 2016 16:02:27 +0000 (17:02 +0100)]
Elm glview: Fix eo type errors.
Tom Hacohen [Tue, 19 Apr 2016 15:59:36 +0000 (16:59 +0100)]
Elm box: Fix eo type errors.
Tom Hacohen [Tue, 19 Apr 2016 15:58:36 +0000 (16:58 +0100)]
Elm web: Fix eo type errors.
Tom Hacohen [Tue, 19 Apr 2016 15:57:22 +0000 (16:57 +0100)]
Elm app server view: Fix eo type errors.
Tom Hacohen [Tue, 19 Apr 2016 15:57:00 +0000 (16:57 +0100)]
Elm slideshow: Fix eo type errors.
Tom Hacohen [Tue, 19 Apr 2016 15:55:52 +0000 (16:55 +0100)]
Elm app client view: Fix eo type errors.
Tom Hacohen [Tue, 19 Apr 2016 15:54:50 +0000 (16:54 +0100)]
Elm app server: Fix eo type errors.
Tom Hacohen [Tue, 19 Apr 2016 15:52:47 +0000 (16:52 +0100)]
Elm gengrid: Fix eo type errors.
Tom Hacohen [Tue, 19 Apr 2016 15:51:36 +0000 (16:51 +0100)]
Elm map: Fix eo type errors.
Tom Hacohen [Tue, 19 Apr 2016 15:50:09 +0000 (16:50 +0100)]
Elm calendar: Fix eo type errors.
Tom Hacohen [Tue, 19 Apr 2016 15:49:32 +0000 (16:49 +0100)]
Elm eo: Make Eina_Compare_Cb accessible to all widgets.
Tom Hacohen [Tue, 19 Apr 2016 15:47:21 +0000 (16:47 +0100)]
Elm sys notify interface: Fix eo type errors.
Tom Hacohen [Tue, 19 Apr 2016 15:46:34 +0000 (16:46 +0100)]
Elm prefs: Fix eo type errors.
Tom Hacohen [Tue, 19 Apr 2016 15:44:33 +0000 (16:44 +0100)]
Elm app client: Fix eo type errors.
Tom Hacohen [Tue, 19 Apr 2016 15:42:19 +0000 (16:42 +0100)]
Eo eina types: Add Eina.Value.
Tom Hacohen [Tue, 19 Apr 2016 15:40:43 +0000 (16:40 +0100)]
Elm multibutton entry: Fix eo type errors.
Tom Hacohen [Tue, 19 Apr 2016 15:39:25 +0000 (16:39 +0100)]
Elm app server: Fix eo type errors.
Tom Hacohen [Tue, 19 Apr 2016 15:37:38 +0000 (16:37 +0100)]
Elm genlist: Fix eo type errors.
Tom Hacohen [Tue, 19 Apr 2016 15:36:54 +0000 (16:36 +0100)]
Elm view list: Fix eo type errors.
Tom Hacohen [Tue, 19 Apr 2016 15:35:33 +0000 (16:35 +0100)]
Elm naviframe item: Fix eo type errors.
Tom Hacohen [Tue, 19 Apr 2016 15:34:11 +0000 (16:34 +0100)]
Elm interface fileselector: Fix eo type errors.
Tom Hacohen [Tue, 19 Apr 2016 15:32:45 +0000 (16:32 +0100)]
Elm slider: Fix eo type errors.
Tom Hacohen [Tue, 19 Apr 2016 15:31:43 +0000 (16:31 +0100)]
Elm toolbar item: Fix eo type errors.
Tom Hacohen [Tue, 19 Apr 2016 15:31:07 +0000 (16:31 +0100)]
Elm systray: Fix eo type errors.
Tom Hacohen [Tue, 19 Apr 2016 15:30:33 +0000 (16:30 +0100)]
Elm toolbar: Fix eo type errors.
Tom Hacohen [Tue, 19 Apr 2016 15:26:42 +0000 (16:26 +0100)]
Elm list: Fix eo type errors.
Tom Hacohen [Tue, 19 Apr 2016 15:25:40 +0000 (16:25 +0100)]
Elm layout: Fix eo type errors.
Tom Hacohen [Tue, 19 Apr 2016 15:23:39 +0000 (16:23 +0100)]
Elm atspi text: Fix eo type errors.
Tom Hacohen [Tue, 19 Apr 2016 15:20:02 +0000 (16:20 +0100)]
Elm atspi widget action: Fix eo type errors.
Tom Hacohen [Tue, 19 Apr 2016 15:18:22 +0000 (16:18 +0100)]
Elm hoversel item: Fix eo type errors.
Tom Hacohen [Tue, 19 Apr 2016 15:17:29 +0000 (16:17 +0100)]
Elm win: Fix eo type errors.
Tom Hacohen [Tue, 19 Apr 2016 15:13:50 +0000 (16:13 +0100)]
Elm check: Fix eo type errors.
Tom Hacohen [Tue, 19 Apr 2016 15:13:21 +0000 (16:13 +0100)]
Elm image: Fix eo type errors.
Tom Hacohen [Tue, 19 Apr 2016 15:12:54 +0000 (16:12 +0100)]
Elm entry: Fix eo type errors.
Tom Hacohen [Tue, 19 Apr 2016 15:10:49 +0000 (16:10 +0100)]
Elm atspi accessible: Fix eo type errors.
Tom Hacohen [Tue, 19 Apr 2016 15:07:55 +0000 (16:07 +0100)]
Elm widget: Fix eo type errors.
Tom Hacohen [Tue, 19 Apr 2016 15:04:53 +0000 (16:04 +0100)]
Elm gesturelayer: Fix eo type errors.
Tom Hacohen [Tue, 19 Apr 2016 15:03:34 +0000 (16:03 +0100)]
Elm photocam: Fix eo type errors.
Tom Hacohen [Tue, 19 Apr 2016 15:00:38 +0000 (16:00 +0100)]
Elm general: Ignore more types (callbacks) in eolian.
Tom Hacohen [Tue, 19 Apr 2016 15:00:21 +0000 (16:00 +0100)]
Elm interface scrollable: Fix eo type errors.
Tom Hacohen [Tue, 19 Apr 2016 15:00:05 +0000 (16:00 +0100)]
Elm widget item: Fix eo type errors.
Tom Hacohen [Tue, 19 Apr 2016 14:50:22 +0000 (15:50 +0100)]
Elm gen item: Add missing eolian type definitions.
Tom Hacohen [Tue, 19 Apr 2016 14:46:50 +0000 (15:46 +0100)]
Elm eo files: Add missing include of efl_types.
Tom Hacohen [Tue, 19 Apr 2016 14:33:05 +0000 (15:33 +0100)]
Eo base: fix parameters to be the correct type.
Eo is not a type Eolian is aware of, the correct type is Eo.Base.
SangHyeon Lee [Tue, 19 Apr 2016 09:41:43 +0000 (18:41 +0900)]
genlist: call update_job after smart_calculation done
Summary :
if item_update happens before the smart calcuate finished,
item can be delayed updated(next frame).
to prevent this issue, if unsolved job is remaining after
smart calc done, call update_job directly and remove job.
@fix
Carsten Haitzler (Rasterman) [Tue, 19 Apr 2016 09:25:15 +0000 (18:25 +0900)]
eo base - add value keys in addition to object and void ptr data keys
eina value would allow any value to be attached to an eo object and
also be freed nicely too. this would allow any generic data to go
there without overloading a void * that us c coders love to abuse.
@feature
Carsten Haitzler (Rasterman) [Tue, 19 Apr 2016 08:40:11 +0000 (17:40 +0900)]
eo base - clean up base data struct formatting
just a cleanup of the struct formatting/spacing
Carsten Haitzler (Rasterman) [Tue, 19 Apr 2016 08:21:21 +0000 (17:21 +0900)]
eo - add object comments - esp useful for erigo and gui builders
also useful for debugging and more. this also makes both name/id and
comment an extension blob of ram so objects dont keep growing
boundlessly in memory usage/size
@feature
Carsten Haitzler (Rasterman) [Tue, 19 Apr 2016 07:34:53 +0000 (16:34 +0900)]
eo - add object names/ids esp useful for erigo as it wants object names
also evas objects have names too, so add this as this was discussed
and now the feature is in. there is nothing to find objects by name
yet. that's more api's and features to add after this.
@feature
Carsten Haitzler (Rasterman) [Tue, 19 Apr 2016 07:33:33 +0000 (16:33 +0900)]
eina value test - gix blob check to check only relevant fields
the value check for blobs was checking unused fields in a union and
thats just bad. check only fields that matter to the blob.
@fix
SangHyeon Lee [Tue, 19 Apr 2016 05:57:41 +0000 (14:57 +0900)]
genlist: recalc item size after item content field updated
Summary :
after item content fields updated, item and block should be
recalculated about it's height because content size can be updated.
if do not recaculate, items can be overlapped.
@fix
Jean-Philippe Andre [Tue, 19 Apr 2016 03:20:30 +0000 (12:20 +0900)]
edje_cc: Fix filters inheritance
This was broken in
c0f887b42965121a0964d3b8a319ca (2015/10/01).
What happened was: ted->filter is not part of tex->text anymore,
so it didn't get copied over from the parent.
Thanks @zmike for the report and pointing out the bad commit.
Fixes T3467.
@fix
Jee-Yong Um [Tue, 19 Apr 2016 04:59:59 +0000 (13:59 +0900)]
genlist: scroll to item when calc is done
Summary:
If elm_genlist_item_bring_in() is called immediately after appending
item, genlist will not scroll to the last one but stop in the middle.
This patch blocks genlist from scrolling to not calculated item.
Test Plan:
1. Uncompress attached file
2. make
3. ./test
Reviewers: cedric, SanghyeonLee
Reviewed By: SanghyeonLee
Subscribers: jpeg
Differential Revision: https://phab.enlightenment.org/D3861
Jee-Yong Um [Mon, 18 Apr 2016 23:33:41 +0000 (16:33 -0700)]
elementary: remove redundant reswallow logic in elm_layout
Summary:
When theme is changed by elm_layout_theme/file_set,
_edje_object_file_set_internal will be called internally
and it updates swallowed objects.
Elm.Layout doesn't need to reswallow its child objects.
(with current code, searching cost for real part occurs.)
Reviewers: cedric, jpeg
Differential Revision: https://phab.enlightenment.org/D3898
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
Andrii Kroitor [Mon, 18 Apr 2016 23:32:26 +0000 (16:32 -0700)]
edje_edit: add missing mempools on group copy
Reviewers: reutskiy.v.v, cedric
Subscribers: cedric, FurryMyad, NikaWhite, jpeg
Differential Revision: https://phab.enlightenment.org/D3899
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
Jee-Yong Um [Mon, 18 Apr 2016 23:17:45 +0000 (16:17 -0700)]
edje: add test for edje_object_part_box_insert_after()
Summary:
This test checks the validity of edje_object_part_box_insert_after().
It depends on D3733.
Reviewers: jpeg, cedric
Differential Revision: https://phab.enlightenment.org/D3833
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
Subhransu Mohanty [Mon, 18 Apr 2016 22:32:36 +0000 (15:32 -0700)]
efl: add new efl_gfx_shape_append_arc() api.
Reviewers: Hermet, cedric
Reviewed By: cedric
Subscribers: cedric, jpeg
Differential Revision: https://phab.enlightenment.org/D3895
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
Cedric BAIL [Mon, 18 Apr 2016 21:43:02 +0000 (14:43 -0700)]
ector: rg_etc is always needed for color conversion.
Cedric BAIL [Mon, 18 Apr 2016 21:41:47 +0000 (14:41 -0700)]
evas: etc code is now always needed for the color conversion logic.
Stefan Schmidt [Mon, 18 Apr 2016 20:05:22 +0000 (22:05 +0200)]
ecore_audio: document ecore_audio core class
Merging some property descriptions and some smaller changes.
Stefan Schmidt [Mon, 18 Apr 2016 20:04:53 +0000 (22:04 +0200)]
ecore_audio: document all ecore_audio_out classes
Stefan Schmidt [Mon, 18 Apr 2016 09:46:06 +0000 (11:46 +0200)]
ecore_audio: document all ecore_audio_in classes
For the properties we really only need to document the property itself and not
its setter and getter functions.
maxerba [Mon, 18 Apr 2016 12:18:00 +0000 (14:18 +0200)]
Fix Makevars and update all pos'
In the elementary tree all translatable messages are enclosed in a E_() macro, and since this macro was undefined in Makevars all massages was not included in catalog.
If some coder think that the E domain is useless, or deprecated or whatever, please remove it and update all source files accordingly.
Daniel Kolesa [Mon, 18 Apr 2016 15:09:21 +0000 (16:09 +0100)]
eolian: fix invalid type_type mapping in lua bindings
Stefan Schmidt [Mon, 18 Apr 2016 12:26:02 +0000 (14:26 +0200)]
elm_photo: make sure we have a separate variable for the sanitized path
That way we can safely free it again after it got memory allocated from
eina_file_path_sanitize(). Fixes a memory leak.
CID: 1353601
Stefan Schmidt [Mon, 18 Apr 2016 11:36:17 +0000 (13:36 +0200)]
elm_atspi_bridge: unref eldbus msg before returning to avoid memory leak
If we goto fail here we still have the ret eldbus message referenced. Make
sure we unref so it can be free'd and we do not leak memory.
CID: 1353603
Stefan Schmidt [Mon, 18 Apr 2016 10:55:05 +0000 (12:55 +0200)]
elm_spinner: free string in all cases before returning
If len < max_len was true here we leaked new_str. Make sure we also free it
in this case.
CID: 1353605
Stefan Schmidt [Mon, 18 Apr 2016 10:36:11 +0000 (12:36 +0200)]
elm_conform: fix memory leak for state variable
Make sure we actually free state here before going out of scope.
CID: 1353606