forked from enlightenment/efl
elm: Refactoring. Use EINA_TRUE instead of 1 for Eina_Bool type parameter.
SVN revision: 62394
This commit is contained in:
parent
5f501aaf0a
commit
a423aacc07
|
@ -24,7 +24,7 @@ test_icon_animated(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *eve
|
|||
|
||||
win = elm_win_add(NULL, "icon-animated-gif", ELM_WIN_BASIC);
|
||||
elm_win_title_set(win, "Icon Animated Gif");
|
||||
elm_win_autodel_set(win, 1);
|
||||
elm_win_autodel_set(win, EINA_TRUE);
|
||||
elm_win_alpha_set(win, 1);
|
||||
|
||||
ic = elm_icon_add(win);
|
||||
|
|
|
@ -23,7 +23,7 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
|
|||
win = elm_win_add(NULL, "bg-plain", ELM_WIN_BASIC);
|
||||
elm_win_title_set(win, "Bg Plain");
|
||||
evas_object_smart_callback_add(win, "delete,request", on_done, NULL);
|
||||
elm_win_autodel_set(win, 1);
|
||||
elm_win_autodel_set(win, EINA_TRUE);
|
||||
|
||||
bg = elm_bg_add(win);
|
||||
/* allow bg to expand in x & y */
|
||||
|
|
|
@ -25,7 +25,7 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
|
|||
win = elm_win_add(NULL, "bg-image", ELM_WIN_BASIC);
|
||||
elm_win_title_set(win, "Bg Image");
|
||||
evas_object_smart_callback_add(win, "delete,request", on_done, NULL);
|
||||
elm_win_autodel_set(win, 1);
|
||||
elm_win_autodel_set(win, EINA_TRUE);
|
||||
|
||||
bg = elm_bg_add(win);
|
||||
elm_bg_load_size_set(bg, 20, 20);
|
||||
|
|
|
@ -72,7 +72,7 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
|
|||
win = elm_win_add(NULL, "bg-options", ELM_WIN_BASIC);
|
||||
elm_win_title_set(win, "Bg Options");
|
||||
evas_object_smart_callback_add(win, "delete,request", on_done, NULL);
|
||||
elm_win_autodel_set(win, 1);
|
||||
elm_win_autodel_set(win, EINA_TRUE);
|
||||
|
||||
bg = elm_bg_add(win);
|
||||
evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
|
||||
|
|
|
@ -49,7 +49,7 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
|
|||
win = elm_win_add(NULL, "icon", ELM_WIN_BASIC);
|
||||
elm_win_title_set(win, "Icon");
|
||||
elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_CLOSED);
|
||||
elm_win_autodel_set(win, 1);
|
||||
elm_win_autodel_set(win, EINA_TRUE);
|
||||
|
||||
bg = elm_bg_add(win);
|
||||
elm_bg_color_set(bg, 255,255 ,255);
|
||||
|
|
|
@ -98,7 +98,7 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
|
|||
win = elm_win_add(NULL, "genlist", ELM_WIN_BASIC);
|
||||
elm_win_title_set(win, "Genlist - simple");
|
||||
elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_CLOSED);
|
||||
elm_win_autodel_set(win, 1);
|
||||
elm_win_autodel_set(win, EINA_TRUE);
|
||||
|
||||
bg = elm_bg_add(win);
|
||||
elm_bg_color_set(bg, 255,255 ,255);
|
||||
|
|
|
@ -87,7 +87,7 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
|
|||
win = elm_win_add(NULL, "icon", ELM_WIN_BASIC);
|
||||
elm_win_title_set(win, "Icon");
|
||||
elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_CLOSED);
|
||||
elm_win_autodel_set(win, 1);
|
||||
elm_win_autodel_set(win, EINA_TRUE);
|
||||
|
||||
bg = elm_bg_add(win);
|
||||
elm_bg_color_set(bg, 255,255 ,255);
|
||||
|
|
|
@ -273,7 +273,7 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
|
|||
win = elm_win_add(NULL, "icon", ELM_WIN_BASIC);
|
||||
elm_win_title_set(win, "Icon");
|
||||
elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_CLOSED);
|
||||
elm_win_autodel_set(win, 1);
|
||||
elm_win_autodel_set(win, EINA_TRUE);
|
||||
|
||||
bg = elm_bg_add(win);
|
||||
elm_bg_color_set(bg, 255,255 ,255);
|
||||
|
|
|
@ -321,7 +321,7 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
|
|||
win = elm_win_add(NULL, "icon", ELM_WIN_BASIC);
|
||||
elm_win_title_set(win, "Icon");
|
||||
elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_CLOSED);
|
||||
elm_win_autodel_set(win, 1);
|
||||
elm_win_autodel_set(win, EINA_TRUE);
|
||||
|
||||
bg = elm_bg_add(win);
|
||||
elm_bg_color_set(bg, 255,255 ,255);
|
||||
|
|
|
@ -18,7 +18,7 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
|
|||
win = elm_win_add(NULL, "icon", ELM_WIN_BASIC);
|
||||
elm_win_title_set(win, "Icon");
|
||||
elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_CLOSED);
|
||||
elm_win_autodel_set(win, 1);
|
||||
elm_win_autodel_set(win, EINA_TRUE);
|
||||
|
||||
bg = elm_bg_add(win);
|
||||
elm_bg_color_set(bg, 255,255 ,255);
|
||||
|
|
|
@ -18,7 +18,7 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
|
|||
win = elm_win_add(NULL, "image", ELM_WIN_BASIC);
|
||||
elm_win_title_set(win, "Image");
|
||||
elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_CLOSED);
|
||||
elm_win_autodel_set(win, 1);
|
||||
elm_win_autodel_set(win, EINA_TRUE);
|
||||
|
||||
bg = elm_bg_add(win);
|
||||
elm_bg_color_set(bg, 255,255 ,255);
|
||||
|
|
|
@ -65,7 +65,7 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
|
|||
|
||||
win = elm_win_add(NULL, "layout", ELM_WIN_BASIC);
|
||||
elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_CLOSED);
|
||||
elm_win_autodel_set(win, 1);
|
||||
elm_win_autodel_set(win, EINA_TRUE);
|
||||
|
||||
bg = elm_bg_add(win);
|
||||
elm_bg_color_set(bg, 255,255 ,255);
|
||||
|
|
|
@ -51,7 +51,7 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
|
|||
win = elm_win_add(NULL, "layout", ELM_WIN_BASIC);
|
||||
elm_win_title_set(win, "Layout");
|
||||
elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_CLOSED);
|
||||
elm_win_autodel_set(win, 1);
|
||||
elm_win_autodel_set(win, EINA_TRUE);
|
||||
|
||||
bg = elm_bg_add(win);
|
||||
elm_bg_color_set(bg, 255, 255, 255);
|
||||
|
|
|
@ -52,7 +52,7 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
|
|||
|
||||
win = elm_win_add(NULL, "layout", ELM_WIN_BASIC);
|
||||
elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_CLOSED);
|
||||
elm_win_autodel_set(win, 1);
|
||||
elm_win_autodel_set(win, EINA_TRUE);
|
||||
|
||||
bg = elm_bg_add(win);
|
||||
elm_bg_color_set(bg, 255,255 ,255);
|
||||
|
|
|
@ -40,7 +40,7 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
|
|||
win = elm_win_add(NULL, "thumb", ELM_WIN_BASIC);
|
||||
elm_win_title_set(win, "Thumbnailer");
|
||||
elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_CLOSED);
|
||||
elm_win_autodel_set(win, 1);
|
||||
elm_win_autodel_set(win, EINA_TRUE);
|
||||
|
||||
bg = elm_bg_add(win);
|
||||
evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
|
||||
|
|
|
@ -195,7 +195,7 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
|
|||
win = elm_win_add(NULL, "transit", ELM_WIN_BASIC);
|
||||
elm_win_title_set(win, "Transit Example");
|
||||
evas_object_smart_callback_add(win, "delete,request", on_done, NULL);
|
||||
elm_win_autodel_set(win, 1);
|
||||
elm_win_autodel_set(win, EINA_TRUE);
|
||||
|
||||
/* add a scalable white background to this window */
|
||||
bg = elm_bg_add(win);
|
||||
|
|
|
@ -104,7 +104,7 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
|
|||
win = elm_win_add(NULL, "transit", ELM_WIN_BASIC);
|
||||
elm_win_title_set(win, "Transit Example");
|
||||
evas_object_smart_callback_add(win, "delete,request", on_done, NULL);
|
||||
elm_win_autodel_set(win, 1);
|
||||
elm_win_autodel_set(win, EINA_TRUE);
|
||||
|
||||
/* add a scalable white background to this window */
|
||||
bg = elm_bg_add(win);
|
||||
|
|
Loading…
Reference in New Issue