Amitesh Singh
56b6e023bb
Efl.Ui.Check: correct the include gaurds name
...
Signed-off-by: Amitesh Singh <amitesh.sh@samsung.com>
2017-05-23 10:25:59 +09:00
Jean Guyomarc'h
cc4e101ba1
elementary: fix global declaration
...
Don't DEFINE a global in a header, DECLARE it instead!
This fixes link on macOS.
2017-05-22 19:39:10 +02:00
Mike Blumenkrantz
a6d9d3119e
elm_cnp: use correct pointer when emitting ELM_CNP_EVENT_SELECTION_CHANGED
...
CID ???
2017-05-22 07:00:18 -04:00
Amitesh Singh
12b862f8d1
rename elm_radio to Efl.Ui.Radio
...
Signed-off-by: Amitesh Singh <amitesh.sh@samsung.com>
2017-05-22 19:21:28 +09:00
Jean-Philippe Andre
3082dc212e
evas: Fix build for Windows without segv
...
Revert "Revert "evas: Fix build for Windows (hopefully)""
This reverts commit c8ec1cb2af
.
The two efl_input_ functions need to be declared as EOAPI inside
the file where they are implemented. Otherwise the symbols aren't
exposed and weak linking means the function call crashes.
Sorry for the first untested patch and subsequent revert. Things
should be in order now.
2017-05-22 17:37:35 +09:00
Amitesh Singh
850498e977
rename elm_button to Efl.Ui.Button
...
ref T5323
Signed-off-by: Amitesh Singh <amitesh.sh@samsung.com>
2017-05-22 17:28:47 +09:00
Jean-Philippe Andre
c8ec1cb2af
Revert "evas: Fix build for Windows (hopefully)"
...
This reverts commit 1e2d382298
.
This segfaults. Ouch... Will need more time to fix this.
2017-05-22 15:05:16 +09:00
Jean-Philippe Andre
1e2d382298
evas: Fix build for Windows (hopefully)
...
The declaration of some internal EO APIs was located in the wrong
library, which results on Windows to an invalid definition of
EAPI (dllexport vs dllimport).
Thanks @vtorri for the report!
2017-05-22 14:52:26 +09:00
Jean-Philippe Andre
83a294664e
elm: Try to fix build (linking failure)
...
This should expose the proper definition of EAPI before including
elm_widget.h, as elm modules call internal APIs from elementary.
Thanks Mykyta for the report!
2017-05-22 13:28:15 +09:00
Stefan Schmidt
f47b03f7fa
elm_check: make sure of the correct naming of header files
...
We use a header wrapper _eo.h here instead of using the eo.h file
directly. By not doing so the automagic in our build system will not
work.
2017-05-22 12:13:17 +09:00
Amitesh Singh
bd743d93ac
rename elm_check to Efl.Ui.Check
...
Signed-off-by: Amitesh Singh <amitesh.sh@samsung.com>
2017-05-22 12:13:13 +09:00
Andy Williams
7f1ef4e2d4
elm_code: improving cursor move behavior.
...
There is a blank line off the scroller but for now it's better
2017-05-21 23:19:24 +01:00
Marcel Hollerbach
ecc39f19c6
elm_widget: use a different pointer from sd
...
sd is used later below, which could then alter the wrong private data,
which is not part of the object.
CID 1374433
2017-05-20 21:03:15 +02:00
Marcel Hollerbach
f424af2578
efl_ui_focus_manager: logical_end could be called before root_set
...
which would lead to a NULL deref
CID 1374435
2017-05-20 20:51:30 +02:00
Marcel Hollerbach
43cb924faa
efl_ui_focus_manager: fix valgrind warnings in the tests
2017-05-20 20:46:49 +02:00
Derek Foreman
a5fae67e9c
dmabuf: Drop requirement that buffer be writeable
...
We don't need to write to it, and some clients don't create their buffers
in a way that we can.
@fix
2017-05-19 16:59:27 -05:00
Mike Blumenkrantz
fb082484b0
ecore-wl2: permit null drag icon window in ecore_wl2_dnd_drag_start()
...
this is explicitly allowed in the spec
@fix
2017-05-19 15:53:52 -04:00
Al Poole
6d7a73c68f
elm_code: fix carriage return at EOF scroller behaviour
...
Reviewers: ajwillia.ms
Reviewed By: ajwillia.ms
Subscribers: cedric, jpeg
Differential Revision: https://phab.enlightenment.org/D4890
2017-05-19 19:04:46 +01:00
Mike Blumenkrantz
31295a95d7
evas: fix doc copypaste on evas_device_get()
2017-05-19 13:17:31 -04:00
Mike Blumenkrantz
d47197e65b
evas: add evas_device_get_by_seat_id()
...
sometimes it may be more useful to find a device by its hw id
@feature
2017-05-19 13:17:31 -04:00
Mike Blumenkrantz
771d8803dd
ecore-wl2: block key->string translation when appropriate
...
copied from libX11.
I don't understand what's going on here but this fixes input bugs such
as, e.g., holding ctrl and pressing shift affecting cursor position in
terminology
@fix
2017-05-19 13:17:31 -04:00
Mike Blumenkrantz
2b2367b6ff
ecore-wl2: add copyright info to code copied from libX11
...
this code has been slightly modified, but it was originally taken without
attribution from libX11/src/KeyBind.c
ref 08c804f5bb
@fix
2017-05-19 13:17:30 -04:00
Mike Blumenkrantz
f4ad162eef
ecore-wl2: remove ecore_wl2_window_input_get()
...
this function does not make sense within the context of wayland and seats,
since a surface does not own and is not owned by a seat, nor is there a 1:1
association between surfaces and seats
2017-05-19 13:17:30 -04:00
Mike Blumenkrantz
13cf5a1d43
ecore-wl2: do not attempt to call zxdg_surface_v6.get_popup without a parent
...
this is a protocol error so ensure that it can never occur
@fix
2017-05-19 13:17:15 -04:00
Mike Blumenkrantz
7caf3b88ce
ecore-wl2: add ecore_wl2_window_popup_input_set()
...
this is a function for explicitly setting the seat which will be used
for popup grabs
@feature
2017-05-19 12:41:17 -04:00
Mike Blumenkrantz
2fe7878235
wayland: move pointer-related functions to ecore_wl2_input namespace
...
windows do not have pointers or cursors under wayland, seats do. due to
lack of multiseat support, most components simply use the "default" seat
with these functions, but this should make the corresponding code more
easily adaptable
2017-05-19 12:41:17 -04:00
Mike Blumenkrantz
55cfc97455
wayland: send focus in/out events when receiving/losing keyboard focus
...
since this is typically what efl defines as "focus"
@fix
2017-05-19 12:41:17 -04:00
Mike Blumenkrantz
5ebdf8f341
wayland: use shell activated state to indicate focus in csd
...
the current (v6) xdg-shell spec reads as follows:
Client window decorations should be painted as if the window is
active. Do not assume this means that the window actually has
keyboard or pointer focus.
so this is not equivalent to receiving/losing input focus and should not
be propagated as such
@fix
2017-05-19 12:41:16 -04:00
Mike Blumenkrantz
704a22d1c9
ecore-wl2: add ecore_wl2_window_activated_get()
...
this is specifically for returning the shell surface's activation state
which is NOT equivalent to the window having input focus
@feature
2017-05-19 12:41:16 -04:00
Mike Blumenkrantz
1bc837c3de
ecore-wl2: redo ecore_wl2_window_move() to take a seat instead of coords
...
this triggers a move operation and is seat-dependent
2017-05-19 12:41:16 -04:00
Mike Blumenkrantz
d7d3c9adab
ecore-wl2: redo ecore_wl2_window_resize() to take a seat instead of size
...
this triggers a resize operation and is seat-dependent
2017-05-19 12:41:16 -04:00
Mike Blumenkrantz
d0f707ef91
ecore-evas-wayland: do not trigger resize operation when performing rotation
...
@fix
2017-05-19 12:41:16 -04:00
Mike Blumenkrantz
871e0c8de8
ecore-wl2: add ecore_wl2_display_input_find_by_name()
...
@feature
2017-05-19 12:41:16 -04:00
Mike Blumenkrantz
01d3edef00
elm_win: don't unset wl cursor when starting move operation
...
I don't understand why this is here and it isn't required by spec?
ref ea7bbfe47d
2017-05-19 12:41:16 -04:00
Mike Blumenkrantz
23cf5e80f7
elm_win: add elm_win_get()
...
it's frequently useful to be able to return the window object from
any object. this simplifies doing so for users
@feature
2017-05-19 12:41:16 -04:00
Mike Blumenkrantz
0b10aa7f19
ecore-wl2: use nonblocking event flush when disconnecting a client
...
roundtrip will deadlock if called in a compositor process
@fix
2017-05-19 12:41:16 -04:00
Mike Blumenkrantz
f289967927
elm_cnp: add elm_cnp_clipboard_selection_has_owner()
...
this already existed as an internal function which was improperly namespaced
@feature
2017-05-19 12:41:16 -04:00
Mike Blumenkrantz
0b2e15db0f
elm_cnp: add event for selection change
...
@feature
2017-05-19 12:41:16 -04:00
Mike Blumenkrantz
a08f8e7bbf
ecore-wl2: add ecore_wl2_display_name_get()
...
@feature
2017-05-19 12:41:16 -04:00
Mike Blumenkrantz
047118c6e2
ecore-wl2: add ecore_wl2_display_input_find()
...
for finding seat using hw id
@feature
2017-05-19 12:41:16 -04:00
Mike Blumenkrantz
2c291f5bb8
ee wl engines: set seat id when creating seats
2017-05-19 12:41:16 -04:00
Mike Blumenkrantz
535ceaafd8
ee vnc thingy: set seat id for vnc seat
2017-05-19 12:41:16 -04:00
Mike Blumenkrantz
589773055a
evas_device: add seat_id property, set seat id for default fallback seat
...
@feature
2017-05-19 12:41:16 -04:00
Mike Blumenkrantz
bcdd87ce35
ecore: resolve compiler warning
...
/home/jpeg/e/core/efl/src/lib/ecore/ecore_main.c:1381: warning: comparison of unsigned enum expression < 0 is always false [-Wtautological-compare]
THANKS @JPEG FOR REPORTING
2017-05-19 12:41:16 -04:00
Mike Blumenkrantz
4a16eb15fb
efl_input_device: add seat_id property
...
this is the hardware id of a seat which is required in order to match
against objects from other components
@feature
2017-05-19 12:41:16 -04:00
Chris Michael
e0a1e63072
ecore-drm2: Don't call fb_flip until output is enabled
...
When calling ecore_drm2_output_enabled_set, we cannot initiate a
pageflip until the output has been enabled, so remove call to fb_flip
here. The dpms_set function will handle issueing the pageflip anyway.
@fix
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2017-05-19 11:33:19 -04:00
Chris Michael
851a2c72af
ecore-drm2: Cleanup output_enabled_set function code
...
If we are using atomic, we don't need to set the crtc active values
here as they will be set in output_dpms_set function anyway.
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2017-05-19 11:32:20 -04:00
Chris Michael
7a3c658759
ecore-drm2: Fix atomic dpms setting (round 2)
...
As it turns out, we still need to enable/disable the output crtc when
we enable/disable dpms in order for the screen itself to turn off, so
this patch "should" finally fix atomic dpms setting.
@fix
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2017-05-19 11:29:47 -04:00
Jean-Philippe Andre
b8336030ea
doc: Fix filters documentation in edcref
...
Thanks @rimmed for the report!
@fix
2017-05-19 14:52:50 +09:00
Jean-Philippe Andre
55b529cebc
evas/elm: Make group_add/group_del internal functions
...
This hides those two legacy functions from the EO API.
2017-05-19 14:07:00 +09:00
Jean-Philippe Andre
2cdc02b03c
evas: Make beta events from Evas.Canvas internal
...
This includes 4 events:
- render,flush,pre
- render,flush,post
- axis,update
- viewport,resize
Those were not accessible from the EO API since Evas.Canvas
isn't part of the public EO API.
2017-05-19 14:07:00 +09:00
Jean-Philippe Andre
4310e641cd
evas: Make Efl.Canvas.Object.type internal
2017-05-19 14:07:00 +09:00
Jean-Philippe Andre
781594088e
evas: Make Efl.Canvas.Object.legacy_ctor internal
...
Continuing...
2017-05-19 14:07:00 +09:00
Jean-Philippe Andre
de4627030a
evas: Make Efl.Input.Event.instance_get internal
...
Same as the previous patch. This removes the definition from
the EO file, implementing the feature in C.
2017-05-19 14:06:59 +09:00
Jean-Philippe Andre
60444d681e
evas: Make Efl.Input.Event.legacy_info.get internal
...
This removes the function from the EO file by using EXTRA_OPS
as introduced in 53fef30db0
.
2017-05-19 14:06:59 +09:00
Jean-Philippe Andre
7007c3314d
elm: Remove Elm_Glob_Match_Flags from EO
...
This is used by legacy gengrid & genlist only.
Ref T5329
2017-05-19 14:06:59 +09:00
Cedric BAIL
26d401351d
eina: fix reproductible build.
...
This make eina hamster depend on when configure was generated. This
should only happen really when we make a new tarball for release.
@fix
T5495
2017-05-18 16:20:06 -07:00
Andy Williams
7510a2a9ee
elm_code: Fix crash on tabs in long lines
...
@fix
2017-05-19 00:01:23 +01:00
Chris Michael
76806fda80
ecore-drm2: Update connector state dpms value if setting works
...
If we successfully set dpms via atomic state, we should also update
the connector state dpms value
@fix
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2017-05-18 12:22:27 -04:00
Chris Michael
892b58fbf2
ecore-drm2: Fix setting dpms level using atomic state
...
The property we need to change during an atomic dpms change is
actually from the output connector state (not crtc state). This fix
should make dpms work when using atomic
@fix
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2017-05-18 12:14:01 -04:00
Amitesh Singh
1a025edd62
check: fix efl_ui_check_selected_set() API
...
send the theme signal after changing state.
Thanks to JP for pointing out this.
@fix
Signed-off-by: Amitesh Singh <amitesh.sh@samsung.com>
2017-05-18 18:22:49 +09:00
Amitesh Singh
fd2111d9d0
nstate: correct the legacy class name
...
@fix
2017-05-18 17:15:39 +09:00
Andy Williams
67f4b98ddb
Revert "elm_code: Add a save_as API call for writing buffers to a new file"
...
The implementation is flawed and was not noticed due to
the tests not having run unexpectedly.
This reverts commit ac076be75d
.
2017-05-18 08:40:43 +01:00
Amitesh Singh
5ed8ed5ba2
photocam: fix make distcheck
...
Signed-off-by: Amitesh Singh <amitesh.sh@samsung.com>
2017-05-18 15:30:41 +09:00
Amitesh Singh
5e1711aac1
rename Efl.Ui.Zoomable to Efl.Ui.Zoom
...
Signed-off-by: Amitesh Singh <amitesh.sh@samsung.com>
2017-05-18 14:56:49 +09:00
Amitesh Singh
c124534a5e
photocam: move zoom related APIs to Efl.Ui.Zoomable
...
Signed-off-by: Amitesh Singh <amitesh.sh@samsung.com>
2017-05-18 12:56:14 +09:00
Derek Foreman
12260dabb9
ecore_drm2: Better handle flip failure round 2
...
If the buffer being flipped to is the one already on screen then
releasing it on flip failure will leave it on scanout with no
references. The next time a buffer is queued it will be removed
from scanout and deleted.
Not good.
Fix T5462
2017-05-17 17:31:13 -05:00
Derek Foreman
2c58d77ba9
ecore_drm2: Better handle flip failure
...
We need to release the buffer we couldn't flip to when a flip fails.
This makes whatever bug is causing a page flip to happen right after
dpms blanks the screen, which was leading to a failure to ever wake
from dpms because the flip left a pending buffer that never completed.
Fix T5462
2017-05-17 15:01:54 -05:00
Amitesh Singh
a9de4a7216
photocam: rename 'paused' API to 'zoom_animation'
...
and mark paused_set/get as legacy APIs.
Signed-off-by: Amitesh Singh <amitesh.sh@samsung.com>
2017-05-17 16:40:50 +09:00
Amitesh Singh
a61e53fe34
photocam: implement Efl.Gfx.View.view_size.get
...
replace elm_photocam_image_size_get with Efl.Gfx.View.view_size.get
and mark elm_photocam_image_size_get as legacy API.
Signed-off-by: Amitesh Singh <amitesh.sh@samsung.com>
2017-05-17 16:40:50 +09:00
Amitesh Singh
bf31dcd2d0
photocam: merge image_region_show() into image_region
...
and mark this API as legacy
Signed-off-by: Amitesh Singh <amitesh.sh@samsung.com>
2017-05-17 16:40:50 +09:00
Amitesh Singh
ef4cae6c7f
photocam: remove internal_image_get as eo api
...
and mark it as legacy API instead.
Signed-off-by: Amitesh Singh <amitesh.sh@samsung.com>
2017-05-17 16:40:50 +09:00
Andy Williams
47660f28dd
elm_code: Fix off by 1 in selection refactor
2017-05-17 08:33:52 +01:00
Jean-Philippe Andre
7c5808f451
c++: Fix examples as Win.Standard was removed
2017-05-17 15:43:58 +09:00
Jean-Philippe Andre
a9d11ab9e8
elm: Remove some of Gen_Item types from EO
...
Those belong to legacy only, EO interfaces will use models
and objects, not function pointers and item classes.
Ref T5329
2017-05-17 15:32:04 +09:00
Jean-Philippe Andre
afbdaf514a
efl model: Fix invalid type in EO
...
Efl.Canvas refers to a canvas, like Evas or Window. Efl.Gfx is
the base visual object type in libefl.so
2017-05-17 15:32:04 +09:00
Jean-Philippe Andre
ba8db108cb
evas map: Fix uninitialized fields
...
This fixes a "jump on uninitialized value" as reported by valgrind.
See evas_map.c:85:
if (obj->map->cur.map->normal_geometry.x != x1) ch = 1;
2017-05-17 15:32:04 +09:00
Jean-Philippe Andre
dab7c4d6e0
prefs: Remove some elm_prefs types from EO
...
Ref T5329
2017-05-17 15:32:03 +09:00
Jean-Philippe Andre
f0d0686096
widget: Remove widget_callback_add/del from EO
...
Those APIs are not bindable with EO since they pass in a function
pointer. Luckily they are barely used.
Ref T5329
2017-05-17 15:32:03 +09:00
Jean-Philippe Andre
daabd44520
elm_code: Fix invalid read of 1 byte
...
After end of string...
2017-05-17 15:32:03 +09:00
Jean-Philippe Andre
90de99eea6
elm_code: Fix use after free
2017-05-17 15:32:03 +09:00
Carsten Haitzler
0feb34927b
edje_cc - use mem_alloc to fail and exit if alloc fails and fix err out
...
PVS sudio thought this was odd and it was a bit. not a real issue as a
mem alloc failure herw would still be fatal and simply a crash... as
opposed to a clean "out of mem" and fatal exit then...
error out eally was not finding originally allocated color and the
malloc should have been a mem_alloc() that guarantees a valid memory
return (or termintion of the process).
@fix
2017-05-17 15:04:01 +09:00
Carsten Haitzler
58a40d6f8a
elm glview -> fix pvs studio caught typo in stencil bit mappings
...
this fixes CWE-570 on https://www.viva64.com/en/b/0508/
@fix
2017-05-17 15:04:01 +09:00
Carsten Haitzler
d6d8d84b80
edje_cc docs - fix docs for vector images as it is wrong
...
it's images { vector: "x.svg"; } not vector { vector: "x.svg"; } ...
@fix
2017-05-17 15:04:01 +09:00
Carsten Haitzler
1d0b37a9e6
eo - eoid - finally rtemove option to not have eoid. it doesn't work
...
we use too many bits for metadata now so eoid is broken... remove it
as an option so people dont break out the foot guns
2017-05-17 15:04:01 +09:00
Sung-Jin Park
f603001367
ecore_input: add ECORE_AXIS_LABEL_TOUCH_PALM enum
...
Summary:
Some of latest touchscreen devices can report if the tool in contact
is the palm of your hand and there is no axis label for this palm flag.
This adds ECORE_AXIS_LABEL_TOUCH_PALM enum as Ecore_Axis_Label type.
Test Plan: N/A
Reviewers: raster, cedric, jpeg, jypark, devilhorns, ManMower
Reviewed By: jpeg
Subscribers: JHyun
Differential Revision: https://phab.enlightenment.org/D4848
2017-05-17 10:39:43 +09:00
Jean-Philippe Andre
093938e5d9
win: Remove special class Efl.Ui.Win.Standard
...
All windows should be standard, really. Except when using legacy
elm_win_add() or if type_set() was called with a specific type.
I dislike type_set...
Ref T5322
2017-05-17 10:39:43 +09:00
Amitesh Singh
11a674ad7d
Efl.Ui.Autorepeat: add 'autorepeat' prefix to methods.
...
Thanks to Dave for pointing out this.
Signed-off-by: Amitesh Singh <amitesh.sh@samsung.com>
2017-05-17 10:31:25 +09:00
Andy Williams
ac076be75d
elm_code: Add a save_as API call for writing buffers to a new file
2017-05-16 23:19:34 +01:00
Andy Williams
eb04ab591c
elm_code: Fix insertion of multiline content in widget
...
A small refactoring to reduce code duplication as well :)
2017-05-16 22:13:43 +01:00
Stefan Schmidt
75727592df
examples: evas: fix else block by adding needed parenthesis
...
This was broken since over a year. Happened during the automatic eo4
migration in f21ade6123
.
Thanks goes to the gcc warning misleading-indentation:
evas-3d-shadows.c:163:4: warning: this ‘else’ clause does not guard... [-Wmisleading-indentation]
else
^~~~
evas-3d-shadows.c:165:6: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘else’
evas_canvas3d_node_look_at_set(scene->mediator, EVAS_CANVAS3D_SPACE_PARENT, 0.0, 3.0, 0.0, EVAS_CANVAS3D_SPACE_PARENT, 0.0, 5.0, 0.0);
2017-05-16 21:58:35 +02:00
Jean-Philippe Andre
a96b7edb41
evas: Rename evas_types to evas_canvas3d_types
...
Now evas_types has nothing but canvas3d definitions.
Fixes T5312
2017-05-16 20:47:49 +09:00
Jean-Philippe Andre
d974e708c2
evas: Remove unnecessary imports of evas_types
...
Ref T5312
2017-05-16 20:47:49 +09:00
Jean-Philippe Andre
9c494489e8
evas: Remove Efl.Canvas.Text.Annotation from evas_types.eot
...
This moves it to efl/interfaces which may not be the best...
@herdsman should know where to place this opaque definition.
Ref T5312
2017-05-16 20:47:49 +09:00
Jean-Philippe Andre
01d4886328
evas: Add seat arg to modifier/lock EO APIs
...
This now matches the new seat-related set of APIs present as EAPI.
2017-05-16 20:47:49 +09:00
Jean-Philippe Andre
4c81e0c5b9
evas: Remove Evas.Modifier from EO
...
Similar to the previous patch with Evas.Lock
Ref T5312
2017-05-16 20:47:48 +09:00
Jean-Philippe Andre
054aa012c4
evas: Use enum instead of string in Efl.Input.State
...
Ref T5312
2017-05-16 20:47:48 +09:00
Jean-Philippe Andre
64b90fd22e
ecore_x: Fix build warning (invalid enum used)
2017-05-16 20:47:48 +09:00
Jean-Philippe Andre
83d1162171
evas: Remove Evas.Lock from EO
...
This is a step towards the removal of the modifier & lock API
as it is and use enums exclusively.
Ref T5312
2017-05-16 20:47:48 +09:00
Jean-Philippe Andre
fe7f07615b
evas: Move Efl_Gfx_Fill_Spread to legacy
...
This was never implemented and was translated to EO without
any implementation.
2017-05-16 20:47:48 +09:00