yakov pushed a commit to branch master.

http://git.enlightenment.org/tools/erigo.git/commit/?id=b261366882e648fe4968a4b5b583354b62373949

commit b261366882e648fe4968a4b5b583354b62373949
Author: Yakov Goldberg <yako...@samsung.com>
Date:   Mon Jan 4 17:11:12 2016 +0200

    Fix creation of separators for menu in simulation mode
---
 src/lib/simulator.c | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/src/lib/simulator.c b/src/lib/simulator.c
index 446505f..27f4776 100644
--- a/src/lib/simulator.c
+++ b/src/lib/simulator.c
@@ -240,7 +240,15 @@ _item_add(Gui_Session *session, const Gui_Widget *wdg, 
const Item_Container_Item
           {
              label = STRING_GET(val);
           }
-        eo_do(session_eo_get(session, wdg), it = 
elm_obj_menu_item_add(parent_it, icon, label, cb_func, NULL));
+
+        if (item_container_item_type_get(wit) == ITEM_SEPARATOR)
+          {
+             eo_do(session_eo_get(session, wdg), it = 
elm_obj_menu_item_separator_add(parent_it));
+          }
+        else
+          {
+             eo_do(session_eo_get(session, wdg), it = 
elm_obj_menu_item_add(parent_it, icon, label, cb_func, NULL));
+          }
         goto end;
      }
 

-- 


Reply via email to