hermet pushed a commit to branch master.

http://git.enlightenment.org/tools/enventor.git/commit/?id=f662c73b22d194283fb5e1e829d8dca8eaaf9bce

commit f662c73b22d194283fb5e1e829d8dca8eaaf9bce
Author: ChunEon Park <[email protected]>
Date:   Tue Feb 18 20:14:15 2014 +0900

    statsbar - save/load the hotkey status.
---
 src/bin/base_gui.c    | 5 +++++
 src/bin/config_data.c | 5 ++---
 2 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/src/bin/base_gui.c b/src/bin/base_gui.c
index 32a08e0..cbb2d03 100644
--- a/src/bin/base_gui.c
+++ b/src/bin/base_gui.c
@@ -74,6 +74,11 @@ void base_hotkeys_set(Evas_Object *hotkeys)
 {
    base_data *bd = g_bd;
    elm_object_part_content_set(bd->layout, "elm.swallow.hotkeys", hotkeys);
+
+   if (config_hotkeys_get())
+     elm_object_signal_emit(bd->layout, "elm,state,hotkeys,show", "");
+   else
+     elm_object_signal_emit(bd->layout, "elm,state,hotkeys,hide", "");
 }
 
 void
diff --git a/src/bin/config_data.c b/src/bin/config_data.c
index b22c5bc..5ff0380 100644
--- a/src/bin/config_data.c
+++ b/src/bin/config_data.c
@@ -193,6 +193,8 @@ eddc_init()
                                  dummy_swallow, EET_T_UCHAR);
    EET_DATA_DESCRIPTOR_ADD_BASIC(edd_base, config_data, "auto_indent",
                                  auto_indent, EET_T_UCHAR);
+   EET_DATA_DESCRIPTOR_ADD_BASIC(edd_base, config_data, "hotkeys",
+                                 hotkeys, EET_T_UCHAR);
 }
 
 void
@@ -217,9 +219,6 @@ config_init(const char *edc_path, const char *edc_img_path,
    if (edc_snd_path) config_edc_snd_path_set(edc_snd_path);
    if (edc_fnt_path) config_edc_fnt_path_set(edc_fnt_path);
    if (edc_data_path) config_edc_data_path_set(edc_data_path);
-
-   //hotkey is not decided yet to keep the function or not.
-   cd->hotkeys = EINA_TRUE;
 }
 
 void

-- 


Reply via email to