platform/upstream/efl.git
7 years agoefl vpath - make sure we check returns of mkdir just in case for errors
Carsten Haitzler (Rasterman) [Mon, 8 Aug 2016 07:50:34 +0000 (16:50 +0900)]
efl vpath - make sure we check returns of mkdir just in case for errors

so vpath has a fallback if all things bad go wrong to mkdir a homedir
in /tmp and if that fails use /tmp or use / - if $HOME isnt set ... but
$HOME alwasy should be, so this is only for "a broken system".

this should fix CID 1354286

7 years agoedje entry - handle insanely low lemory if list_append fails
Carsten Haitzler (Rasterman) [Mon, 8 Aug 2016 06:33:18 +0000 (15:33 +0900)]
edje entry - handle insanely low lemory if list_append fails

this fixes coverity CID 1357752

7 years agoelm_need_efret() - improve error handling according to coverity
Carsten Haitzler (Rasterman) [Mon, 8 Aug 2016 06:18:56 +0000 (15:18 +0900)]
elm_need_efret() - improve error handling according to coverity

fix CID 1360466

we don't actually chekc if efreet inits right with elm_need_efreet()
as we just assume it inits (And there pretty much is no case where it
will not), but make coverity happy and check.

@fix

7 years agoemotion modules -0 check return value of eina_module_load and print err
Carsten Haitzler (Rasterman) [Mon, 8 Aug 2016 05:49:35 +0000 (14:49 +0900)]
emotion modules -0 check return value of eina_module_load and print err

this should inform the user via eina log errors that a module load
failed. this fixes CID 1360954

7 years agoevas: Mark native_surface as const
Jean-Philippe Andre [Mon, 8 Aug 2016 06:15:54 +0000 (15:15 +0900)]
evas: Mark native_surface as const

The void* argument should be considered read-only.
This doesn't change anything, really.

7 years agoelm_map: fix wrong check of source search
Sungtaek Hong [Fri, 5 Aug 2016 06:36:41 +0000 (15:36 +0900)]
elm_map: fix wrong check of source search

Summary:
When map source is set by elm_map_source_set(),
it foreaches enlisted sources, and should return
when the source cannot be found.

@fix

Test Plan:
Call elm_map_source_set(map, [any type], [Wrong source name]);
         Observe  ERR("source name (%s) is not found", source_name) message.

Reviewers: Hermet, cedric, jpeg

Reviewed By: jpeg

Subscribers: conr2d

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

7 years agoefl - edje entry - dont emit changed on markup set unless text changed
Carsten Haitzler (Rasterman) [Mon, 8 Aug 2016 05:27:26 +0000 (14:27 +0900)]
efl - edje entry - dont emit changed on markup set unless text changed

if the text didnt actually change we generat a lot of noise in changed
signals for no change at all in text. shortcut this and check the new
and old text and compare ptrs, 0 length and strings etc.

this fixes T4045

@fix

7 years agoevas cserve2 client - treat an invalid size header as fatal
Carsten Haitzler (Rasterman) [Mon, 8 Aug 2016 05:15:02 +0000 (14:15 +0900)]
evas cserve2 client - treat an invalid size header as fatal

this should make coverity CID 1361430 happy

7 years agoecore_cocoa: remove pointless debug message
Jean Guyomarc'h [Sun, 7 Aug 2016 22:12:49 +0000 (00:12 +0200)]
ecore_cocoa: remove pointless debug message

This message was also very annoying because systematically
printed out in the syslog when a cocoa window was closed.

7 years agoEdje_Edit.h: undef EAPI at the end of the header file
Vincent Torri [Sun, 7 Aug 2016 09:40:48 +0000 (11:40 +0200)]
Edje_Edit.h: undef EAPI at the end of the header file

Fixes T4303

7 years agoRevert "elementary: keep theme consistent regarding the disabling of odd/even."
Carsten Haitzler (Rasterman) [Sun, 7 Aug 2016 09:27:33 +0000 (18:27 +0900)]
Revert "elementary: keep theme consistent regarding the disabling of odd/even."
Revert "elementary: disable visual hint at odd/even."

This reverts commit c64071ae132ddc5894d5daad8a874377a176aac5.
This reverts commit 7affe8c2047a41a2945cf6c048d59f28c974aa7a.

This reverds the odd/even theme changes because this BREAKS
ENLIGHTENMENT COMPLETELY. Enlightement also uses odd/even list looks
and REMOVING this REMOVES every 2nd lost item member (it makes them
0x0 sized). This is a major break in actual FUNCTIONALITY in the name
of looks. NO. Revert.

We ship with this look. no more breaking stuff like this in the name
of cosemtics and not ACTUALLY fixing any bug at all. it creates bugs.

7 years agoEvas font: fix size query again
Daniel Hirt [Sun, 7 Aug 2016 08:13:16 +0000 (11:13 +0300)]
Evas font: fix size query again

Some wrong variables were used in the rewrite at
8c6effae8ee027a928bcee79968a0b21d8250487, basically reverting the original fix.

7 years agoedje_cc - fix inheritance of programs and store channel too in copy
Carsten Haitzler (Rasterman) [Sat, 6 Aug 2016 10:10:24 +0000 (19:10 +0900)]
edje_cc - fix inheritance of programs and store channel too in copy

this fixes programs that inherit and play audio on specific channels.
i found that sound worked on single line entries but not multipline
beause single line inherit from multi but didnt copy this program
param - the channel number. this fixes this

@fix

7 years agoelm config - dont rescale ui if no config that needs rescale changed
Carsten Haitzler (Rasterman) [Sat, 6 Aug 2016 09:10:36 +0000 (18:10 +0900)]
elm config - dont rescale ui if no config that needs rescale changed

also finger size, and other thigns that could affect ui look that may
need elm rescale to work.

this fixes T4296

@fix

7 years agoevas cserver client tool - handle possible < 0 sized return
Carsten Haitzler (Rasterman) [Sat, 6 Aug 2016 07:16:19 +0000 (16:16 +0900)]
evas cserver client tool - handle possible < 0 sized return

this is cserver so its trusted but handle possible < 0 size msg.
address coverity CID1361243

7 years agopdf loader - check return for rmdir
Carsten Haitzler (Rasterman) [Sat, 6 Aug 2016 06:59:23 +0000 (15:59 +0900)]
pdf loader - check return for rmdir

fixes CID 1361218

7 years agoeina log - handle possible overflow from high mem (last few bytes) or env
Carsten Haitzler (Rasterman) [Sat, 6 Aug 2016 06:53:18 +0000 (15:53 +0900)]
eina log - handle possible overflow from high mem (last few bytes) or env

fixes CID 1361219
if you had an env var a few gb in size or we had stuff in the last bit
of memory address space this might be an issue, but that won't happen.

@fix

7 years agoeina log - keep coverity happy with potential ptr comparison overflow
Carsten Haitzler (Rasterman) [Sat, 6 Aug 2016 06:50:17 +0000 (15:50 +0900)]
eina log - keep coverity happy with potential ptr comparison overflow

fixes CID 1361220

in theory yes end minus start could be insanely huge or end be very
high in memory thus causing an overflow. this would have to be in the
last few bytes of memory space, so it never going to happen. and the
input from the env var has to be sane anyway as its user controlled.

@fix

7 years agoembryo_cc - fix coverity complaint about assert
Carsten Haitzler (Rasterman) [Sat, 6 Aug 2016 06:41:02 +0000 (15:41 +0900)]
embryo_cc - fix coverity complaint about assert

fix assert using a strance assert syntax and go back to basic asserts.
fix coverity CID 1361224

@fix

7 years agoEio: Update my email address.
Stephen Houston [Sat, 6 Aug 2016 01:33:27 +0000 (20:33 -0500)]
Eio: Update my email address.

7 years agoeina threadqueue - for paranoia lock+ulock+free in order locks taken
Carsten Haitzler (Rasterman) [Sat, 6 Aug 2016 00:51:10 +0000 (09:51 +0900)]
eina threadqueue - for paranoia lock+ulock+free in order locks taken

so mimic order of locks taken to be paranoid ... this wouldnt be a
deadlock issue but just to be safe instead of sorry.

7 years agoedje: mark new edje_mmap_3d_has() API with since tag
Stefan Schmidt [Fri, 5 Aug 2016 20:06:39 +0000 (22:06 +0200)]
edje: mark new edje_mmap_3d_has() API with since tag

7 years agoecore_wl2: mark new events with since tag
Stefan Schmidt [Fri, 5 Aug 2016 20:04:55 +0000 (22:04 +0200)]
ecore_wl2: mark new events with since tag

7 years agoevas: add missing since tag for new evas_object_type_get() API
Stefan Schmidt [Fri, 5 Aug 2016 19:57:52 +0000 (21:57 +0200)]
evas: add missing since tag for new evas_object_type_get() API

7 years agoecore: properly track events in Efl.Loop.Fd object.
Cedric Bail [Fri, 5 Aug 2016 19:14:18 +0000 (12:14 -0700)]
ecore: properly track events in Efl.Loop.Fd object.

Thanks Gustavo.

7 years agoRevert "elementary/layout: attach edje object API with eo compositing"
Cedric Bail [Fri, 5 Aug 2016 17:31:49 +0000 (10:31 -0700)]
Revert "elementary/layout: attach edje object API with eo compositing"

This reverts commit 8a988717e18c4e9e6d4a0752441471a124056878.

It seems we can't actually inherit from class more than once and neither eo
nor eolian will complain about it. You will just get random weird behavior.
This patch should come back once we have made an interface of edje.

7 years agoSimple test case to spot out a bad bug in elm.Entry
Dave Andreoli [Fri, 5 Aug 2016 17:01:39 +0000 (19:01 +0200)]
Simple test case to spot out a bad bug in elm.Entry

The bug is explained in T4296, basically the "changed" signal in elm.Entry is called randomly.

7 years agoeina thread queue - ensure blocks cannot be freed until lock+unlock
Carsten Haitzler (Rasterman) [Fri, 5 Aug 2016 14:51:03 +0000 (23:51 +0900)]
eina thread queue - ensure blocks cannot be freed until lock+unlock

just in case... check blocks cannot be freed until locked and unlocked
just in case someone still is holding a lock.

7 years agoREADME: clarify poppler dependency
Stefan Schmidt [Fri, 5 Aug 2016 13:26:02 +0000 (15:26 +0200)]
README: clarify poppler dependency

We actually need poppler-cpp which is packaged in various ways in different
distros so better give both names here.

7 years agoREADME: update build dependencies and build instructions
Stefan Schmidt [Fri, 5 Aug 2016 10:27:46 +0000 (12:27 +0200)]
README: update build dependencies and build instructions

Remove part where we recommend the now merged loaders and players and update
build dependencies as well as recommended options.

7 years agoecore imf test - remove unused variable
Carsten Haitzler (Rasterman) [Fri, 5 Aug 2016 11:34:42 +0000 (20:34 +0900)]
ecore imf test - remove unused variable

7 years agoecore eina thread queue test - be anal about thread exiting cleanly
Carsten Haitzler (Rasterman) [Fri, 5 Aug 2016 11:20:25 +0000 (20:20 +0900)]
ecore eina thread queue test - be anal about thread exiting cleanly

7 years agoecore-con - fix complaint about null slave list due to shutdown
Carsten Haitzler (Rasterman) [Fri, 5 Aug 2016 10:41:59 +0000 (19:41 +0900)]
ecore-con - fix complaint about null slave list due to shutdown

so ecore-con already cleared the slaves list on shutdown but an
ecore_thread may stillbe active and thus removing from a NULL slaves
list wont work, so skip if slaves is NULL.

@fix

7 years agoeina lock semaphores - do not use shared semaphores and fix osx names
Carsten Haitzler (Rasterman) [Fri, 5 Aug 2016 09:11:42 +0000 (18:11 +0900)]
eina lock semaphores - do not use shared semaphores and fix osx names

the way eina does sempahores, they can NEVER be sensibly shared
cross-process portably. so enabling sharing is a pointless idea. in
fact some os's like openbsd check if the sempahore addres is in a
sharable mem region and deny init if it is not. on osx you dont use
shared memory but a sempahore name you share instead... and this is
not exposed thus it can't be shared either. if we did process sharable
semaphores we'd make shm segments and/or name them in a sharable way
were you can share the idenitifer of the shm segment and/or the offset
address or name from osx. but we don't, so making them
process-private is the right thing. sharable sempahores will need a
whole new api.

this also fixes osx naming to make the name pretty unguessable/private
and opened exclusive (or it fails) by using pid, sem counter, and 4
random numbers. it's not a security mechanism as the create will fail
if there is a clash. chances are low. we unlink before anyway. good
enough for osx for now.

@fix

7 years agoeina thread queue/semaphores - check even more unlikely errors + complain
Carsten Haitzler (Rasterman) [Fri, 5 Aug 2016 08:38:02 +0000 (17:38 +0900)]
eina thread queue/semaphores - check even more unlikely errors + complain

check some really unlikely alloc errors and semaphore deadlock errors
and report if that has happened. just in case.

7 years agoeina thread queue - check returns fo semaphore new/lock/release to debug
Carsten Haitzler (Rasterman) [Fri, 5 Aug 2016 08:08:25 +0000 (17:08 +0900)]
eina thread queue - check returns fo semaphore new/lock/release to debug

so openbsd may have issues with semaphores - maybe. this would catch
them if it it. why - if sem_init/sem_wait are different... i dont know.

7 years agoecore con eet test - dont use localhost port 8080
Carsten Haitzler (Rasterman) [Fri, 5 Aug 2016 07:59:08 +0000 (16:59 +0900)]
ecore con eet test - dont use localhost port 8080

so thats a common local port to use for other things... 8080 - don't
use it, so use 12346 much like 12345 is for the other tests. far less
likely to clash. fix up tests to work better.

7 years agoatspi: toolbar - fix cannot call select callback
Shinwoo Kim [Fri, 5 Aug 2016 07:17:13 +0000 (16:17 +0900)]
atspi: toolbar - fix cannot call select callback
There is a line to check select_mode in _item_select function.
The item selected(clicked) callback is called when the select_mode is ELM_OBJECT_SELECT_MODE_NONE.
The checking select_mode should be handled at one place.

7 years agoecore eina threadqueue test suite - be correct about volatile+padding
Carsten Haitzler (Rasterman) [Fri, 5 Aug 2016 05:35:41 +0000 (14:35 +0900)]
ecore eina threadqueue test suite - be correct about volatile+padding

fill in the padding of mesages (10 bytes) with something so valgrinds
can be happy and use vlatiole for msgs count as the msgs num should
have been incremented already before the msg sned is done and main
thread/loop gets the msg

7 years agoeina_threadqueue - fix const ptr warning on spinlocks if atomic disabled
Carsten Haitzler (Rasterman) [Fri, 5 Aug 2016 04:42:50 +0000 (13:42 +0900)]
eina_threadqueue - fix const ptr warning on spinlocks if atomic disabled

atomics SHOULDNT be disabled anyway, but if they are... fix this
warning. (no real bug)

7 years agoecore_imf - fix make check to doa "load all" check after de-sillifying it
Carsten Haitzler (Rasterman) [Fri, 5 Aug 2016 04:40:30 +0000 (13:40 +0900)]
ecore_imf - fix make check to doa  "load all" check after de-sillifying it

this should make ecore_imf testable with empty env vars also meaning
no env var and the make check test will now ensuree this is set to
exactly test this.

7 years agoecore_imf: Fix crash when ECORE_IMF_MODULE is set
Jean-Philippe Andre [Fri, 5 Aug 2016 02:33:01 +0000 (11:33 +0900)]
ecore_imf: Fix crash when ECORE_IMF_MODULE is set

7 years agoevas: Make safety check more lenient
Jean-Philippe Andre [Fri, 5 Aug 2016 01:59:48 +0000 (10:59 +0900)]
evas: Make safety check more lenient

This is to avoid ERR messages such as "object is not an image!"
that can happen when a legacy image function is called on an
eo image (proxy, 3d, ...) object.

Note: This does not fix any known issue, but it's probably a safer
solution.

7 years agoefl: Cleanup some code (return values)
Jean-Philippe Andre [Thu, 4 Aug 2016 10:37:56 +0000 (19:37 +0900)]
efl: Cleanup some code (return values)

This removes some useless code in various places, where the
switch from eo_do() to standard function call was not properly
refactored.

This changes:

type ret = 0;
ret = my_eo_function();
return ret;

To:

return my_eo_function();

7 years agoevas image: Lower ERR message to WRN and fix it
Jean-Philippe Andre [Thu, 4 Aug 2016 10:16:18 +0000 (19:16 +0900)]
evas image: Lower ERR message to WRN and fix it

In elm_image, efl_file_get() was called on a legacy Evas Image
object, which generated an ERR message. This was way too much
noise for something that actually works.

It's best not to call efl_file_get/set API on a legacy
object, but it can be convenient for smooth code transitions
from legacy to pure eo.

Also, add safety to those APIs.

Test case: elm_test genlist dnd, start dragging anything.

7 years agoevas: Mark image fill_spread as deprecated
Jean-Philippe Andre [Thu, 4 Aug 2016 10:08:24 +0000 (19:08 +0900)]
evas: Mark image fill_spread as deprecated

It was never implemented.

7 years agoevas: Add safety checks to evas image legacy APIs
Jean-Philippe Andre [Thu, 4 Aug 2016 10:01:21 +0000 (19:01 +0900)]
evas: Add safety checks to evas image legacy APIs

This checks for NULL and ensures the type is evas image.

7 years agodocs: make dark theme default, add switch --graph-theme-light
Daniel Kolesa [Thu, 4 Aug 2016 15:45:34 +0000 (16:45 +0100)]
docs: make dark theme default, add switch --graph-theme-light

7 years agodocs: add default dark theme (via --graph-theme-dark) in docgen
Daniel Kolesa [Thu, 4 Aug 2016 15:43:02 +0000 (16:43 +0100)]
docs: add default dark theme (via --graph-theme-dark) in docgen

7 years agoefreet: free fallback cache on shutdown
Marcel Hollerbach [Thu, 4 Aug 2016 15:02:46 +0000 (17:02 +0200)]
efreet: free fallback cache on shutdown

this fixes errors like:
ERR<4864>:eet lib/eet/eet_lib.c:645 eet_shutdown() File '/home/osauser/.cache/efreet/icons___efreet_fallback_localhost.localdomain.eet' is still open 1 times !

@fix

7 years agoelm tooltips - fix positioning cornercases
Carsten Haitzler (Rasterman) [Thu, 4 Aug 2016 14:23:30 +0000 (23:23 +0900)]
elm tooltips - fix positioning cornercases

this should fix T4277

7 years agomailmap: update mailmap file now that we have all libs merged
Stefan Schmidt [Thu, 4 Aug 2016 10:43:27 +0000 (12:43 +0200)]
mailmap: update mailmap file now that we have all libs merged

Trying to unify the authors a bit here. And yes, Chris wins the price for the
ridiculous amount of variations he uses.

7 years agoElm.Entry: use proper theme_set function on edje object
Daniel Hirt [Thu, 4 Aug 2016 10:13:29 +0000 (13:13 +0300)]
Elm.Entry: use proper theme_set function on edje object

Shouldn't use elm_widget_theme_object_set for handlers/anchors here.

Fixes T4091.
@fix

7 years agoedje object shutdown - be far more paranoid about ptrs and order
Carsten Haitzler (Rasterman) [Thu, 4 Aug 2016 09:28:49 +0000 (18:28 +0900)]
edje object shutdown - be far more paranoid about ptrs and order

so we didnt set everything to null after being freed and object sae
freed after some data. do the data frees after objects are deleted so
callbacks cant access null data anyway. this makes this edje shutdown
far more robust and safe. massive improvement in stability i hope.

7 years agoedje - fix access to freed data struct during object shutdown
Carsten Haitzler (Rasterman) [Thu, 4 Aug 2016 09:19:42 +0000 (18:19 +0900)]
edje - fix access to freed data struct during object shutdown

this fixes T4181

7 years agoelementary widget: actually this is a right fix than fa4a72d3fcb6a96f6291a0717036b282...
Hermet Park [Thu, 4 Aug 2016 07:44:06 +0000 (16:44 +0900)]
elementary widget: actually this is a right fix than fa4a72d3fcb6a96f6291a0717036b28277c78413

Now rage and enventor both will be fine.

7 years agoelm key events/disabling/focus - fix after another disabled widget fix
Carsten Haitzler (Rasterman) [Thu, 4 Aug 2016 07:34:40 +0000 (16:34 +0900)]
elm key events/disabling/focus - fix after another disabled widget fix

this fixes key events in rage again after
ea2b5e40485a49b5c5aadae98ed379f1c3cf5f71 broke them. this fixes T4285

7 years agoefl: fix a neon build break.
Hermet Park [Thu, 4 Aug 2016 06:22:23 +0000 (15:22 +0900)]
efl: fix a neon build break.

We found a some build break problem due to a build system.

In efl configuration, our efl configure enables neon if it's available,
but neon gonna partially turned off on evas compilation if the build system
has a non neon CFLAG option (ie, mfpu=vfpv..). In the end, neon is partially enabled
and it turns out a build break.

It's non-sense but we can't allow this breakage.

There is no way to ignore build system option nor override our neon option perfectly,
so, Let efl package ruled by build system overall.

7 years agoedje: updated the start index of vector resource from 1 to 0
Subhransu Mohanty [Thu, 4 Aug 2016 00:34:50 +0000 (17:34 -0700)]
edje: updated the start index of vector resource from 1 to 0

Reviewers: cedric, jpeg

Subscribers: cedric, jpeg

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

Signed-off-by: Cedric Bail <cedric@osg.samsung.com>
7 years agoelementary: keep theme consistent regarding the disabling of odd/even.
Cedric Bail [Thu, 4 Aug 2016 00:29:31 +0000 (17:29 -0700)]
elementary: keep theme consistent regarding the disabling of odd/even.

This is another patch that should be reverted as soon as we start
7affe8c2047a41a2945cf6c048d59f28c974aa7a and is still a work around
T3086.

7 years agoelm image - silence warnings of setting smooth if image is edje
Carsten Haitzler (Rasterman) [Wed, 3 Aug 2016 23:17:18 +0000 (08:17 +0900)]
elm image - silence warnings of setting smooth if image is edje

7 years agoemotion generic - vlc - make it off by default as 2 video bends is silly
Carsten Haitzler (Rasterman) [Wed, 3 Aug 2016 23:04:57 +0000 (08:04 +0900)]
emotion generic - vlc - make it off by default as 2 video bends is silly

as per bug. requiring by DEFAULT 2 video back ends is rather
rediculous. pick one and the others are optional. you could argue xine
now is barely worth it, but it's stable and works and has proven to be
not any real pain.

gst1 is a more optimal and far more complete/featured backend that the
vlc generic one anyway. vlc generic has the bonus of out-of-process,
but gst1 is pretty stable (unlike the 0.1 backend), so let's not make
peolpe install 2 video backends (or possibly 3 or more) just to build
efl out of the box.

this fixes T4284

7 years agoFix further text checks in Elm_Code T4264
Andy Williams [Wed, 3 Aug 2016 22:43:23 +0000 (23:43 +0100)]
Fix further text checks in Elm_Code T4264

    An incorrect assumption in how unused memory may be initialised
    @fix

7 years agoemotion: fix autodetection of emotion generic vlc player module.
Cedric Bail [Wed, 3 Aug 2016 19:01:17 +0000 (12:01 -0700)]
emotion: fix autodetection of emotion generic vlc player module.

T4273

7 years agoelm: scrollable: add guards to include eo and legacy header only when allowed
Stefan Schmidt [Wed, 3 Aug 2016 11:48:02 +0000 (13:48 +0200)]
elm: scrollable: add guards to include eo and legacy header only when allowed

Make sure the eo and legacy headers are only included when the matching defines
are enabled.

7 years agoelm: fileselector: add guards to include eo and legacy header only when allowed
Stefan Schmidt [Wed, 3 Aug 2016 11:46:55 +0000 (13:46 +0200)]
elm: fileselector: add guards to include eo and legacy header only when allowed

Make sure the eo and legacy headers are only included when the matching defines
are enabled.

7 years agoevas: Fix compiling evas x engine with no gles
Chris Michael [Wed, 3 Aug 2016 12:54:54 +0000 (08:54 -0400)]
evas: Fix compiling evas x engine with no gles

This fixes an issue from 19eb7b727fbf35620a13fb65b50d3 where the code
would no longer compile due to not finding noext_glXCreatePixmap in
the structure. This was due to the fact that this field was not
compiled into the structure if gl_gles was defined.

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoelm focus default theme: fix wrong resizing
WooHyun Jung [Wed, 3 Aug 2016 10:14:16 +0000 (19:14 +0900)]
elm focus default theme: fix wrong resizing

When focus is moved rapidly, final size of focus highlight is not
matched well with the focused object.
Without running anim in edc, it shows right performance.

@fix

7 years agoelm image - store smooth scale var in object as intended
Carsten Haitzler (Rasterman) [Wed, 3 Aug 2016 09:24:16 +0000 (18:24 +0900)]
elm image - store smooth scale var in object as intended

this fixesa bug reported by davemds and kuuko in python bindings test
suite where setting smooth flag != getting it right after.

7 years agowidget: Fix propagation of events on hold
Jean-Philippe Andre [Wed, 3 Aug 2016 09:08:31 +0000 (18:08 +0900)]
widget: Fix propagation of events on hold

Because of the translation between legacy and eo key
events, the on_hold flag state could sometimes be lost.

Symptom:
 elementary_test -to Focus
 Click on a button inside the scroller
 Up/down would jump to the end of the scroller, rather than
 the next button.

Thanks a lot to Woohyeon for the very good bug report.

7 years agoglx: Fix black windows in E on nvidia
Jean-Philippe Andre [Wed, 3 Aug 2016 07:32:39 +0000 (16:32 +0900)]
glx: Fix black windows in E on nvidia

This fixes calls to glXCreatePixmap that would consistently
fail on nvidia >= 360.

It seems glXCreatePixmapEXT was used instead of glXCreatePixmap,
and that function always returned 0.

One could assume always using the non-EXT version of the
function should be preferred. Unfortunately, doing so for all
the other functions brings back the black windows.

I'm taking a very careful approach by doing this only for drivers
>= 360.

Fixes T3030

@fix

7 years agogl_x11: Minor code refactor around eglCreateImage
Jean-Philippe Andre [Wed, 3 Aug 2016 02:29:14 +0000 (11:29 +0900)]
gl_x11: Minor code refactor around eglCreateImage

Trying to debug T3030... hitting a brick wall at the moment.
Add better error handling (for EGL).

7 years agoelm theme - don't use empty env vars eina_prefix handles anyway
Carsten Haitzler (Rasterman) [Wed, 3 Aug 2016 08:27:42 +0000 (17:27 +0900)]
elm theme - don't use empty env vars eina_prefix handles anyway

in 14ec825aa9ed9c6ede79d1729fdb291285b3bd6d cedric added trying
ELM_DATA_DIR env var explicitly for looking for themes. first if this
is NULL then we look in a bogus directory (null). secondly eina_prefix
already takes care of env vars like thsi as part of figuring out
prefix with correct namespace etc. so this just is a bug as opposed to
anything useful and the CORRECt implementation is already done in
eina_prefix.

@fix

7 years agoedje: fix color class broken by b543f4c896d9.
Davide Andreoli [Tue, 2 Aug 2016 23:53:51 +0000 (16:53 -0700)]
edje: fix color class broken by b543f4c896d9.

T4270

Signed-off-by: Cedric Bail <cedric@osg.samsung.com>
7 years agoeina: test safepointer in the correct range for 32bits system.
Cedric Bail [Tue, 2 Aug 2016 22:28:20 +0000 (15:28 -0700)]
eina: test safepointer in the correct range for 32bits system.

The generation counter on 32bits system is on 8bits, obviously 1024
is more than that.

T4265

7 years agoFix text check in Elm_Code T4264
Andy Williams [Tue, 2 Aug 2016 22:23:31 +0000 (23:23 +0100)]
Fix text check in Elm_Code T4264

An incorrect assumption in how unused memory may be initialised
@fix

7 years agorelease: Update NEWS and bump version for 1.18.0-beta2 release
Stefan Schmidt [Tue, 2 Aug 2016 15:32:39 +0000 (17:32 +0200)]
release: Update NEWS and bump version for 1.18.0-beta2 release

7 years agotests: eolian_cxx: add define to allow the use of beta APIs like eo
Stefan Schmidt [Tue, 2 Aug 2016 20:20:05 +0000 (22:20 +0200)]
tests: eolian_cxx: add define to allow the use of beta APIs like eo

This is needed again now as we put eo back into beta for 1.18.

7 years agoecore_audio: use the correct module wrapper
Jean Guyomarc'h [Tue, 2 Aug 2016 19:08:58 +0000 (21:08 +0200)]
ecore_audio: use the correct module wrapper

This was code for sndfile. sndfile module should have been
used instead of the pulseaudio one.
It led to a build break when having sndfile but not pulseaudio.

Ref: 879d93377b219dca00be63f8139fee79b7938147

7 years agoecore_drm2: Fix a condition where no outputs are enabled
Derek Foreman [Tue, 2 Aug 2016 18:24:40 +0000 (13:24 -0500)]
ecore_drm2: Fix a condition where no outputs are enabled

If the first output we test is disconnected but has the crtc of
the primary display assigned then we'll fail to assign the crtc
to the connector it's really connected to later.

This is a quick hack as trying to sort this out properly may be
too invasive for the upcoming 1.18 and isn't really important until
1.19 supports multihead anyway.

7 years agodocs: put graph before hierarchy
Daniel Kolesa [Tue, 2 Aug 2016 16:35:14 +0000 (17:35 +0100)]
docs: put graph before hierarchy

7 years agodocs: allow rank dir and size to be changed in theme
Daniel Kolesa [Tue, 2 Aug 2016 15:47:29 +0000 (16:47 +0100)]
docs: allow rank dir and size to be changed in theme

7 years agoEo: Move Eo back into beta.
Tom Hacohen [Tue, 2 Aug 2016 15:14:12 +0000 (16:14 +0100)]
Eo: Move Eo back into beta.

Eo should now be considered beta again. This commit puts it back in beta
and makes it necessary to define EFL_BETA_API_SUPPORT before including
Eo.h.

7 years agodocs: support for foldable inheritance graphs
Daniel Kolesa [Tue, 2 Aug 2016 14:46:03 +0000 (15:46 +0100)]
docs: support for foldable inheritance graphs

7 years agodocs: add theme loader for graphs
Daniel Kolesa [Tue, 2 Aug 2016 14:32:24 +0000 (15:32 +0100)]
docs: add theme loader for graphs

7 years agoedje_edit: delete swallowed object before unswallowing (for part type GROUP)
Vitalii Vorobiov [Tue, 2 Aug 2016 13:46:40 +0000 (16:46 +0300)]
edje_edit: delete swallowed object before unswallowing (for part type GROUP)

unswallowing set swallowed_object to NULL inside of
_edje_real_part_swallow_clear
so it is impossible to delete object anymore.
And so, changing sources leaves fantoms and undeleted objects.

@fix

7 years agoelementary widget: fix a wrong disabled behavior.
Hermet Park [Tue, 2 Aug 2016 13:38:30 +0000 (22:38 +0900)]
elementary widget: fix a wrong disabled behavior.

This is a corner case bug I spontaneously found.

* Scenario.

A. Disable A widget.
B. Add a child B widget to A.
C. Now B Widget theme will be followed to A that is performed by
   elm_widget_theme_apply()
D. This elm_widget_theme_apply() calls elm_widget_disabled_set() (originally.)
E. Now B widget will be logically disabled.
D. Let's enable A widget again.
E. After going through widget disabled sequence, elm_widget_disabled_eval()
   will be called in the last
F. In this function, A widget tries to enable its children. But B widget won't
    be enabled because its logically disabled!

Acutally, nowhere widget change children's disabled states logically,
but it propagates its state to children within volatile way so that
A widget perfectly keeps the disabled/enabled state with its children and
recover the children's enable/disable state once their relationship is cut off.

@fix

7 years agoelm scroller accel was broken by default confgis setting it to 0. fix
Carsten Haitzler (Rasterman) [Tue, 2 Aug 2016 08:30:34 +0000 (17:30 +0900)]
elm scroller accel was broken by default confgis setting it to 0. fix

now set default wheel scroll accel to 7 as epr the confgi upgrade code
and also improve the acceleration to "rely on itself" and feedback
loop. this is so much better now i can scroll through things in a
whisk with the wheel.

fixes T4263

@fix

8 years agotests: ecore_con: make sure info is initialized
Stefan Schmidt [Tue, 2 Aug 2016 07:31:10 +0000 (09:31 +0200)]
tests: ecore_con: make sure info is initialized

One test does init info before passing it to _url_compl_cb while two others
are not. Also test if inof is NULL in callback here to avoid crashes.

tests/ecore_con/ecore_con_test_ecore_con_url.c:194:4: warning: 'info' may be used uninitialized in this function [-Wmaybe-uninitialized]
    ecore_event_handler_add(ECORE_CON_EVENT_URL_COMPLETE,

8 years agotests: eio: add Eina.h include for eina_init and shutdown functions.
Stefan Schmidt [Tue, 2 Aug 2016 07:29:58 +0000 (09:29 +0200)]
tests: eio: add Eina.h include for eina_init and shutdown functions.

tests/eio/eio_suite.c:33:4: warning: implicit declaration of function 'eina_init' [-Wimplicit-function-declaration]
     eina_init();
     ^
tests/eio/eio_suite.c:38:4: warning: implicit declaration of function 'eina_shutdown' [-Wimplicit-function-declaration]
    eina_shutdown();

8 years agobuild: do not dist now longer available files
Stefan Schmidt [Tue, 2 Aug 2016 06:32:13 +0000 (08:32 +0200)]
build: do not dist now longer available files

Another cleanup for commit dd1d3f0d2d8f7369f7461f54928eac2a4fce99fb. These
makefiles are now longer available better not try to dist them.

8 years agobuild remove now unused eolian subbuild helper makefile
Stefan Schmidt [Tue, 2 Aug 2016 06:11:15 +0000 (08:11 +0200)]
build remove now unused eolian subbuild helper makefile

In commit dd1d3f0d2d8f7369f7461f54928eac2a4fce99fb the consumers of the makefile
have been removed. No need to still have it around.

8 years agoefl runtime dynamic lib loading - make errors consistent and useful
Carsten Haitzler (Rasterman) [Tue, 2 Aug 2016 02:23:34 +0000 (11:23 +0900)]
efl runtime dynamic lib loading - make errors consistent and useful

so drop trying to appease the openbsd packages and stick to "upstream
so major versions" and let users fix their systems with symlinks. also
report what we are looking for so they have a chance to symlink to
make efl happy.

at some point we should make a single simple runtime lib linker
subsystem in efl so all these errors are reported in the same way,
input libray names are listed in a simple consistent way etc. etc.

for now we have 3 locations in efl that do this and they are roughly
similar. we can unify it later.

8 years agoautotools: since it has been broken for some times and nobody noticed, let's remove...
Cedric BAIL [Mon, 1 Aug 2016 20:36:47 +0000 (13:36 -0700)]
autotools: since it has been broken for some times and nobody noticed, let's remove per directory support.

8 years agoelementary: remove *.eo.h files from includesub_HEADERS
Romain Naour [Wed, 27 Jul 2016 20:38:02 +0000 (22:38 +0200)]
elementary: remove *.eo.h files from includesub_HEADERS

Otherwise *.eo.h files will be installed twice, so it can break a
parallel install on fast machines, whereby two make jobs may run
concurently, trying to install the same files.

With elementary 1.17.1:
/usr/bin/install -c -m 644 elm_sys_notify.eo.h
/usr/bin/install -c -m 644 elm_sys_notify.eo.h
 usr/bin/install: cannot create regular file 'elm_sys_notify.eo.h': File exists

Fixed in Buildroot:
https://git.busybox.net/buildroot/commit/?id=bba82cbfe4caaa01366fc74fb3b6f4c41587a28b

While applying the fix on latest master (1.18.0-beta1), the only
remaining *.eo.h file is efl_ui_text.eo.h.

Fixes:
http://autobuild.buildroot.net/results/7e9/7e9caffe442dcf40ee41da56fd3f55ffedf3a291

Signed-off-by: Romain Naour <romain.naour@gmail.com>
8 years agoedje_cc build - link to lua and use ula cflags as edje_cc uses lua
Carsten Haitzler (Rasterman) [Mon, 1 Aug 2016 14:33:58 +0000 (23:33 +0900)]
edje_cc build - link to lua and use ula cflags as edje_cc uses lua

i do not remember it using lua... well that's obvious then - add
cflags/libs.

8 years agoecore-imf - fix stupidity of loading ALL modules even if not needed
Carsten Haitzler (Rasterman) [Mon, 1 Aug 2016 12:12:24 +0000 (21:12 +0900)]
ecore-imf - fix stupidity of loading ALL modules even if not needed

eocre-imf loaded all input modules even though an env var was set to
tell it to use a specific one. this just wastes memory and slows down
startup time. this uses the env var to choose ro auto-guesses wayland
or xim input if the right env vars are set, and if it doesnt know
falls back to "load all" as before. this saves 28kb of dirty pages.
this helps address T4227

@fix

8 years agoedje - reduce memory footrpint by dlopening ephysics on demand
Carsten Haitzler (Rasterman) [Mon, 1 Aug 2016 10:04:42 +0000 (19:04 +0900)]
edje - reduce memory footrpint by dlopening ephysics on demand

this saves about another 80Kb or so in dirty pages by only loading
ephysics when needed. This removed ephysics and bullet library dirty
pages from the process space. this is another patch to address T4227.

@fix

8 years agoecore_audio - save 232k of real RAM by dlopening depednecies
Carsten Haitzler (Rasterman) [Mon, 1 Aug 2016 05:37:10 +0000 (14:37 +0900)]
ecore_audio - save 232k of real RAM by dlopening depednecies

so libpuls and libsndfile suck in dependencies. they suck in so much
that by the time linking is done we've written to about 230kb of
PRIVATE MEMORY as dirty pages in symbol tablesm global veriables etc.
etc. - this is just horrible. especially if an app never makes any
sound... it's just wasted memory. this stuff is invisible to normal
memory debug tools. so this begins to address things. please see
T4227. my numbers now put me at:

1780Kb total dirty writable mapped from library file pages. down from
2012Kb.

This fixes some memory bloat reported in the above ticket, but there
is more to fix for sure.

@fix

8 years agoedje: throw error when vector resource not found.
Subhransu Mohanty [Mon, 1 Aug 2016 04:24:34 +0000 (13:24 +0900)]
edje: throw error when vector resource not found.

Reviewers: cedric, jpeg

Reviewed By: jpeg

Subscribers: cedric, jpeg

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