summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Houston <smhouston88@gmail.com>2017-10-11 09:30:37 -0500
committerStephen Houston <smhouston88@gmail.com>2017-10-11 09:30:37 -0500
commit74523396f4383d12fb435a3f5c503e15f5a07201 (patch)
tree2f04338e3015a10881c39fe6bf2d870e2d246cdc
parent981fb16174bb4be9cff9bd41129b4568f63a7409 (diff)
Ephoto: Don't pack the directory browser twice.
-rw-r--r--src/bin/ephoto_main.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/bin/ephoto_main.c b/src/bin/ephoto_main.c
index 268e0c9..1c0a787 100644
--- a/src/bin/ephoto_main.c
+++ b/src/bin/ephoto_main.c
@@ -272,8 +272,11 @@ _folder_icon_clicked(void *data, Evas_Object *obj,
272 272
273 if (!ephoto->folders_toggle) 273 if (!ephoto->folders_toggle)
274 { 274 {
275 evas_object_show(ephoto->dir_browser); 275 if (!evas_object_visible_get(ephoto->dir_browser))
276 elm_box_pack_start(ephoto->layout, ephoto->dir_browser); 276 {
277 evas_object_show(ephoto->dir_browser);
278 elm_box_pack_start(ephoto->layout, ephoto->dir_browser);
279 }
277 ephoto->folders_toggle = EINA_TRUE; 280 ephoto->folders_toggle = EINA_TRUE;
278 ret = elm_icon_standard_set(ephoto->folders_icon, "folder-open"); 281 ret = elm_icon_standard_set(ephoto->folders_icon, "folder-open");
279 if (!ret) 282 if (!ret)
@@ -331,8 +334,11 @@ ephoto_show_folders(Ephoto *ephoto, Eina_Bool toggle)
331 334
332 if (!ephoto->folders_toggle || !toggle) 335 if (!ephoto->folders_toggle || !toggle)
333 { 336 {
334 evas_object_show(ephoto->dir_browser); 337 if (!evas_object_visible_get(ephoto->dir_browser))
335 elm_box_pack_start(ephoto->layout, ephoto->dir_browser); 338 {
339 evas_object_show(ephoto->dir_browser);
340 elm_box_pack_start(ephoto->layout, ephoto->dir_browser);
341 }
336 ephoto->folders_toggle = EINA_TRUE; 342 ephoto->folders_toggle = EINA_TRUE;
337 ret = elm_icon_standard_set(ephoto->folders_icon, "folder-open"); 343 ret = elm_icon_standard_set(ephoto->folders_icon, "folder-open");
338 if (!ret) 344 if (!ret)