Commit Graph

47116 Commits

Author SHA1 Message Date
Davide Andreoli 3c8597d3fc Initial structure for a proper FDO compliant icon theme.
The idea here is to provide a "real" fdo icon theme along the icons in the elm edje theme.

To minimize file redundancy the icons are profided directly in a fdo structure and picked
in icon_fdo.edc. Also I'm using all the icons in svg format so that we don't need to provide
all the creazy sizes as per fdo spec.

More icons will comes in the next commits
2016-05-05 19:11:50 +02:00
Tom Hacohen 537b138a23 Eo composite: change composite objects to not be tied to parent
This commit breaks behaviour!
Re-parenting no longer detaches composite objects, so watch out.

Now you can have an object be a composite object of an object although
it's not its child. This allows widgets to do things like having an
object as the child of a child object while still making it a composite
object to the main object.

With this change, composite objects don't keep a reference to the child,
but instead composite "bonds" are implicitly removed when either the
parent or the child are destructed.
2016-05-05 16:45:12 +01:00
Mike Blumenkrantz 9d5caf00b6 wayland: implement session recovery
add support for reconnecting wayland applications if the compositor dies

disconnect -> destroy gl ctx + image textures -> block rendering ->
reconnect -> create gl ctx -> create image textures -> unblock rendering ->
sprinkle special seasoning on top -> just like ma used to make

 #SamsungFeatures

@feature
2016-05-05 10:49:31 -04:00
Mike Blumenkrantz 0231800b60 evas: add internal functions for unsetting+regenerating image data
in the event that the global gl context changes, all engine image data
must be destroyed and then re-created in order to continue rendering
successfully
2016-05-05 10:49:31 -04:00
Mike Blumenkrantz bdfbd4a4e1 wayland_egl: return immediately in eng_window_free() when null is passed 2016-05-05 10:49:31 -04:00
Mike Blumenkrantz 4f4556be35 wayland_egl: unset global egl context if used wl_display changes
as long as evas uses a global gl context any change to the wl_display
must trigger a full re-create on that context
2016-05-05 10:49:30 -04:00
Mike Blumenkrantz 217551e92b wayland_egl: ensure gl context destruction when unsetting wl_display
extra refcounting during setup in this case will prevent the context
destruction, leading to a dead gl context which is unable to render
2016-05-05 10:49:30 -04:00
Mike Blumenkrantz fa66ce28ec ecore-wl2: null out subsurface pointers after destroying them 2016-05-05 10:49:30 -04:00
Mike Blumenkrantz 6f4f0100d2 evas: add a few null checks for e->engine.data.output
this can be null if engine info has not yet been set or if engine info
has been unset, leading to engine crashes. instead of adding null checks in
every engine, better to add the checks to the originating functions

someone with time to kill should go through all the EAPI functions and
add more checks
2016-05-05 10:49:30 -04:00
Mike Blumenkrantz fd1c06153b evas: move Evas_VG_Data struct to separate header 2016-05-05 10:49:30 -04:00
Mike Blumenkrantz 18bb75d0f9 evas: move Efl_Canvas_Polygon_Data struct to separate header 2016-05-05 10:49:30 -04:00
Felipe Magno de Almeida 6124039c8f eolian-cxx: Added test for the removal of the .Base class requirement
Test creates class with the same name as the namespace of another class
2016-05-04 21:14:26 -03:00
Cedric BAIL a1bd7a7499 ecore: add timeout promise test. 2016-05-04 15:42:59 -07:00
Cedric BAIL 950701b738 ecore: silence warning in job test. 2016-05-04 15:42:59 -07:00
Cedric BAIL 8d50990a27 ecore: add a timeout promise. 2016-05-04 15:42:59 -07:00
Cedric BAIL 3ba901f15e ecore: rework efl_timer to be a proper eo object emiting signal. 2016-05-04 15:42:59 -07:00
Cedric BAIL 639378bfc7 ecore: remove timer dump logic as Eo and clouseau should give us that info. 2016-05-04 10:30:13 -07:00
Cedric BAIL 1adf08e41c ecore: fix split built. 2016-05-04 10:30:13 -07:00
Cedric BAIL 93af61f255 ecore: rename ecore_timer to efl_timer. 2016-05-04 10:30:13 -07:00
Chris Michael cf7cf35c3c ecore-audio: Fix issue of improper deleting of ecore_job
This patch fixes a compiler warning where eo_del was being called on
an Ecore_Job.

ref c1141c7b0b

@fix

Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
2016-05-04 11:40:29 -04:00
Chris Michael 54cce990d3 elput: Add API function to set pointer position on a given seat
Small patch to add an API function that can be used to set the current
pointer position on a given seat name. This function (typically) will
be used inside an Ecore_Evas to "pointer warp".

@feature

Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
2016-05-04 10:43:36 -04:00
Chris Michael 28f725a687 elput: Add API function to get pointer position on a given seat
Small patch to add an API function that can be used to retrieve
current pointer position on a given seat name.

@feature

Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
2016-05-04 10:20:04 -04:00
Amitesh Singh 6a237f3cca elm_cnp: comment the debug macro
It was accidently enabled in 1bc9483a82
2016-05-04 16:28:56 +05:30
Marcel Hollerbach c66695bedb eo: replace loop_get with object_find
Summary:
object_find is more generic, so other mechanisms can also reuse the
code.
The object itself has to support the function, so there is no need for
eo_isa which would have a negative performance impact.
The base class implementation calls interface_get on the parent, so a
override of the function can just call the super function to continue in
the recursion.

Test Plan: just run the eo test suite

Reviewers: raster, tasn, jpeg

Reviewed By: tasn, jpeg

Subscribers: felipealmeida, netstar, cedric, jpeg

Differential Revision: https://phab.enlightenment.org/D3909
2016-05-04 10:43:55 +02:00
Ji-Youn Park 1ee72bbf04 elm_win: move elm_win_raise into eo again.
elm_win_raise is used not only x but also wayland.
so I modify doc and move again this api to eo.
2016-05-04 15:49:32 +08:30
Larry Jr 5230309b02 Eio: fixed eio_model_test_monitor_add
fix filename comparison in the test for deleted file
2016-05-03 18:48:01 -03:00
Cedric BAIL ba10fa6636 ecore: silent warnings by directly freeing. 2016-05-03 14:32:05 -07:00
Cedric BAIL c1141c7b0b ecore: remove dead Ecore_Job eo object. 2016-05-03 13:31:43 -07:00
Larry Jr 24864af5c4 Eldbus: re-enable eldbus_tests_model by default 2016-05-03 16:49:29 -03:00
Larry Jr d418e98237 Eldbus: fixed eina_promise callback in eldbus test model 2016-05-03 16:49:29 -03:00
Derek Foreman 74283f076e ecore_wl2: Check return of wl_display_dispatch()
If the compositor crashes at just the right time this dispatch can fail
and result in a stuck app spinning in a tight loop.  Fix it so we do a
proper shutdown in this case.

Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
2016-05-03 14:24:45 -05:00
Derek Foreman d6818131c0 wayland_shm: Fix extra buffer allocation on client shutdown
On shutdown we need to set wl_surface to NULL to let the engine know
there's nothing to write to - however we've been setting up an entirely
new outbuf instead of just changing the old one.
2016-05-03 14:24:45 -05:00
Derek Foreman 16108a972f wayland_shm: Fix bad indenting 2016-05-03 14:24:45 -05:00
Derek Foreman 4f6e7a8ab3 wayland_shm: Fix dmabuf fallback to shm
The outbuf code should free the surface structure, not the dmabuf
abstraction or a use after free occurs on fallback.

Re-organize some code to make sure we don't rely on anything that may
have already been freed.

Add a wl_surface_commit() to keep the animation timer alive through
the fallback process.
2016-05-03 14:24:45 -05:00
Derek Foreman 6ef0fdfe2b wayland_shm: Fix uninit variable
also make it an Eina_Bool
2016-05-03 14:24:45 -05:00
Cedric BAIL 0a77ae5c4a elementary: fix build with missing function. 2016-05-03 11:18:06 -07:00
Chris Michael ebf26f2017 ecore-wl2: Formatting
Minor formatting fix. No functional changes

Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
2016-05-03 12:33:26 -04:00
Chris Michael eefee97c2a ecore-evas-wayland: Remove include for old Ecore_Wayland library
This include is leftover from the porting to Ecore_Wl2. Remove
unused include for old Ecore_Wayland library

@fix

Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
2016-05-03 11:21:31 -04:00
Chris Michael 89b955db51 ecore-wayland: Deprecate Ecore_Wayland library
This patch deprecates the Ecore_Wayland library with a warning to not
use it. This (imo) is a better method of deprecation rather than
adding EINA_DEPRECATED to every function.

Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
2016-05-03 08:35:48 -04:00
Ji-Youn Park ab3058d342 elm_win: move API related with backed engine to legacy
There are several elm_win apis releated with backed engine.
we need to move these kind of api form eo to legacy.
2016-05-03 18:44:03 +08:30
Stefan Schmidt fc51b44ed4 tests: eio: re-enable eio test cases
Have been disabled with 0c76f82a. They pass here so re-enabling.
2016-05-03 11:30:23 +02:00
Tom Hacohen 9fca3f7a14 Eo define class: Don't force EWAPI for class_get().
Because we were forcing EWAPI in this macro, one couldn't create a class
that is "static" or even just private or the module. The symbol was
always exposed.
Since in C the attributes of a function are set based on the first
declaration, we don't need to specify any attributes in this macro and
we can just rely on them being specified in the declaration. So for
example, for class "foo":

foo.h:
EWAPI const Eo_Class *foo_class_get(...);

foo.c:
const Eo_Class *foo_class_get(...);

Would give the desired results, a class would be EWAPI. This is already
done automatically for all of the classes using Eolian. Because of the
lack of specifiers, the default visibility will now be the default
visibility based on compiler flags and settings.

Thanks to JP for reporting this issue.

This can potentially (but very unlikely) break things.
2016-05-03 09:53:45 +01:00
Thiep Ha 2e68debe7b elm entry: remove unused funtions
The _elm_entry_entry_paste is removed from elm_cnp.c.
It is unused now. We can remove it and related function.
2016-05-03 17:13:47 +00:00
Thiep Ha f5d10f1961 elm cnp/Wl: Remove duplicated data receive callback
If we do drag & drop and then do copy & paste, both _wl_selection_receive
and _wl_dnd_receive are called for one action (dnd or cnp). It is reduntdant.
We only need one data received callback to handle two cases dnd and cnp.
2016-05-03 17:13:47 +00:00
Thiep Ha aa0ace21d7 ecore wayland: add selection type
We have copy & paste and drag & drop selection types, but we cannot
distinguish between these two types when requesters receive data
from data ready event.
This patch adds a new enum to help selection requesters distinguish
between two selection types and have suitable actions for each type.
2016-05-03 17:13:47 +00:00
Thiep Ha bcba96656a elm cnp/wl: add uri data type checking
When selection owner provides uri type (uri/text-list),
it should check if data is in correct format.
2016-05-03 17:13:47 +00:00
Thiep Ha ae1b2a124f elm cnp/Wl: set selection for all data types
Currently, not all selection data types are set.
This patch sets selection for all suitable types that we supported.
2016-05-03 17:13:47 +00:00
Thiep Ha 8796e938a3 elm cnp/Wl: Remove duplicated data send callback
If we do drag & drop and then do copy & paste, both _wl_selection_send
and _wl_dnd_send are called for one action (dnd or cnp). It is reduntdant.
We only need one callback to handle two cases dnd and cnp.
2016-05-03 17:13:47 +00:00
Thiep Ha 8a46f78c7d elm dnd/wl: add types' notify handler
This patch adds notify handlers for types.
It provides different ways to handle different data types.
2016-05-03 17:13:47 +00:00
Thiep Ha 1bc9483a82 elm dnd/wl: add type converters
we support different types for DnD, but there is no converters.
This patch adds converters for types, so that we can send
different data for different types.
2016-05-03 17:13:47 +00:00