platform/upstream/efl.git
7 years agoconfig: Update default key bindings (class names)
Jean-Philippe Andre [Thu, 17 Aug 2017 08:39:55 +0000 (17:39 +0900)]
config: Update default key bindings (class names)

See also the previous commit.

7 years agoconfig: Automatically fix some key bindings
Jean-Philippe Andre [Thu, 17 Aug 2017 08:31:14 +0000 (17:31 +0900)]
config: Automatically fix some key bindings

This changes the name used in the config file, without changing the
system config files yet. This restores key bindings for:
 - Win
 - Image
 - Video
 - Photocam

See also the previous commit.

7 years agoelm: Rename some EO widget class names
Jean-Philippe Andre [Thu, 17 Aug 2017 10:36:17 +0000 (19:36 +0900)]
elm: Rename some EO widget class names

It was discussed a while ago that Zoomable was a poor name in some
languages, like python.

This changes, in Efl.Ui, to use underscores:
 - Image.Zoomable
 - Grid.Static
 - Box.Flow
 - Box.Stack

7 years agowidget: Remove all legacy event stuff in propagate
Jean-Philippe Andre [Thu, 17 Aug 2017 09:14:52 +0000 (18:14 +0900)]
widget: Remove all legacy event stuff in propagate

The EO API is now clean! Yay!

Ref T5363

7 years agoelm: Process all input events with EO
Jean-Philippe Andre [Thu, 17 Aug 2017 09:05:23 +0000 (18:05 +0900)]
elm: Process all input events with EO

This removes all uses of type & event_info in the method widget_event.

Ref T5363

7 years agophotocam: Fix key zoom in/out
Jean-Philippe Andre [Thu, 17 Aug 2017 08:50:57 +0000 (17:50 +0900)]
photocam: Fix key zoom in/out

Zoom +/- doesn't work well as this is a multiplication factor.

Test scenario:
 - elementary_test -to Photocam

Then click on the image, and press + or - on the keyboard.

@fix

7 years agoelm: Use a macro to handle key bindings
Jean-Philippe Andre [Thu, 17 Aug 2017 06:08:00 +0000 (15:08 +0900)]
elm: Use a macro to handle key bindings

This factorizes the code and makes most widgets handle key down events
in the same way:
 - check that the object is not disabled, event is not on hold
 - figure out the key binding based on the class name
 - mark event as on hold

The class name is usually MY_CLASS_NAME but in some cases it was
MY_CLASS_NAME_LEGACY which may be different from the EO class name (eg.
elm_win vs. Efl.Ui.Win). In that case the key bindings are broken.

This breaks key bindings for the following widgets:
 - Win (focus)
 - Image ("clicked")
 - Video (move, play)

This fixes key bindings for the following widgets:
 - Nstate

Some widgets remain broken:
 - Photocam / Efl.Ui.Image.Zoomable

A patch will be applied to restore the key bindings for the above
breaks.

7 years agowidget: Add eo event info inside widget_event
Jean-Philippe Andre [Thu, 10 Aug 2017 06:41:25 +0000 (15:41 +0900)]
widget: Add eo event info inside widget_event

This is an internal function that should probably become an overridable
protected method, as it's required for proper event handling in widgets.
Next step: use eo_event_info in the widgets implementations. Then remove
legacy event struct.

Ref T5363

7 years agoeo: Define Efl.Event in EO
Jean-Philippe Andre [Thu, 17 Aug 2017 05:52:41 +0000 (14:52 +0900)]
eo: Define Efl.Event in EO

This can be used in the widgets propagation mechanism later. I don't see
any really good reason to not define this struct in EO anyway.

Ref T5363

7 years agowidget: Remove import edje_types from EO
Jean-Philippe Andre [Thu, 10 Aug 2017 06:16:18 +0000 (15:16 +0900)]
widget: Remove import edje_types from EO

Ref T5363

7 years agoevas: Set weight to "expand" by default
Jean-Philippe Andre [Thu, 27 Jul 2017 11:46:17 +0000 (20:46 +0900)]
evas: Set weight to "expand" by default

This is a semi experimental patch to set the default weight
of objects to (1, 1), i.e. EXPAND. This seems like a more
sensible default value than no weight. Some objects may not
need the expand weight, but this seems to be the minority,
not the majority.

Ref T5301

7 years agoNetstatus: Use arrows for up and down net traffic indicators.
Stephen 'Okra' Houston [Wed, 23 Aug 2017 01:44:14 +0000 (20:44 -0500)]
Netstatus: Use arrows for up and down net traffic indicators.

7 years agoeolian-cxx: Add workaround for function pointer types
Felipe Magno de Almeida [Wed, 23 Aug 2017 01:31:55 +0000 (22:31 -0300)]
eolian-cxx: Add workaround for function pointer types

7 years agoMove efl interfaces from evas to efl directory
Daniel Zaoui [Wed, 2 Aug 2017 18:32:30 +0000 (21:32 +0300)]
Move efl interfaces from evas to efl directory

You may need to remove your installed directory to avoid conflicts

7 years agoelm_spinner: Support min,max filter for float format case.
Woochan Lee [Tue, 22 Aug 2017 05:31:04 +0000 (14:31 +0900)]
elm_spinner: Support min,max filter for float format case.

Summary: The previous min, max filter doesn't support float format case.

Test Plan: elementary_test -> spinner.

Reviewers: jpeg, cedric, woohyun, myoungwoon

Subscribers: cedric, jpeg

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

7 years agoefl_ui_clock: Parses the format recursively.
Woochan Lee [Tue, 22 Aug 2017 05:17:41 +0000 (14:17 +0900)]
efl_ui_clock: Parses the format recursively.

Summary:
Some of locale formats convert as extension format.
For example,
             uk_UA d_t_fmt is "%a, %d-%b-%Y %X %z".
             The %X will convert as %T.
             The %T format has to convert one more time to convert as %H:%M:%S.

ref : https://lh.2xlibre.net/locale/uk_UA/

We need to parse the format recursively to support that kind of case.

@fix

Test Plan:
Change the locale as uk_UA.
Run elementary_test -> datetime
See the time field is not appear.

Reviewers: jpeg, cedric

Subscribers: cedric, jpeg

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

7 years agoedje: Fix warning message
Jean-Philippe Andre [Tue, 22 Aug 2017 02:41:29 +0000 (11:41 +0900)]
edje: Fix warning message

efl_version is a top-level value

@fix

7 years agoevas: Add safety checks to avoid crash
Jean-Philippe Andre [Tue, 22 Aug 2017 00:37:39 +0000 (09:37 +0900)]
evas: Add safety checks to avoid crash

Without more information or clear reproduction scenario (this crash
doesn't happen for me), this is probably the best we can do.

Fixes T5532

7 years agoevas: Fix experimental code related to visibility
Jean-Philippe Andre [Mon, 21 Aug 2017 10:18:53 +0000 (19:18 +0900)]
evas: Fix experimental code related to visibility

This is to pretend the object is visible when it's been added with
efl_add but evas hasn't started rendering yet (it's in the queue).

This code is not enabled (yet?) although I think it could very well be
(I don't observe the same bugs as I did the first time I tried this
patch).

7 years agotheme: fix dialog sizing when no buttons are present
Mike Blumenkrantz [Mon, 21 Aug 2017 14:16:58 +0000 (10:16 -0400)]
theme: fix dialog sizing when no buttons are present

ensure that the content is used for min sizing and not the icon

@fix

7 years agoelm_box: Fix support of aspect hints
Jean-Philippe Andre [Mon, 21 Aug 2017 09:25:39 +0000 (18:25 +0900)]
elm_box: Fix support of aspect hints

Test scenario: ephoto without a recent patch (47fe2b9ab03c151b0f4).
Before any further explanation, ephoto was definitely misusing the
aspect API here. A label most definitely shouldn't be sized based on an
aspect ratio, that's just crazy (you really want to make it as tall as
it's wide?)

If a box has an aspected item, it needs to run its min calc loop twice:
 1. Once to determine the "true" min size in the direction of the box
    (ie.  in X in case of a horizontal box), and
 2. Once more in order to apply the aspect ratio to aspected items and
    augment the perpendicular min size (ie. Y for horizontal).

After that, it can go and layout the items based on the available size.

As we may guess from the above description (1) determines min W and
(2) determines min H (in horizontal mode).

BUT, there were two problems:
 - The wrong item min size was used inside the 2nd loop (the code was
   not symmetrical between horizontal and vertical modes). These are the
   changes in _smart_extents_non_homogeneous_calc.
 - The box min length was based on the actual size of aspected items,
   rather than their min size. This goes against the observation. These
   are the changes in _smart_extents_calculate.

Ref T5888

@fix

7 years agopopup: Avoid error messages on NULL
Jean-Philippe Andre [Mon, 21 Aug 2017 05:06:15 +0000 (14:06 +0900)]
popup: Avoid error messages on NULL

Those were spotted in ephoto (with no config, first run).

7 years agoevas - fix build dependencies that cause failed builds
Carsten Haitzler (Rasterman) [Mon, 21 Aug 2017 07:04:01 +0000 (16:04 +0900)]
evas - fix build dependencies that cause failed builds

missing dev on ecore_wl2 so fix...

7 years agoevas gl: Improve GL_ERRORS (internal debug code)
Jean-Philippe Andre [Mon, 21 Aug 2017 04:30:54 +0000 (13:30 +0900)]
evas gl: Improve GL_ERRORS (internal debug code)

7 years agoglview: Fix ALWAYS render policy
Jean-Philippe Andre [Mon, 21 Aug 2017 02:34:48 +0000 (11:34 +0900)]
glview: Fix ALWAYS render policy

@fix

7 years agoeina: Add EINA_UNUSED in eina_pass_through_from
Jean-Philippe Andre [Mon, 21 Aug 2017 01:45:28 +0000 (10:45 +0900)]
eina: Add EINA_UNUSED in eina_pass_through_from

Fixes a warning

7 years agoelm segment control: delete event cbs on obj delete.
Amitesh Singh [Sat, 19 Aug 2017 07:32:08 +0000 (16:32 +0900)]
elm segment control: delete event cbs on obj delete.

@fix

7 years agowayland: Tick like a boss
Derek Foreman [Fri, 18 Aug 2017 19:13:11 +0000 (14:13 -0500)]
wayland: Tick like a boss

Instead of the clever but awful manual_render_set hack, actually do ticks
based on frame callbacks.

Fix T5850

7 years agoecore_wl2: Send configure complete when windows don't need configure
Derek Foreman [Thu, 17 Aug 2017 20:43:50 +0000 (15:43 -0500)]
ecore_wl2: Send configure complete when windows don't need configure

The intent of the "configure complete" event is to indicate that the
window is configured and ready to receive buffers.

For "windows" like mouse cursors, that's immediate - let them know.

7 years agoecore_wl2: Refactor out code to send window configure complete event
Derek Foreman [Thu, 17 Aug 2017 20:42:41 +0000 (15:42 -0500)]
ecore_wl2: Refactor out code to send window configure complete event

7 years agowayland_egl: Call ecore_wl2_window_buffer_attach
Derek Foreman [Thu, 17 Aug 2017 20:20:44 +0000 (15:20 -0500)]
wayland_egl: Call ecore_wl2_window_buffer_attach

This lets ecore_wl2 know that there's a buffer attached - even if we don't
know what it is because it's hidden by gl.

7 years agowayland_shm: Use ecore_wl2_window_buffer_attach
Derek Foreman [Thu, 17 Aug 2017 20:12:57 +0000 (15:12 -0500)]
wayland_shm: Use ecore_wl2_window_buffer_attach

No longer calling wl_surface_attach directly.

7 years agowayland_shm: Don't attach null buffers from surface_post
Derek Foreman [Thu, 17 Aug 2017 20:12:19 +0000 (15:12 -0500)]
wayland_shm: Don't attach null buffers from surface_post

This is protected against elsewhere.

7 years agoecore_wl2: Add ecore_wl2_window_buffer_attach API
Derek Foreman [Thu, 17 Aug 2017 20:10:59 +0000 (15:10 -0500)]
ecore_wl2: Add ecore_wl2_window_buffer_attach API

Let ecore_wl2 track some buffer related state so we can more easily sync
things between ecore_evas and the evas_engines.

7 years agowayland_egl: Add ecore_wl2_window_commit
Derek Foreman [Mon, 14 Aug 2017 23:50:15 +0000 (18:50 -0500)]
wayland_egl: Add ecore_wl2_window_commit

Use ecore_wl2_window_commmit() in addition to eglSwapBuffers in order
to set up a frame callback and handle pending update tracking.

7 years agowayland: Switch to ecore_wl2_window_commit()
Derek Foreman [Mon, 14 Aug 2017 23:48:58 +0000 (18:48 -0500)]
wayland: Switch to ecore_wl2_window_commit()

Use ecore_wl2_window_commit() instead of directly calling wl_surface_commit

7 years agowayland_shm: Remove direct access to wl_surface
Derek Foreman [Mon, 14 Aug 2017 23:21:22 +0000 (18:21 -0500)]
wayland_shm: Remove direct access to wl_surface

Querying it through Ecore_Wl2_Window now

7 years agoecore_wl2: Add new APIs ecore_wl2_window_frame_callback_add/del()
Derek Foreman [Mon, 14 Aug 2017 22:46:49 +0000 (17:46 -0500)]
ecore_wl2: Add new APIs ecore_wl2_window_frame_callback_add/del()

Abstract frame callbacks through ecore_wl2_window so we can add them in
multiple places without having the wayland compositor generate more than
one.

Also allows us to keep a callback registered over hide/unhide of a window
easily.

7 years agoecore_wl2: Add API ecore_wl2_window_pending_get()
Derek Foreman [Mon, 14 Aug 2017 22:45:41 +0000 (17:45 -0500)]
ecore_wl2: Add API ecore_wl2_window_pending_get()

Lets us test if a commit has been requested but the compositor hasn't
yet told use to draw new content for it.

7 years agoecore_wl2: Add API ecore_wl2_window_commit()
Derek Foreman [Mon, 14 Aug 2017 22:44:13 +0000 (17:44 -0500)]
ecore_wl2: Add API ecore_wl2_window_commit()

Abstract wl_surface commits in ecore_wl2_window.

7 years agowayland: Put Ecore_Wl2_Win instead of wl_surface into the engines
Derek Foreman [Mon, 14 Aug 2017 22:07:31 +0000 (17:07 -0500)]
wayland: Put Ecore_Wl2_Win instead of wl_surface into the engines

We'll need to track some state in a common way, so attaching it to the
window seems like a good idea.

7 years agowayland: Make the wayland evas engines dependent on ecore_wl2
Derek Foreman [Mon, 14 Aug 2017 21:27:24 +0000 (16:27 -0500)]
wayland: Make the wayland evas engines dependent on ecore_wl2

Seems like the best place to put some common code.

7 years agowayland: fix num/caps lock handling in events
Mike Blumenkrantz [Fri, 18 Aug 2017 19:24:51 +0000 (15:24 -0400)]
wayland: fix num/caps lock handling in events

locks are not the same as modifiers, and the corresponding event flag must
be set based on whichever value(s) are set instead of yolo mixing and matching

@fix

ref T5737

7 years agotheme: handle e dialog sizing when no buttons are present
Mike Blumenkrantz [Fri, 18 Aug 2017 19:24:51 +0000 (15:24 -0400)]
theme: handle e dialog sizing when no buttons are present

@fix

7 years agoevas: make top object returning functions return the top object
Mike Blumenkrantz [Fri, 18 Aug 2017 19:24:51 +0000 (15:24 -0400)]
evas: make top object returning functions return the top object

this previously just returned the top clipper at the specified points

@fix

7 years agoecore_sdl: Add API doc for ecore_sdl_feed_events
Bryce Harrington [Fri, 18 Aug 2017 13:48:59 +0000 (09:48 -0400)]
ecore_sdl: Add API doc for ecore_sdl_feed_events

Reviewers: cedric, devilhorns

Subscribers: jpeg

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

7 years agoexamples: Improve error message text from Evas examples
Bryce Harrington [Fri, 18 Aug 2017 13:47:45 +0000 (09:47 -0400)]
examples: Improve error message text from Evas examples

Reviewers: cedric, devilhorns

Subscribers: jpeg

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

7 years agoexamples/evas: Fix sp. of 'Coult' in warning
Bryce Harrington [Fri, 18 Aug 2017 13:46:48 +0000 (09:46 -0400)]
examples/evas: Fix sp. of 'Coult' in warning

Reviewers: cedric

Subscribers: jpeg

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

7 years agoelm_color_class: Save all cc overlays
Jean-Philippe Andre [Fri, 18 Aug 2017 07:36:50 +0000 (16:36 +0900)]
elm_color_class: Save all cc overlays

It seems that cc overlays that didn't change got lost in the process of
saving elm_config and then reloading it (automatically happens because
the file changed... which we just wrote to).

Fixes T3682

7 years agocolorselector: Fix invalid API (orient vs. dir)
Jean-Philippe Andre [Fri, 18 Aug 2017 07:48:56 +0000 (16:48 +0900)]
colorselector: Fix invalid API (orient vs. dir)

7 years agovieet: Add read-only mode
Jean-Philippe Andre [Fri, 18 Aug 2017 07:10:36 +0000 (16:10 +0900)]
vieet: Add read-only mode

Really ugly scripting right there.

7 years agoelm_config: Add env var to skip profile save
Jean-Philippe Andre [Fri, 18 Aug 2017 06:50:24 +0000 (15:50 +0900)]
elm_config: Add env var to skip profile save

This only skips writing the profile name to
  ~/.elementary/config/profile.cfg

This allows easier testing of elementaryt apps (and E) with custom
profiles.

export ELM_PROFILE_NOSAVE=1

7 years agoelm_test: Fail nicely if plug can't connect
Jean-Philippe Andre [Fri, 18 Aug 2017 06:00:27 +0000 (15:00 +0900)]
elm_test: Fail nicely if plug can't connect

This makes sure that
  elementary_test -to "Window Plug"
exits nicely (with the exit policy on all window close) instead of
hanging forever with an invisible window.

@fix

7 years agoecore_evas_extn: Fix socket & plug windows
Jean-Philippe Andre [Fri, 18 Aug 2017 05:53:20 +0000 (14:53 +0900)]
ecore_evas_extn: Fix socket & plug windows

Socket & Plug were broken after 38e6780262906ffd8f6ad8de7c8a4286.
Multiple problems here:
 - The invalid path was used for the lock file.
 - The invalid buffer ID was used for unlock in render_post. That's
   because the buffer was switched during output_flush which happens
   before render_post. So the buffer would remain locked forever on the
   server side (unless maybe some animation was happening there).

@fix

7 years agoevas: do not double include interface.
Cedric BAIL [Thu, 17 Aug 2017 22:02:11 +0000 (15:02 -0700)]
evas: do not double include interface.

This lead to unproperly defined symbol (as they should be build in libefl) on
windows with actually no need for it.

7 years agoevas: Fix spelling/grammar errors
Bryce Harrington [Thu, 17 Aug 2017 14:45:35 +0000 (10:45 -0400)]
evas: Fix spelling/grammar errors

Summary:
Fixes some basic punctuation and grammar errors, corrects spelling and
word order/choice in various places.

Reviewers: devilhorns

Reviewed By: devilhorns

Subscribers: cedric, jpeg

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

7 years agoevas: Drop excessive use of 'just' and 'which'
Bryce Harrington [Thu, 17 Aug 2017 14:44:05 +0000 (10:44 -0400)]
evas: Drop excessive use of 'just' and 'which'

Reviewers: cedric, devilhorns

Reviewed By: devilhorns

Subscribers: jpeg

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

7 years agoevas_rectangle_main: Whitespace cleanup
Bryce Harrington [Thu, 17 Aug 2017 14:43:08 +0000 (10:43 -0400)]
evas_rectangle_main: Whitespace cleanup

Summary: Signed-off-by: Bryce Harrington <bryce@osg.samsung.com>

Reviewers: cedric

Subscribers: jpeg

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

7 years agoelput: Fix @brief's in docs
Bryce Harrington [Thu, 17 Aug 2017 14:41:26 +0000 (10:41 -0400)]
elput: Fix @brief's in docs

Summary:
It is not necessary to specify @brief since the first line will
automatically be used, but if it is used it should be only for the brief
description, not the detailed description.

Also reformat other docs in this file to follow convention for the brief
docs.

Reviewers: cedric

Subscribers: jpeg

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

7 years agoElm Examples: Fix undefined function references.
Guilherme Iscaro [Wed, 16 Aug 2017 14:12:47 +0000 (11:12 -0300)]
Elm Examples: Fix undefined function references.

They were renamed by 599bb616ec5

Signed-off-by: Jean-Philippe Andre <jp.andre@samsung.com>
7 years agoevas: Fix auto-show of EO objects
Jean-Philippe Andre [Wed, 16 Aug 2017 11:04:07 +0000 (20:04 +0900)]
evas: Fix auto-show of EO objects

Objects show should happen as early as possible during the render cycle,
as it affects smart objects calculation and everything else.

Thanks @JackDanielZ for the report!

Fixes T5880

7 years agoui.box: add aspect ratio support
Thiep Ha [Thu, 17 Aug 2017 00:53:30 +0000 (09:53 +0900)]
ui.box: add aspect ratio support

Adding support for aspect ratio.

ref T5487

7 years agoui.box: Add handling for weight + align
Thiep Ha [Wed, 16 Aug 2017 22:56:23 +0000 (07:56 +0900)]
ui.box: Add handling for weight + align

Issue: If the item has weight and non-filled align, item is not resized.
This patch fixes this issue.
Test: elementary_test -> ui.box -> Equal weight. Buttons Btn1, BtnA, B, C
do not resize when resize the window.

ref T5487

7 years agoevas: Fix crash with filters
Jean-Philippe Andre [Wed, 16 Aug 2017 05:06:51 +0000 (14:06 +0900)]
evas: Fix crash with filters

Since the EO APIs are defined as weak symbols, invalid definitions of
EAPI lead to runtime crashes on non-public APIs. This is a fix following
a series of changes wrt. EAPI definitions.

7 years agovalue size is stored in type, no need to manually specify them.
Gustavo Sverzut Barbieri [Tue, 15 Aug 2017 21:59:50 +0000 (18:59 -0300)]
value size is stored in type, no need to manually specify them.

7 years agoector: fix EAPI on Windows
Vincent Torri [Tue, 15 Aug 2017 14:42:13 +0000 (16:42 +0200)]
ector: fix EAPI on Windows

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
7 years agoeina: remove tests and benchmark for long dead mempool.
Cedric BAIL [Tue, 15 Aug 2017 20:46:38 +0000 (13:46 -0700)]
eina: remove tests and benchmark for long dead mempool.

7 years agoeina: add tests for from.
Cedric BAIL [Tue, 15 Aug 2017 20:46:38 +0000 (13:46 -0700)]
eina: add tests for from.

7 years agoeina: add support for from in pass through
Cedric BAIL [Tue, 15 Aug 2017 20:46:37 +0000 (13:46 -0700)]
eina: add support for from in pass through

7 years agoeina: add support for from in one big.
Cedric BAIL [Tue, 15 Aug 2017 20:46:37 +0000 (13:46 -0700)]
eina: add support for from in one big.

7 years agoeina: add support for from in chained mempool.
Cedric BAIL [Tue, 15 Aug 2017 20:46:36 +0000 (13:46 -0700)]
eina: add support for from in chained mempool.

7 years agoeina: add an API to check if a pointer is a valid element of a mempool.
Cedric BAIL [Tue, 15 Aug 2017 20:46:34 +0000 (13:46 -0700)]
eina: add an API to check if a pointer is a valid element of a mempool.

7 years agoeio: fix correct stat structure on Windows 32 bits
Vincent Torri [Mon, 14 Aug 2017 13:50:03 +0000 (15:50 +0200)]
eio: fix correct stat structure on Windows 32 bits

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
7 years agobuild: don't pass -fPIC on Windows
Vincent Torri [Mon, 14 Aug 2017 05:07:05 +0000 (07:07 +0200)]
build: don't pass -fPIC on Windows

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
7 years agoecore_evas: win32 module - fix possibly uninitialized variables
Vincent Torri [Sun, 13 Aug 2017 21:21:39 +0000 (23:21 +0200)]
ecore_evas: win32 module - fix possibly uninitialized variables

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
7 years agoevas: move EAPI undef to the correct place
Vincent Torri [Sun, 13 Aug 2017 19:11:02 +0000 (21:11 +0200)]
evas: move EAPI undef to the correct place

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
7 years agoevas: undef EAPI properly.
Vincent Torri [Sun, 13 Aug 2017 19:10:33 +0000 (21:10 +0200)]
evas: undef EAPI properly.

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
7 years agoevas GDI engine: improve speed
Vincent Torri [Sun, 13 Aug 2017 19:08:53 +0000 (21:08 +0200)]
evas GDI engine: improve speed

expedite mean value goes from ~125 to ~205

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
7 years agowayland: bump wayland protocol version requirement
Derek Foreman [Mon, 14 Aug 2017 16:23:26 +0000 (11:23 -0500)]
wayland: bump wayland protocol version requirement

We need a newer version for recent dmabuf changes.

7 years agoefl: add EFL_VERSION_1_21
Mike Blumenkrantz [Mon, 14 Aug 2017 11:24:48 +0000 (07:24 -0400)]
efl: add EFL_VERSION_1_21

indicate that features from this version can be used

7 years agoEfl.ui.panes: move legacy APIs at bottom of file
Amitesh Singh [Mon, 14 Aug 2017 00:55:38 +0000 (09:55 +0900)]
Efl.ui.panes: move legacy APIs at bottom of file

7 years agoRevert "evas: we should be able to access this data during an object being destroyed."
Cedric Bail [Sat, 12 Aug 2017 17:27:01 +0000 (10:27 -0700)]
Revert "evas: we should be able to access this data during an object being destroyed."

This reverts commit 207cab086f290878cd584e6c61b3cd2696c5fd88.

Better make efl_data_scope_safe_get work during EFL_EVENT_DEL.

7 years agoeo: only return NULL when the object is destructed.
Cedric Bail [Sun, 13 Aug 2017 20:14:31 +0000 (13:14 -0700)]
eo: only return NULL when the object is destructed.

There is a problem with the previous version. The object can still be
alive due to the use of manual_free in evas. So you wouldn't be able
for example to remove a callback from an object that hasn't been
destroyed yet. If that callback is triggered by the destruction
of the object, you would end up with an unexpected and impossible to
prevent effect of access after free on a callback that you had removed.

Not sure if that still solve the original problem that the code was
trying to prevent in Ecore_Evas.

7 years agoecore_evas: define the predefine for wl2 instead of wayland
Marcel Hollerbach [Sat, 12 Aug 2017 13:19:45 +0000 (15:19 +0200)]
ecore_evas: define the predefine for wl2 instead of wayland

7 years agoecore_imf/wayland: Check the return value of memory allocation function
Jihoon Kim [Sat, 12 Aug 2017 01:23:01 +0000 (10:23 +0900)]
ecore_imf/wayland: Check the return value of memory allocation function

7 years agoefl-wl: max size of 0x0 from shell is -1x-1 in efl
Mike Blumenkrantz [Fri, 11 Aug 2017 22:43:15 +0000 (18:43 -0400)]
efl-wl: max size of 0x0 from shell is -1x-1 in efl

7 years agoefl-wl: initialize seat keymap fd to -1
Mike Blumenkrantz [Fri, 11 Aug 2017 22:43:15 +0000 (18:43 -0400)]
efl-wl: initialize seat keymap fd to -1

@fix

7 years agoecore: always set delete_me before removing fd from poll
Mike Blumenkrantz [Fri, 11 Aug 2017 22:43:15 +0000 (18:43 -0400)]
ecore: always set delete_me before removing fd from poll

ensure bad fds don't immediately get re-added to polling

@fix

7 years agoefl-wl: handle case where eglBindWaylandDisplay fails
Mike Blumenkrantz [Fri, 11 Aug 2017 22:43:15 +0000 (18:43 -0400)]
efl-wl: handle case where eglBindWaylandDisplay fails

@fix

7 years agoefl-wl: always dismiss popups on hide
Mike Blumenkrantz [Fri, 11 Aug 2017 22:43:15 +0000 (18:43 -0400)]
efl-wl: always dismiss popups on hide

@fix

7 years agoelm_widget: do not reparent subobjs to top widget for non-elm objects
Mike Blumenkrantz [Fri, 11 Aug 2017 22:43:15 +0000 (18:43 -0400)]
elm_widget: do not reparent subobjs to top widget for non-elm objects

this breaks handling of non-elm objects and makes it impossible to safely manage
object lifetimes

ref D3957
ref 62cf70034de38b17f2025e08f81b5758b3d6d6e3

@fix

7 years agoefl-wl: use correct accessor method for keyboard resource hash
Mike Blumenkrantz [Fri, 11 Aug 2017 22:43:15 +0000 (18:43 -0400)]
efl-wl: use correct accessor method for keyboard resource hash

@fix

7 years agowayland: set min/max size hints to surface before show
Mike Blumenkrantz [Fri, 11 Aug 2017 22:43:15 +0000 (18:43 -0400)]
wayland: set min/max size hints to surface before show

with deferred surface creation the first canvas change of hints may not
be able to trigger protocol methods for size hints, so ensure that hints are
set

7 years agoefl-wl: add functionality for extracting surfaces for external use
Mike Blumenkrantz [Fri, 11 Aug 2017 22:43:15 +0000 (18:43 -0400)]
efl-wl: add functionality for extracting surfaces for external use

@feature

7 years agoefl-wl: add EFL_WL_DEBUG env variable for enabling wayland debug
Mike Blumenkrantz [Fri, 11 Aug 2017 22:43:15 +0000 (18:43 -0400)]
efl-wl: add EFL_WL_DEBUG env variable for enabling wayland debug

@feature

7 years agowayland: remove xdg5 support
Mike Blumenkrantz [Fri, 11 Aug 2017 22:43:15 +0000 (18:43 -0400)]
wayland: remove xdg5 support

this has not been used or tested since last year and there are no major
compositors which lack xdg6 support

7 years agowayland: fix xdg-shell popup windows
Mike Blumenkrantz [Fri, 11 Aug 2017 22:43:15 +0000 (18:43 -0400)]
wayland: fix xdg-shell popup windows

@fix

7 years agoecore_evas_drm: Tick from the animator registration callback
Derek Foreman [Fri, 11 Aug 2017 22:02:23 +0000 (17:02 -0500)]
ecore_evas_drm: Tick from the animator registration callback

If we're not ticking already when a new animator is started then we have
to wait for a vblank to get a tick.  That's not great.

If we can, use the time of the last vblank to generate an immediate tick
to avoid this latency.

7 years agoecore_evas_drm: Let ecore_drm2 track pending page flips
Derek Foreman [Fri, 11 Aug 2017 19:51:30 +0000 (14:51 -0500)]
ecore_evas_drm: Let ecore_drm2 track pending page flips

Since the engines can call the flip functions, we need to protect the
ticker from missing those flips.  Thus, we let ecore_drm2, which obviously
sees all flips, track them.

7 years agoecore_drm2: Add query for pending pageflip
Derek Foreman [Fri, 11 Aug 2017 19:48:41 +0000 (14:48 -0500)]
ecore_drm2: Add query for pending pageflip

We've been tracking this in ecore_evas, but ecore_evas isn't the only
caller, and it doesn't know about flips initiated by the evas engines.