Commit Graph

47116 Commits

Author SHA1 Message Date
Mike Blumenkrantz f6f76bf87f elm_cnp: do not send null accepts for every type within wl data offers
once is sufficient
2016-04-21 13:58:45 -04:00
Mike Blumenkrantz d36c931fac ecore-wl2: more dnd v3 updates
ref d34b5958051c87fe491e358b24e9f25238fda10f

 #gladthiswasabetaapi
2016-04-21 13:58:45 -04:00
Mike Blumenkrantz 74ed3fbe74 ecore-wl2: use fd handler for receiving selection data
not sure what trac ticket was referenced here, but probably the issue was
not using ecore_main_fd_handler_file_add()
2016-04-21 13:58:45 -04:00
Mike Blumenkrantz c9208871ae elm_cnp: attempt to get all applicable mime types when getting selection
@fix
2016-04-21 13:58:45 -04:00
Mike Blumenkrantz 46666de75d ecore-wl2: return some copied code back to its original state
this will make future rebases easier
2016-04-21 13:58:45 -04:00
Mike Blumenkrantz 19239b9251 ecore-wl2: update wl dnd/clipboard support to v3 of protocol
this code is mostly copied from weston:
78d4bf9a3ec990dceee23fd53962a69891352a0e
9c93179023fe894e417ccd20533d72d672d976fc

credit to Carlos Garnacho <carlosg@gnome.org> as original author

fix T3455

@feature
2016-04-21 13:58:45 -04:00
Mike Blumenkrantz 1f6746cedb ecore-wl2: correct the name and type of some function params 2016-04-21 13:58:45 -04:00
Chris Michael 4e64fb046e ecore-drm: Fix typo in doxygen
Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
2016-04-21 08:55:01 -04:00
Derek Foreman 1505c2cf38 wayland_shm: Fix evas test breakage
Failing to link the wayland dmabuf protocol in caused a symbol
resolution failure in the evas test
2016-04-21 08:16:40 -04:00
Stefan Schmidt a41f9ad870 tests: eo: switch to generic eo_key_del, fix build
Since 5e09d1307b we use the generic eo_key_del
for all of these.
2016-04-21 11:41:44 +02:00
Carsten Haitzler 806d4ada03 try readme commit to check git prune issue 2016-04-21 18:08:45 +09:00
Carsten Haitzler 5e09d1307b eo base - remove the duplicated key dels and just do eo_key_del() now
this rationalizes all the duplicated key dels (key_data, key_obj and
key_value).
2016-04-21 18:02:31 +09:00
Mykyta Biliavskyi b63b00c1b8 Edje edit: fix aspect_preference value into generate code function.
Add value "SOURCE" as one of possible values for aspect_preference
attributes.
@fix
2016-04-21 11:47:38 +03:00
Mykyta Biliavskyi 2006c01c06 Edje edit: add new program actions into code generate function.
Generate edc source code for next action types:
  - EDJE_ACTION_TYPE_FOCUS_SET
  - EDJE_ACTION_TYPE_FOCUS_OBJECT
  - EDJE_ACTION_TYPE_PARAM_COPY
  - EDJE_ACTION_TYPE_PARAM_SET
2016-04-21 11:47:30 +03:00
Mykyta Biliavskyi e634a7cc86 Edje edit: fix get list of program tagrets.
Correct support all types of program actions for constructing
list of targets.
There are 3 group of actions, that related to targets:
 - Does not support targets at all.
 - Support only parts as targets.
 - ACTION_STOP, that supported parts and other programs as targtes.

@fix
2016-04-21 11:47:23 +03:00
Jean-Philippe Andre 6826ce1c6f Examples: Fix compilation (disable CXX examples!)
Warning: This disables CXX examples because they use
now-internal APIs that have no EO API binding.
Those examples should be updated to use Efl.Ui widgets... once
we have them.
2016-04-21 17:16:53 +09:00
Carsten Haitzler 26b5eb8a26 eo base - add loop_get for base class
base class objects will ask their parent object to get the loop. this
means it recurses all objects regardless of type until it finds an
object that returns a proper loop object - eg a loop object returns
itself, a window, gfx/ui object returns the mainloop object etc. etc.

@feature
2016-04-21 15:19:36 +09:00
Jean-Philippe Andre 9551867c52 Edje: Fix tests build without installing edj files
This mostly reverts acc01fe229

This simply uses DEPENDENCIES.
2016-04-21 14:52:53 +09:00
Cedric Bail acc01fe229 edje: seems the only way to force the build of this files.
I can't figure out what is wrong with using BUILT_SOURCES. It should
work, but doesn't. Moving to use _SOURCES is impossible again (variable
again). Using the _DATA is the only technically working solution. Which
they will be installed on your system even if you don't need them. If
you find a way around it and still get them to build, please patch.
2016-04-20 21:53:50 -07:00
Carsten Haitzler ab06bfdfab Revert "edje: build again edje files needed for tests"
This reverts commit 13b4a56ddc.

sorry cedric. this totally broke efl build. eo/eolian etc. is not
built before evas for example and so build totally falls apart.

yes - it makes no sense that this one change would cause that. it
doesnt make sense. but it did. :(
2016-04-21 11:15:33 +09:00
Cedric BAIL 54126d8fa5 ecore: use restartable event for main loop event. 2016-04-20 15:54:18 -07:00
Cedric BAIL c0bce3e23e eolian: add tests for restartable event. 2016-04-20 15:53:33 -07:00
Cedric BAIL 842a020e1f eolian: add support for restartable event. 2016-04-20 15:53:16 -07:00
Cedric BAIL 7cb53a3ae2 eo: let's check that this nested restarted event are working somehow. 2016-04-20 15:52:41 -07:00
Cedric BAIL 1fd049510f eo: add support for restartable event inside nested call.
The idea is that when you are processing those events from within
they won't call twice any of the event until all of them are processed
at least once (Or one of them did return EINA_FALSE).
2016-04-20 15:50:46 -07:00
Cedric BAIL 13b4a56ddc edje: build again edje files needed for tests 2016-04-20 15:19:44 -07:00
Stefan Schmidt 500750323d tests: fix another redefine of Ecore_Cb build break 2016-04-20 15:31:13 +02:00
Mike Blumenkrantz ad9ae67e46 ecore-wl(2): add copyright headers (MIT) from weston
these files were created containing code which was very obviously copied from
weston. when copying code, copyright headers must also be copied in order to
comply with licenses.
2016-04-20 08:47:01 -04:00
Duna Oh fbe4e4b6ad Ecore: Use calloc() to initialize Ecore_Event_Mouse_XXXX
Summary:
To ensure initialize all fields of Ecore_Event_Mouse_XXX,
use calloc() instead of malloc().

Test Plan: N/A

Reviewers: gwanglim, cedric, raster, devilhorns, ManMower, zmike

Subscribers: jpeg, input.hacker, JHyun

Differential Revision: https://phab.enlightenment.org/D3906
2016-04-20 08:33:20 -04:00
Tom Hacohen 115b69fd47 Eolian cxx tests: don't redefine Ecore_Cb. 2016-04-20 13:30:50 +01:00
Jean-Philippe Andre 80da5099c1 Elm: Don't install box, table and grid eo files
Box, Table and Grid now belong to legacy land.
Their Evas counterparts are already not installed anymore,
and Efl.Ui.Box and Efl.Ui.Grid are here to replace those
widgets (note: code was initially copy & pasted).

This should fix installed EO files consistency.
2016-04-20 20:39:58 +09:00
Stefan Schmidt f74c4bbce7 docs: eldbus: add class and property descriptions for eldbus model files
Also fix some existing docs while being there.
2016-04-20 12:46:41 +02:00
Stefan Schmidt 3e4a902270 docs: eio: add class description for eio model class 2016-04-20 12:46:41 +02:00
Stefan Schmidt 2452e8dee8 docs: edje_edit: add class description 2016-04-20 12:46:40 +02:00
Carsten Haitzler bc4d43a1cc eo base: names - add finding functions to fund by name
this finds child objects by walking the child tree searching children
by using the search string which can be name, class:name and both
class and name can also be a glob.

@feature
2016-04-20 18:29:41 +09:00
Tom Hacohen 5bec0d07b4 Ecore eo: Resolve duplicate Ecore_Cb definition. 2016-04-20 10:11:21 +01:00
Jean-Philippe Andre 945276ab1d Efl: Add Efl.Pack interfaces and Efl.Ui Box and Grid
The Pack interface is meant to unify all containers APIs.
Box and Grid a two new widgets implementing this new API. Box
has a new layout function that seems to correspond more to developers
expectations.

The Pack interface also provides a way to implement custom layout
functions, by the way of layout engine classes.

Still TODO:
- Named/Slot containers API with parts (eg. Elm.Layout, Edje.Object)
- Unify those with Pack (naming to be argued over: pack, content, ...)
- Deprecate (remove out of EO land) old containers
- Implement proper layout functions for Grid and fix Box.Flow

@feature
2016-04-20 13:51:13 +09:00
Jean-Philippe Andre 2d946d03ae Efl.Pack: Rename methods and properties
- Children are now contents
- Efl.Pack_Layout is now a separate class and
  merges Pack_Engine.
- Removed dumb class Efl.Pack_Item
- Updated docs
- Added pack_ or grid_ prefixes to some methods
2016-04-20 11:15:53 +09:00
Jean-Philippe Andre 4a16e83c56 elm_text/box: Use real widgets to show off box layout 2016-04-20 10:47:40 +09:00
Jean-Philippe Andre a0f92d9bef Efl.Ui.Grid: Implement custom layout functions
Untested yet. Will need to add the common 3 classes:
- standard
- homogenous
- homogenous max_size

And then implement a true custom layout function, that
respects weights in a certain manner (need to define it
clearly).
2016-04-20 10:47:40 +09:00
Jean-Philippe Andre e4889ca367 Ui.Box: Fix flow layout
Set align, fix usage with eo_add(EFL_UI_BOX_FLOW_CLASS).
2016-04-20 10:47:40 +09:00
Jean-Philippe Andre f2eff88640 Efl.Ui.Box: Add pack_align property
While at first I wanted to remove the box_align / table_align
properties, it ends up being a necessary value in some cases.
2016-04-20 10:47:40 +09:00
Jean-Philippe Andre 101cb7fe2a Efl.Ui.Grid: Fix new API behaviour
This fixes the linear API usage with a table.
TODO:
- remove internal table (as it doesn't support layout funcs)
- implement multiple layout functions (regular, homogenous, ...)
2016-04-20 10:47:40 +09:00
Jean-Philippe Andre 86a59a3a24 Elm_test/Grid: Add linear API test for Efl.Ui.Grid
At this point, it proves that the grid API does not work.
Some things still need to be implemented or fixed.
2016-04-20 10:47:40 +09:00
Jean-Philippe Andre 4b7ca8846d Elm_test/Ui.Box: Implement example custom layout function
This shows how to implement a layout function, with the
required Eo class boilerplate (note: could probably be
simpler with the appropriate macros, or a better solution
to create classes on the fly in C).

The layout function itself is awful, but shows that "it works".
2016-04-20 10:47:40 +09:00
Jean-Philippe Andre a84468cf4b Elm_test: Add test case for Ui.Grid
Right now the proper layout functions for Ui.Grid are not
implemented, so most controls don't work. This tests that the
grid works fine as a table.
2016-04-20 10:47:40 +09:00
Jean-Philippe Andre 548efd7fa4 Efl.Ui.Box: Implement flow layouts
This reuses the Evas.Box code, since we are still using the
box internally. The flow layout function is far from perfect
(it works well only with items of same height).

This shows how to use specific layouts provided by EFL.
2016-04-20 10:47:40 +09:00
Jean-Philippe Andre 24eccb6d62 Efl.Ui.Box: Implement way to override layout function
So, since we don't have function pointers, all the solutions
to reimplementing the layout function are quite convoluted:

1. use events
2. reimplement layout func
3. use an extra object
4. use a generic class (non instanciated)

Promises don't apply here (layout will run multiple times).

Problems:

1. Multiple event callbacks will be called, resulting in
   potential performance impact, extra events, etc...
   Also, there is no way to define standard implementations
   that would be provided by the framework.

2. Reimplementation of a function requires extra EO work
   (create an EO class, etc...), doesn't allow on-the-fly
   change of the layout method.

3. Probably the best solution is to have an object implementing
   the layout. But this means creating an extra object along
   with the container.

4. To avoid the extra object, use a class, and reimplement
   a @class function. This unfortunately requires extra
   EO work.

Solution 4. has been selected, but it's not very nice...
2016-04-20 10:47:40 +09:00
Jean-Philippe Andre 94228d2683 Elm_test: Add basic test case for the new box api 2016-04-20 10:47:40 +09:00
Jean-Philippe Andre 11403a4ec4 Elm: Compile in box and grid
Ui.Grid is definitely not complete.
Ui.Box still needs a few adjustments:
- alternative layout
- aspect ratio support
- RTL support
- remove evas box
2016-04-20 10:47:40 +09:00