rimmed pushed a commit to branch master. http://git.enlightenment.org/tools/eflete.git/commit/?id=f52171ab245749a76326013657ed1b2a02c11188
commit f52171ab245749a76326013657ed1b2a02c11188 Author: Vyacheslav Reutskiy <v.reuts...@samsung.com> Date: Thu May 12 09:33:04 2016 +0300 config: save the panes position between project and group navi Change-Id: Ia021026d0e45f8b7510ce36080b9386eb31232a2 --- src/bin/config/config.c | 4 ++++ src/bin/config/config.h | 1 + src/bin/ui/main_window.c | 1 + 3 files changed, 6 insertions(+) diff --git a/src/bin/config/config.c b/src/bin/config/config.c index 3ad91af..53e4645 100644 --- a/src/bin/config/config.c +++ b/src/bin/config/config.c @@ -130,6 +130,7 @@ config_init(void) EET_DATA_DESCRIPTOR_ADD_BASIC(edd_base, Config, "panes.left", panes.left, EET_T_DOUBLE); EET_DATA_DESCRIPTOR_ADD_BASIC(edd_base, Config, "panes.right", panes.right, EET_T_DOUBLE); + EET_DATA_DESCRIPTOR_ADD_BASIC(edd_base, Config, "panes.left_ver", panes.left_ver, EET_T_DOUBLE); eet_eina_stream_data_descriptor_class_set(&eddcr, sizeof(eddcr), "Recent", sizeof(Recent)); edd_recent = eet_data_descriptor_stream_new(&eddcr); @@ -359,6 +360,7 @@ _config_default_new(void) conf->window.h = 768; conf->panes.left = 0.2; conf->panes.right = 0.3; + conf->panes.left_ver = 0.5; conf->profile = strdup("default"); return conf; @@ -414,6 +416,8 @@ config_panes_sizes_data_update(void) elm_panes_content_left_size_get(ap.panes.left); config->panes.right = elm_panes_content_left_size_get(ap.panes.right); + config->panes.left_ver = + elm_panes_content_left_size_get(ap.panes.left_ver); return true; } diff --git a/src/bin/config/config.h b/src/bin/config/config.h index 147f4fe..89d8e87 100644 --- a/src/bin/config/config.h +++ b/src/bin/config/config.h @@ -49,6 +49,7 @@ struct _Config struct { /* take and save left panes size */ double left; /**< position of left panes */ double right; /**< position of right panes */ + double left_ver; /**< position of panes between the project and group navi */ } panes; Eina_List *recents; /**< The list of recent projects */ const char *profile; /**< profile name */ diff --git a/src/bin/ui/main_window.c b/src/bin/ui/main_window.c index b7121d5..f8a2ff5 100644 --- a/src/bin/ui/main_window.c +++ b/src/bin/ui/main_window.c @@ -155,6 +155,7 @@ ui_main_window_add(void) /* apply the panes size from config */ elm_panes_content_left_size_set(ap.panes.left, config->panes.left); elm_panes_content_left_size_set(ap.panes.right, config->panes.right); + elm_panes_content_left_size_set(ap.panes.left_ver, config->panes.left_ver); project_navigator = project_navigator_add(); evas_object_smart_callback_add(project_navigator, SIGNAL_GROUP_OPEN, _project_navigator_group_open, NULL); --