Commit Graph

52186 Commits

Author SHA1 Message Date
Daniel Kolesa 3090e9c3ae docs: WIP overridden method/property documentation support in docgen 2017-01-20 17:20:28 +01:00
Daniel Kolesa c2b6fbccbc docs: use new implement based doc API 2017-01-20 15:32:00 +01:00
Daniel Kolesa 8207fd9cc5 docs: remove some duplicate doctree methods 2017-01-20 15:15:50 +01:00
Daniel Kolesa ab7b6815e0 docs: add implement to doctree 2017-01-20 15:10:23 +01:00
Daniel Kolesa 47cebbc1f1 eolian: merge database_fill into parser 2017-01-20 13:43:32 +01:00
Daniel Kolesa 35a3f72d25 eolian: prevent memory leaks in db fill 2017-01-20 12:52:04 +01:00
Daniel Kolesa b178918c26 eolian: simplify database_fill by reducing the number of passes 2017-01-20 12:34:43 +01:00
HyunSeok Cha 3fbf234b32 evas: Fix very unlikely crash in evas render
During a stress test of EFL a seemingly impossible crash happened, where
one of object's cow fields was NULL inside evas_object_was_visible.
Nothing in the code flow can possibly lead to this situation but
it still happened. For information, the object's delete_me flag was 2 in
evas_object_is_active() called from _evas_render_phase1_object_process().
So let's add a small safety check for crash prevention.

Differential Revision: https://phab.enlightenment.org/D4608
2017-01-20 14:11:00 +09:00
Felipe Magno de Almeida 70d947901d Rename Efl.hh to Efl.eo.hh in CLEANFILES
This avoid make clean removing Efl.hh in the tree
2017-01-19 22:48:59 -02:00
Derek Foreman 0669ca31ff wayland: Try not to draw into surfaces without roles
xdg v6 will barf if we attach a buffer to the surface before
we receive a configure - even if we attach before trying to
make a shell surface.

So we need to prevent any drawing into surfaces until we've
decided what kind of surface they'll ultimately be.

Fix T5090
2017-01-19 15:25:17 -06:00
Daniel Kolesa 5411dba596 eolian: add implement validation (currently for docs) 2017-01-19 15:09:07 +01:00
Daniel Kolesa 95181f2d36 eolian: move base function doc API into implements
This allows us to unify retrieval of docs for both regular and
overridden funcs without having two separate APIs. It's currently
missing validation and docgen is still not adjusted properly for
it either, but at least there's this. Enables retrieval of docs
for overridden funcs by default as well.
2017-01-19 15:09:07 +01:00
Al Poole 67bbb685d4 gstreamer buffer unref emotion: too many urefs! Seems I read the documention incorrectly!!!
Reviewers: raster, jpeg, cedric

Reviewed By: raster

Differential Revision: https://phab.enlightenment.org/D4572
2017-01-19 19:16:21 +09:00
Mykyta Biliavskyi 66af7d1928 edje_cc: delete unused image sets from edj file.
Delete Edje_Image_Directory_Set instance from edj file in case if image
set isn't used inside any part. This commit apply behaviour from unused
images to the unused image sets.

@fix T5109
2017-01-19 09:54:53 +02:00
Felipe Magno de Almeida 891376f42a eolian-cxx: Add all cases in switch to remove warning 2017-01-18 23:07:46 -02:00
Felipe Magno de Almeida 679bbc5cab eolian-cxx: Do not call eolian_function_scope_get with EOLIAN_PROPERTY 2017-01-18 23:06:51 -02:00
Felipe Magno de Almeida a1f2db255b cxx: Modify how to generate C++ headers and allow cyclic dependencies
Allow cyclic dependencies in generated C++ headers by changing order
of includes and creating forward declarations.
2017-01-18 22:47:04 -02:00
Felipe Magno de Almeida 7f148feea8 eolian-cxx: Added cyclic compilation test 2017-01-18 22:46:26 -02:00
Derek Foreman 55243fba7d build: Fix wayland scanner related breakage
Oops, autoconf noob at work.
2017-01-18 17:48:08 -06:00
Derek Foreman 05124250c5 ecore_imf/wayland: Auto generate wayland text-input protocol
Needed to do some fairly invasive changes because naming conventions
changed since we checked in the header.

Also, since I'm done converting protocol, change the gitignore to
use wildcards for wayland protocol.

This fixes a long standing bug in text-input binding and restores
previous OSK behaviour.
2017-01-18 13:21:01 -06:00
Derek Foreman f162f47297 ecore_wl2: Auto generate www protocol
Needed to copy the protocol file from Enlightenment.
2017-01-18 13:04:48 -06:00
Derek Foreman 2aa8b5acad ecore_wl2: Auto generate teamwork protocol
The name was non-standard and we didn't have the xml in tree,
xml has been copied from Enlightenment.
2017-01-18 13:04:48 -06:00
Derek Foreman 5b25ff3281 ecore_wl2: Auto generate xdg v6 protocol
Mostly trivial, needed to update private header as we'd used a
non-standard name for our generated copy.
2017-01-18 13:04:47 -06:00
Derek Foreman 50883f7a6f ecore_wl2: Auto generate xdg v5 protocol
Remove our generated copies, also rename the XDG_VERSION macro
so it's not quite so confusing now that we support v5 and v6.
2017-01-18 13:04:47 -06:00
Derek Foreman dc84374d45 ecore_wl2: Remove private copy of subsurface protocol
This became core wayland functionality a long time ago, and we
now depend on wayland new enough to have it, so we should never
need the stale copy we had in tree.
2017-01-18 13:04:47 -06:00
Derek Foreman 163a7bb76c ecore_wl2: Auto generate dmabuf protocol
Remove the server protocol file as we don't need it here.

Generally a trivial change as we have a recent version in tree with
no weird changes.
2017-01-18 13:04:47 -06:00
Derek Foreman 26ec54c169 ecore_wl2: Auto generate session-recovery protocol
Check in the latest session-recovery xml and remove the checked
in generated files.
2017-01-18 13:04:47 -06:00
Derek Foreman 553751cb40 build: Add rules to auto-generate wayland headers from protocol xml
We've been checking in protocol headers and implementations that
wayland-scanner generates.  We should just generate them from the upstream
xml files.
2017-01-18 13:04:47 -06:00
Derek Foreman 76066f2d9f build: Disable automake compatibility warnings
We require GNU make, so stop complaining when autoconf does things
that require GNU make.
2017-01-18 13:04:47 -06:00
Chris Michael c126ce2e70 ecore-drm2: Add API function to set output rotation
This patch adds a new API function that can be called from
Enlightenment wl_drm module to enable output rotation.

NB: Only works if Atomic support is enabled as it rotates the hardware
plane directly...and we don't support planes without Atomic enabled.

@feature

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2017-01-18 11:29:14 -05:00
Chris Michael ca194584d5 ecore-drm2: Add API function to return supported rotations of an output
Small patch to add an API function which can be used to return the
supported rotations of a given output. This is used inside the
Enlightenment wl_drm module to determine if rotations is supported on
an output.

@feature

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2017-01-18 10:38:01 -05:00
Chris Michael f32268ad1b ecore-drm2: Expose Ecore_Drm2_Rotation enum
As we will need these values when doing rotation checks inside wl_drm
module (for randr rotation support), let's move them out of the
private header and expose them in Ecore_Drm2.h

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2017-01-18 10:06:20 -05:00
Chris Michael 7c829d1669 ecore-drm2: Minor formatting fix
NB: No functional changes, just formatting

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2017-01-18 10:05:13 -05:00
Chris Michael 639ad420aa ecore-drm2: Add API to determine if a device prefers shadow buffers
Small patch to add a new API function that can be called to determine
if a given drm device prefers the use of shadow buffers. This API
will be used later to provide some optimizations on various platforms.

NB: Requested by Derek

@feature

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2017-01-18 09:48:01 -05:00
Daniel Kolesa 5f8172a589 eolian: add syntax for overridding docs in implements 2017-01-18 15:33:44 +01:00
Chris Michael 2e0dc2a1f9 ecore-wl2: Add function to get touch device
When we are sending input events, if we have no pointer device then we
should be setting ev->dev to a touch device (as touch events are
treated as pointer events inside EFL).

NB: This allows EFL clients to get touch events in Enlightenment.
There are still some small hiccups here (can't close terminology by
pressing the 'x' in the corner, cannot scroll elm_test srollbar, etc).

Likely EFL needs to change wrt all this...perhaps adding events for
touch that are separate from pointer ?...

ref T5094

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2017-01-17 12:31:01 -05:00
Chris Michael 2af4858e2a elput: Return touch coordinates when we have no pointer
If a user calls elput_input_pointer_xy_get (as is done via
ecore_evas_drm) and a pointer does not exist, we never return any
coordinates for this function.

Enlightenment is using ecore_evas_pointer_xy_get (which when using the
drm ee, ends up calling elput_input_pointer_xy_get). If we have no
pointer device, then no coordinates are ever returned and touch
clicking does not function properly.

To fix that we will check if a touch device exists and supply the
coordinates from that (in the case where there is no pointer device).

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2017-01-17 11:36:50 -05:00
Vitalii Vorobiov bbdfe393e4 Edje_Edit: add forgotten API for map.zoom.x/y 2017-01-17 16:30:45 +02:00
Vyacheslav Reutskiy ba4370f8df evil: include "sys/types.h" where is define off_t 2017-01-17 14:54:09 +02:00
Andrii Kroitor b909f913ed edje_edit: add Efl.File.mmap.set implementation for edje_edit
This fixes edje_edit_program_source_get for mmaped edje_edit object
@fix
2017-01-17 13:42:36 +02:00
Jean-Philippe Andre caf3b95a6d elm_test: Make the animated filter a bit prettier
This is a basic example of fire text.

The gif was generated with a GIMP script from
http://fence-post.deviantart.com/art/GIMP-Animated-Fire-Script-84921148
2017-01-17 14:35:31 +09:00
Daniel Hirt 099c1f2d83 Ui text: fix size evaluation for default setup
Now the size evaluation will query for the native size of the
canvas.text object, and continue with calculations to set the min size
of itself.
This fixes a bug in containers where the widget's size wasn't picked up.

Also, the canvas.text object wasn't reporting 'changed' on text changes.

Signed-off-by: Jean-Philippe Andre <jp.andre@samsung.com>
2017-01-17 14:35:30 +09:00
Jean-Philippe Andre 1b881704db evas: Fix classic text styles with filters in textblock
Textblock filters support RGBA input which means legacy styles
can be used in conjunction with filtering. Not recommended, but
it works. Note: We may decide to drop this behaviour and use
alpha-only inputs for simplicity.

Still missing: support for filtering strikethrough, underline, or
embedded items
2017-01-17 14:35:30 +09:00
Jean-Philippe Andre 277ca9c0fc elm_test: Add a filter to the code entry
Just because I can. It's the filter code editor after all, deserves
a filter of its own. Plus, it tests that we can embed a filter
in the default style, and edit text with a filter and everything
works as expected. Yay!
2017-01-17 14:35:30 +09:00
Jean-Philippe Andre f616b3ee15 evas: Fix crash with invalid input in textblock 2017-01-17 14:35:30 +09:00
Jean-Philippe Andre 28fafbb1f4 evas: Redraw tb filters if source changed
Filters can have sources like image proxy, and should trigger
a redraw in case the source has changed. Since we cache the
filter's output, we need to first check whether the sources
have changed before reusing a previous output buffer.
2017-01-17 14:35:30 +09:00
Jean-Philippe Andre f6caf73eaa elm_test: Search bar enter key activates test on exact match
Just type "entry" and hit the enter key.
2017-01-17 14:35:30 +09:00
Jean-Philippe Andre 6b07c2554a evas: Fix textblock filters with large items
If the line height is different from the text item height (eg.
because there are large embedded items) then we need to add
an extra offset to the draw commands.

Note: items themselves are not filtered (yet, at least).
2017-01-17 14:35:30 +09:00
Jean-Philippe Andre 3a98d0ea88 evas: Drop unused buffer from textblock filters
This is a first step before implementing some form of caching of
those output buffers. At the moment, it very aggressively deletes
any buffer that falls outside the clip of the textblock object.
Note that this is better in terms of memory usage but way worse
in terms of render performance (eg. scrolling). If a textblock
is a proxy source then we keep all the buffers (the entire object
is to be rendered).

+ fix a crash
2017-01-17 14:35:29 +09:00
Jean-Philippe Andre 59bda411b9 evas: Fix unsafe code in previous patches (tb filters)
This also reduces the overhead required per text item when there
is no filter.
2017-01-17 14:35:29 +09:00