ajwillia-ms pushed a commit to branch master.

http://git.enlightenment.org/tools/edi.git/commit/?id=28fbe4cbb34201a9af97a1499fcbaa610671b118

commit 28fbe4cbb34201a9af97a1499fcbaa610671b118
Author: Andy Williams <[email protected]>
Date:   Sat Nov 29 18:16:57 2014 +0000

    Fix issue where first tap on bottom toolbar would not open the correct tab
---
 src/bin/edi_main.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/bin/edi_main.c b/src/bin/edi_main.c
index b8d62dc..6f962a5 100644
--- a/src/bin/edi_main.c
+++ b/src/bin/edi_main.c
@@ -82,6 +82,7 @@ _edi_toggle_panel(void *data, Evas_Object *obj, void 
*event_info)
 
    panel = (Evas_Object *) data;
    item = (Elm_Object_Item *) event_info;
+
    if (obj)
      elm_object_focus_set(obj, EINA_FALSE);
 
@@ -95,7 +96,6 @@ _edi_toggle_panel(void *data, Evas_Object *obj, void 
*event_info)
         elm_panes_content_right_size_set(_edi_bottompanes, 0.0);
 
         _edi_selected_bottompanel = NULL;
-        elm_toolbar_item_selected_set(item, EINA_FALSE);
      }
    else
      {
@@ -112,7 +112,7 @@ _edi_toggle_panel(void *data, Evas_Object *obj, void 
*event_info)
         _edi_selected_bottompanel = item;
         elm_toolbar_item_selected_set(item, EINA_TRUE);
      }
-   elm_toolbar_select_mode_set(obj, ELM_OBJECT_SELECT_MODE_ALWAYS);
+   elm_toolbar_item_selected_set(item, EINA_FALSE);
 }
 
 void edi_consolepanel_show()

-- 


Reply via email to