Ephoto: Don't pack the directory browser twice.
This commit is contained in:
parent
981fb16174
commit
74523396f4
|
@ -271,9 +271,12 @@ _folder_icon_clicked(void *data, Evas_Object *obj,
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
|
|
||||||
if (!ephoto->folders_toggle)
|
if (!ephoto->folders_toggle)
|
||||||
|
{
|
||||||
|
if (!evas_object_visible_get(ephoto->dir_browser))
|
||||||
{
|
{
|
||||||
evas_object_show(ephoto->dir_browser);
|
evas_object_show(ephoto->dir_browser);
|
||||||
elm_box_pack_start(ephoto->layout, ephoto->dir_browser);
|
elm_box_pack_start(ephoto->layout, ephoto->dir_browser);
|
||||||
|
}
|
||||||
ephoto->folders_toggle = EINA_TRUE;
|
ephoto->folders_toggle = EINA_TRUE;
|
||||||
ret = elm_icon_standard_set(ephoto->folders_icon, "folder-open");
|
ret = elm_icon_standard_set(ephoto->folders_icon, "folder-open");
|
||||||
if (!ret)
|
if (!ret)
|
||||||
|
@ -330,9 +333,12 @@ ephoto_show_folders(Ephoto *ephoto, Eina_Bool toggle)
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
|
|
||||||
if (!ephoto->folders_toggle || !toggle)
|
if (!ephoto->folders_toggle || !toggle)
|
||||||
|
{
|
||||||
|
if (!evas_object_visible_get(ephoto->dir_browser))
|
||||||
{
|
{
|
||||||
evas_object_show(ephoto->dir_browser);
|
evas_object_show(ephoto->dir_browser);
|
||||||
elm_box_pack_start(ephoto->layout, ephoto->dir_browser);
|
elm_box_pack_start(ephoto->layout, ephoto->dir_browser);
|
||||||
|
}
|
||||||
ephoto->folders_toggle = EINA_TRUE;
|
ephoto->folders_toggle = EINA_TRUE;
|
||||||
ret = elm_icon_standard_set(ephoto->folders_icon, "folder-open");
|
ret = elm_icon_standard_set(ephoto->folders_icon, "folder-open");
|
||||||
if (!ret)
|
if (!ret)
|
||||||
|
|
Loading…
Reference in New Issue