summaryrefslogtreecommitdiff
path: root/src/bin
diff options
context:
space:
mode:
authorYakov Goldberg <yakov.g@samsung.com>2014-12-03 11:19:51 +0200
committerYakov Goldberg <yakov.g@samsung.com>2014-12-03 11:20:06 +0200
commit7499144db4995f6108f5bcc9ca90c1846e462954 (patch)
tree63bbf6016ee5375963ffc5d41bc64181a6da8b04 /src/bin
parent5e73cacc64937b384ed8aecb7ed01fb2367d1deb (diff)
Raise frame of selected widget
Diffstat (limited to 'src/bin')
-rw-r--r--src/bin/egui_gui/editor.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/bin/egui_gui/editor.c b/src/bin/egui_gui/editor.c
index 30cf59e..f57407b 100644
--- a/src/bin/egui_gui/editor.c
+++ b/src/bin/egui_gui/editor.c
@@ -433,9 +433,13 @@ _editor_wdg_selected_set(const Gui_Widget *wdg)
433 Gui_Context *ctx = (Gui_Context *) wdg_context_get(wdg); 433 Gui_Context *ctx = (Gui_Context *) wdg_context_get(wdg);
434 gui_context_data_set(ctx, SELECTED_WDG, (Gui_Widget *) wdg); 434 gui_context_data_set(ctx, SELECTED_WDG, (Gui_Widget *) wdg);
435 435
436 /* Stack up parent frame */
437 const Gui_Widget *main_wdg = wdg_main_wdg_get(wdg);
438 Main_Wdg_Info *wi = wdg_data_get(main_wdg, MAIN_WDG_INFO);
439 Eo *fr = main_wdg_info_frame_get(wi);
440 eo_do(fr, evas_obj_raise());
441
436 Eo *obj = session_eo_get(gui_context_editor_session_get(ctx), wdg); 442 Eo *obj = session_eo_get(gui_context_editor_session_get(ctx), wdg);
437 /* Stack up */
438 // eo_do(obj, evas_obj_raise());
439 /* Set focus */ 443 /* Set focus */
440 eo_do(obj, evas_obj_focus_set(EINA_TRUE)); 444 eo_do(obj, evas_obj_focus_set(EINA_TRUE));
441 } 445 }
@@ -765,11 +769,7 @@ static void
765_frame_mouse_down(void *data EINA_UNUSED, Evas *e EINA_UNUSED, Evas_Object *obj, void *event_info EINA_UNUSED) 769_frame_mouse_down(void *data EINA_UNUSED, Evas *e EINA_UNUSED, Evas_Object *obj, void *event_info EINA_UNUSED)
766{ 770{
767 Gui_Widget *wdg; 771 Gui_Widget *wdg;
768 eo_do(obj, evas_obj_raise());
769 eo_do(obj, evas_obj_focus_set(EINA_TRUE));
770
771 eo_do(obj, wdg = eo_key_data_get("winwdg")); 772 eo_do(obj, wdg = eo_key_data_get("winwdg"));
772 eo_do(obj, evas_obj_focus_set(EINA_TRUE));
773 773
774 _editor_wdg_selected_set(wdg); 774 _editor_wdg_selected_set(wdg);
775 objtree_item_selected_set(wdg); 775 objtree_item_selected_set(wdg);