rimmed pushed a commit to branch master. http://git.enlightenment.org/tools/eflete.git/commit/?id=86cc48f141957aa58182fff4f14ef18c63431cbd
commit 86cc48f141957aa58182fff4f14ef18c63431cbd Author: Vyacheslav Reutskiy <v.reuts...@samsung.com> Date: Thu May 12 17:07:35 2016 +0300 colorclass_manager: move to modal window Change-Id: I28b6753bfa1cad2dd954b4e34fb0ef29a1efd5a0 --- src/bin/ui/colorclass_manager.c | 11 ++++++++++- src/bin/ui/menu.c | 2 +- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/src/bin/ui/colorclass_manager.c b/src/bin/ui/colorclass_manager.c index 2b3ae19..371afc8 100644 --- a/src/bin/ui/colorclass_manager.c +++ b/src/bin/ui/colorclass_manager.c @@ -23,6 +23,7 @@ #include "main_window.h" #include "validator.h" #include "project_manager.h" +#include "modal_window.h" static Elm_Genlist_Item_Class *_itc_ccl = NULL; @@ -37,6 +38,7 @@ struct _Search_Data struct _Colorclasses_Manager { + Evas_Object *win; Evas_Object *layout; Evas_Object *genlist; Evas_Object *edje_preview, *preview_layout; @@ -368,10 +370,16 @@ _colorclass_main_layout_create(Colorclasses_Manager *edit) } /* Creating main layout of window */ + edit->win = mw_add(NULL, NULL); + mw_title_set(edit->win, _("Color class manager")); + ic = elm_icon_add(edit->win); + elm_icon_standard_set(ic, "color"); + mw_icon_set(edit->win, ic); edit->layout = elm_layout_add(ap.win); elm_layout_theme_set(edit->layout, "layout", "colorclass_manager", "default"); elm_layout_text_set(edit->layout, "elm.text", _("Preview")); elm_layout_text_set(edit->layout, "elm.subtext", _("Color classes list")); + elm_object_content_set(edit->win, edit->layout); edit->genlist = elm_genlist_add(edit->layout); evas_object_show(edit->genlist); @@ -497,5 +505,6 @@ colorclass_manager_add() abort(); } - return edit->layout; + evas_object_show(edit->win); + return edit->win; } diff --git a/src/bin/ui/menu.c b/src/bin/ui/menu.c index 7ac9298..41f932b 100644 --- a/src/bin/ui/menu.c +++ b/src/bin/ui/menu.c @@ -188,7 +188,7 @@ _menu_cb(void *data __UNUSED__, sound_manager_add(); break; case MENU_WINDOW_MANAGER_COLORCLASS: - //tabs_menu_tab_open(TAB_COLORCLASS_EDITOR); + colorclass_manager_add(); break; case MENU_WINDOW_MANAGER_TEXT_STYLE: //tabs_menu_tab_open(TAB_STYLE_EDITOR); --