From a0ef5591742a1bf47cc228b386b6b2810e7fe3c1 Mon Sep 17 00:00:00 2001 From: Yakov Goldberg Date: Sun, 25 May 2014 16:58:01 +0300 Subject: we don't want to keep selection of item, when toolbar is clicked --- src/bin/egui_gui/egui_logic.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/bin/egui_gui/egui_logic.c b/src/bin/egui_gui/egui_logic.c index 1dc767b..cb6b0ff 100644 --- a/src/bin/egui_gui/egui_logic.c +++ b/src/bin/egui_gui/egui_logic.c @@ -293,11 +293,15 @@ static void _factory_vertical_pack(Eina_Bool vertical_pack); static void -_toolbar_item_sel_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) +_toolbar_item_sel_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info) { intptr_t action = (intptr_t) data; static Eina_Bool fctr_table_vertical = EINA_FALSE; const Gui_Context *ctx = _active_context_get(); + Elm_Object_Item *item = event_info; + + /* Unselect clicked toolbar item. */ + eo_do(obj, elm_toolbar_item_selected_set(item, EINA_FALSE)); if (!ctx) { printf("project is not open\n"); -- cgit v1.2.1