statsbar - save/load the hotkey status.

This commit is contained in:
ChunEon Park 2014-02-18 20:14:15 +09:00
parent f4c8ab7558
commit f662c73b22
2 changed files with 7 additions and 3 deletions

View File

@ -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

View File

@ -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