Shinwoo Kim [Sun, 23 Apr 2017 08:02:14 +0000 (17:02 +0900)]
elementary: fix typo on comment
change "an widget" to "a widget".
Marcel Hollerbach [Sat, 22 Apr 2017 08:41:07 +0000 (10:41 +0200)]
efl_ui_focus_manager: change the new order that gets set
Lets say there is a box with the following ordered children:
|Button|Box|Button|Box|Button| the two boxes do not have any children
at the time of the setup. The logic of the order_update will only order
the children like that:
|Button|Button|Button| Which is correct by that time, the two boxes dont
have any children.
Now the two boxes are also getting children, the order will not
selfupdate or anything so the logical chain would be:
|Button|Button|Button|Box|Box|. Which is wrong. To solve that the
manager keeps the order that got set last, and reapplies the order again
if something gets added to the parent where the order was set.
This should fix strange next / prev operations in ephoto.
Carsten Haitzler (Rasterman) [Sat, 22 Apr 2017 03:20:06 +0000 (12:20 +0900)]
ecore - fix epoll ifdefs and case handling
Derek Foreman [Fri, 21 Apr 2017 21:37:18 +0000 (16:37 -0500)]
ecore_drm2: Fix ticking when atomic mode set is enabled
Putting the PAGE_FLIP_EVENT flag on the set rotation request resulted
in an extra event on the drm device fd that screwed up page flipping
badly from that point on.
@fix
Mike Blumenkrantz [Fri, 21 Apr 2017 20:14:57 +0000 (16:14 -0400)]
tests: add test for large eina tiler rect
Mike Blumenkrantz [Fri, 21 Apr 2017 20:14:57 +0000 (16:14 -0400)]
eina_tiler: use int size matching Eina_Rectangle internally to avoid overflow
since this code's creation it seems that the internal int size was set to use
short in order to micro-optimize memory usage, while the api function parameters
used Eina_Rectangle which had a larger int size. when initializing the internal
rect struct, this would lead to overflows which resulted in broken tilers which
returned iterators with no valid rects after having valid rects added
test case: run weston-subsurfaces
@fix
Mike Blumenkrantz [Fri, 21 Apr 2017 20:14:57 +0000 (16:14 -0400)]
elm_win: do not require mouse buttons to be pressed to activate csd move/resize
the api function requires this, but the unified handler for api+edje handler does
not, since edje singals are deferred and the button which triggered the move
may be released before the signal is processed
ref
ea7bbfe47dc1df5f51725be05eadf7ebce1d8361
@fix
Mike Blumenkrantz [Fri, 21 Apr 2017 20:14:57 +0000 (16:14 -0400)]
ecore-wl2: move ecore_wl2_display_inputs_get() into ecore_wl2_display.c
Cedric Bail [Fri, 21 Apr 2017 18:29:38 +0000 (11:29 -0700)]
eina: some architecture don't like prefetch on NULL apparently.
Daniel Kolesa [Fri, 21 Apr 2017 15:58:38 +0000 (17:58 +0200)]
eo: hide dbg_info from eo files
Continues
b780cf2af299ce17be260486bb7ab64badddbaec.
Daniel Kolesa [Fri, 21 Apr 2017 13:47:12 +0000 (15:47 +0200)]
eo: move event related structures and callback to C
We don't need to keep this in eo files anymore because the APIs
using them are now fully in C. This also allows removal of the
event callback builtin from Eolian.
Carsten Haitzler (Rasterman) [Fri, 21 Apr 2017 07:49:29 +0000 (16:49 +0900)]
elm test - unused vars - fix warning and remove them
Carsten Haitzler (Rasterman) [Fri, 21 Apr 2017 07:40:36 +0000 (16:40 +0900)]
evas gl filter blur - fix uninitialized vare warning for sum
Carsten Haitzler (Rasterman) [Fri, 21 Apr 2017 07:39:20 +0000 (16:39 +0900)]
gl filter blur - fix warning about possible uninit vars by initting them
Carsten Haitzler (Rasterman) [Fri, 21 Apr 2017 07:39:06 +0000 (16:39 +0900)]
eio monitor - remove unused vars and fix warning
Carsten Haitzler (Rasterman) [Fri, 21 Apr 2017 07:38:40 +0000 (16:38 +0900)]
eina mmap - fix warnings thanks to missing include
add include for eina_file.h
Carsten Haitzler (Rasterman) [Fri, 21 Apr 2017 07:38:18 +0000 (16:38 +0900)]
eina debug - fix include of eina_file.h that was missing
fixes new warnings
Carsten Haitzler (Rasterman) [Fri, 21 Apr 2017 07:23:16 +0000 (16:23 +0900)]
efl_io_closer - fix warning about error print
lazy removal of fcntl without fixing up error print... fixed.
Carsten Haitzler (Rasterman) [Fri, 21 Apr 2017 07:19:43 +0000 (16:19 +0900)]
ecore_pipe - fix warning of sign vs unsigned comparison
Carsten Haitzler (Rasterman) [Fri, 21 Apr 2017 06:58:04 +0000 (15:58 +0900)]
elm widget - fix weak reference messup that causes segv's
welm widget weak refered the logical parent slot but never unreffed
the weak ref - ever. this should fix that. in fact it does. one crash
less with:
elementary_test -to "icon standard"
@fix
Ivan Furs [Fri, 21 Apr 2017 02:30:05 +0000 (11:30 +0900)]
evas_async_events: Integrated Ecore_Pipe in evas_async_events
Summary: Integrated Ecore_Pipe in evas_async_events
Reviewers: vtorri, artem.popov, cedric, jpeg, raster, #eflete
Reviewed By: cedric
Subscribers: cedric, jpeg
Differential Revision: https://phab.enlightenment.org/D4622
Jean-Philippe Andre [Fri, 21 Apr 2017 05:24:45 +0000 (14:24 +0900)]
focus: Review EO file and adjust doc a bit
I was reading it to understand this new focus system. So I also
made some cosmetic changes here and there in the file: wrap, fix
a few typos, add missing docs. I'm not pretending that the doc
is perfect now. This really was just a personal review.
Jean-Philippe Andre [Fri, 21 Apr 2017 05:52:30 +0000 (14:52 +0900)]
focus: Fix shadow variable warning
Jean-Philippe Andre [Fri, 21 Apr 2017 01:08:52 +0000 (10:08 +0900)]
ecore wl2: Fix compilation
Jean-Philippe Andre [Thu, 20 Apr 2017 09:59:02 +0000 (18:59 +0900)]
elm_image: Improve test case from previous patch
This refers to
331bf9f74683aad72415e007af14c3d4713f112b
See also, for 1.19:
4eda12b5e1d6e968fb0b057f11c280a87916e93f
Derek Foreman [Thu, 20 Apr 2017 19:40:29 +0000 (14:40 -0500)]
ecore_wl2: Don't crash when drag and drop is unsupported by compositor
Check for presence of data device manager so we don't crash if it's not
there.
Daniel Kolesa [Thu, 20 Apr 2017 16:24:38 +0000 (18:24 +0200)]
eo: move unbindable event APIs to C
In a few classes, this requires some manual expansion. This should
not break anything but it's also fairly ugly; a better solution
would be appreciated, for now we do this.
Similar changes will be done to a few other Efl.Object APIs as
well at later point.
Daniel Kolesa [Thu, 20 Apr 2017 14:14:18 +0000 (16:14 +0200)]
eo: move Efl_Event definition back to C
It's not used anywhere in eo files and has a void pointer.
Marcel Hollerbach [Thu, 20 Apr 2017 08:15:53 +0000 (10:15 +0200)]
efl_ui_focus_manager: select the widget with the smallest distance
this improves the correctness-feeling when moving focus through a
elementary application.
Marcel Hollerbach [Wed, 19 Apr 2017 12:11:02 +0000 (14:11 +0200)]
elm_interface_scrollable: add focus override
it seems this override got lost somewhere
Marcel Hollerbach [Wed, 19 Apr 2017 12:10:43 +0000 (14:10 +0200)]
elementary: fix focus tests
Marcel Hollerbach [Wed, 11 Jan 2017 15:17:05 +0000 (16:17 +0100)]
elm_list: migrate to new focus system
Marcel Hollerbach [Mon, 2 Jan 2017 10:42:35 +0000 (11:42 +0100)]
fix .eo file breaks
Marcel Hollerbach [Fri, 23 Dec 2016 19:11:12 +0000 (20:11 +0100)]
focus_tests: fix the test suite
this brings back the working testsuite and fixes a bug in the
submanager.
Marcel Hollerbach [Fri, 23 Dec 2016 12:49:12 +0000 (13:49 +0100)]
efl_ui_focus_manager: the order contains nodes not focusables
Marcel Hollerbach [Fri, 23 Dec 2016 12:48:46 +0000 (13:48 +0100)]
elementary: introduce helper functions for the redirects
Marcel Hollerbach [Fri, 23 Dec 2016 12:48:00 +0000 (13:48 +0100)]
update according to cedrics review comments
Marcel Hollerbach [Wed, 21 Dec 2016 23:28:24 +0000 (00:28 +0100)]
focus: update object definition
Summary: This introduces a new focus system and the migration to this system.
Test Plan: run elementary_test
Reviewers: cedric
Differential Revision: https://phab.enlightenment.org/D4511
Marcel Hollerbach [Wed, 21 Dec 2016 20:40:52 +0000 (21:40 +0100)]
elm_widget: add unfocusable to debug informations
Marcel Hollerbach [Wed, 21 Dec 2016 19:23:55 +0000 (20:23 +0100)]
efl_ui_focus_manager: make setting a order easier
Marcel Hollerbach [Wed, 21 Dec 2016 18:30:21 +0000 (19:30 +0100)]
elm_box,grid,table: take the resize object as evas object
Marcel Hollerbach [Wed, 21 Dec 2016 12:19:47 +0000 (13:19 +0100)]
efl_ui_focus_manager: if there is no normal item then just do nothing
Marcel Hollerbach [Wed, 21 Dec 2016 12:06:54 +0000 (13:06 +0100)]
efl_ui_flip: migrate to new focus system
Marcel Hollerbach [Wed, 21 Dec 2016 11:29:06 +0000 (12:29 +0100)]
elm_grid: migrate to new focus system
Marcel Hollerbach [Wed, 21 Dec 2016 11:28:44 +0000 (12:28 +0100)]
efl_ui_focus_manager: there is the case that n can be NULL
Marcel Hollerbach [Wed, 21 Dec 2016 10:42:41 +0000 (11:42 +0100)]
efl_ui_focus_manager_sub: do not update if parent is NULL
is is actually a dangerous case, and should NEVER happen
Marcel Hollerbach [Wed, 21 Dec 2016 10:41:55 +0000 (11:41 +0100)]
efl_ui_frame: migrate to new focus system
when collapsed the subtree is unfocusable
Marcel Hollerbach [Wed, 21 Dec 2016 10:05:49 +0000 (11:05 +0100)]
elm_table: migrate to new focus system
Marcel Hollerbach [Tue, 20 Dec 2016 17:21:58 +0000 (18:21 +0100)]
elm_interface_scrollable: fix bringing in of items
Marcel Hollerbach [Tue, 20 Dec 2016 16:34:08 +0000 (17:34 +0100)]
elm_scroller: migrate to new focus system
the scrollable interface is doing most of the work, if we know that
something is already focused we just leave the action_move.
Marcel Hollerbach [Tue, 20 Dec 2016 16:31:33 +0000 (17:31 +0100)]
elm_widget: evalulate show flag and call focus on super
Marcel Hollerbach [Tue, 20 Dec 2016 16:29:26 +0000 (17:29 +0100)]
elm_menu: mirgrate to the new focus
this just means the menu is registering a new manager, it is not really
doing anything, its just there so the children which are searching for
one are finiding one. Elm menu has not handled anything with keys in the
past and will later learn to do so.
Marcel Hollerbach [Tue, 20 Dec 2016 16:28:36 +0000 (17:28 +0100)]
elm_hover: migrate to new focus system
the hover will set itself as redirect once it is visible. And unset
itself once it is hidden.
Marcel Hollerbach [Tue, 20 Dec 2016 16:27:45 +0000 (17:27 +0100)]
efl_ui_win: migrate to the new focus system
this means, focus requests are redirected to the new focus manager.
Marcel Hollerbach [Tue, 20 Dec 2016 16:25:57 +0000 (17:25 +0100)]
elm_interface_scrollable: use the submanager to register the children
this adds the registered elements at the broder of the scrollable to the
parents manager. scroller and gengrid works for registering
Marcel Hollerbach [Tue, 20 Dec 2016 16:25:31 +0000 (17:25 +0100)]
elm_box: set the correct order
Marcel Hollerbach [Tue, 20 Dec 2016 16:24:09 +0000 (17:24 +0100)]
efl_ui_focus_manager: allow settings of subsets
those subsets will just be prepended.
Marcel Hollerbach [Mon, 19 Dec 2016 20:18:42 +0000 (21:18 +0100)]
efl_ui_focus_manager: handle logical end correctly.
Marcel Hollerbach [Mon, 19 Dec 2016 18:56:06 +0000 (19:56 +0100)]
efl_ui_focus_manager: fix error message
Marcel Hollerbach [Mon, 19 Dec 2016 18:53:01 +0000 (19:53 +0100)]
efl_ui_focus_manager: return the new candidate
Marcel Hollerbach [Mon, 19 Dec 2016 18:26:33 +0000 (19:26 +0100)]
efl_ui_focus_manager: handle redirect objects in logical better
Marcel Hollerbach [Mon, 19 Dec 2016 18:24:45 +0000 (19:24 +0100)]
efl_ui_focus_manager: be more secure
Marcel Hollerbach [Mon, 19 Dec 2016 18:23:12 +0000 (19:23 +0100)]
efl_ui_focus_manager: fix sub manager logical handling
Marcel Hollerbach [Mon, 19 Dec 2016 18:21:04 +0000 (19:21 +0100)]
efl_ui_focus_manager: better error messages
Marcel Hollerbach [Sat, 17 Dec 2016 18:45:56 +0000 (19:45 +0100)]
efl_ui_focus_manager_sub: focus the item in sub and main manager
Marcel Hollerbach [Sat, 17 Dec 2016 10:55:59 +0000 (11:55 +0100)]
efl_ui_focus_manager: add log domain for focus movements
Marcel Hollerbach [Mon, 12 Dec 2016 18:23:42 +0000 (19:23 +0100)]
efl_ui_focus_manager: restructure node struct
a redirect can happen for logical OR normal
Marcel Hollerbach [Mon, 12 Dec 2016 18:10:19 +0000 (19:10 +0100)]
efl_ui_focus_manager: more debug information
Marcel Hollerbach [Mon, 12 Dec 2016 19:03:53 +0000 (20:03 +0100)]
efl_ui_focus_manager: do not depend on elm widget events
Marcel Hollerbach [Mon, 12 Dec 2016 20:01:18 +0000 (21:01 +0100)]
efl_ui_focus_manager: unset redirect when focusing new item
Marcel Hollerbach [Mon, 12 Dec 2016 18:09:34 +0000 (19:09 +0100)]
efl_ui_focus_manager: make next and prev searching deadlock prove
Marcel Hollerbach [Mon, 12 Dec 2016 18:09:03 +0000 (19:09 +0100)]
efl_ui_focus_manager: unset redirect when destroyed
Marcel Hollerbach [Mon, 12 Dec 2016 12:56:52 +0000 (13:56 +0100)]
efl_ui_focus_manager: allow flushing of one single node
this gives a massive performance boost
Marcel Hollerbach [Wed, 7 Dec 2016 21:27:36 +0000 (22:27 +0100)]
efl_ui_focus_manager_sub: register the forwared itself
Marcel Hollerbach [Wed, 7 Dec 2016 19:12:11 +0000 (20:12 +0100)]
efl_ui_focus_manager: handle redirect managers in a better way
Marcel Hollerbach [Wed, 7 Dec 2016 15:59:13 +0000 (16:59 +0100)]
elm_widget: update focus register work
now it trackes changes of the parent manager. And registers more
reliable.
Marcel Hollerbach [Wed, 7 Dec 2016 15:48:00 +0000 (16:48 +0100)]
efl_ui_focus_manager: fix up tracking and returning of data
a logical parent should not be in the border elements. The child should
also be not deleted itself. If we do so correct deletion could fail.
Marcel Hollerbach [Sat, 17 Dec 2016 18:51:35 +0000 (19:51 +0100)]
tests: update to recent changes
Marcel Hollerbach [Tue, 6 Dec 2016 13:36:37 +0000 (14:36 +0100)]
efl_ui_focus_manager_sub: update to recenent changes
Marcel Hollerbach [Sun, 4 Dec 2016 20:37:07 +0000 (21:37 +0100)]
efl_ui_focus_manager_sub: register children correctly
Marcel Hollerbach [Sat, 19 Nov 2016 11:46:21 +0000 (12:46 +0100)]
elm_widget: add logical parent to interface
and evaluate all values correctly and emit the correct events
Marcel Hollerbach [Fri, 18 Nov 2016 12:28:11 +0000 (13:28 +0100)]
elm_widget: make sure we dont have a destructed logical parent
Marcel Hollerbach [Fri, 18 Nov 2016 12:26:24 +0000 (13:26 +0100)]
efl_ui_focus_manager_sub: register the root as logical
Marcel Hollerbach [Thu, 17 Nov 2016 13:55:43 +0000 (14:55 +0100)]
efl_ui_focus_manager: a logical item should never get focus.
Marcel Hollerbach [Wed, 16 Nov 2016 19:50:20 +0000 (20:50 +0100)]
efl_ui_focus_manager: use data iterator not key iterator
this saves one call to node_get
Marcel Hollerbach [Wed, 16 Nov 2016 18:01:30 +0000 (19:01 +0100)]
elm_widget: enhance focus handling of the widget
widgets will now use there widget parent as logical parent.
Marcel Hollerbach [Wed, 16 Nov 2016 17:58:57 +0000 (18:58 +0100)]
elm_widget: add debugging informations for a manager in a widget
Marcel Hollerbach [Wed, 16 Nov 2016 17:54:26 +0000 (18:54 +0100)]
efl_ui_focus_manager: new api for adding a logical widget
a widget which is registered logically will not be used for right left
top or down relations.
Marcel Hollerbach [Fri, 4 Nov 2016 16:44:37 +0000 (17:44 +0100)]
efl_ui_win: make it a focus manager
Added a focusmanager with the window itself as the root.
Marcel Hollerbach [Fri, 4 Nov 2016 16:43:40 +0000 (17:43 +0100)]
elm_widget: make it a efl_ui_focus_object
it will register based on it can_focus flag
Marcel Hollerbach [Fri, 4 Nov 2016 16:42:26 +0000 (17:42 +0100)]
efl_ui_focus_manager: add new api to receive child configuration
Marcel Hollerbach [Thu, 27 Oct 2016 17:06:17 +0000 (19:06 +0200)]
focus: fix compilation
it seems like eolian changed, so i need to import the eina_types
Marcel Hollerbach [Mon, 24 Oct 2016 15:16:34 +0000 (17:16 +0200)]
managersub: remove the select_set call
this can be done directly be inheriting border_elements and cutting down
the set.
Marcel Hollerbach [Mon, 24 Oct 2016 10:59:59 +0000 (12:59 +0200)]
focus: update documentation on all eo files
we should now have a complete documentation of those eo files
Marcel Hollerbach [Mon, 24 Oct 2016 10:58:30 +0000 (12:58 +0200)]
focus: update object definition
the event is now a bit better, since you only need to subscribe to one
event instead of two, the new state is passed in the event.
Marcel Hollerbach [Thu, 20 Oct 2016 20:59:05 +0000 (22:59 +0200)]
efl_ui: introduce a focus manager and sub manager object
The Efl.Ui.Focus.Manager abstracts the creation of a localization graph
and a logical tree. The localization graph is used to find a object
right left up or down of a given object. The logical tree is used to
iterate throuw the containers which are used to build a ui.
Those managers can be used bound to some layer in the ui, so for
example the window is a layer, the content of a scroller is a layer.
With those layers, we can make sure that movements of a scroller for
example just means that this graph of objects in the scroller needs to
be recalculated, and not the complete ui.
The advantage of having this to layer bound datastructures is that you
can easily debug those graphs, since the complete layer of this
managerobject can be calculated completly.
Jeeyong Um [Thu, 20 Apr 2017 11:26:17 +0000 (20:26 +0900)]
edje_cc: Keep script block during group inheritance
Currently, script block is removed when an edje group inherits from other group
after defining its own script block.
group { "somegroup";
script {
...
}
parts {
...
}
inherit: "othergroup"; // <= previous script block is removed here.
}
If parent group doesn't have script block, it doesn't need to overwrite previous
one. This will keep script block and print warning when script block is overwritten.
Jean-Philippe Andre [Thu, 20 Apr 2017 09:29:26 +0000 (18:29 +0900)]
elm_image: Fix file_set when preload is disabled
If we disable preload, then the second file set on an elm_image
object would not trigger a deletion of the first image. As a
consequence, both images would be visible... really bad if there's
alpha or different dimensions!
Thanks Anand Kumar for the report!
@fix
Jean-Philippe Andre [Thu, 20 Apr 2017 06:33:59 +0000 (15:33 +0900)]
examples: Fix most trivial warnings
This fixes all warnings for "make examples" for:
-Wunused-parameter
-Wshadow
-Wformat-security
-Wenum-conversion
Some remaining warnings include:
-Wdeprecated-delcarations
Bryce Harrington [Thu, 20 Apr 2017 05:21:21 +0000 (14:21 +0900)]
examples/evas: Use printf instead of fprintf(stdout, ...)
Summary:
Applies the correction purely mechanically using the following shell
command-line:
src/examples/evas$ grep -sr 'fprintf(stdout' . | cut -d: -f1 | uniq | \
xargs sed -i "s/fprintf(stdout/printf(/"
This fixes a few warnings about lack of a format string:
warning: format not a string literal and no format arguments [-Wformat-security]
fprintf(stdout, commands);
Reviewers: cedric
Subscribers: cedric
Differential Revision: https://phab.enlightenment.org/D4691