Commit Graph

636 Commits

Author SHA1 Message Date
Tom Hacohen 75569ec561 Fix warnings following migration to Eo4.
Mostly unused variables.
2016-03-03 10:08:27 +00:00
Tom Hacohen d16aa5956b Automatic migration to Eo4.
I just ran my script (email to follow) to migrate all of the EFL
automatically. This commit is *only* the automatic conversion, so it can
be easily reverted and re-run.
2016-03-03 10:08:27 +00:00
Tom Hacohen 8b45a1dc94 Manually migrate some eo_do for the migration script
The script doesn't handle a few corner cases well. Update the code
manually so it doesn't have to deal with those.
2016-03-03 10:05:00 +00:00
Tom Hacohen 9316ab5bf2 Eo events: Migrate all of elm to the new event callback signatures 2016-02-29 11:33:41 +00:00
Carsten Haitzler 69e4eb576d elm win: use actual window size not requested to resize child objects
using requested size may not be correct, so use real size. this should
solve issues in some wm's and actually also solved some kind of object
size lag in wayland too.

@fix - onward from 79b6edd1a6ad763258337b7aac5bd7799411bb44
2016-02-20 23:07:36 +09:00
Carsten Haitzler f60527f3ff elm win: fix window redraw if norender is enabled on withdrawn windows
we dont set this config by default so we dont see this - but a window
starts as withdrawn then becomes normal. this means the window starts
not rendering and may take 0.5 seconds to START because the eval is
deferred by 0.5 sec to avoid rapid switch to/from norender and other
states.

@fix
2016-02-18 18:17:27 +09:00
Carsten Haitzler 09d51174ad elm win: fix excess resize callbacks on windows when not really resizing
this fixes excess callbacks on window (and content) objhects resizing
down then back up again when windows are forcibly resized like
fullscreen, maximized and remembered windows.

@fix
2016-02-18 18:17:27 +09:00
Youngbok Shin ff110f7867 win: fix a possible crash in elm_win_add
Summary:
The enginelist[0] can be NULL in some very rare cases.
Then enginelist[0] will be used for strcmp and it make a crash.
@fix

Test Plan: N/A

Reviewers: raster, cedric, woohyun, jypark, jaehwan

Differential Revision: https://phab.enlightenment.org/D3649

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2016-02-05 08:45:19 +01:00
Cedric BAIL 8ea0e7589d win: remove animator,tick. 2016-02-02 11:00:54 -08:00
Jean-Philippe Andre 48b561b8e0 elm: Replace EO_EV_ by EO_BASE_EVENT_
EO_EV_ stuff is deprecated
2016-01-21 14:45:05 +09:00
Chris Michael dc22117232 elementary: Fix elm_win_window_id_get function
When using this function with wayland windows, we should be returning
the matching Ecore_Wl2_Window id, not the surface_id

ref T3058

@fix

Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
2016-01-19 10:48:19 -05:00
Chris Michael b82446cf5d elementary: Fix calls to ecore_evas_wayland_window_get2
As we've renamed the function, the calls to it should be updated to
use the new function name

Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
2016-01-07 15:04:09 -05:00
Carsten Haitzler 8589d1d2ab elm config - monitor JUST the correct files for profile and cfg change
this fixes the config monitoring to not use flush.cfg but to use the
correct profie.cfg or base.cfg in the profile we are using. this is
necessary to do "special" profiles per screen so apps that switched to
another profile because asked by e, monitor THAT profile for changes
specifically and dont also switch profiles since they have been told
what to use now.

@fix
2016-01-05 22:25:20 +09:00
Marcel Hollerbach 860baa4657 Elm config: use a name instead of elm_widget_type_get
Summary:
The use of elm_widget_type_get here is pretty harmfull, for the usecase
of inheriting a widget elm_widget_type_get is something else than
before. But the key binding should still work.

@fix T2891

Reviewers: tasn

Reviewed By: tasn

Maniphest Tasks: T2891

Differential Revision: https://phab.enlightenment.org/D3470
2015-12-21 12:57:15 +00:00
Jaehyun Cho ae27542219 elm_win: Remove unnecessary layer set for elm_win. 2015-12-18 19:18:51 +09:00
Lukasz Stanislawski 7b690b61d1 atspi: return previous name in overloaded getters
Some overloaded accessible name getters did not respect
values set by developer.

@fix
2015-12-17 11:38:43 +01:00
Tom Hacohen 91859748e3 Elm win: Fix potential NULL deref.
Looking at other parts of the code, this could actually be
NULL.

CID1343344
2015-12-16 10:39:20 +00:00
Mike Blumenkrantz 5a3ca38701 win: redo resize deferral to trigger during pre render
using a job results in the resize occurring after render in the same loop,
meaning that anything which depends on resizes to happen in a certain
time will not have synchronized display vs toolkit geometries

fixes all issues related to wayland window geometries
2015-12-10 15:53:31 -05:00
Mike Blumenkrantz 3efa05c52a win: run wayland region updating during RENDER_FLUSH_PRE
regions have not yet been calculated during RENDER_PRE, and commit
happens during the outbuf flush, so this callback should be the latest
possible time at which window geometry can be sent
2015-12-10 14:20:16 -05:00
Vincent Torri b51e267447 Fix compilation on Windows (and propably also on Mac)
Reviewers: cedric

Differential Revision: https://phab.enlightenment.org/D3419
2015-12-10 16:10:46 +09:00
Chris Michael 94996d6952 elementary: Update ecore wayland window geometry
As Elementary handles the window border theme, we can more accurately
set ecore_wl2 window geometry from here. The window geometry is
defined as the "visible bounds" from the user's perspective, so the
values we set here should come from the theme.

@fix

ref T2919

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-12-07 15:34:19 -05:00
Vincent Torri 8042bc82d3 cnp: add Copy & Paste support for Windows
It needs the clipboard management in Ecore_Win32

@feature

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-12-03 11:36:50 -08:00
Jean Guyomarc'h 9c8dcc5b7d win: add Cocoa support for elm_win_window_id_get() API
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-12-03 11:05:58 -08:00
Jean Guyomarc'h 8c8e811b29 win: use EINA_UNUSED instead of void casting.
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-12-03 11:04:58 -08:00
Jean Guyomarc'h 20e7090f0f cursor: add support for Cocoa system cursors.
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-12-03 11:04:28 -08:00
Chris Michael 7e1ca56236 elementary: Port elementary window code to use Ecore_Wl2
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-12-03 10:22:37 -05:00
Lukasz Stanislawski ccc4cefdab atspi: move root object creation to atspi class. 2015-11-20 12:27:19 +01:00
Mike Blumenkrantz 332f1cd626 win: only perform maximize frame state updating during ecore-evas callback
running this during csd button activation leads to state mismatches when
maximize is not triggered from the csd button

@fix
2015-11-17 18:20:04 -05:00
Wonsik Jung 0c64dc46e6 win : Prohibiting auto-rendering, until elm_win is shown.
Summary:
Although elm_win is only created and evas_object_show with elm_win is not called,
evas_rendering works sometimes.
This rendering is not necessary. Because on one is shown and just back buffer is allocated.
This patch is the prohibiting auto-rendering, if elm_win is shown by calling evas_object_show()
It is effective for power consumption and reducing memory.

@fix

Test Plan:
1. elementary_test : checking all menus's working
2. modifed bg_example_02 : updated elm_bg's color by animator without evas_object_show(elm_win)

Reviewers: jpeg, jypark, raster

Reviewed By: raster

Differential Revision: https://phab.enlightenment.org/D3282
2015-11-05 20:39:39 +09:00
Cedric BAIL b17287397a Revert "elm: Add eglfs backend support."
This reverts commit 0d6aedbf44e5c371bddfa2b6b61c9409ed2184e3.

This patch landed a little bit to early.
2015-11-02 15:54:41 -08:00
Nicolas Aguirre a392441fca elm: Add eglfs backend support. 2015-11-03 00:15:09 +01:00
Lukasz Stanislawski ca3fcf1481 win: reemit atspi "focused" event on bridge connection
At-spi clients assume that object:state-changed:focused event is emitted
on application start. By the time atspi_bridge will establish
connection on at-spi bus all focused events are already emitted.
To fix this we reemit "focused" event in bridge connection callback.

This fixes a bug when Orca screen reader do not read first element after
application launch.

@fix
2015-10-29 11:41:59 +01:00
Daniel Juyung Seo 24797adcf5 elm: Fix typos fun! 2015-10-29 02:08:16 +09:00
Nak-Gyeong Kim 11e5e87103 elm_win: fix wrong comment.
Summary:
static const char SIG_FOCUS_OUT[] = "focus,out"; // deprecated. use "unfocused" instead.
static const char SIG_FOCUS_IN[] = "focus,in"; // deprecated. use "focused" instead.

@fix

Test Plan: N/A

Reviewers: seoz, cedric

Reviewed By: cedric

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D3187

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-10-19 11:55:30 -07:00
Lukasz Stanislawski 12feff963e atspi: clean-up children-changed event emission.
Patch fixes bugs caused by difference between elm widget
and atspi objects hierarchy.
2015-10-19 17:26:13 +02:00
Chris Michael 362a41cbd5 elementary: Remove unused static variable
Summary: clang reports SIG_THEME_CHANGED as being an unused static
variable, so remove

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-10-14 10:03:03 -04:00
Chris Michael d1bc1b64ae elementary: Fix calling ecore_evas_wayland_move with improper values
Summary: As ecore_evas_wayland_move ends up updating the location of
the ecore_wl_window, we should be calling move with the proper
geometry as this ends up updating the internal ecore_wl_window
geometry (which in turn sends to xdg_surface_set_window_geometry).
This is part of a fix where xdg_surface_set_window_geometry was
getting sent inproper values.

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-10-12 11:02:50 -04:00
Lukasz Stanislawski f15796036e atspi: add global event emitter
Introduce global event emitter for accessibility events. With such emitter
there is no need to register array of callbacks on every accessibility object.
2015-10-01 16:00:28 +02:00
Jaehwan Kim 3265eb51cd focus: add the focus_direction feature about item.
When the focus is moved, it uses focus_direction instead of
focus_origin.
It can get the focus by using the geometry of previous focused object or item

@feature
2015-09-25 15:42:45 +09:00
Prince Kumar Dubey b145c9c759 [elm_win] Possible memory leak Fixed.
Summary: Memory assigned to variable "sd->wm_rot.rots" is not freed on window deletion.

Test Plan: Valgrind catch this memory leak.

Reviewers: raster, cedric, Hermet

Reviewed By: Hermet

Subscribers: govi, rajeshps

Differential Revision: https://phab.enlightenment.org/D3041
2015-09-23 09:40:32 +09:00
Carsten Haitzler 97ead86a39 elm - fix focus set on focus in on window due to previous focus fix
this fix is a fix due to the fix in
933dfca5bcda4943ecdd81ab09dc34989234f7f3 whihc fixed other issues. now
focus is properly set where it should be. this affected rage

@fix
2015-09-21 16:13:41 +09:00
Jaehwan Kim 69272b947f focus: remove checking the focus origin in highlight job.
In some case, it can take misoperation.

@fix
2015-09-18 16:50:13 +09:00
Jaehwan Kim 0dedfc9248 focus: add the APIs to set the focus next about item.
Add elm_object_focus_next_item_set/get,
elm_object_item_focus_next_object_set/get and
elm_object_item_focus_next_item_set/get.

If the item and object is set at the same time,
the item is preference to object when the focus moves.

This feature is implemented about gengrid.
It will be implemented about ohter widgets.

@feature
2015-09-15 19:53:23 +09:00
Carsten Haitzler 9d5b9872fb elm - when focus goes back in to a window dont have scrollers jump
there is an annoyance in elm that when focus goes back toa window it
restores focus to the last focused widget. if that widget happens to
be invisible in a scroller then this is really annoying as the
scrollers reset. this makes restoring optional. only if there is a
hilight object AND it's visible - then restore, otherwise don't and
revert focus to the window itself again.

@fix
2015-09-10 20:04:23 +09:00
Carsten Haitzler be2ae5f410 elm autofocus show - fix cases where focus is inside containers
i found that the focus doesnt auto-show when focusing things inside
scrollers and so on. i had to add more points to trigger auto show.
this fixes that

@fix
2015-09-10 18:29:24 +09:00
Mike Blumenkrantz 2198490c61 win: fix FAKE window geometry updating + resize object adding
users of this will want the win to automatically match the geometry
of the ee in all cases

fix T2692
2015-09-07 13:06:25 -04:00
Carsten Haitzler d0e081395f elm win - fix to ensure smart calc is done before show
@fix
2015-08-28 12:20:36 +09:00
Tom Hacohen 9d5aea4d81 Elm win: Fix according to the new behaviour of parent_set.
This new behaviour was introduced in
9c78ee0bf4.
2015-08-26 10:48:16 +01:00
Seunghun Lee ea29a24327 elm_win: Initilize the variable 'preferred_rot' as a -1 before invoking _elm_win_xwin_update() in _elm_win_finalize_internal().
Summary:
since the variable 'preferred_rot' is checked its validation in _elm_win_xwin_update(),
so, should be initialize it before invoking.

@fix

Reviewers: jypark, woohyun, Hermet

Reviewed By: Hermet

Differential Revision: https://phab.enlightenment.org/D2987
2015-08-25 20:42:17 +09:00
Seunghun Lee 10f5587cd9 elm_win: set wm rotation hints _elm_win_xwin_update().
Summary:
if app sets available rotations before invoking elm_win_alpha_set(),
wm rotation doesn't work.
this patch fixes it.

Test Plan: N/A

Reviewers: jypark

Reviewed By: jypark

Differential Revision: https://phab.enlightenment.org/D2946
2015-08-20 14:11:55 +09:00