hotkeys - fix the init state of the toggle button icon.

previous, toggle button is always open states
but it should follow actual config state.
This commit is contained in:
ChunEon Park 2014-02-26 09:45:15 +09:00
parent b2ed0e516c
commit 2847bfe4cb
1 changed files with 4 additions and 1 deletions

View File

@ -208,7 +208,10 @@ panes_init(Evas_Object *parent)
//Hotkey Image
img = elm_image_add(hotkeys_btn);
elm_image_file_set(img, EDJE_PATH, "hotkeys_close");
if (config_hotkeys_get())
elm_image_file_set(img, EDJE_PATH, "hotkeys_close");
else
elm_image_file_set(img, EDJE_PATH, "hotkeys_open");
evas_object_show(img);
elm_object_content_set(hotkeys_btn, img);