elm config -> allow people to set desktop entry and magnifier config

This commit is contained in:
Carsten Haitzler 2019-08-29 17:29:38 +01:00
parent decdec3a8f
commit a55d57300b
1 changed files with 34 additions and 0 deletions

View File

@ -858,6 +858,32 @@ ecc_change(void *data EINA_UNUSED,
elm_config_all_flush();
}
static void
desk_entry_change(void *data EINA_UNUSED,
Evas_Object *obj,
void *event_info EINA_UNUSED)
{
Eina_Bool val = elm_check_state_get(obj);
Eina_Bool de = elm_config_desktop_entry_get();
if (val == de) return;
elm_config_desktop_entry_set(val);
elm_config_all_flush();
}
static void
mag_change(void *data EINA_UNUSED,
Evas_Object *obj,
void *event_info EINA_UNUSED)
{
Eina_Bool val = elm_check_state_get(obj);
Eina_Bool mag = elm_config_magnifier_enable_get();
if (val == mag) return;
elm_config_magnifier_enable_set(val);
elm_config_all_flush();
}
static void
ac_change(void *data EINA_UNUSED,
Evas_Object *obj,
@ -1972,6 +1998,14 @@ _status_config_etc(Evas_Object *win,
evas_object_size_hint_weight_set(bx, EVAS_HINT_EXPAND, 0.0);
evas_object_size_hint_align_set(bx, EVAS_HINT_FILL, 0.5);
// desktop_entry
CHECK_ADD("Desktop style entries", "Set entries to do things like on a normal desktop (non-touch) system", desk_entry_change, NULL);
elm_check_state_set(ck, elm_config_desktop_entry_get());
// desktop_entry
CHECK_ADD("Entry Mangifiers", "Set popup magnifiers on start/end selection handles in entries", mag_change, NULL);
elm_check_state_set(ck, elm_config_magnifier_enable_get());
// access
CHECK_ADD("Enable Access Mode", "Set access mode", ac_change, NULL);
elm_check_state_set(ck, elm_config_access_get());