Tom Hacohen [Tue, 1 Mar 2016 14:47:40 +0000 (14:47 +0000)]
Manually semi-migrate files in preparation for the script
The migration scripts breaks with some weird cases, here I manually
migrated some parts, and just removed the eo_do from others without
actually migrating (so I could deal with that later).
Tom Hacohen [Mon, 9 Nov 2015 11:45:04 +0000 (11:45 +0000)]
Eo: Migrate to the new syntax (Eo 4).
The syntax is described in: https://phab.enlightenment.org/w/eo/
Summary:
eo_do(obj, a_set(1)) -> a_set(obj, 1)
eo_do_super(obj, CLASS, a_set(1)) -> a_set(eo_super(obj, CLASS), 1)
eo_do_*_ret() set of functions are no longer needed.
This is the first step, the next step would be to also fix up eo_add()
which currently still uses the old syntax and is not 100% portable.
@feature
Daniel Kolesa [Wed, 2 Mar 2016 14:35:02 +0000 (14:35 +0000)]
eolian generator: @class methods take const object
Daniel Kolesa [Wed, 2 Mar 2016 13:50:19 +0000 (13:50 +0000)]
eolian: fix generation tests
Daniel Kolesa [Wed, 2 Mar 2016 13:11:14 +0000 (13:11 +0000)]
eolian: generate correct const first param on methods where applicable
Daniel Kolesa [Tue, 1 Mar 2016 14:13:16 +0000 (14:13 +0000)]
eolian generator: use new call syntax
Daniel Kolesa [Tue, 1 Mar 2016 11:38:17 +0000 (11:38 +0000)]
eolian generator: add obj as first param to header method prototypes
Jean Guyomarc'h [Fri, 22 Jan 2016 20:08:40 +0000 (21:08 +0100)]
ecore_cocoa: add function attributes
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
Jean Guyomarc'h [Fri, 22 Jan 2016 20:06:35 +0000 (21:06 +0100)]
autotools: fix code coverage on OSX
OSX uses clang as a default compiler instead of gcc.
Gcov does not exist for clang, but clang has an alternative which
requires additional compilier and linker flags.
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
Jean Guyomarc'h [Wed, 6 Jan 2016 22:10:29 +0000 (23:10 +0100)]
ecore_cocoa: add missing documentation
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
Jean Guyomarc'h [Wed, 6 Jan 2016 22:04:33 +0000 (23:04 +0100)]
ecore_cocoa: move Ecore_Cocoa_Cursor.h in Ecore_Cocoa.h
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
Jean Guyomarc'h [Wed, 6 Jan 2016 21:54:46 +0000 (22:54 +0100)]
ecore_cocoa: full documentation of Ecore_Cocoa.h
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
Jean Guyomarc'h [Wed, 6 Jan 2016 21:13:42 +0000 (22:13 +0100)]
ecore_cocoa: remove Ecore_Cocoa_Event_Window
Create specific structures for each event:
- Ecore_Cocoa_Event_Window_Focused
- Ecore_Cocoa_Event_Window_Unfocused
- Ecore_Cocoa_Event_Window_Destroy
They are currently hold the same data, but this will allow not to break
the event protocol when future extensions will be needed.
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
Jean Guyomarc'h [Wed, 6 Jan 2016 21:01:41 +0000 (22:01 +0100)]
ecore_cocoa: rename width and height parameters
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
Jean Guyomarc'h [Wed, 6 Jan 2016 20:56:09 +0000 (21:56 +0100)]
ecore_cocoa: better naming of events
Lost and got focused have been renamed FOCUSED and UNFOCUSED to mirror
the focus API in Elementary.
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
Jean Guyomarc'h [Wed, 6 Jan 2016 20:38:10 +0000 (21:38 +0100)]
ecore_cocoa: replace Ecore_Cocoa_Window_Id by Ecore_Cocoa_Object
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
Jean Guyomarc'h [Tue, 5 Jan 2016 23:16:16 +0000 (00:16 +0100)]
ecore_cocoa: unify API with Ecore_Evas
- Sizes are signed integers
- Width is named w
- Height is named h
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
Jean Guyomarc'h [Tue, 5 Jan 2016 23:03:57 +0000 (00:03 +0100)]
ecore_cocoa: introduce Ecore_Cocoa_Object
This type is used as a bridge between objective-c objects (which are
ALWAYS pointed to) and the C interface.
Ecore_Cocoa_Object* is a less ugly substitute for void*.
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
Jean Guyomarc'h [Tue, 5 Jan 2016 23:00:56 +0000 (00:00 +0100)]
ecore_cocoa: use Eina_Bool instead of int
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
Jean Guyomarc'h [Tue, 5 Jan 2016 22:58:04 +0000 (23:58 +0100)]
ecore_cocoa: implement and const-correct window size step getter
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
Jean Guyomarc'h [Tue, 5 Jan 2016 22:54:57 +0000 (23:54 +0100)]
ecore_cocoa: implement and const-correct window size max getter
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
Jean Guyomarc'h [Tue, 5 Jan 2016 22:50:52 +0000 (23:50 +0100)]
ecore_cocoa: implement and const-correct window min size getter
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
Jean Guyomarc'h [Tue, 5 Jan 2016 22:47:30 +0000 (23:47 +0100)]
ecore_cocoa: implement and const-correct window size getter
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
Jean Guyomarc'h [Tue, 5 Jan 2016 22:45:50 +0000 (23:45 +0100)]
ecore_cocoa: implement and const-correct window geometry getter
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
Stefan Schmidt [Wed, 2 Mar 2016 14:32:09 +0000 (15:32 +0100)]
tests cxx: remove superfluous output to stdout
These outputs are not giving any more information besides what we already get:
Ecore C++ headers compilePASS: tests/ecore_cxx/cxx_compile_test
(Ignoring the problem with the newline) The test name tells it all and we are
just filling the log.
Stefan Schmidt [Wed, 2 Mar 2016 12:14:00 +0000 (13:14 +0100)]
build: fix problems with coverage check build where some files are not found
Switch to use a lcov config file which geninfo_auto_base and remove hard coding
the base dir to src/lib. geninfo_auto_base is designed for a use case like
ours where we have several base dirs (lib, bin, tests, ...) and it detects them
automatically. This fixes failures in a coverage run where the file is simply
looked for in the wrong directory.
Stefan Schmidt [Wed, 2 Mar 2016 09:02:37 +0000 (10:02 +0100)]
build: enhance generated html output from coverage report
We do not handle branch coverage so remove that part of the output. On the
other hand at a legend to allow people to understand the color meanings.
Jean-Philippe Andre [Wed, 2 Mar 2016 03:01:15 +0000 (12:01 +0900)]
Evas filters: Fix meaning of data 'execute' flag
The doc said it would behave like "value = data" but actually
the data part was executed directly. This should fix that.
Jean-Philippe Andre [Wed, 2 Mar 2016 02:37:36 +0000 (11:37 +0900)]
Evas filters: Mark object as changed on data_set
This fixes the new test case.
Jean-Philippe Andre [Mon, 29 Feb 2016 10:07:50 +0000 (19:07 +0900)]
Evas filter: Add new test case for state and data set
Jean-Philippe Andre [Mon, 29 Feb 2016 09:41:28 +0000 (18:41 +0900)]
Edje calc: Simplify code readability with eo_do
This removes an absolutely crazy use of eo_do where all calls
to the efl_gfx_filter functions where factorized in an unreadable
manner. Hopefully eo_do will disappear soon.
Jean-Philippe Andre [Mon, 29 Feb 2016 09:17:46 +0000 (18:17 +0900)]
Evas filters: Use fail_if instead of fail in test case
This will give more accurate information in case of failure.
Jean-Philippe Andre [Mon, 29 Feb 2016 06:47:36 +0000 (15:47 +0900)]
Evas text: Add legacy filter APIs
Those should now be considered stable, even if their internals
may change. Also, these APIs are in Tizen so adding these will
help merging Tizen EFL and upstream.
Jean-Philippe Andre [Mon, 29 Feb 2016 08:04:13 +0000 (17:04 +0900)]
Evas filters: Fix bad stringshare usage
Make sure the filter uses properly initialized state names and
don't call stringshare_del on a static string.
Jean-Philippe Andre [Mon, 29 Feb 2016 06:23:18 +0000 (15:23 +0900)]
Efl.Gfx.Filter: Rework APIs and mark as stable
- Remove @beta flags,
- Update @since to match stabilization,
- Change methods to properties with keys,
- Use eo_prefix and add filter_ prefix to all properties since
they use very generic names,
The filter API stays under Efl.Gfx since there are other kinds of
filters, and this one is the particular "graphical filter" or
"effect" API.
The EO API mostly not change from an application point of view,
except for "source_get" which now returns a string directly. Also,
state and data can now be queried.
Carsten Haitzler (Rasterman) [Wed, 2 Mar 2016 01:33:40 +0000 (10:33 +0900)]
efl - fix threadqueue spinlock destruction on openbsd - doesn't like it
so the spinlock on the threadqueue block pool it taken on shutdownn,
while the block pool is freed up then its is destroyed, but openbsd
very much doesnt like this and returns an error, so release the lock
before destroying it.
@fix
Carsten Haitzler (Rasterman) [Tue, 1 Mar 2016 04:19:08 +0000 (13:19 +0900)]
edje entry: fix gcc warnings about possibly uninitialized variables
this fixes warnings from gcc specifically:
lib/edje/edje_entry.c: In function ‘_edje_entry_imf_cursor_info_set’:
lib/edje/edje_entry.c:4104:4: warning: ‘dir’ may be used uninitialized
in this function [-Wmaybe-uninitialized]
ecore_imf_context_bidi_direction_set(en->imf_context,
(Ecore_IMF_BiDi_Direction)dir);
^
lib/edje/edje_entry.c:4099:24: note: ‘dir’ was declared here
Evas_BiDi_Direction dir;
^
lib/edje/edje_entry.c:4103:4: warning:
‘ch’ may be used uninitialized in this function [-Wmaybe-uninitialized]
ecore_imf_context_cursor_location_set(en->imf_context, cx, cy, cw,
ch);
^
lib/edje/edje_entry.c:4098:27: note: ‘ch’ was declared here
Evas_Coord cx, cy, cw, ch;
^
lib/edje/edje_entry.c:4103:4:
warning: ‘cw’ may be used uninitialized in this function
[-Wmaybe-uninitialized]
ecore_imf_context_cursor_location_set(en->imf_context, cx, cy, cw,
ch);
^
lib/edje/edje_entry.c:4098:23: note: ‘cw’ was declared here
Evas_Coord cx, cy, cw, ch;
^
lib/edje/edje_entry.c:4103:4: warning:
‘cy’ may be used uninitialized in this function [-Wmaybe-uninitialized]
ecore_imf_context_cursor_location_set(en->imf_context, cx, cy, cw,
ch);
^
lib/edje/edje_entry.c:4098:19: note: ‘cy’ was declared here
Evas_Coord cx, cy, cw, ch;
^
lib/edje/edje_entry.c:4103:4: warning:
‘cx’ may be used uninitialized in this function [-Wmaybe-uninitialized]
ecore_imf_context_cursor_location_set(en->imf_context, cx, cy, cw,
ch);
^
lib/edje/edje_entry.c:4098:15: note: ‘cx’ was declared here
Evas_Coord cx, cy, cw, ch;
^
lib/edje/edje_entry.c: In function
‘_edje_part_move_cb’:
lib/edje/edje_entry.c:4104:4: warning: ‘dir’ may be used uninitialized
in this function [-Wmaybe-uninitialized]
ecore_imf_context_bidi_direction_set(en->imf_context,
(Ecore_IMF_BiDi_Direction)dir);
^
lib/edje/edje_entry.c:4099:24: note: ‘dir’ was declared here
Evas_BiDi_Direction dir;
^
lib/edje/edje_entry.c:4103:4: warning:
‘ch’ may be used uninitialized in this function [-Wmaybe-uninitialized]
ecore_imf_context_cursor_location_set(en->imf_context, cx, cy, cw,
ch);
^
lib/edje/edje_entry.c:4098:27: note: ‘ch’ was declared here
Evas_Coord cx, cy, cw, ch;
^
lib/edje/edje_entry.c:4103:4:
warning: ‘cw’ may be used uninitialized in this function
[-Wmaybe-uninitialized]
ecore_imf_context_cursor_location_set(en->imf_context, cx, cy, cw,
ch);
^
lib/edje/edje_entry.c:4098:23: note: ‘cw’ was declared here
Evas_Coord cx, cy, cw, ch;
^
lib/edje/edje_entry.c:4103:4: warning:
‘cy’ may be used uninitialized in this function [-Wmaybe-uninitialized]
ecore_imf_context_cursor_location_set(en->imf_context, cx, cy, cw,
ch);
^
lib/edje/edje_entry.c:4098:19: note: ‘cy’ was declared here
Evas_Coord cx, cy, cw, ch;
^
lib/edje/edje_entry.c:4103:4: warning:
‘cx’ may be used uninitialized in this function [-Wmaybe-uninitialized]
ecore_imf_context_cursor_location_set(en->imf_context, cx, cy, cw,
ch);
^
lib/edje/edje_entry.c:4098:15: note: ‘cx’ was declared here
Evas_Coord cx, cy, cw, ch;
^
and the likes...
Carsten Haitzler (Rasterman) [Tue, 1 Mar 2016 04:15:41 +0000 (13:15 +0900)]
edje epp - fix gcc warning about possible unused var usage
gcc now is complaining about out ancient cpp code possibly using
newlines as undefined. this should keep this warning quiet - there
isnt a real performance issue here.
bin/edje/epp/cpplib.c: In function ‘cpp_get_token’:
bin/edje/epp/cpplib.c:4602:15: warning: ‘newlines’ may be used
uninitialized in this function [-Wmaybe-uninitialized]
else if (newlines > 0)
@fix
Carsten Haitzler (Rasterman) [Tue, 1 Mar 2016 04:13:33 +0000 (13:13 +0900)]
evas render2 - move empty region data into const land so it is in RO mem
this should ensure these constants are in read-only memory if
possible iof they are marked as const as well as static
Carsten Haitzler (Rasterman) [Tue, 1 Mar 2016 04:09:50 +0000 (13:09 +0900)]
evas - render2 - silence new gcc warnings about possibly freeing static
This one is new:
In file included from lib/evas/canvas/render2/evas_render2.c:5:0:
In function ‘_region_break.isra.5’,
inlined from ‘region_add’ at
lib/evas/canvas/render2/region.c:847:41:
lib/evas/canvas/render2/region.c:107:62: warning: attempt to free a
non-heap object ‘_region_brokendata’ [-Wfree-nonheap-object]
#define FREE_DATA(reg) if ((reg)->data && (reg)->data->size)
free((reg)->data)
^
lib/evas/canvas/render2/region.c:184:4:
note: in expansion of macro ‘FREE_DATA’
FREE_DATA(region);
While it won't actually free is because if using brokendata the size
is 0 and it'll skip it, add in a check to see if region->data is the
brokendata static
Felipe Magno de Almeida [Mon, 29 Feb 2016 14:01:04 +0000 (11:01 -0300)]
eolian-cxx: Fix C++ events with new Eo_Event_Cb signature
Mike Blumenkrantz [Mon, 29 Feb 2016 12:30:31 +0000 (07:30 -0500)]
efl+edje: add EFL_VERSION_1_18 define for detecting 1.18 feature support
this define means that any 1.18 feature can now be detected by testing for
the presence of this define, even before the release has gone out
for future (non-bugfix) releases, further defines should be created in addition
to this one in order to provide detection for features in each version
Tom Hacohen [Mon, 29 Feb 2016 11:56:17 +0000 (11:56 +0000)]
Eo: Add an interface for other interfaces to inherit from.
Shuhrat Dehkanov [Mon, 29 Feb 2016 12:02:20 +0000 (07:02 -0500)]
Update documentation text
Summary:
The word 'english' has several issues:
- the whole documentation and source code is in English,
there is no point in mentioning here specifically
- the character 'E' needs to be capitalized, as in
Ecore, Evas, Elementary
Reviewers: zmike, herdsman
Subscribers: cedric, seoz, jpeg
Differential Revision: https://phab.enlightenment.org/D3740
Tom Hacohen [Mon, 29 Feb 2016 11:50:52 +0000 (11:50 +0000)]
Edje edit: Fix wrong return value type.
Tom Hacohen [Mon, 29 Feb 2016 10:18:40 +0000 (10:18 +0000)]
Eo callbacks: Migrate all of the EFL to the new event cb signatures.
Tom Hacohen [Mon, 29 Feb 2016 09:12:35 +0000 (09:12 +0000)]
Eo events: Change event callback signature.
Change the Eo event callback signature to what suggested by Marcel
Hollerbach in the ML (Thread: EFL interface change - Animator).
This changes the signature of callbacks from
Eina_Bool cb(void *data, Eo *obj const Eo_Event_Description *desc, void *event_info)
to
Eina_Bool cb(void *data, const Eo_Event *event)
Where Eo_Event is a structure that holds these parameters.
This makes it less annoying to not use parameters (you end up using
EINA_UNUSED less), and allows for future extensions to callback
parameters.
@feature
Daniel Hirt [Sun, 28 Feb 2016 15:49:20 +0000 (17:49 +0200)]
Evas textblock: add a stringshare fastpath to markup_set
This optimization makes use of already stringshare'd text and avoids
unnecessary stringshare_add calls in markup_set. It improves the
performance of edje_calc when reapplying text to the textblock part.
Daniel Hirt [Sun, 28 Feb 2016 15:33:40 +0000 (17:33 +0200)]
Evas textblock: fix cached markup's stringshare refs
The last fix
34020ed131c7a5da4d60bb3a452fac0d9ee5fdd1 was missing a
stringshare_del for the NOP case of markup_set. It led to a
constantly increasing ref count of the cached markup.
@fix
Tom Hacohen [Fri, 26 Feb 2016 09:34:36 +0000 (09:34 +0000)]
Evas textblock tests: Fix wrong test suite tests.
The tests were assuming that textblock returns a sanitised utf8 string.
This is not always correct, because textblock may cache and return the
set utf8 markup if the text hasn't changed since the last set.
Jean-Philippe Andre [Fri, 26 Feb 2016 09:24:47 +0000 (18:24 +0900)]
Evas Filter: Use Eo.Base.constructor in the mixin
This is made possible by inheriting first from an interface
instead of Eo.Base, thus implementing the Eo.Base interface.
Tom Hacohen [Fri, 26 Feb 2016 09:07:20 +0000 (09:07 +0000)]
Edje textblock: Assume textblock knows to deal with setting the same markup.
Edje was trying to be smart and ask textblock for its markup and compare
with its own cache before setting it again. This is completely wrong,
and textblock is smart enough to deal with it now.
@fix
Tom Hacohen [Fri, 26 Feb 2016 09:06:00 +0000 (09:06 +0000)]
Evas textblock: Fix markup cache, was completely broken.
The markup cache was completely broken. It was not compared correctly,
so it wasn't even used, but regardless it was cleared just after being
set in some of the cases.
This is the first part of a performance regression fix in elm label.
@fix
Carsten Haitzler (Rasterman) [Wed, 24 Feb 2016 22:52:41 +0000 (07:52 +0900)]
edje cc: make the unnamed party non-fatal but punishhed by a pause
allow old edc code that was bad with no named parts to still build BUT
punish with a sleep for 10 seconds to help it be noticed, yet still
work.
Mike Blumenkrantz [Wed, 24 Feb 2016 16:52:56 +0000 (11:52 -0500)]
edje: unset animator pointer after free in _edje_file_del()
this function may be called repeatedly with no other animator created
in between, leading to invalid object access
@fix
Vitalii Vorobiov [Wed, 24 Feb 2016 13:55:14 +0000 (13:55 +0000)]
Edje_Edit: return accidently removed clip_to in code generation
Oops...
Vitalii Vorobiov [Wed, 24 Feb 2016 13:50:36 +0000 (13:50 +0000)]
Edje_Edit: support image border_scale and border_scale_by setters and getters
Vitalii Vorobiov [Wed, 24 Feb 2016 11:45:49 +0000 (11:45 +0000)]
Edje_Edit: support use_alternate_font_metrics setters and getters
Marcel Hollerbach [Tue, 23 Feb 2016 17:57:04 +0000 (18:57 +0100)]
eldbus: eldbus is already defined in eo
the struct is already defined in eldbus_general.eoeldbus: eldbus is
already defined in eo
the struct is already defined in eldbus_general.eott
Vitalii Vorobiov [Tue, 23 Feb 2016 18:23:36 +0000 (18:23 +0000)]
Edje_Edit: allow to set NULL as text_class (unset text_class) into part's state
Vitalii Vorobiov [Tue, 23 Feb 2016 18:07:12 +0000 (18:07 +0000)]
Edje_Edit: ability to set size class into certain part's state
API looks like this edje_edit_state_size_class_set
Vitalii Vorobiov [Tue, 23 Feb 2016 17:27:25 +0000 (17:27 +0000)]
Edje_Edit: Edje_Edit: update source generation to print size classes
Vitalii Vorobiov [Tue, 23 Feb 2016 17:25:21 +0000 (17:25 +0000)]
Edje_Edit: support new edje top block "size classes" with edje_edit API
Plenty of new API:
edje_edit_size_classes_list_get - to return total list of size_classes inside of
loaded collection of groups
edje_edit_size_class_add - add new size class into loaded collection
edje_edit_size_class_del - deleting
edje_edit_size_class_name_set - renaming existing size class into something new
and some setters and getters for min and max (width and height) of size class.
Chris Michael [Tue, 23 Feb 2016 13:39:09 +0000 (08:39 -0500)]
ecore-x: add safety checks for _ecore_x_disp in some functions
xlib immediately crashes upon being passed a null DISPLAY object,
so every function in ecore-x should likely have safety checks such as these.
@fix
Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
Vitalii Vorobiov [Tue, 23 Feb 2016 11:50:12 +0000 (11:50 +0000)]
Edje_Edit: update source generation to print text classes
Vitalii Vorobiov [Tue, 23 Feb 2016 11:47:03 +0000 (11:47 +0000)]
Edje_Edit: support new edje top block "text classes" with edje_edit API
Plenty of new API:
edje_edit_text_classes_list_get - to return total list of text_classes inside of
loaded collection of groups
edje_edit_text_class_add - add new text class into loaded collection
edje_edit_text_class_del - deleting
edje_edit_text_class_name_set - renaming existing text class into something new
edje_edit_text_class_font_{get|set} - get/set font name
edje_edit_text_class_size_{get|set} - get/set font size
Vitalii Vorobiov [Tue, 23 Feb 2016 11:35:48 +0000 (11:35 +0000)]
edje_cc_handlers: font field in new text_class should be NULL at the begining
@fix
Vyacheslav Reutskiy [Tue, 23 Feb 2016 09:06:55 +0000 (11:06 +0200)]
edje_cc: abort compile when unnamed part exists
Summary: abort compile when unnamed part exists.
Reviewers: raster, reutskiy.v.v
Reviewed By: reutskiy.v.v
Subscribers: cedric, jpeg
Differential Revision: https://phab.enlightenment.org/D3723
Mike Blumenkrantz [Mon, 22 Feb 2016 17:35:27 +0000 (12:35 -0500)]
embryo: add tzdate function
in the case where a user wants to get the current date/time from a
specified timezone, this function allows a timezone string to be passed
as a parameter
@feature
Mike Blumenkrantz [Mon, 22 Feb 2016 17:16:16 +0000 (12:16 -0500)]
embryo: reformat the whole thing
so many tabs
Chris Michael [Mon, 22 Feb 2016 19:50:35 +0000 (14:50 -0500)]
ecore-x: add safety checks for _ecore_x_disp in some functions
xlib immediately crashes upon being passed a null DISPLAY object,
so every function in ecore-x should likely have safety checks such as these.
@fix
Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
Chris Michael [Mon, 22 Feb 2016 17:13:06 +0000 (12:13 -0500)]
ecore-drm: Don't reset event modifiers on touch motion
When we are sending an event for touch motion, we should be specifing
the modifers in the event structure (not setting them to zero).
@fix
Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
Carsten Haitzler (Rasterman) [Sat, 20 Feb 2016 14:12:17 +0000 (23:12 +0900)]
ecore evas: remove printfs
forgot i still had them (wa stestign wayland with no printfs in it)
Carsten Haitzler (Rasterman) [Sat, 20 Feb 2016 14:09:03 +0000 (23:09 +0900)]
ecore evas: fix configure request queue count to only count changes
we counted more requests outstanding than actually existed for x11 as
we sometimes sized to the SAME size or position. this keeps that
number more correct only incremeting outstanding count if we change.
@fix
Mike Blumenkrantz [Fri, 19 Feb 2016 18:23:24 +0000 (13:23 -0500)]
eldbus: print dbus errors incurred when failing at signal handler operations
seeing these errors is significantly more helpful when debugging why the system
is not responding as expected
Mike Blumenkrantz [Fri, 19 Feb 2016 18:20:45 +0000 (13:20 -0500)]
edje: clear pending programs upon calling stop_programs_on()
pending programs have not started yet, so they are not directly attached
to the part. failing to remove them results in unexpected behavior from programs
ref
71ce70bc3f97853f3cfeb07ab0a9d8c213e322b1
@fix
Vitalii Vorobiov [Fri, 19 Feb 2016 14:20:27 +0000 (14:20 +0000)]
Edje_Edit: add forgotten since1.18 into documentation of newly implemented API
Vitalii Vorobiov [Fri, 19 Feb 2016 14:06:31 +0000 (14:06 +0000)]
Edje_Edit: target can be insert into different place in program's target list
Here is API for that:
> edje_edit_program_target_insert_at
Vitalii Vorobiov [Fri, 19 Feb 2016 11:22:07 +0000 (11:22 +0000)]
Edje_Edit: fix defect found by Coverity in ...state_tween_insert_at
Check constraits before creating image structures
CID 1351558
Vincent Torri [Thu, 18 Feb 2016 21:25:21 +0000 (13:25 -0800)]
build: fix duplicated use of the variable in multiple Makefile_*.am.
GL_SHADERS_GEN is defined in the Makefile.am of Ector and Evas. As these
Mafile_*.am are included in the same Makefile.am, there is a warning with
multiple defined triggered by automake. So this patch rename these 2 variables
Test Plan: autogen.sH
Reviewers: jpeg, cedric
Differential Revision: https://phab.enlightenment.org/D3711
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
Vincent Torri [Thu, 18 Feb 2016 21:20:00 +0000 (13:20 -0800)]
Evil: remove useless defines
Summary: Those defines are already defined in mingw-w64 header files
Test Plan: makE
Reviewers: cedric, jpeg
Differential Revision: https://phab.enlightenment.org/D3713
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
Derek Foreman [Thu, 18 Feb 2016 19:34:23 +0000 (13:34 -0600)]
ecore_drm: Check list presence by NULL test instead of counting
a count of < 1 will just be a NULL pointer, and a count of > 0 will
be non NULL, so we can simplify these conditionals.
Derek Foreman [Mon, 25 Jan 2016 22:20:27 +0000 (16:20 -0600)]
ecore_evas_drm: enable pointer warping
Use ecore_drm_device_pointer_warp() to warp the pointer
Derek Foreman [Mon, 25 Jan 2016 22:20:18 +0000 (16:20 -0600)]
ecore_drm: Add pointer warping API
Adds a new API: ecore_drm_device_pointer_warp() which warps the pointer
to the specified location. All libinput seats with pointers are warped.
Derek Foreman [Fri, 22 Jan 2016 20:51:45 +0000 (14:51 -0600)]
gl-drm: Some misc clean-ups
Remove unused stuff from structs, cut out the EVAS_GL_DRM_BUFFERS env
var - it can't work anyway, gbm decides how many buffers it wants.
Derek Foreman [Fri, 22 Jan 2016 20:50:47 +0000 (14:50 -0600)]
gl-drm: revise page flip logic
We can't really drive this buffer unlocking from the page flip handler for
a lot of ugly reasons. This will be better in the future when evas
supports multiple target buffers. For now let's cut this down and keep
2 buffers locked at all times.
This gets drm-gl to work without massive tearing artifacts.
@fix
Derek Foreman [Fri, 22 Jan 2016 20:48:34 +0000 (14:48 -0600)]
gl_drm: stop trying to figure out buffer age if gl extension isn't present
If we don't have the right extension for age we probably don't have
partial updates either. The code to get the age calculations right is
actually much nastier than this anyway since gbm can hand back buffers
in arbitrary order, and as many as it feels like.
Derek Foreman [Fri, 22 Jan 2016 20:20:35 +0000 (14:20 -0600)]
gl_drm: remove frame_count
It was a write only variable, kill it.
Derek Foreman [Tue, 26 Jan 2016 16:43:21 +0000 (10:43 -0600)]
ecore-drm: Only queue re-flip on the head that needs it
Prevents stuttering when a head that was successfully set bounces
back to a previous frame the other head failed to set.
Derek Foreman [Tue, 26 Jan 2016 16:37:15 +0000 (10:37 -0600)]
ecore_drm: Refactor ecore_drm_fb_send into two functions
We'll need to set outputs individually from the page flip handle to handle
page flip problems, so we need the per output setting logic in its own
function.
Derek Foreman [Thu, 18 Feb 2016 19:22:19 +0000 (13:22 -0600)]
ecore_drm: Change page flipping logic so we can't tear
Summary:
Previously if we ever tried to queue up two page flips in less than a
retrace interval (which can easily happen since the evas clock isn't
based on vblank) we'd give up on ever using page flips again, and tear
on every screen update.
This fixes that by using a vblank callback for custom ticks and using
page flips whenever possible.
If a page flip fails it means a page flip raced with the vblank ticker,
so we need to queue up that frame when the current page flip completes.
This ensures that while we might drop interim frames, we will never
lose the most recent.
Now it should only be possible to tear if two ticks fire during the
wait for a page flip to complete. This would result in rendering
taking place in the front buffer. I don't think this can happen,
but an error is logged if it does.
Reviewers: zmike, devilhorns
Subscribers: cedric, jpeg
Differential Revision: https://phab.enlightenment.org/D3594
Tom Hacohen [Thu, 18 Feb 2016 19:28:41 +0000 (19:28 +0000)]
Revert "Eo: Print an ERR when deleting an object with data refs."
Revert this in the meanwhile. See discussion on the ML. This should be
enabled though, and issues fixed.
This reverts commit
ec2f92e35f5a0836933d82b6b7f518a1d7550afc.
Srivardhan Hebbar [Thu, 18 Feb 2016 00:57:29 +0000 (16:57 -0800)]
ecore_con: changing from Ecore.Con.Base to Efl.Network.Base.
Summary: Signed-off-by: Srivardhan Hebbar <sri.hebbar@samsung.com>
Reviewers: cedric
Subscribers: jpeg
Differential Revision: https://phab.enlightenment.org/D3696
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
Tom Hacohen [Thu, 18 Feb 2016 15:53:40 +0000 (15:53 +0000)]
Eo: Print an ERR when deleting an object with data refs.
Vitalii Vorobiov [Thu, 18 Feb 2016 17:17:56 +0000 (17:17 +0000)]
Edje_Edit: fix warning on unsigned and signed int comparation
Oops!
Sorry, missed this one:
lib/edje/edje_edit.c: In function 'edje_edit_program_after_insert_at':
lib/edje/edje_edit.c:9980:14: warning: comparison between signed and unsigned
integer expressions [-Wsign-compare]
if (place >= eina_list_count(epr->after))
^
Now fixed
Vitalii Vorobiov [Thu, 18 Feb 2016 17:10:24 +0000 (17:10 +0000)]
Edje_Edit: ability to insert "after" program into specific position
API looks like this:
> edje_edit_program_after_insert_at
Vitalii Vorobiov [Thu, 18 Feb 2016 15:40:50 +0000 (15:40 +0000)]
Edje_Edit: new API to insert tween into specified place
> edje_edit_state_tween_insert_at
Stefan Schmidt [Thu, 18 Feb 2016 13:27:35 +0000 (14:27 +0100)]
build: make sure eldbus_eolian_type_files lands in a tarball for distcheck
This was missing when the new file was added in
63f717caaf92b87e272ac0790125246bba105468. Now its handled like we do it for
the ecore file types.
Daniel Kolesa [Thu, 18 Feb 2016 10:06:33 +0000 (10:06 +0000)]
eolian: re-enable strict validation
Vitalii Vorobiov [Thu, 18 Feb 2016 10:57:52 +0000 (10:57 +0000)]
edje_edit.c: it should be able to change item position
Few new API for inserting/mving items inside of BOX/TABLE
> edje_edit_part_item_insert_before
> edje_edit_part_item_insert_after
> edje_edit_part_item_insert_at
> edje_edit_part_item_move_below
> edje_edit_part_item_move_above