platform/upstream/efl.git
7 years agoedje: Fix typos and overall strange function name
Jean-Philippe Andre [Mon, 22 May 2017 10:32:22 +0000 (19:32 +0900)]
edje: Fix typos and overall strange function name

popornot was supposed to be propornot which stands for prop or not.
prop itself means propagate. Why choose a name so complicated? :)

7 years agoedje: Remove message_handler_set from EO
Jean-Philippe Andre [Mon, 22 May 2017 10:18:41 +0000 (19:18 +0900)]
edje: Remove message_handler_set from EO

It is used to receive messages with a payload from embryo to C.
This API has a function pointer, which means it would have to be
manually bound, or transformed (eg. eo event).

Also, prepare the change for message_send to use Eina_Value and
no explicit type.

This feature seems rarely used.

But note that handler_set is in fact used in terminology, rage and
luncher. So, if the need arises, it will have to be transformed in
a proper EO way.

7 years agoelm_code: reduce race conditions in rendering cursor
Andy Williams [Tue, 23 May 2017 22:03:08 +0000 (23:03 +0100)]
elm_code: reduce race conditions in rendering cursor

This code is slowly getting neater as we get to the bottom of it

7 years agoelm_win: Fix breakage in frame bg style with Elementary WL2
Bryce Harrington [Tue, 23 May 2017 20:45:06 +0000 (16:45 -0400)]
elm_win: Fix breakage in frame bg style with Elementary WL2

Summary:
An else statement was added in 5ebdf8f3 with no clause, resulting in the
bg_solid property becoming conditionalized such that it won't be set
correctly when HAVE_ELEMENTARY_WL2 is defined and there is no wayland
window in use.

Further, this also causes focus to be left undefined.  Since there's no
window, presumably it should be turned off in this circumstance.

fix CID1375496, CID1375497

Reviewers: zmike

Subscribers: cedric, jpeg

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

7 years agoelm_fileselector: use a sane item size
Marcel Hollerbach [Tue, 23 May 2017 18:05:15 +0000 (20:05 +0200)]
elm_fileselector: use a sane item size

16 px is nothing you can really read, even the font is bigger than that,
so you only see "...", like
http://www.enlightenment.org/ss/e-592478d86028f5.91073806.jpg.

Now it looks like:
http://www.enlightenment.org/ss/e-592479ac4dde13.60227000.png

@fix

7 years agoEvas textblock: fix width calculation of non-dirty paragraphs
Daniel Hirt [Tue, 23 May 2017 09:14:57 +0000 (12:14 +0300)]
Evas textblock: fix width calculation of non-dirty paragraphs

This reverts commit 0a28cb97af928623127644e37a522af36035a845, as the
addressed issue was still occurring.
Non-dirty paragraphs were not considered when recalculating the
formatted width of the text.
This could easily be reproduced with two paragraphs, getting the width,
and then updating only the second paragraph.

Added a test case.

@fix

7 years agoupdate po/* files after progressbar rename
Amitesh Singh [Tue, 23 May 2017 09:54:45 +0000 (18:54 +0900)]
update po/* files after progressbar rename

Signed-off-by: Amitesh Singh <amitesh.sh@samsung.com>
7 years agoelm: rename elm_progressbar to Efl.Ui.Progressbar
Amitesh Singh [Tue, 23 May 2017 09:30:00 +0000 (18:30 +0900)]
elm: rename elm_progressbar to Efl.Ui.Progressbar

ref T5360

Signed-off-by: Amitesh Singh <amitesh.sh@samsung.com>
7 years agoEfl.Ui.Radio: correct the 'changed' event name
Amitesh Singh [Tue, 23 May 2017 06:41:17 +0000 (15:41 +0900)]
Efl.Ui.Radio: correct the 'changed' event name

Signed-off-by: Amitesh Singh <amitesh.sh@samsung.com>
7 years agoEfl.Ui.Check: correct the include gaurds name
Amitesh Singh [Tue, 23 May 2017 01:24:38 +0000 (10:24 +0900)]
Efl.Ui.Check: correct the include gaurds name

Signed-off-by: Amitesh Singh <amitesh.sh@samsung.com>
7 years agoelementary: fix global declaration
Jean Guyomarc'h [Mon, 22 May 2017 17:39:10 +0000 (19:39 +0200)]
elementary: fix global declaration

Don't DEFINE a global in a header, DECLARE it instead!
This fixes link on macOS.

7 years agoelm_cnp: use correct pointer when emitting ELM_CNP_EVENT_SELECTION_CHANGED
Mike Blumenkrantz [Mon, 22 May 2017 10:52:57 +0000 (06:52 -0400)]
elm_cnp: use correct pointer when emitting ELM_CNP_EVENT_SELECTION_CHANGED

CID ???

7 years agoupdate po/* files after elm_radio rename
Amitesh Singh [Mon, 22 May 2017 10:19:26 +0000 (19:19 +0900)]
update po/* files after elm_radio rename

Signed-off-by: Amitesh Singh <amitesh.sh@samsung.com>
7 years agorename elm_radio to Efl.Ui.Radio
Amitesh Singh [Mon, 22 May 2017 09:56:52 +0000 (18:56 +0900)]
rename elm_radio to Efl.Ui.Radio

Signed-off-by: Amitesh Singh <amitesh.sh@samsung.com>
7 years agoAdd po/* files changes after elm_button rename
Amitesh Singh [Mon, 22 May 2017 08:34:45 +0000 (17:34 +0900)]
Add po/* files changes after elm_button rename

Signed-off-by: Amitesh Singh <amitesh.sh@samsung.com>
7 years agoevas: Fix build for Windows without segv
Jean-Philippe Andre [Mon, 22 May 2017 08:20:35 +0000 (17:20 +0900)]
evas: Fix build for Windows without segv

Revert "Revert "evas: Fix build for Windows (hopefully)""
This reverts commit c8ec1cb2af4f3771ebdcafff3a1f9c7db5c13dad.

The two efl_input_ functions need to be declared as EOAPI inside
the file where they are implemented. Otherwise the symbols aren't
exposed and weak linking means the function call crashes.

Sorry for the first untested patch and subsequent revert. Things
should be in order now.

7 years agorename elm_button to Efl.Ui.Button
Amitesh Singh [Mon, 22 May 2017 03:48:12 +0000 (12:48 +0900)]
rename elm_button to Efl.Ui.Button

ref T5323

Signed-off-by: Amitesh Singh <amitesh.sh@samsung.com>
7 years agoRevert "evas: Fix build for Windows (hopefully)"
Jean-Philippe Andre [Mon, 22 May 2017 06:05:16 +0000 (15:05 +0900)]
Revert "evas: Fix build for Windows (hopefully)"

This reverts commit 1e2d382298b0d4357d35b1f350c04f04820c7218.
This segfaults. Ouch... Will need more time to fix this.

7 years agoevas: Fix build for Windows (hopefully)
Jean-Philippe Andre [Mon, 22 May 2017 05:41:00 +0000 (14:41 +0900)]
evas: Fix build for Windows (hopefully)

The declaration of some internal EO APIs was located in the wrong
library, which results on Windows to an invalid definition of
EAPI (dllexport vs dllimport).

Thanks @vtorri for the report!

7 years agoconfig: fix keybindings for Efl.Ui.Check
Amitesh Singh [Mon, 22 May 2017 05:47:37 +0000 (14:47 +0900)]
config: fix keybindings for Efl.Ui.Check

Thanks to Woohyun for reporting this.

Signed-off-by: Amitesh Singh <amitesh.sh@samsung.com>
7 years agoelm: Try to fix build (linking failure)
Jean-Philippe Andre [Mon, 22 May 2017 04:25:30 +0000 (13:25 +0900)]
elm: Try to fix build (linking failure)

This should expose the proper definition of EAPI before including
elm_widget.h, as elm modules call internal APIs from elementary.

Thanks Mykyta for the report!

7 years agoelm_check: make sure of the correct naming of header files
Stefan Schmidt [Fri, 19 May 2017 10:05:10 +0000 (12:05 +0200)]
elm_check: make sure of the correct naming of header files

We use a header wrapper _eo.h here instead of using the eo.h file
directly. By not doing so the automagic in our build system will not
work.

7 years agoupdate po files after elm check rename
Amitesh Singh [Fri, 19 May 2017 07:57:33 +0000 (16:57 +0900)]
update po files after elm check rename

Signed-off-by: Amitesh Singh <amitesh.sh@samsung.com>
7 years agorename elm_check to Efl.Ui.Check
Amitesh Singh [Mon, 22 May 2017 02:27:13 +0000 (11:27 +0900)]
rename elm_check to Efl.Ui.Check

Signed-off-by: Amitesh Singh <amitesh.sh@samsung.com>
7 years agoelm_code: improving cursor move behavior.
Andy Williams [Sun, 21 May 2017 22:19:24 +0000 (23:19 +0100)]
elm_code: improving cursor move behavior.

There is a blank line off the scroller but for now it's better

7 years agoelm_widget: use a different pointer from sd
Marcel Hollerbach [Sat, 20 May 2017 19:03:15 +0000 (21:03 +0200)]
elm_widget: use a different pointer from sd

sd is used later below, which could then alter the wrong private data,
which is not part of the object.

CID 1374433

7 years agoefl_ui_focus_manager: logical_end could be called before root_set
Marcel Hollerbach [Sat, 20 May 2017 18:51:30 +0000 (20:51 +0200)]
efl_ui_focus_manager: logical_end could be called before root_set

which would lead to a NULL deref

CID 1374435

7 years agoefl_ui_focus_manager: fix valgrind warnings in the tests
Marcel Hollerbach [Sat, 20 May 2017 18:46:49 +0000 (20:46 +0200)]
efl_ui_focus_manager: fix valgrind warnings in the tests

7 years agodmabuf: Drop requirement that buffer be writeable
Derek Foreman [Fri, 19 May 2017 21:58:32 +0000 (16:58 -0500)]
dmabuf: Drop requirement that buffer be writeable

We don't need to write to it, and some clients don't create their buffers
in a way that we can.

@fix

7 years agoecore-wl2: permit null drag icon window in ecore_wl2_dnd_drag_start()
Mike Blumenkrantz [Fri, 19 May 2017 19:53:15 +0000 (15:53 -0400)]
ecore-wl2: permit null drag icon window in ecore_wl2_dnd_drag_start()

this is explicitly allowed in the spec

@fix

7 years agoelm_code: fix carriage return at EOF scroller behaviour
Al Poole [Fri, 19 May 2017 17:47:16 +0000 (18:47 +0100)]
elm_code: fix carriage return at EOF scroller behaviour

Reviewers: ajwillia.ms

Reviewed By: ajwillia.ms

Subscribers: cedric, jpeg

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

7 years agoevas: fix doc copypaste on evas_device_get()
Mike Blumenkrantz [Thu, 18 May 2017 15:37:33 +0000 (11:37 -0400)]
evas: fix doc copypaste on evas_device_get()

7 years agoevas: add evas_device_get_by_seat_id()
Mike Blumenkrantz [Thu, 18 May 2017 15:36:55 +0000 (11:36 -0400)]
evas: add evas_device_get_by_seat_id()

sometimes it may be more useful to find a device by its hw id

@feature

7 years agoecore-wl2: block key->string translation when appropriate
Mike Blumenkrantz [Wed, 17 May 2017 21:51:08 +0000 (17:51 -0400)]
ecore-wl2: block key->string translation when appropriate

copied from libX11.

I don't understand what's going on here but this fixes input bugs such
as, e.g., holding ctrl and pressing shift affecting cursor position in
terminology

@fix

7 years agoecore-wl2: add copyright info to code copied from libX11
Mike Blumenkrantz [Wed, 17 May 2017 22:00:26 +0000 (18:00 -0400)]
ecore-wl2: add copyright info to code copied from libX11

this code has been slightly modified, but it was originally taken without
attribution from libX11/src/KeyBind.c

ref 08c804f5bb2de3cb5a7e95b1264b30043d1aea6f

@fix

7 years agoecore-wl2: remove ecore_wl2_window_input_get()
Mike Blumenkrantz [Wed, 17 May 2017 20:02:53 +0000 (16:02 -0400)]
ecore-wl2: remove ecore_wl2_window_input_get()

this function does not make sense within the context of wayland and seats,
since a surface does not own and is not owned by a seat, nor is there a 1:1
association between surfaces and seats

7 years agoecore-wl2: do not attempt to call zxdg_surface_v6.get_popup without a parent
Mike Blumenkrantz [Wed, 17 May 2017 20:02:53 +0000 (16:02 -0400)]
ecore-wl2: do not attempt to call zxdg_surface_v6.get_popup without a parent

this is a protocol error so ensure that it can never occur

@fix

7 years agoecore-wl2: add ecore_wl2_window_popup_input_set()
Mike Blumenkrantz [Wed, 17 May 2017 20:02:53 +0000 (16:02 -0400)]
ecore-wl2: add ecore_wl2_window_popup_input_set()

this is a function for explicitly setting the seat which will be used
for popup grabs

@feature

7 years agowayland: move pointer-related functions to ecore_wl2_input namespace
Mike Blumenkrantz [Wed, 17 May 2017 20:02:53 +0000 (16:02 -0400)]
wayland: move pointer-related functions to ecore_wl2_input namespace

windows do not have pointers or cursors under wayland, seats do. due to
lack of multiseat support, most components simply use the "default" seat
with these functions, but this should make the corresponding code more
easily adaptable

7 years agowayland: send focus in/out events when receiving/losing keyboard focus
Mike Blumenkrantz [Wed, 17 May 2017 20:02:53 +0000 (16:02 -0400)]
wayland: send focus in/out events when receiving/losing keyboard focus

since this is typically what efl defines as "focus"

@fix

7 years agowayland: use shell activated state to indicate focus in csd
Mike Blumenkrantz [Wed, 17 May 2017 20:02:53 +0000 (16:02 -0400)]
wayland: use shell activated state to indicate focus in csd

the current (v6) xdg-shell spec reads as follows:

  Client window decorations should be painted as if the window is
  active. Do not assume this means that the window actually has
  keyboard or pointer focus.

so this is not equivalent to receiving/losing input focus and should not
be propagated as such

@fix

7 years agoecore-wl2: add ecore_wl2_window_activated_get()
Mike Blumenkrantz [Wed, 17 May 2017 20:02:53 +0000 (16:02 -0400)]
ecore-wl2: add ecore_wl2_window_activated_get()

this is specifically for returning the shell surface's activation state
which is NOT equivalent to the window having input focus

@feature

7 years agoecore-wl2: redo ecore_wl2_window_move() to take a seat instead of coords
Mike Blumenkrantz [Wed, 17 May 2017 20:02:53 +0000 (16:02 -0400)]
ecore-wl2: redo ecore_wl2_window_move() to take a seat instead of coords

this triggers a move operation and is seat-dependent

7 years agoecore-wl2: redo ecore_wl2_window_resize() to take a seat instead of size
Mike Blumenkrantz [Wed, 17 May 2017 20:02:53 +0000 (16:02 -0400)]
ecore-wl2: redo ecore_wl2_window_resize() to take a seat instead of size

this triggers a resize operation and is seat-dependent

7 years agoecore-evas-wayland: do not trigger resize operation when performing rotation
Mike Blumenkrantz [Wed, 17 May 2017 20:02:53 +0000 (16:02 -0400)]
ecore-evas-wayland: do not trigger resize operation when performing rotation

@fix

7 years agoecore-wl2: add ecore_wl2_display_input_find_by_name()
Mike Blumenkrantz [Wed, 17 May 2017 20:02:53 +0000 (16:02 -0400)]
ecore-wl2: add ecore_wl2_display_input_find_by_name()

@feature

7 years agoelm_win: don't unset wl cursor when starting move operation
Mike Blumenkrantz [Wed, 17 May 2017 20:02:53 +0000 (16:02 -0400)]
elm_win: don't unset wl cursor when starting move operation

I don't understand why this is here and it isn't required by spec?

ref ea7bbfe47dc1df5f51725be05eadf7ebce1d8361

7 years agoelm_win: add elm_win_get()
Mike Blumenkrantz [Wed, 17 May 2017 20:02:53 +0000 (16:02 -0400)]
elm_win: add elm_win_get()

it's frequently useful to be able to return the window object from
any object. this simplifies doing so for users

@feature

7 years agoecore-wl2: use nonblocking event flush when disconnecting a client
Mike Blumenkrantz [Wed, 17 May 2017 20:02:53 +0000 (16:02 -0400)]
ecore-wl2: use nonblocking event flush when disconnecting a client

roundtrip will deadlock if called in a compositor process

@fix

7 years agoelm_cnp: add elm_cnp_clipboard_selection_has_owner()
Mike Blumenkrantz [Wed, 17 May 2017 20:02:53 +0000 (16:02 -0400)]
elm_cnp: add elm_cnp_clipboard_selection_has_owner()

this already existed as an internal function which was improperly namespaced

@feature

7 years agoelm_cnp: add event for selection change
Mike Blumenkrantz [Wed, 17 May 2017 20:02:53 +0000 (16:02 -0400)]
elm_cnp: add event for selection change

@feature

7 years agoecore-wl2: add ecore_wl2_display_name_get()
Mike Blumenkrantz [Wed, 17 May 2017 20:02:53 +0000 (16:02 -0400)]
ecore-wl2: add ecore_wl2_display_name_get()

@feature

7 years agoecore-wl2: add ecore_wl2_display_input_find()
Mike Blumenkrantz [Wed, 17 May 2017 20:02:53 +0000 (16:02 -0400)]
ecore-wl2: add ecore_wl2_display_input_find()

for finding seat using hw id

@feature

7 years agoee wl engines: set seat id when creating seats
Mike Blumenkrantz [Wed, 17 May 2017 20:02:53 +0000 (16:02 -0400)]
ee wl engines: set seat id when creating seats

7 years agoee vnc thingy: set seat id for vnc seat
Mike Blumenkrantz [Wed, 17 May 2017 20:02:53 +0000 (16:02 -0400)]
ee vnc thingy: set seat id for vnc seat

7 years agoevas_device: add seat_id property, set seat id for default fallback seat
Mike Blumenkrantz [Wed, 17 May 2017 20:02:53 +0000 (16:02 -0400)]
evas_device: add seat_id property, set seat id for default fallback seat

@feature

7 years agoecore: resolve compiler warning
Mike Blumenkrantz [Wed, 17 May 2017 20:02:53 +0000 (16:02 -0400)]
ecore: resolve compiler warning

/home/jpeg/e/core/efl/src/lib/ecore/ecore_main.c:1381: warning: comparison of unsigned enum expression < 0 is always false [-Wtautological-compare]

THANKS @JPEG FOR REPORTING

7 years agoefl_input_device: add seat_id property
Mike Blumenkrantz [Wed, 17 May 2017 20:02:53 +0000 (16:02 -0400)]
efl_input_device: add seat_id property

this is the hardware id of a seat which is required in order to match
against objects from other components

@feature

7 years agoecore-drm2: Don't call fb_flip until output is enabled
Chris Michael [Fri, 19 May 2017 15:33:19 +0000 (11:33 -0400)]
ecore-drm2: Don't call fb_flip until output is enabled

When calling ecore_drm2_output_enabled_set, we cannot initiate a
pageflip until the output has been enabled, so remove call to fb_flip
here. The dpms_set function will handle issueing the pageflip anyway.

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoecore-drm2: Cleanup output_enabled_set function code
Chris Michael [Fri, 19 May 2017 15:32:20 +0000 (11:32 -0400)]
ecore-drm2: Cleanup output_enabled_set function code

If we are using atomic, we don't need to set the crtc active values
here as they will be set in output_dpms_set function anyway.

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoecore-drm2: Fix atomic dpms setting (round 2)
Chris Michael [Fri, 19 May 2017 15:29:47 +0000 (11:29 -0400)]
ecore-drm2: Fix atomic dpms setting (round 2)

As it turns out, we still need to enable/disable the output crtc when
we enable/disable dpms in order for the screen itself to turn off, so
this patch "should" finally fix atomic dpms setting.

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agodoc: Fix filters documentation in edcref
Jean-Philippe Andre [Fri, 19 May 2017 05:42:55 +0000 (14:42 +0900)]
doc: Fix filters documentation in edcref

Thanks @rimmed for the report!

@fix

7 years agoevas/elm: Make group_add/group_del internal functions
Jean-Philippe Andre [Thu, 18 May 2017 08:52:17 +0000 (17:52 +0900)]
evas/elm: Make group_add/group_del internal functions

This hides those two legacy functions from the EO API.

7 years agoevas: Make beta events from Evas.Canvas internal
Jean-Philippe Andre [Thu, 18 May 2017 08:46:36 +0000 (17:46 +0900)]
evas: Make beta events from Evas.Canvas internal

This includes 4 events:
 - render,flush,pre
 - render,flush,post
 - axis,update
 - viewport,resize

Those were not accessible from the EO API since Evas.Canvas
isn't part of the public EO API.

7 years agoevas: Make Efl.Canvas.Object.type internal
Jean-Philippe Andre [Thu, 18 May 2017 08:41:37 +0000 (17:41 +0900)]
evas: Make Efl.Canvas.Object.type internal

7 years agoevas: Make Efl.Canvas.Object.legacy_ctor internal
Jean-Philippe Andre [Thu, 18 May 2017 08:37:26 +0000 (17:37 +0900)]
evas: Make Efl.Canvas.Object.legacy_ctor internal

Continuing...

7 years agoevas: Make Efl.Input.Event.instance_get internal
Jean-Philippe Andre [Thu, 18 May 2017 08:27:47 +0000 (17:27 +0900)]
evas: Make Efl.Input.Event.instance_get internal

Same as the previous patch. This removes the definition from
the EO file, implementing the feature in C.

7 years agoevas: Make Efl.Input.Event.legacy_info.get internal
Jean-Philippe Andre [Thu, 18 May 2017 08:16:25 +0000 (17:16 +0900)]
evas: Make Efl.Input.Event.legacy_info.get internal

This removes the function from the EO file by using EXTRA_OPS
as introduced in 53fef30db0aecc191384dae81882b50eba79da1.

7 years agoelm: Remove Elm_Glob_Match_Flags from EO
Jean-Philippe Andre [Thu, 18 May 2017 06:46:54 +0000 (15:46 +0900)]
elm: Remove Elm_Glob_Match_Flags from EO

This is used by legacy gengrid & genlist only.

Ref T5329

7 years agoeina: fix reproductible build.
Cedric BAIL [Thu, 18 May 2017 23:19:00 +0000 (16:19 -0700)]
eina: fix reproductible build.

This make eina hamster depend on when configure was generated. This
should only happen really when we make a new tarball for release.

@fix

T5495

7 years agoelm_code: Fix crash on tabs in long lines
Andy Williams [Thu, 18 May 2017 23:01:23 +0000 (00:01 +0100)]
elm_code: Fix crash on tabs in long lines

@fix

7 years agoecore-drm2: Update connector state dpms value if setting works
Chris Michael [Thu, 18 May 2017 16:22:27 +0000 (12:22 -0400)]
ecore-drm2: Update connector state dpms value if setting works

If we successfully set dpms via atomic state, we should also update
the connector state dpms value

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agoecore-drm2: Fix setting dpms level using atomic state
Chris Michael [Thu, 18 May 2017 16:13:13 +0000 (12:13 -0400)]
ecore-drm2: Fix setting dpms level using atomic state

The property we need to change during an atomic dpms change is
actually from the output connector state (not crtc state). This fix
should make dpms work when using atomic

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
7 years agocheck: fix efl_ui_check_selected_set() API
Amitesh Singh [Thu, 18 May 2017 09:21:26 +0000 (18:21 +0900)]
check: fix efl_ui_check_selected_set() API

send the theme signal after changing state.
Thanks to JP for pointing out this.

@fix

Signed-off-by: Amitesh Singh <amitesh.sh@samsung.com>
7 years agonstate: correct the legacy class name
Amitesh Singh [Thu, 18 May 2017 08:15:39 +0000 (17:15 +0900)]
nstate: correct the legacy class name

@fix

7 years agoRevert "elm_code: Add a save_as API call for writing buffers to a new file"
Andy Williams [Thu, 18 May 2017 07:40:43 +0000 (08:40 +0100)]
Revert "elm_code: Add a save_as API call for writing buffers to a new file"

The implementation is flawed and was not noticed due to
the tests not having run unexpectedly.

This reverts commit ac076be75d125df9353c1a8cdcf970a9a01db370.

7 years agophotocam: fix make distcheck
Amitesh Singh [Thu, 18 May 2017 06:30:24 +0000 (15:30 +0900)]
photocam: fix make distcheck

Signed-off-by: Amitesh Singh <amitesh.sh@samsung.com>
7 years agorename Efl.Ui.Zoomable to Efl.Ui.Zoom
Amitesh Singh [Thu, 18 May 2017 05:55:31 +0000 (14:55 +0900)]
rename Efl.Ui.Zoomable to Efl.Ui.Zoom

Signed-off-by: Amitesh Singh <amitesh.sh@samsung.com>
7 years agophotocam: move zoom related APIs to Efl.Ui.Zoomable
Amitesh Singh [Thu, 18 May 2017 02:28:47 +0000 (11:28 +0900)]
photocam: move zoom related APIs to Efl.Ui.Zoomable

Signed-off-by: Amitesh Singh <amitesh.sh@samsung.com>
7 years agoecore_drm2: Better handle flip failure round 2
Derek Foreman [Wed, 17 May 2017 22:31:13 +0000 (17:31 -0500)]
ecore_drm2: Better handle flip failure round 2

If the buffer being flipped to is the one already on screen then
releasing it on flip failure will leave it on scanout with no
references.  The next time a buffer is queued it will be removed
from scanout and deleted.

Not good.

Fix T5462

7 years agoecore_drm2: Better handle flip failure
Derek Foreman [Wed, 17 May 2017 19:53:11 +0000 (14:53 -0500)]
ecore_drm2: Better handle flip failure

We need to release the buffer we couldn't flip to when a flip fails.

This makes whatever bug is causing a page flip to happen right after
dpms blanks the screen, which was leading to a failure to ever wake
from dpms because the flip left a pending buffer that never completed.

Fix T5462

7 years agophotocam: rename 'paused' API to 'zoom_animation'
Amitesh Singh [Wed, 17 May 2017 05:33:48 +0000 (14:33 +0900)]
photocam: rename 'paused' API to 'zoom_animation'

and mark paused_set/get as legacy APIs.

Signed-off-by: Amitesh Singh <amitesh.sh@samsung.com>
7 years agophotocam: implement Efl.Gfx.View.view_size.get
Amitesh Singh [Wed, 17 May 2017 04:58:15 +0000 (13:58 +0900)]
photocam: implement Efl.Gfx.View.view_size.get

replace elm_photocam_image_size_get with Efl.Gfx.View.view_size.get
and mark elm_photocam_image_size_get as legacy API.

Signed-off-by: Amitesh Singh <amitesh.sh@samsung.com>
7 years agophotocam: merge image_region_show() into image_region
Amitesh Singh [Wed, 17 May 2017 04:02:31 +0000 (13:02 +0900)]
photocam: merge image_region_show() into image_region

and mark this API as legacy

Signed-off-by: Amitesh Singh <amitesh.sh@samsung.com>
7 years agophotocam: remove internal_image_get as eo api
Amitesh Singh [Wed, 17 May 2017 02:33:13 +0000 (11:33 +0900)]
photocam: remove internal_image_get as eo api

and mark it as legacy API instead.

Signed-off-by: Amitesh Singh <amitesh.sh@samsung.com>
7 years agoelm_code: Fix off by 1 in selection refactor
Andy Williams [Wed, 17 May 2017 07:33:06 +0000 (08:33 +0100)]
elm_code: Fix off by 1 in selection refactor

7 years agoc++: Fix examples as Win.Standard was removed
Jean-Philippe Andre [Wed, 17 May 2017 06:43:58 +0000 (15:43 +0900)]
c++: Fix examples as Win.Standard was removed

7 years agoelm: Remove some of Gen_Item types from EO
Jean-Philippe Andre [Wed, 17 May 2017 02:29:11 +0000 (11:29 +0900)]
elm: Remove some of Gen_Item types from EO

Those belong to legacy only, EO interfaces will use models
and objects, not function pointers and item classes.

Ref T5329

7 years agoefl model: Fix invalid type in EO
Jean-Philippe Andre [Wed, 17 May 2017 05:16:50 +0000 (14:16 +0900)]
efl model: Fix invalid type in EO

Efl.Canvas refers to a canvas, like Evas or Window. Efl.Gfx is
the base visual object type in libefl.so

7 years agoevas map: Fix uninitialized fields
Jean-Philippe Andre [Wed, 17 May 2017 04:43:33 +0000 (13:43 +0900)]
evas map: Fix uninitialized fields

This fixes a "jump on uninitialized value" as reported by valgrind.
See evas_map.c:85:
  if (obj->map->cur.map->normal_geometry.x != x1) ch = 1;

7 years agoprefs: Remove some elm_prefs types from EO
Jean-Philippe Andre [Wed, 17 May 2017 02:55:41 +0000 (11:55 +0900)]
prefs: Remove some elm_prefs types from EO

Ref T5329

7 years agowidget: Remove widget_callback_add/del from EO
Jean-Philippe Andre [Wed, 17 May 2017 01:52:26 +0000 (10:52 +0900)]
widget: Remove widget_callback_add/del from EO

Those APIs are not bindable with EO since they pass in a function
pointer. Luckily they are barely used.

Ref T5329

7 years agoelm_code: Fix invalid read of 1 byte
Jean-Philippe Andre [Wed, 17 May 2017 06:21:52 +0000 (15:21 +0900)]
elm_code: Fix invalid read of 1 byte

After end of string...

7 years agoelm_code: Fix use after free
Jean-Philippe Andre [Wed, 17 May 2017 06:13:10 +0000 (15:13 +0900)]
elm_code: Fix use after free

7 years agoedje_cc - use mem_alloc to fail and exit if alloc fails and fix err out
Carsten Haitzler (Rasterman) [Wed, 17 May 2017 05:53:22 +0000 (14:53 +0900)]
edje_cc - use mem_alloc to fail and exit if alloc fails and fix err out

PVS sudio thought this was odd and it was a bit. not a real issue as a
mem alloc failure herw would still be fatal and simply a crash... as
opposed to a clean "out of mem" and fatal exit then...

error out eally was not finding originally allocated color and the
malloc should have been a mem_alloc() that guarantees a valid memory
return (or termintion of the process).

@fix

7 years agoelm glview -> fix pvs studio caught typo in stencil bit mappings
Carsten Haitzler (Rasterman) [Wed, 17 May 2017 05:32:08 +0000 (14:32 +0900)]
elm glview -> fix pvs studio caught typo in stencil bit mappings

this fixes CWE-570 on https://www.viva64.com/en/b/0508/

@fix

7 years agoedje_cc docs - fix docs for vector images as it is wrong
Carsten Haitzler (Rasterman) [Tue, 16 May 2017 17:25:01 +0000 (02:25 +0900)]
edje_cc docs - fix docs for vector images as it is wrong

it's images { vector: "x.svg"; } not vector { vector: "x.svg"; } ...

@fix

7 years agoeo - eoid - finally rtemove option to not have eoid. it doesn't work
Carsten Haitzler (Rasterman) [Fri, 12 May 2017 10:50:17 +0000 (19:50 +0900)]
eo - eoid - finally rtemove option to not have eoid. it doesn't work

we use too many bits for metadata now so eoid is broken... remove it
as an option so people dont break out the foot guns

7 years agoecore_input: add ECORE_AXIS_LABEL_TOUCH_PALM enum
Sung-Jin Park [Wed, 17 May 2017 00:44:35 +0000 (09:44 +0900)]
ecore_input: add ECORE_AXIS_LABEL_TOUCH_PALM enum

Summary:
Some of latest touchscreen devices can report if the tool in contact
is the palm of your hand and there is no axis label for this palm flag.
This adds ECORE_AXIS_LABEL_TOUCH_PALM enum as Ecore_Axis_Label type.

Test Plan: N/A

Reviewers: raster, cedric, jpeg, jypark, devilhorns, ManMower

Reviewed By: jpeg

Subscribers: JHyun

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

7 years agowin: Remove special class Efl.Ui.Win.Standard
Jean-Philippe Andre [Tue, 16 May 2017 12:47:52 +0000 (21:47 +0900)]
win: Remove special class Efl.Ui.Win.Standard

All windows should be standard, really. Except when using legacy
elm_win_add() or if type_set() was called with a specific type.

I dislike type_set...

Ref T5322