summaryrefslogtreecommitdiff
path: root/src/bin/elementary/config.c
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2019-08-29 17:29:38 +0100
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2019-08-29 17:35:02 +0100
commita55d57300b9dde5e1b6c29cfeb353593623ae806 (patch)
treefc881b868e234678c992af31389b35ebbe9db7aa /src/bin/elementary/config.c
parentdecdec3a8fa62d01595cc3eecdf128e166ad907a (diff)
elm config -> allow people to set desktop entry and magnifier config
Diffstat (limited to '')
-rw-r--r--src/bin/elementary/config.c34
1 files changed, 34 insertions, 0 deletions
diff --git a/src/bin/elementary/config.c b/src/bin/elementary/config.c
index 95d2c9b..71309ec 100644
--- a/src/bin/elementary/config.c
+++ b/src/bin/elementary/config.c
@@ -859,6 +859,32 @@ ecc_change(void *data EINA_UNUSED,
859} 859}
860 860
861static void 861static void
862desk_entry_change(void *data EINA_UNUSED,
863 Evas_Object *obj,
864 void *event_info EINA_UNUSED)
865{
866 Eina_Bool val = elm_check_state_get(obj);
867 Eina_Bool de = elm_config_desktop_entry_get();
868
869 if (val == de) return;
870 elm_config_desktop_entry_set(val);
871 elm_config_all_flush();
872}
873
874static void
875mag_change(void *data EINA_UNUSED,
876 Evas_Object *obj,
877 void *event_info EINA_UNUSED)
878{
879 Eina_Bool val = elm_check_state_get(obj);
880 Eina_Bool mag = elm_config_magnifier_enable_get();
881
882 if (val == mag) return;
883 elm_config_magnifier_enable_set(val);
884 elm_config_all_flush();
885}
886
887static void
862ac_change(void *data EINA_UNUSED, 888ac_change(void *data EINA_UNUSED,
863 Evas_Object *obj, 889 Evas_Object *obj,
864 void *event_info EINA_UNUSED) 890 void *event_info EINA_UNUSED)
@@ -1972,6 +1998,14 @@ _status_config_etc(Evas_Object *win,
1972 evas_object_size_hint_weight_set(bx, EVAS_HINT_EXPAND, 0.0); 1998 evas_object_size_hint_weight_set(bx, EVAS_HINT_EXPAND, 0.0);
1973 evas_object_size_hint_align_set(bx, EVAS_HINT_FILL, 0.5); 1999 evas_object_size_hint_align_set(bx, EVAS_HINT_FILL, 0.5);
1974 2000
2001 // desktop_entry
2002 CHECK_ADD("Desktop style entries", "Set entries to do things like on a normal desktop (non-touch) system", desk_entry_change, NULL);
2003 elm_check_state_set(ck, elm_config_desktop_entry_get());
2004
2005 // desktop_entry
2006 CHECK_ADD("Entry Mangifiers", "Set popup magnifiers on start/end selection handles in entries", mag_change, NULL);
2007 elm_check_state_set(ck, elm_config_magnifier_enable_get());
2008
1975 // access 2009 // access
1976 CHECK_ADD("Enable Access Mode", "Set access mode", ac_change, NULL); 2010 CHECK_ADD("Enable Access Mode", "Set access mode", ac_change, NULL);
1977 elm_check_state_set(ck, elm_config_access_get()); 2011 elm_check_state_set(ck, elm_config_access_get());