okra pushed a commit to branch master. http://git.enlightenment.org/apps/ephoto.git/commit/?id=a5fb4b25c4f219261544e7b7c76010499b879c2f
commit a5fb4b25c4f219261544e7b7c76010499b879c2f Author: Stephen Houston <[email protected]> Date: Mon Jan 26 16:21:31 2015 -0600 Ephoto: Bump config version: Remember fsel hidden state for next time opened. --- src/bin/ephoto.h | 1 + src/bin/ephoto_config.c | 5 +++-- src/bin/ephoto_thumb_browser.c | 6 ++++++ 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/bin/ephoto.h b/src/bin/ephoto.h index 419179e..5c7caa2 100644 --- a/src/bin/ephoto.h +++ b/src/bin/ephoto.h @@ -102,6 +102,7 @@ struct _Ephoto_Config Evas_Object *window; Evas_Object *slide_time; Evas_Object *slide_trans; + int fsel_hide; }; struct _Ephoto diff --git a/src/bin/ephoto_config.c b/src/bin/ephoto_config.c index e7156fd..0812ff0 100644 --- a/src/bin/ephoto_config.c +++ b/src/bin/ephoto_config.c @@ -1,6 +1,6 @@ #include "ephoto.h" -#define CONFIG_VERSION 9 +#define CONFIG_VERSION 10 static int _ephoto_config_load(Ephoto *ephoto); static Eina_Bool _ephoto_on_config_save(void *data); @@ -38,7 +38,7 @@ ephoto_config_init(Ephoto *ephoto) C_VAL(D, T, editor, EET_T_STRING); C_VAL(D, T, window_width, EET_T_INT); C_VAL(D, T, window_height, EET_T_INT); - + C_VAL(D, T, fsel_hide, EET_T_INT); switch (_ephoto_config_load(ephoto)) { case 0: @@ -49,6 +49,7 @@ ephoto_config_init(Ephoto *ephoto) ephoto->config->editor = eina_stringshare_add("gimp %s"); ephoto->config->window_width = 900; ephoto->config->window_height = 600; + ephoto->config->fsel_hide = 0; break; default: return EINA_TRUE; diff --git a/src/bin/ephoto_thumb_browser.c b/src/bin/ephoto_thumb_browser.c index b57b728..d5c682a 100644 --- a/src/bin/ephoto_thumb_browser.c +++ b/src/bin/ephoto_thumb_browser.c @@ -367,6 +367,8 @@ _ephoto_dir_show_folders(void *data, Evas_Object *o EINA_UNUSED, void *event_inf evas_object_show(tb->leftbox); elm_box_pack_start(tb->main, tb->leftbox); + + tb->ephoto->config->fsel_hide = 0; } static void @@ -418,6 +420,7 @@ _ephoto_dir_hide_folders(void *data, Evas_Object *o EINA_UNUSED, void *event_inf elm_box_pack_end(tb->bleftbox, but); evas_object_show(but); + tb->ephoto->config->fsel_hide = 1; } static void @@ -941,6 +944,9 @@ ephoto_thumb_browser_add(Ephoto *ephoto, Evas_Object *parent) (tb->handlers, ecore_event_handler_add (EPHOTO_EVENT_ENTRY_CREATE, _ephoto_thumb_entry_create, tb)); + if (tb->ephoto->config->fsel_hide) + evas_object_smart_callback_call(but, "clicked", tb); + return tb->main; error: --
