platform/upstream/efl.git
8 years agoevas image updates - reduce overhead with bordered images not scaled
Carsten Haitzler (Rasterman) [Wed, 20 Jul 2016 04:13:41 +0000 (13:13 +0900)]
evas image updates - reduce overhead with bordered images not scaled

this fixes over-rendering (where we render the whole image) if it has
a border set. do proper region updates if the image has a border but
is not scaled and the fill is at 0 0 and sams size as the object etc.
etc. so this is simple and doable.

this fixes T4123

8 years agoevas objkect image - make opaque rect getting code more readable
Carsten Haitzler (Rasterman) [Wed, 20 Jul 2016 02:34:01 +0000 (11:34 +0900)]
evas objkect image - make opaque rect getting code more readable

this just makes it more obvious where its handling the opaque middle
fill case.  see T4123 - i was just reding the code and this seemingly
does the right thing.

8 years agoignore generated shaders .x file
Carsten Haitzler (Rasterman) [Wed, 20 Jul 2016 01:43:09 +0000 (10:43 +0900)]
ignore generated shaders .x file

8 years agoedje: fix ambient color
perepelits.m [Wed, 20 Jul 2016 01:42:21 +0000 (10:42 +0900)]
edje: fix ambient color

Summary: change specular color to ambient int the function of ambient color

Reviewers: cedric, raster, Hermet

Subscribers: jpeg, artem.popov

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

8 years agoelm_win: handle elm,action,menu signal for wl clients
Mike Blumenkrantz [Tue, 19 Jul 2016 18:14:23 +0000 (14:14 -0400)]
elm_win: handle elm,action,menu signal for wl clients

trigger the xdg-shell method for this when the signal is received

fix T3460

8 years agotheme: copy border icon click -> elm,action,signal program
Mike Blumenkrantz [Tue, 19 Jul 2016 18:13:05 +0000 (14:13 -0400)]
theme: copy border icon click -> elm,action,signal program

8 years agoelm_win: simplify opaque region updating during fullscreening
Mike Blumenkrantz [Tue, 19 Jul 2016 17:11:30 +0000 (13:11 -0400)]
elm_win: simplify opaque region updating during fullscreening

already handled during _elm_win_frame_del

8 years agoelm_win: update opaque region when frame is deleted
Mike Blumenkrantz [Tue, 19 Jul 2016 17:07:00 +0000 (13:07 -0400)]
elm_win: update opaque region when frame is deleted

fix T4092

8 years agoconfig: increase base image cache to fit two 4K background in.
Cedric Bail [Tue, 19 Jul 2016 16:59:09 +0000 (09:59 -0700)]
config: increase base image cache to fit two 4K background in.

This is not ideal, as it would be more accurate to dynamically set
the cache to be a function of the number of screens and their size.

8 years agoelementary: as screen get bigger, we need more cache to store uncompressed image.
Cedric Bail [Tue, 19 Jul 2016 16:51:13 +0000 (09:51 -0700)]
elementary: as screen get bigger, we need more cache to store uncompressed image.

8 years agoedje_pick: copy dependent group
Vyacheslav Reutskiy [Tue, 19 Jul 2016 15:25:52 +0000 (18:25 +0300)]
edje_pick: copy dependent group

Parts can use enother groups as source, for example textblock. If source
groups does not exist - group is not valid. This patch extend the group
copy process and copy dependend group too.

@fix

8 years agoelua: enable module lookups in apps location
Daniel Kolesa [Tue, 19 Jul 2016 15:19:42 +0000 (16:19 +0100)]
elua: enable module lookups in apps location

This will allow for better organization of the docgen script.

8 years agoecore_wl2: dnd: fix leak of event resource when not used
Stefan Schmidt [Tue, 19 Jul 2016 12:52:28 +0000 (14:52 +0200)]
ecore_wl2: dnd: fix leak of event resource when not used

In the else branch the allocated event is never used. Make sure we free the
resource before returning.

CID: 1357753

8 years agoRevert "elementary: Fix issue of toggling border state causing visual jumps"
Chris Michael [Tue, 19 Jul 2016 12:09:44 +0000 (08:09 -0400)]
Revert "elementary: Fix issue of toggling border state causing visual jumps"

This reverts commit fb24955782b9242beb9447ebb6631b2b63921988.

While this patch did fix the issue of toggling window Borderless state
in EFl-Wl client applications, it is "Enlightenment's" stance that it
will not change to match this fix, so this has to be reverted else
internal E dialogs show up with no border (due to them using SSD).

This is going to re-open T4092 sadly :( and now leave that bug with no
possible fix.

ref T4092

Fixes T4126

Signed-off-by: Chris Michael <cp.michael@samsung.com>
8 years agoUi text: remove unused variables
Daniel Hirt [Tue, 19 Jul 2016 11:34:55 +0000 (11:34 +0000)]
Ui text: remove unused variables

8 years agoevas: Fix call to NULL object
Jean-Philippe Andre [Tue, 19 Jul 2016 10:13:45 +0000 (19:13 +0900)]
evas: Fix call to NULL object

8 years agotextblock: Prevent crash in evas_object_textblock_cursor_new(NULL)
Jean-Philippe Andre [Tue, 19 Jul 2016 09:32:16 +0000 (18:32 +0900)]
textblock: Prevent crash in evas_object_textblock_cursor_new(NULL)

This happened in expedite

8 years agotests: Add ifdef clang to avoid warning on GCC and elsewhere
Jean-Philippe Andre [Tue, 19 Jul 2016 08:41:37 +0000 (17:41 +0900)]
tests: Add ifdef clang to avoid warning on GCC and elsewhere

Avoids warning about unsupported pragma

8 years agoeo: Change eo_override to avoid struct passing and GCC construct
Jean-Philippe Andre [Tue, 19 Jul 2016 08:21:36 +0000 (17:21 +0900)]
eo: Change eo_override to avoid struct passing and GCC construct

This is a (minor) API & ABI break in Eo.h!

I say minor as eo_override shouldn't be used yet (EO is unstable
and this patch includes all the use cases in EFL).

I'm not very happy about the new form of the macro, but it avoids
two things:
- passing in a struct (valid in C, but never used in EFL)
- using a GCC construct to create structs on the fly

It was inspired by the event array define, but I don't think
we need the runtime memcpy here.

See also:
https://gcc.gnu.org/onlinedocs/gcc/Compound-Literals.html

8 years agodrm2: Fix shadow variable
Jean-Philippe Andre [Tue, 19 Jul 2016 08:05:56 +0000 (17:05 +0900)]
drm2: Fix shadow variable

int ret is not even needed here.

8 years agoedje lang set - fix coverity harmless complaint
Carsten Haitzler (Rasterman) [Tue, 19 Jul 2016 07:41:06 +0000 (16:41 +0900)]
edje lang set - fix coverity harmless complaint

fix CID 1357755

8 years agoefl: Add support for efl_event_flags() to hold events
Jean-Philippe Andre [Tue, 19 Jul 2016 07:09:14 +0000 (16:09 +0900)]
efl: Add support for efl_event_flags() to hold events

This fixes the following ERR message:
ERR<30400>:eo /home/jpeg/e/core/efl/src/lib/eo/eo.c:462 _eo_call_resolve()
 in ../src/lib/evas/canvas/efl_event_input.eo.c:3: func 'efl_event_flags_get'
 (1483) could not be resolved for class 'Efl_Event_Hold'.

This is an EO-API only fix.

8 years agoefl: Hold event (EO API) should implement instance_get
Jean-Philippe Andre [Tue, 19 Jul 2016 06:29:56 +0000 (15:29 +0900)]
efl: Hold event (EO API) should implement instance_get

This fixes the following ERR:

ERR<23969>:eo /home/jpeg/e/core/efl/src/lib/eo/eo.c:462
  _eo_call_resolve() in ../src/lib/efl/interfaces/efl_event.eo.c:5:
  func 'efl_event_instance_get' (1479) could not be resolved for class 'Efl_Event_Hold'.

8 years agoevas - on shutdown avoid potential invalid memory access
Carsten Haitzler (Rasterman) [Tue, 19 Jul 2016 06:42:10 +0000 (15:42 +0900)]
evas - on shutdown avoid potential invalid memory access

i don't know for sure if this fixes T4103 but in theory i think it
might given a reading of the backtrace and a guess at what might
happen, so try this fix. it doesn't hurt and can only help.

@fix

8 years agoeina rbtree iterator - fix leak found while debugging other problems
Carsten Haitzler (Rasterman) [Tue, 19 Jul 2016 06:40:16 +0000 (15:40 +0900)]
eina rbtree iterator - fix leak found while debugging other problems

there was a leak of elements on  the itrator stack when the stack was
flushed still having some items on it, thus losing their pointers and
never freeing them.

@fix

8 years agoevas: Add a textblock to the image proxy example
Jean-Philippe Andre [Tue, 19 Jul 2016 05:37:49 +0000 (14:37 +0900)]
evas: Add a textblock to the image proxy example

This is to show that proxies can proxy more than just other
images, and also this was done to test D4159 (alternatively
changed into the previous commit).

8 years agoevas: Avoid proxy subrender if size is 0
Jean-Philippe Andre [Tue, 19 Jul 2016 05:36:41 +0000 (14:36 +0900)]
evas: Avoid proxy subrender if size is 0

See also D4159. This is an alternative to the proposed patch.

Fixes T3949 (I hope!)

8 years agorelease: Update NEWS and bump version for 1.18.0-alpha1 release
Stefan Schmidt [Mon, 18 Jul 2016 18:50:38 +0000 (20:50 +0200)]
release: Update NEWS and bump version for 1.18.0-alpha1 release

8 years agoecore_con: fix lookup of libcurl on OpenBSD.
Al Poole [Mon, 18 Jul 2016 18:22:28 +0000 (11:22 -0700)]
ecore_con: fix lookup of libcurl on OpenBSD.

@fix T4130

Signed-off-by: Cedric Bail <cedric@osg.samsung.com>
8 years agoedje: fix definition of viewport in edje-3d
perepelits.m [Mon, 18 Jul 2016 17:42:55 +0000 (10:42 -0700)]
edje: fix definition of viewport in edje-3d

We now use eo_do() and EFL_CANVAS_SCENE3D_CLASS macro to create viewport

Reviewers: raster, Hermet, cedric

Subscribers: jpeg, artem.popov

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

Signed-off-by: Cedric Bail <cedric@osg.samsung.com>
8 years agodocs: generate a keyword list for use by codelink plugin
Daniel Kolesa [Mon, 18 Jul 2016 14:33:56 +0000 (15:33 +0100)]
docs: generate a keyword list for use by codelink plugin

8 years agotests: eina_cxx: make sure simple.eo gets disted in all cases
Stefan Schmidt [Mon, 18 Jul 2016 13:28:03 +0000 (15:28 +0200)]
tests: eina_cxx: make sure simple.eo gets disted in all cases

If we turn on release mode simple.eo did not land in the tarball as it was
behind the EFL_ENABLE_TESTS condition. We now dist it in all cases.

8 years agowin: Set window alpha when changing theme
Jean-Philippe Andre [Mon, 18 Jul 2016 09:09:32 +0000 (18:09 +0900)]
win: Set window alpha when changing theme

This sets the window alpha back to 0 when switching from a theme
with alpha to one without. Thanks @bu5hm4n for asking about this.

8 years agotests: Show use of eo_override for custom layout
Jean-Philippe Andre [Mon, 18 Jul 2016 09:00:26 +0000 (18:00 +0900)]
tests: Show use of eo_override for custom layout

This requires the previous fix in eo to actually work.

8 years agoeo: Fix leak in eo_override and allow NULL to reset
Jean-Philippe Andre [Mon, 18 Jul 2016 08:44:51 +0000 (17:44 +0900)]
eo: Fix leak in eo_override and allow NULL to reset

eo_override would leak the vtable if called multiple times, this
fixes that. Also, it is now possible to revert back to the original
class' vtable by passing in { NULL, 0 }

I believe it is thus possible to incrementally override more
functions on an object. Absolutely not recommended, but should work.
But it is not possible to selectively revert back to the original
class implementation on a single method. Use eo_super for that,
or revert back the entire object overrides.

PS: Is it normal that we pass in a struct? We never do that in EFL...

8 years agoEvas GL: Use [u]int64_t directly in all APIs
Jean-Philippe Andre [Mon, 18 Jul 2016 06:09:19 +0000 (15:09 +0900)]
Evas GL: Use [u]int64_t directly in all APIs

This removes the need for khronos_[u]int64_t as well as the special
typdef EvasGL[u]int64.

Hopefully this should work on all platforms (note: [u]int64_t is
used in Eina APIs, so it is already required for EFL apps).

Fixes T3200

8 years agoevas: Also fix was_opaque for rect & image
Jean-Philippe Andre [Mon, 18 Jul 2016 04:53:33 +0000 (13:53 +0900)]
evas: Also fix was_opaque for rect & image

I believe the function is not used, so it doesn't really
matter.

8 years agoevas: Some more opacity check fixes
Jean-Philippe Andre [Mon, 18 Jul 2016 04:37:15 +0000 (13:37 +0900)]
evas: Some more opacity check fixes

This should fix T3309

Snapshot objects are image objects, so the function is_opaque
exists. No need to bypass it. Also, alpha rectangles are not
opaque. Assume that anything with a filter is not opaque.

All of this fixes T3309 but the main point was on snapshot
objects (probably because the only point of a snapshot is
to apply a filter on it).

8 years agoevas: Fix cutout regions with transparent images
Jean-Philippe Andre [Fri, 15 Jul 2016 09:41:12 +0000 (18:41 +0900)]
evas: Fix cutout regions with transparent images

This should fix rendering issues with E theme and
transparent borders.

Fixes T3309

8 years agowin: Set proper flag when EDC specifies win "alpha"
Jean-Philippe Andre [Fri, 15 Jul 2016 09:39:13 +0000 (18:39 +0900)]
win: Set proper flag when EDC specifies win "alpha"

8 years agoelementary: only call ecore_wl2 if wayland is enabled
Marcel Hollerbach [Sat, 16 Jul 2016 11:17:39 +0000 (13:17 +0200)]
elementary: only call ecore_wl2 if wayland is enabled

fix T4125

8 years agoeio: handle failure due to lack of access right.
Cedric Bail [Sat, 16 Jul 2016 00:04:21 +0000 (17:04 -0700)]
eio: handle failure due to lack of access right.

8 years agoeio: make it possible to force fallback monitor for testing purpose.
Cedric Bail [Sat, 16 Jul 2016 00:03:53 +0000 (17:03 -0700)]
eio: make it possible to force fallback monitor for testing purpose.

8 years agoeio: avoid access after death of eio handler due to inotify triggering IN_IGNORED...
Cedric Bail [Sat, 16 Jul 2016 00:02:03 +0000 (17:02 -0700)]
eio: avoid access after death of eio handler due to inotify triggering IN_IGNORED event.

8 years agoeio: cleanup thread pointer on thread finish.
Cedric Bail [Sat, 16 Jul 2016 00:00:33 +0000 (17:00 -0700)]
eio: cleanup thread pointer on thread finish.

8 years agoelocation: properly generate pkgconfig file.
Cedric Bail [Fri, 15 Jul 2016 21:01:22 +0000 (14:01 -0700)]
elocation: properly generate pkgconfig file.

@fix T4120

8 years agoelementary: Fix issue of toggling border state causing visual jumps
Chris Michael [Fri, 15 Jul 2016 19:30:48 +0000 (15:30 -0400)]
elementary: Fix issue of toggling border state causing visual jumps

This commit partially fixes a phab ticket where toggling window border
state (elm_test -to "Window States") would cause the frame to be
destroyed thus making the window contents appear to jump around

ref T4092

NB: I call this a 'partial' fix because while it does fix the issue of
efl client apps, there is still some breakage in Enlightenment that
needs investigating.

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
8 years agoecore_drm2: Allow enabling outputs in drm events
Derek Foreman [Fri, 15 Jul 2016 17:01:31 +0000 (12:01 -0500)]
ecore_drm2: Allow enabling outputs in drm events

Previously a drm event could create a new output or disconnect an output,
but could not re-enable an existing output.

This results in failure to properly wake from screen blanker.

8 years agoedje: add required attribute in Edje_Part
Jee-Yong Um [Fri, 15 Jul 2016 07:34:34 +0000 (16:34 +0900)]
edje: add required attribute in Edje_Part

Summary:
When using EDC written by another person, developer usually
does not need to know all specified parts in EDC but editable
like swallow, text or textblock parts.
The required flag tells whether the part is intended to be used outside EDC.

Reviewers: jpeg, cedric, raster, Hermet

Reviewed By: jpeg, raster

Subscribers: raster, NikaWhite, kimcinoo, jpeg

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

8 years agoecore_drm2: Try to mmap gbm buffers
Derek Foreman [Thu, 14 Jul 2016 21:25:05 +0000 (16:25 -0500)]
ecore_drm2: Try to mmap gbm buffers

We're currently doing screenshots in E under wayland by copying data
out of the framebuffer, mmaping gbm buffers makes screenshots work
again when rendering with GL.

8 years agoecore_drm2: Fix page flipping
Derek Foreman [Thu, 14 Jul 2016 20:24:25 +0000 (15:24 -0500)]
ecore_drm2: Fix page flipping

Properly handle the ticker racing ahead of the refresh rate by once again
triple buffering.

Fixes T3819

8 years agoecore_drm2: Don't disable custom ticker if flip fails
Derek Foreman [Thu, 14 Jul 2016 19:35:03 +0000 (14:35 -0500)]
ecore_drm2: Don't disable custom ticker if flip fails

When using a mix of vblank and pageflip events like we're stuck with now
a failed flip is going to happen sooner or later.  We fix this by triple
buffering.  We shouldn't turn off the custom ticker.

8 years agoEvas font: Fix width query for OpenType fonts. (rewrite)
Tom Hacohen [Thu, 14 Jul 2016 16:31:09 +0000 (17:31 +0100)]
Evas font: Fix width query for OpenType fonts. (rewrite)

This is essentially a cleaner redo of ef817f15f0eaec9704ec25d9468c2c8497a5bc13.
Logic should be exactly the same as there, the different is that this
one shares the code between OT and non OT.

Please refer to that commit for more information.

8 years agoRevert "Evas font: fix width query for OT"
Tom Hacohen [Thu, 14 Jul 2016 15:52:01 +0000 (16:52 +0100)]
Revert "Evas font: fix width query for OT"

This was not done correctly. This split the code, which is essentially
the same for both OT and non OT. It's the same logic with some minor
additions for OT, so most of the code should be together.

This reverts commit ef817f15f0eaec9704ec25d9468c2c8497a5bc13.

8 years agodocs: more detailed stats (print intermediate percentages)
Daniel Kolesa [Thu, 14 Jul 2016 15:07:08 +0000 (16:07 +0100)]
docs: more detailed stats (print intermediate percentages)

8 years agodocs: generate separate doc pages for events
Daniel Kolesa [Thu, 14 Jul 2016 14:32:19 +0000 (15:32 +0100)]
docs: generate separate doc pages for events

8 years agoelm_cnp: use defined charset before falling back to default
Marcel Hollerbach [Thu, 14 Jul 2016 11:48:29 +0000 (13:48 +0200)]
elm_cnp: use defined charset before falling back to default

the chance is very high that some glyphs are not fitting into the
default (US-ASCII) so better falling back here on specified utf8.

@ref T3972

8 years agoEvas font: fix width query for OT
Daniel Hirt [Wed, 13 Jul 2016 11:40:36 +0000 (11:40 +0000)]
Evas font: fix width query for OT

Fixes T4068.
Simply querying the last glyph to determine the width of the glyph sequence
won't always work, as OT can have negative offsets (adjusts the placement of a
specific glyph better).

The solution is to calculate the "max width" of some sequence that will
guarantee us proper width results. The worst solution would be to iterate on all
the glyphs and sum up the max width. This is a bit impractical. Instead, we will
inspect just the "cluster" of the last glyph, if one exists.

This should have no performance impact on trivial cases, and very little impact
on the others.

@fix

8 years agoevas generic loaders fix timeout on windows where no alarm exists
Carsten Haitzler (Rasterman) [Thu, 14 Jul 2016 05:23:49 +0000 (14:23 +0900)]
evas generic loaders fix timeout on windows where no alarm exists

this uses a thread - to do the same. based on code vtorri put in T3790

this should fix T3790

8 years agoevas headers - remove duplicate declarations of the same function
Carsten Haitzler (Rasterman) [Thu, 14 Jul 2016 04:28:10 +0000 (13:28 +0900)]
evas headers - remove duplicate declarations of the same function

this should fix T3027

8 years agoelementary tooltip: --printf
Hermet Park [Thu, 14 Jul 2016 03:10:09 +0000 (12:10 +0900)]
elementary tooltip: --printf

8 years agoecore - add more ecore main loop checks that were missing in some places
Carsten Haitzler (Rasterman) [Wed, 13 Jul 2016 23:55:03 +0000 (08:55 +0900)]
ecore - add more ecore main loop checks that were missing in some places

so 1 ecore_exe func was missing a main loop check... just to be sure.

8 years agoeina thread create - use pthread_sigmask as this can be called from thread
Carsten Haitzler (Rasterman) [Wed, 13 Jul 2016 23:32:16 +0000 (08:32 +0900)]
eina thread create - use pthread_sigmask as this can be called from thread

@fix

8 years agoeo: fix tests after renaming.
Cedric BAIL [Wed, 13 Jul 2016 23:17:16 +0000 (16:17 -0700)]
eo: fix tests after renaming.

8 years agoelm_colorselector: selected item is updated when color is changed.
Sungtaek Hong [Wed, 13 Jul 2016 23:06:58 +0000 (16:06 -0700)]
elm_colorselector: selected item is updated when color is changed.

Summary:
 - Previously, mode change, color change updated
   sd->selected, but did not send signals to edje of the item.
 - Also, mode change in colorselector set sd->selected to
   the first item even when palette is visible in previous mode.
 - Now, when mode is changed, sd->selected is set NULL and send
   unselected signal if palette is invisible, and keep sd->selected
   if palette is visible.
 - sd->selected is set NULL when color is changed in picker and
   color bars because previous selected item is not current color of
   colorselector

Test Plan:
1.
    1) launch elementary_test colorselector.
    2)Select any item and check the item is selected when palette is visible.
    3) Change mode to Palette, Both, All, and check selected item is not changed.
    (Previously, selected item is changed to the first item of the palette, but previous item was seen as selected.)

2.
    1) launch elementary_test colorselector.
    2) Select any item and check the item is selected when palette is visible.
    3) Change mode to Components, Picker.
    4) Change mode to Palette, and check none of items is selected.
    (Previously, selected item is changed to the first item of the palette, but previous item was seen as selected.)

3.
    1) launch elementary_test colorselector.
    2) Select any item and check the item is selected when palette is visible.
    3) Change mode to All.
    4) Click arrows in Picker and color bars.
    5) Observe selected item is not unselected when color is not changed, and selected item is unselected when color is changed.
4.
    1) launch elementary_test colorselector.
    2) Select any item and check the item is selected when palette is visible.
    3) Press direction key and check selected item is changed.
    (Previously, selected item's edje is not updated.)

Reviewers: woohyun, Hermet, jpeg, cedric

Subscribers: cedric, jpeg

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

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
8 years agoelementary: switch code accordingly to use new ref version.
Cedric BAIL [Wed, 13 Jul 2016 23:06:30 +0000 (16:06 -0700)]
elementary: switch code accordingly to use new ref version.

8 years agoeo: rationalize naming to follow other use of ref and wref in our API.
Cedric BAIL [Wed, 13 Jul 2016 23:05:58 +0000 (16:05 -0700)]
eo: rationalize naming to follow other use of ref and wref in our API.

8 years agoecore: add test case for tick begin/end.
Cedric BAIL [Wed, 13 Jul 2016 22:31:51 +0000 (15:31 -0700)]
ecore: add test case for tick begin/end.

8 years agoecore: early destruction of animator allow for tick end to always be triggered.
Cedric BAIL [Wed, 13 Jul 2016 22:09:03 +0000 (15:09 -0700)]
ecore: early destruction of animator allow for tick end to always be triggered.

T4043

8 years agoelementary: Make wl frame borders above content
Chris Michael [Wed, 13 Jul 2016 19:13:17 +0000 (15:13 -0400)]
elementary: Make wl frame borders above content

This commit just readds the layer setting code which made the frame
border be above content. This does make sense in some contexts

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
8 years agoevas-wayland-shm: Create buffers with ARGB by default
Chris Michael [Wed, 13 Jul 2016 18:43:49 +0000 (14:43 -0400)]
evas-wayland-shm: Create buffers with ARGB by default

We need to be creating buffers with ARGB by default so that things
like Alpha/Transparency work when toggled. If we always create with
XRGB then toggling Alpha/Transparency state fails.

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
8 years agoecore_wl2: clear out read_data and len
Marcel Hollerbach [Wed, 13 Jul 2016 15:38:05 +0000 (17:38 +0200)]
ecore_wl2: clear out read_data and len

they are passed to the event struct, and later freed in there.

8 years agoethumb: tell the user if the connection to the deamon failed
Marcel Hollerbach [Mon, 11 Jul 2016 20:59:55 +0000 (22:59 +0200)]
ethumb: tell the user if the connection to the deamon failed

otherwise the user just gets no thumbnails, and no error message what
actually happened.

8 years agoelput: Cleanup erroneous errors when trying to get output name
Chris Michael [Wed, 13 Jul 2016 15:40:12 +0000 (11:40 -0400)]
elput: Cleanup erroneous errors when trying to get output name

When we make calls to get an Input device's output name, if the device
does not have an output name it's not actually an error so just return
NULL with less noise

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
8 years agoevas-generic: Fix gcc wanring
Chris Michael [Wed, 13 Jul 2016 14:06:12 +0000 (10:06 -0400)]
evas-generic: Fix gcc wanring

Gcc suggets parens around comparison value. Silence gcc warning.

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
8 years agoevas-generic: Fix gcc warning of incorrect format
Chris Michael [Wed, 13 Jul 2016 14:05:03 +0000 (10:05 -0400)]
evas-generic: Fix gcc warning of incorrect format

Gcc warns us about using %d here when the argument is unsigned long.
Fix format params.

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
8 years agoelementary: Fix issue of minimum resizing in wayland
Chris Michael [Wed, 13 Jul 2016 13:40:22 +0000 (09:40 -0400)]
elementary: Fix issue of minimum resizing in wayland

This patch fixes an issue where if you tried to resize a window to
it's minimum size, the contents of the window would draw outside the
window frame. Basically, when we are setting min/max size hints to the
window object we need to account for framespace.

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
8 years ago[Bug] EFL memory leak on Windows(handler continuously increasing)
Ivan Furs [Wed, 13 Jul 2016 12:01:50 +0000 (21:01 +0900)]
[Bug] EFL memory leak on Windows(handler continuously increasing)

Summary:
Fix: event need to clese  when create event:
  event = WSACreateEvent();

Reviewers: bowonryu, herb, Jaehyun, thiepha, Hermet, jaehwan, cedric, raster

Reviewed By: raster

Subscribers: NikaWhite, reutskiy.v.v, artem.popov

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

8 years agoecore_evas_extn: Check whether server_data sender is client's server.
Minkyoung Kim [Wed, 13 Jul 2016 12:00:07 +0000 (21:00 +0900)]
ecore_evas_extn: Check whether server_data sender is client's server.

Summary:
Sometimes, In ipc_server_data, extn->ipc.server's data is different with e->server's data.

The case is as follows.

Process'A' has a server.
Process'B' has 'A's client(ee address : 0xB0).
Process'B's client die, and 'B's server created. and server's ee address is same with destroyed client's ee(0xB0).
At the same time, 'A's server send the message to 'B's client.
but 'B's client is died! so _ipc_server_data would manipulate 'B's server data.

Test Plan: Tizen Mobile Text.

Reviewers: raster, spacegrapher, jpeg, wonsik, dkdk

Subscribers: cedric

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

8 years agoRevert "edje_cc: Fix minor coverity defect"
Carsten Haitzler (Rasterman) [Wed, 13 Jul 2016 11:54:04 +0000 (20:54 +0900)]
Revert "edje_cc: Fix minor coverity defect"

This reverts commit 0106455588a7390f36bae9ac6d789e94410a5216.

breaks edje_cc.... :( spin 100% cpu building terminology themes

8 years agoelm tooltips - fix positioning and more to be sane and have less bugs
Carsten Haitzler (Rasterman) [Wed, 13 Jul 2016 09:37:21 +0000 (18:37 +0900)]
elm tooltips - fix positioning and more to be sane and have less bugs

the tooltip geometry code was extra complex and iffy with certain
situations. this cleans it up and also fixes the below bug

this fixes T3980

@fix

8 years agoeina_safepointer: Fix coverity warning
Jean-Philippe Andre [Wed, 13 Jul 2016 07:22:00 +0000 (16:22 +0900)]
eina_safepointer: Fix coverity warning

I guess the overflow was badly handled. Fixing it by using
explicit int intermediate value.

Fixes CID 1356616 and 1356619:

Operands don't affect result
Logically dead code

8 years agogfx: Add NULL check to silence coverity
Jean-Philippe Andre [Wed, 13 Jul 2016 07:16:02 +0000 (16:16 +0900)]
gfx: Add NULL check to silence coverity

realloc() can return NULL if size is 0. It's like free().
So, the usage here is correct, and there are probably no
points to interpolate between anyway. I wonder if there
can be commands without points, though.

Fixes CID 1293004

8 years agoedje: Fix coverity warning
Jean-Philippe Andre [Wed, 13 Jul 2016 06:44:58 +0000 (15:44 +0900)]
edje: Fix coverity warning

CID 1355234 Logically dead code

The indicated dead code may have performed some action;
that action will never occur.
In eet_data_descriptor_element_add: Code can never be
reached because of a logical contradiction (CWE-561)

Solution: use explicit range within valid values with <= and >=
rather than excluded values with > and <

8 years agoedje: Add missing 'break' in edje_embryo switch
Jean-Philippe Andre [Wed, 13 Jul 2016 06:33:13 +0000 (15:33 +0900)]
edje: Add missing 'break' in edje_embryo switch

Fixes CID: 1352521 1352522 1352523 1352524 1352525

See 4ed9b8325

8 years agoevas: Fix some CID in generic loaders
Jean-Philippe Andre [Wed, 13 Jul 2016 06:21:06 +0000 (15:21 +0900)]
evas: Fix some CID in generic loaders

Check the return value of fwrite. There is nothing
sensible to do as the receiver needs to handle the error
gracefully.

CID 1356613, 1356614, 1356615, 1356200

8 years agopdf: Tentative implementation of mono support
Jean-Philippe Andre [Wed, 13 Jul 2016 06:04:53 +0000 (15:04 +0900)]
pdf: Tentative implementation of mono support

No idea if it's correct, since I have no sample.
Also, simplify ARGB code.

8 years agopdf: Fix page index and
Jean-Philippe Andre [Wed, 13 Jul 2016 05:40:18 +0000 (14:40 +0900)]
pdf: Fix page index and

The module was not able to load any PDF with a single page (since
the index starts from 0, not 1 as it was assumed).

Also, fix a CID where Coverity was very very right.

Fixes CID 1356608:

The operaton may have an undefined behavior or yield to an
unexpected result.

In poppler_load_image(int, int): A bit shift operation has
a shift amount which is too large or has a negative value.

8 years agoembro_cc: Shut up some coverity warning
Jean-Philippe Andre [Wed, 13 Jul 2016 04:16:34 +0000 (13:16 +0900)]
embro_cc: Shut up some coverity warning

CID 1039677 1039678 1039679

The expression's value does not depend on the operands; often,
this represents an inadvertent logic error.

In doarg: An operation with non-constant operands that
computes a result with constant value (CWE-569)

cell is defined as an int, not a long, so it can't be > INT_MAX.

8 years agoelm test: Shut up coverity warning
Jean-Philippe Andre [Wed, 13 Jul 2016 03:58:43 +0000 (12:58 +0900)]
elm test: Shut up coverity warning

CID 1354839

It was non-sensical as there would be no iterator
if there are no children.

8 years agoelm test: Fix non sense check
Jean-Philippe Andre [Wed, 13 Jul 2016 03:02:20 +0000 (12:02 +0900)]
elm test: Fix non sense check

CID 1353720 1353721

8 years agoedje_cc: Fix minor coverity defect
Jean-Philippe Andre [Wed, 13 Jul 2016 02:57:07 +0000 (11:57 +0900)]
edje_cc: Fix minor coverity defect

CID 1261439

An assigned value that is never used may represent unnecessary computation,
an incorrect algorithm, or possibly the need for cleanup or refactoring.

In source_fetch_file: A value assigned to a variable is never used. (CWE-563)

Tested compilation of a few EDC files with no breakage.

8 years agoedje_pick: Fix use after free
Jean-Philippe Andre [Wed, 13 Jul 2016 02:16:33 +0000 (11:16 +0900)]
edje_pick: Fix use after free

Fixes CID 1267458 (trying again)

8 years agoeo-cxx: Fix C++ use of new _eo_add_end signature
Felipe Magno de Almeida [Tue, 12 Jul 2016 20:28:38 +0000 (17:28 -0300)]
eo-cxx: Fix C++ use of new _eo_add_end signature

8 years agoelementary: Properly swallow wayland clients
Chris Michael [Tue, 12 Jul 2016 13:44:14 +0000 (09:44 -0400)]
elementary: Properly swallow wayland clients

This patch fixes an issue where wayland windows would not swallow
clients properly. Basically, we should be swallowing the elm window
layout directly rather than use a rectangle (as was previous). This
commit also waits until the internal elm theme has been applied to the
sd->edje object before adding the wayland window frame.

This commit has the added benefit of being able to remove an additional
Evas_Object from the internal data structure.

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
8 years agoelementary: Clip window swallow clients
Chris Michael [Tue, 12 Jul 2016 13:43:19 +0000 (09:43 -0400)]
elementary: Clip window swallow clients

This commit sets up a client_clip for the windows client being
swallowed so that during resize, any window contents do not draw
outside the window.

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
8 years agoRevert "efl theme for wayland borders - dont accept events on client swallow"
Chris Michael [Tue, 12 Jul 2016 13:42:23 +0000 (09:42 -0400)]
Revert "efl theme for wayland borders - dont accept events on client swallow"

This reverts commit fdaefdbf9a8f518930b2d5f71372d1c52f8b2ee7. This is
being reverted because the issue of wayland borders not swallowing
clients has now been fixes and thus mouse_events work as expected wrt
client swallow.

8 years agoefl theme for wayland borders - dont accept events on client swallow
Carsten Haitzler (Rasterman) [Tue, 12 Jul 2016 12:04:27 +0000 (21:04 +0900)]
efl theme for wayland borders - dont accept events on client swallow

8 years agodocs: generate more info about events
Daniel Kolesa [Tue, 12 Jul 2016 10:13:15 +0000 (11:13 +0100)]
docs: generate more info about events

8 years agoEo add ref: Fix a bug causing leaks and wrong refcount in some cases.
Tom Hacohen [Tue, 12 Jul 2016 09:34:54 +0000 (10:34 +0100)]
Eo add ref: Fix a bug causing leaks and wrong refcount in some cases.

When using eo_add_ref, it was increasing the refcount before the user
context in the addition has fully ended. This means the object had its
reference increased while still not finalized, which means it was
sometimes passed with an increased refcount to unsuspecting class code.
The correct behaviour is to increase the reference count just before
returning the object to the user at the end of eo_add so the reference
count is only increased for whoever asked for it.

Breaks ABI!

@fix