Commit Graph

226 Commits

Author SHA1 Message Date
Tom Hacohen e6df9b02d6 Revert "elementary/config - commented out the translation availabilty check."
This completely breaks automatic UI mirroring. The code there was
correct. Please, before removing code, contact the original author and
make sure you don't break things down. Especially if your reason for
removing is "this doesn't make sense to me" instead of "this breaks X
Y."

This reverts commit 24983fed239a3b37c05cc3c65ed9c56953a7176b.
2014-08-26 12:09:21 +01:00
Carsten Haitzler b5660b8080 elm engine_set etc. - undeprecate, just limit engines supported instead
thre are still all the old engines supported inside, but docs dont say
so so effectively deprecated. also handle a NULL engine. this is part
of our engine/display system cleanup.
2014-08-26 18:02:00 +09:00
Carsten Haitzler 1ed3b5845d elm - put curly braces inside same ifdef 2014-08-23 20:11:23 +09:00
Carsten Haitzler f934291859 elm engine choice and logic rationalize
now that we have ELM_DISPLAY and ELM_ACCEL we have little need for a
lot of the elm engine stuff and frankly a lot was broken if you used
multiple engines etc. so this fixes a lot of it nd removes a lot of
cruft. i think i got it all right, but i may have oppsied. this also
remo9ves engine support for engines long gone from evas.
2014-08-22 14:48:13 +09:00
Carsten Haitzler c1a7135369 elm - do not do x11 main/config stuff without DISPLAY set
the engine checks are also broken - but that's a much bigger change,
so this fixes elm config and main code to not do their x11 work if no
DISPLAY env var is set. this is right for a wayland world where you
don't want DISPLAY but WAYLAND_DISPLAY set and used. this fixes
several ERRs that should never have hapapned in this setup.
2014-08-11 08:21:03 +09:00
Chris Michael ba10e7261a elementary: Handle case where ELM_ENGINE environment variable is
misspelled.

In case someone exports the ELM_ENGINE to be wayland-shm or
wayland-egl, let's handle That case also. Typically it is set to
wayland_shm or wayland_egl but since we check variants of spelling for
other engines also, then let's check it for the wayland engines too.

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-08-07 10:10:45 -04:00
Carsten Haitzler 4864bce07b elm config - fix leak on shutdown of config struct memmebers 2014-08-07 15:30:43 +09:00
Carsten Haitzler 8e894e9193 elm - fix data leak if config version bad in property. 2014-08-07 13:56:03 +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
Anil Kumar Nahak 76e3372531 Focus: first item should be focused when there is no focused/selected item
Summary: First item of widget should be focused when focus comes to the widget for first time.

Test Plan:
elementary_test -to "Genlist Focus"
elementary_test -to "Gengrid Focus"
elementary_test -to "List Focus"
elementary_test -to "toolbar Focus"

Reviewers: seoz

Differential Revision: https://phab.enlightenment.org/D1135
2014-07-21 18:55:55 +09:00
Chris Michael 1db0e58c31 elementary: Don't segfault if we are not using an X11-compatible engine
When running Enlightenment under Wayland only, during init of E we
make a call to elm_config_all_flush. elm_config_all_flush is making
calls to ecore_x_window function(s) (for setting of elm_profile),
However this causes a crash if the ELM_ENGINE is not one that is
running under X11 (ie: ELM_ENGINE=drm or wayland_*). So to fix this
crash, we will compare the current ELM_ENGINE and see if it is
X11-compatible before making unnecessary (and crashing) calls to
ecore_x_window functions.

@fix

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-07-17 12:54:13 -04: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
Cedric BAIL ffcdbf20f5 config: always create a themes directory for user.
This make it more logical as it is part of Elementary config, so it
should be elementary duty to create that directory.

@fix
2014-06-10 00:19:19 +02:00
Carsten Haitzler 3b6d64b85e default theme - make finger size 10 2014-05-22 18:46:36 +09:00
Daniel Juyung Seo 45e8b4c82e focus: Change new API names related to focus auto scrolling.
elm_config_focus_auto_scroll_bring_in_enabled_get/set()
 ->
elm_config_focus_autoscroll_mode_get/set()

The main reason is that bring_in_enabled_get/set() APIs are too restricted
and thus not flexible. I got more requirements for the focus autoscrolling
such as none, wholely visible not just bring_in and show. So it is correct
to add mode_set/get() APIs for the focus auto scrolling.

Thanks god, we've found this before the release :)

@feature
2014-05-11 22:46:16 +09:00
Daniel Juyung Seo fa2a17a1fb config: internal code refactoring for the readability.
Gathers focus related configurations.
2014-05-01 21:34:55 +09:00
Daniel Juyung Seo be30d78165 config: removed unnecessary variable initialize.
It is overwritten in the following line.
2014-05-01 21:31:14 +09:00
Amitesh Singh 8e0ffb8332 config: Added two APIs to enable/disable focus auto scroll bring in feature.
Summary:
 Summary:
    - APIs
      - elm_config_focus_auto_scroll_bring_in_enabled_set
      - elm_config_focus_auto_scroll_bring_in_enabled_get
    - list/genlist/toolbar/gengrid: Using this feature for scrolling for focus movement.
    - Added test case in "List Focus", "Genlist Focus", "Toolbar Focus" and "Gengrid Focus"

    @feature

Test Plan: elementary_test->"List Focus", "Genlist Focus", "Toolbar Focus" & "Gengrid Focus".

Reviewers: raster, seoz

CC: seoz

Differential Revision: https://phab.enlightenment.org/D799
2014-04-27 04:15:26 +09:00
Lukasz Stanislawski 85c5216205 atspi: separate atspi mode from access mode.
Since elm_access provides its own support for screen reader, access mode
and atspi mode must be separated.

https://phab.enlightenment.org/D726
2014-04-21 15:01:11 +09:00
Lukasz Stanislawski c30b49ecaa config: fix crash when finding key bidings
Summary: Crash occured when config was reloaded and hash data become invalid.

Reviewers: raster, seoz, Hermet

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

Signed-off-by: Cedric Bail <cedric.bail@free.fr>
2014-04-17 19:46:25 +02:00
Jaeun Choi 872a1de3c9 key binding infra change for modifiers
Summary: This patch makes key binding support multiple and inverse modifier set.

Test Plan: None

Reviewers: raster, Hermet

Differential Revision: https://phab.enlightenment.org/D717
2014-04-14 19:47:52 +09:00
Jaeun Choi bf7db13385 removed unnecessary field in key binding
Summary: No need to check ev->string if use ev->key instead of ev->keyname.

Test Plan: None

Reviewers: raster

Reviewed By: raster

Differential Revision: https://phab.enlightenment.org/D714
2014-04-10 19:29:37 +09:00
Amitesh Singh 68b3bc3583 focus: Renamed the config APIs _item_focus_on_selection_get/set to _item_select_on_focus_disabled_set/get()
Summary: - List: On Enter/Space/KP_Enter key press, focused item gets selected.

Test Plan: elementary_test->List Focus

Reviewers: seoz, raster

Reviewed By: seoz

CC: seoz

Differential Revision: https://phab.enlightenment.org/D704
2014-04-06 00:10:55 +09:00
Amitesh Singh 73b16ef210 focus: Added optional focus feature - item focus on selection.
Summary:
Currenly focus and selection happens together. This patch makes item focus
on selection optional by configuration and API.

- configuration: "item_focus_on_selection".
- API: elm_config_item_focus_on_selection_get/set.
- Implemented item_focus_on_selection feature in elm list.
@feature

Test Plan: elementary_test->List focus

Reviewers: raster, seoz, woohyun

CC: seoz

Differential Revision: https://phab.enlightenment.org/D676
2014-04-03 19:11:57 +09:00
Chris Michael 2d1276bd32 elementary: Add drm to list of available engine names, and add env
check for drm engine.

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2014-04-01 07:10:51 +01:00
ChunEon Park 8f5332f7c4 Revert "Revert "key binding: define Elm_Action function as having a return type of Eina_Bool""
This reverts commit 0c32a3fcf13f0c43747c478f012df259e987c156.

now this can be pushed since second merge window for 1.10 is open
2014-03-31 21:28:05 +09:00
ChunEon Park f868f35c4c Revert "key binding: define Elm_Action function as having a return type of Eina_Bool"
This reverts commit f8d46bfca2a9285b45ec76062cd85b69dc86a7db.

don't push any change except bug fix in window merge step 2

this patch will be pushed again.
2014-03-27 19:26:45 +09:00
Jaeun Choi 8024f3bd5a key binding: define Elm_Action function as having a return type of Eina_Bool
Summary:
This patch makes func of Elm_Action struct return a Eina_Bool value.
The function had a return type of void,
so could not check if the function succeeds or fails.

Test Plan: None

Reviewers: Hermet

Reviewed By: Hermet

Differential Revision: https://phab.enlightenment.org/D666
2014-03-27 08:56:37 +09:00
Carsten Haitzler 75d9be3b0a fix config to upgrade bindings from system config if not there 2014-03-25 15:33:08 +09:00
Carsten Haitzler cb55731a90 code cleanup - don't repeat profile loading code if possible 2014-03-25 14:55:22 +09:00
Daniel Juyung Seo 46506cf22e focus: Added optional focus feature - focus movement by mouse_in.
Focus is moved by mouse click by default. This patch makes moving focus
by mouse_in optionally by configuration and API. Widget item focus
movement is not applied yet. Need to do that as well.

- configuration: "focus_move_policy"
- API: elm_config_focus_move_policy_set/get
- enum
  ELM_FOCUS_MOVE_POLICY_CLICK
  ELM_FOCUS_MOVE_POLICY_IN

@feature
2014-03-23 02:04:16 +09:00
Jaeun Choi ad17bb42fe config: add a field in key binding data structure
Summary:
This patch adds a field "no_string" in key binding data structure.
It is necessary for checking "string" field in evas key down event.

Test Plan: None

Reviewers: Hermet, raster

Reviewed By: raster

Differential Revision: https://phab.enlightenment.org/D641
2014-03-20 18:42:20 +09:00
Carsten Haitzler 85a57c393b config - remove old engines not supported in evas anymore. 2014-03-11 20:55:55 +09:00
Daniel Juyung Seo 7e35760942 focus: Added focus highlight clip disable feature.
focus highlight is clipped by the clipper of focus target object.
But many of the times, this clipping looks weird so I made this
configurable.

This fixes T1056 but as this fix was done by adding a new feature, this
patch would not be backported.

@feature
2014-03-09 03:39:23 +09:00
Carsten Haitzler 1fbdf7cae0 win - add accel preference option to elm windows
@feature - this adds the ability to hint what engine acceleration to
use that is specific per display system.
2014-03-09 01:22:33 +09:00
Daniel Juyung Seo 1a29ad5679 elm: removing trailing white space ceremony for 1.9 release. 2014-03-02 00:52:26 +09:00
Jaeun Choi 78accca4db elementary key binding feature implementation
Summary: This patch implements elementary key binding feature.

Test Plan: None

Reviewers: Hermet, raster

CC: seoz

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

Conflicts:

	src/lib/elm_config.c
2014-02-28 10:47:03 +09:00
Sohyun Kim d1e7e15601 [elm_config] support color classes
Summary:
support color classes for runtime color changes.
It works like text classes and is also added in configuration files.

Reviewers: seoz, Hermet, cedric, raster

Reviewed By: raster

Differential Revision: https://phab.enlightenment.org/D541
2014-02-28 07:16:45 +09:00
Carsten Haitzler 1f0567af98 config - feature add - audio muting config and controls 2014-02-09 19:17:01 +09:00
Daniel Juyung Seo 86fd47e62f config: Removed unnecessary internal function decralations. 2014-02-05 20:35:09 +09:00
Daniel Juyung Seo 5353aa863c elm: Removed unnecessary null check for free. 2014-01-22 11:13:11 +09:00
Daniel Juyung Seo 0c3c2572b9 elm: Removed unnecessary null check for ecore_event_handler_del. 2014-01-22 10:54:58 +09:00
Daniel Juyung Seo 43533a2fb9 elm: Removed unnecessary null check for eina_stringshare_del. 2014-01-22 10:54:45 +09:00
Daniel Juyung Seo a4f3074f9c elm: Removed unnecessary null check for ecore_timer_del,
ecore_animator_del, and ecore_job_del.

As all efl public free apis get null as valid parameter, we do not need
to check null. I also removed some null check for other free apis which
were right next to timer/animator/job del. After this job code got
cleaner.
2014-01-21 23:18:16 +09:00
Carsten Haitzler f165f26f28 fix mingw build for setuid fix/checks 2014-01-08 22:08:44 +09:00
Carsten Haitzler 430f98a628 setuid safeness - ensure if an app that is setuid doesn't do bad things
this makes efl ignore certain env vars for thnigs and entirely removes
user modules (that no one ever used) etc. etc. to ensure that *IF* an
app is setuid, there isn't a priv escalation path that is easy.
2014-01-08 20:33:09 +09:00
Daniel Juyung Seo fd5c046dfe elm: Changed __UNUSED__ to EINA_UNUSED. 2014-01-06 23:33:57 +09:00
Carsten Haitzler 2490a7359f adatp to new api rename 2013-12-27 12:03:05 +09:00
Carsten Haitzler 78f1995828 elm config - move x properties to child window of root. reduces wakeups 2013-12-26 19:02:36 +09:00