seoz pushed a commit to branch master.
commit 65f18f6989a63e71c0802d59a2878e2a857ae633
Author: Daniel Juyung Seo <[email protected]>
Date: Sun Aug 11 15:04:12 2013 +0900
test_main_main.c: refactoring.
use elm_win_util_standard_add.
move around the code.
---
src/bin/test_main_menu.c | 18 +++++-------------
1 file changed, 5 insertions(+), 13 deletions(-)
diff --git a/src/bin/test_main_menu.c b/src/bin/test_main_menu.c
index e7a527d..65fda3b 100644
--- a/src/bin/test_main_menu.c
+++ b/src/bin/test_main_menu.c
@@ -16,22 +16,17 @@ test_main_menu(void *data __UNUSED__,
Evas_Object *obj __UNUSED__,
void *event_info __UNUSED__)
{
- Evas_Object *win, *bg, *menu, *label, *bx;
+ Evas_Object *win, *menu, *label, *bx;
Elm_Object_Item *menu_it, *menu_it1;
char *s;
Eina_Bool enabled = EINA_TRUE;
- win = elm_win_add(NULL, "menu", ELM_WIN_BASIC);
- elm_win_title_set(win, "Menu");
- elm_win_autodel_set(win, EINA_TRUE);
elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_CLOSED);
- bg = elm_bg_add(win);
- evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND,
- EVAS_HINT_EXPAND);
-
- elm_win_resize_object_add(win, bg);
- evas_object_show(bg);
+ win = elm_win_util_standard_add("menu", "Menu");
+ elm_win_autodel_set(win, EINA_TRUE);
+ evas_object_resize(win, 250, 350);
+ evas_object_show(win);
bx = elm_box_add(win);
evas_object_size_hint_weight_set(bx, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
@@ -77,9 +72,6 @@ test_main_menu(void *data __UNUSED__,
elm_menu_item_add(menu, menu_it, "applications-email-panel", "third item",
NULL, NULL);
menu_it1 = elm_menu_item_add(menu, menu_it, NULL, "sub menu", NULL, NULL);
elm_menu_item_add(menu, menu_it1, NULL, "first item", NULL, NULL);
-
- evas_object_resize(win, 250, 350);
- evas_object_show(win);
}
#endif
--
------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk