summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYakov Goldberg <yakov.g@samsung.com>2014-05-25 16:58:01 +0300
committerYakov Goldberg <yakov.g@samsung.com>2014-05-25 16:58:01 +0300
commita0ef5591742a1bf47cc228b386b6b2810e7fe3c1 (patch)
treecbcdd018cd4179f96c0f0388625a80ace5b4cc02
parent5e96b973deeef34283379a96f7c155fc3f30ae4a (diff)
we don't want to keep selection of item, when toolbar is clicked
-rw-r--r--src/bin/egui_gui/egui_logic.c6
1 files changed, 5 insertions, 1 deletions
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
293_factory_vertical_pack(Eina_Bool vertical_pack); 293_factory_vertical_pack(Eina_Bool vertical_pack);
294 294
295static void 295static void
296_toolbar_item_sel_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) 296_toolbar_item_sel_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info)
297{ 297{
298 intptr_t action = (intptr_t) data; 298 intptr_t action = (intptr_t) data;
299 static Eina_Bool fctr_table_vertical = EINA_FALSE; 299 static Eina_Bool fctr_table_vertical = EINA_FALSE;
300 const Gui_Context *ctx = _active_context_get(); 300 const Gui_Context *ctx = _active_context_get();
301 Elm_Object_Item *item = event_info;
302
303 /* Unselect clicked toolbar item. */
304 eo_do(obj, elm_toolbar_item_selected_set(item, EINA_FALSE));
301 if (!ctx) 305 if (!ctx)
302 { 306 {
303 printf("project is not open\n"); 307 printf("project is not open\n");