Commit Graph

523 Commits

Author SHA1 Message Date
Mike Blumenkrantz c66c698e43 ELM_WIN_FAKE types should allow focus callbacks on windows 2015-01-10 01:36:27 -05:00
Mike Blumenkrantz 28872897b5 +elm_win_fake(), ELM_WIN_FAKE type
this is a giant hack to provide widget parenting in e. do not use this function, do not use this type, do not even read the related documentation.

@feature
2015-01-10 00:36:17 -05:00
vivek aa41261430 elm_win: Fixed the issue of updating ecore_wl_window location
Summary:
@Fix

Signed-off-by: vivek <vivek.ellur@samsung.com>

Reviewers: devilhorns

Differential Revision: https://phab.enlightenment.org/D1856
2015-01-08 19:46:52 +09:00
Davide Andreoli d4f5df772d Added the elm_win_util_dialog_add() API function
This new @feature is just a convenient way to create dialogs, It
mimic the elm_win_util_standard_add() function but crete a
standard dialog, with background and the parent set.

WinDialog test changed to use the new function.
2015-01-03 14:13:35 +01:00
Daniel Juyung Seo 400e451f8f win: Add more description for automatic switch to alpha window by theme.
This is a documentation for e07061c5d5a9b1ec79278da82208ad486937b873.
2014-12-16 02:09:16 +09:00
Daniel Juyung Seo ec63fe3ef2 win: Rename the internal variable to avoid confusion.
layout -> edje to explicitly say this is an edje object.
This avoids confusion between elm_layout and edje_object, thus makes
less human mistakes.
2014-12-16 02:03:22 +09:00
Daniel Juyung Seo fe9bd5ae58 win: Support runtime alpha window switch on theme change.
Once the window alpha is on, it would not go back to non-alpha window
automatically.

- non-alpha theme -> alpha theme: switch to alpha window
- alpha theme -> non-alpha theme: stay in alpha window

@feature
2014-12-16 01:57:24 +09:00
Daniel Juyung Seo b1531e71c7 win: Support elm_win style change and runtime theme change.
@feature
2014-12-16 01:45:59 +09:00
Daniel Juyung Seo b97c0d5934 win: Fix wrong return value of window theme apply.
@fix
2014-12-16 00:40:42 +09:00
ChunEon Park b647f1350f win: set config engine on higher priority than DISPLAY env var
DISPLAY environment variable may set regardless of Elementary/EFL.
Mostly user has no way to switch their intent engine such as "buffer"

Guarantee work application engine with their intended engine first.

@fix
2014-12-12 21:56:26 +09:00
Cedric BAIL 58a7fa23c5 elm_win: make it possible to specify alpha window in the theme directly. 2014-12-11 06:45:14 +01:00
Mike Blumenkrantz f9a7f07bac tooltip windows now set shape input rect in elm_win
this fixes a longstanding race condition where tooltip windowss could exist with a shape rectangle due to race conditions between applying window properties (eg. alpha) and reapplying the input rect
2014-12-07 20:10:40 -05:00
Cedric BAIL 3a9dee52fa elementary: report time correctly when benchmarking time to first frame. 2014-11-03 06:38:48 +01:00
Carsten Haitzler e73b596fc7 elm win - start wins in withdrawn state
this matches 5954289c6c commit on efl -
fixes initial window state so you can detetc when it is shown and
normal.

@fix
2014-10-29 19:35:47 +09:00
Lukasz Stanislawski 2ca1f8a75a atspi: properly include at-spi headers.
Summary:
Change requested by TAsn. Previuosly AT-SPI headers were kept private
and included directly into elementary source code. From now on,
AT-SPI headers can be included from Elementary.h public header, however
will be marked as beta APIs.

Commit includes following changes:
* include all atspi headers into new elm_interfaces.h header.
* marking all at-spi interfaces methods/properties as @protected.
* wrap all common headers with EFL_BETA_API_SUPPORT.
* make some common APIs visible in lib, by adding EAPI attribute
  (if someone decides to use beta APIs).

Test Plan: out-off tree build with gcc, g++

Reviewers: tasn

Reviewed By: tasn

Subscribers: seoz, q66, kuuko

Maniphest Tasks: T1721

Differential Revision: https://phab.enlightenment.org/D1528
2014-10-17 16:57:26 +01:00
o.shcherbina 92f5ba1bfb win: fix segfaults (wrong checking)
Summary:
There were wrong checkings in elm_win_size_base_get and
elm_win_size_step_get
@fix

Reviewers: seoz, Hermet

Differential Revision: https://phab.enlightenment.org/D1533
2014-10-14 01:07:36 +09:00
Tom Hacohen 8a1c279e16 Elm win: Rename duplicate eo property wm_manual_rotation_done.
This has to be renamed otherwise it clashes for bindings.
2014-10-09 12:28:34 +01:00
Tom Hacohen 0ee7f4951b Elm win: fix wrong deletion of elm windows.
This is a fix upon 6e7686c030fab162edb3128de005ec00ea8c0ffc.
This correctly deletes the list even if the windows are still referenced
and even if they are deleted from under out feets.
2014-09-26 10:10:51 +01:00
Tom Hacohen 7629c147eb Eo related: Change according to recent changes in eo_add().
For more info check out a7560dbc61 in
the EFL tree.
2014-09-25 17:39:34 +01:00
Tom Hacohen 0ac52480d0 Elm win: Fixed wrong deletion of win objects.
Some of them may be reference still, you don't want to do this.
2014-09-25 17:14:27 +01:00
Tom Hacohen f72bcf2b64 Eo: Get rid of eo_add_custom.
This has been deprecated for a while and is now completely dropped.
2014-09-25 10:46:04 +01:00
Mike Blumenkrantz 34951cf692 revert most recent two elm engine commits
This reverts commits 123ca6a8744729525889bbc09ee1aff4b2b97b75, 0d527b03f4f630e81ab4480d7160bbf6352b0bac

this is still unusable even after being fixed so the fix was unnecessary to begin with
2014-09-24 11:34:03 -04:00
Mike Blumenkrantz 82c7788148 +elm_win_trap_data_get()
needed when using win traps to get the trap ctx at non-hookpoints
2014-09-23 17:38:22 -04:00
Mike Blumenkrantz 0d17c1a2a3 elm_win should not check ELM_ACCEL variable if application has overridden it
also simplify these checks to make it more clear how the ordering should work

@fix
2014-09-23 16:45:15 -04:00
Carsten Haitzler dada522426 elm process state - add events and state get function
this adds the ability to query current process state, and get events
idicating a change in process state and what change that was.

@feature
2014-09-04 15:09:10 +09:00
Carsten Haitzler 6c7619b0ea el - ELM_MAIN() cleanup. don't need shutdown in elm_main() anymore
this shouldnt be an abi or api break. it simply makes elm_shutdown
iside elm_main() optional. this is cleaner and more symmetric
2014-09-01 15:29:07 +09:00
Carsten Haitzler b37c6ed68d elm win engines - make code only include engines efl compiled for
this means on windows etc. - it wont vene try x11, wayland etc.
engines before trying the win ones. same for osx.
2014-08-26 20:12:00 +09:00
Carsten Haitzler 6922450ec9 elm win - fix invalid use of elm engine config per window
lots of code unsing ENGINE_COMPARE where it should get the engine from
the ecore_evas directly - it happened to work as we happened to have
apps that have windows only for x11, or wayland etc, but not both in
an app. this was wrong, so remove the engine compare macro and do it
properly. no laziness.
2014-08-11 08:01:45 +09:00
Gwanglim Lee b79405e8d7 win: Don't call ecore_x_screensaver APIs if elm win doesn't have X11 window
Summary:
Elementary application crashes on startup when it is running with
wayland engine. This crash problem happens while ecore_x_screensaver API
is being called from _win_noblank_eval funcion. Thus we should not call
ecore_x_screensaver APIs if elm win doesn't have X11 window.

Test Plan:
1. build efl and elementary to support x11 and also wayland
1. run weston without xwayland
2. run elementary_test on the weston

Reviewers: raster, seoz, stefan_schmidt, devilhorns

Differential Revision: https://phab.enlightenment.org/D1293
2014-08-07 10:19:24 -04:00
Carsten Haitzler a32410f0e1 elm win - only auto choose x11/wl based on envvar if ELM_ENGINE unset 2014-08-07 16:21:30 +09:00
Daniel Juyung Seo 95b7382d20 win: initialize the internal variable. fixed uninitialized pointer read.
This fixes coverity CID 1230297.
2014-08-06 09:01:26 +09:00
Carsten Haitzler f54afe89cc elm - add apis to deal with accel perference
this deals with an issue brought up today on irc - seemingly rage
asking for accel is causing segvs in vbox with its gl accel subsystem
- the only way to disable this is an env var, and this is unfriendly,
so make config gui and stuff to mess with accel preference to fix this.
2014-08-06 00:04:11 +09:00
Lukasz Stanislawski 09b9ef0bc0 atspi: expose more actions through atspi bus.
Summary:
Main purpose of exposing widget actions and keyboard shortcuts
is to allow accessibility clients to implement alternative methods
of GUI navigation.

Reviewers: z.kosinski

Reviewed By: z.kosinski

Subscribers: seoz

Differential Revision: https://phab.enlightenment.org/D1227
2014-07-25 11:58:16 +02:00
Chris Michael bd94e8c0b7 elementary: Fix segfault when running elm apps under wayland
Don't call ecore_x functions unless we are running under an
X11-compatible engine, else we get segfaults in elm_apps.

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-07-24 14:09:06 -04:00
Lukasz Stanislawski 14d4863446 atspi: always set atspi role for elm_win 2014-07-21 18:37:41 +02:00
Amitesh Singh d6f308d1d6 focus: Added internal widget APIs of focus highlight object of elm window.
Summary: This is required to support the animation of focus highlight object in case of item looping (genlist/gengrid/list).

Reviewers: seoz, woohyun, raster

Reviewed By: raster

Subscribers: anand.km, seoz

Differential Revision: https://phab.enlightenment.org/D1136
2014-07-21 19:04:27 +09:00
Carsten Haitzler 057611a7e4 elm win noblank property added - to disable screen blanking/saving
@feature

this adds a per-window property of "noblank". this implies turning
offf the screensaver whenever there is a window visible with this
property set on it. only x11 support atm.
2014-07-21 11:39:32 +09:00
Daniel Juyung Seo b0b527ab22 elm_win: added focused and unfocused smart callback descriptions.
This was removed by a commit 8519257.
The removal of redundant smart callback call was good but we need to
have these descriptions still.
2014-07-15 02:06:26 +09:00
Kateryna Fesyna 34e2c8ae8a Win: Delete "focused" and "unfocused" signals emission because they duplicate Widgets signals
Summary:
"focused" and "unfocused" signals are emitted from Win and Widget. This causes
signals duplication when window is unfocused. To avoid this duplication, emission of these
signals is deleted from the Win.

Reviewers: cedric, Hermet, seoz, raster, reutskiy.v.v

Subscribers: reutskiy.v.v

Differential Revision: https://phab.enlightenment.org/D1183
2014-07-14 19:30:25 +09:00
WooHyun Jung 70a33c9d11 focus: when focus_highlight is enabled, it should be shown immediately. 2014-07-04 11:16:59 +09:00
Lukasz Stanislawski de9d24e09d atspi: unify atspi initialization
commit removes internal elm_atspi_init function and moves atspi_app_object
creation to atspi_bridge.
2014-07-02 14:14:49 +02:00
Vincent Torri 44b2c2bbb9 backend: add default engine support for Windows and Mac OS X 2014-06-12 03:12:56 +02:00
Vincent Torri 0d6cacb743 backend: remove Windows CE support Windows CE is dead and buried and its gcc port is even more dead and I don't believe in zombies 2014-06-12 03:12:15 +02:00
Gwanglim Lee dccab720a7 win: fix borderless_set behavior
Summary:
According to the current elm_win code, client side border should be removed
when window is fullscreen mode. And border couldn't be shown on window
during fullscreen mode. When window is going into normal mode from fullscreen,
then display of border should be determined by its borderless state.

1. client border should be shown when window is going into normal mode from fullscreen with borderless state.
2. client border shouldn't be shown when window is going into normal mode from fullscreen with border state.
3. and also client border shouldn't be shown when window is fullscreen mode.

@fix

Test Plan:
1. run elementary_test in wayland server
2. run window states
3. select borderless
4. select fullscreen
5. unselect fullscreen
6. unselect borderless

Reviewers: raster, devilhorns, seoz

Differential Revision: https://phab.enlightenment.org/D988
2014-06-10 15:28:20 -04:00
Tom Hacohen efa41c7d75 Elm: Update code to use the new class names generated by eolian. 2014-06-03 11:54:44 +01:00
Carsten Haitzler 77ff32b582 elm win - if no ELM_DISPLAY is set, try more engines before giving up
this should fix T1294 without needing ELM_DISPLAY set. @fix
2014-05-30 15:41:40 +09:00
WooHyun Jung 3aa0cb8edf win: set NULL to focus_highlight.prev.target when it's deleted. 2014-05-23 11:07:59 +09:00
Daniel Juyung Seo a64e8eed91 focus: update the focus in_theme status on each item's focus set.
As widget and widget item can have different in_theme value (since
 30cada369), we need to update in_theme value whenever the widget or
widget item get the focus.

Applied this logic to genlist, gengrid, toolbar first.
List focus is not working well at the moment.

This fixes small focus highlight on the left top corner of genlist
when the genlist scroller is clicked before the genlist is focused.

Special thanks to zmike for the report.
2014-05-12 01:25:43 +09:00
zmike fe4fae4954 Revert "Revert "focus: Removed unused parameter from an internal focus function.""
This reverts commit b8549f3e83a8592145a50085182583adead2c74e.

this build system is bad and whoever did the eo integration should not feel pleased with themselves.
2014-05-07 01:13:19 -04:00
zmike 54eabd94e2 Revert "focus: Removed unused parameter from an internal focus function."
This reverts commit 5832b692aa5f68a2924bd7886390d489eb13aefb.

broke build
2014-05-07 01:08:04 -04:00