elm: Use EINA_TRUE/EINA_FALSE for Eina_Bool type.
authorseoz <seoz@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 5 Jan 2012 07:05:09 +0000 (07:05 +0000)
committerseoz <seoz@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 5 Jan 2012 07:05:09 +0000 (07:05 +0000)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@66895 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/bin/test.c
src/bin/test_icon.c
src/bin/test_icon_animated.c
src/bin/test_video.c
src/bin/test_win_state.c

index 88a97d9..d97c960 100644 (file)
@@ -238,8 +238,8 @@ my_win_main(char *autorun, Eina_Bool test_win_only)
 
    /* Add a background to our window. This just uses the standard theme set
     * background. Without a background, you could make a window seem
-    * transparent with elm_win_alpha_set(win, 1); For example. if you have
-    * a compositor running this will make the window able to be
+    * transparent with elm_win_alpha_set(win, EINA_TRUE); For example. if you
+    * have a compositor running this will make the window able to be
     * semi-transparent and any space not filled by object/widget pixels will
     * be transparent or translucent based on alpha. If you do not have a
     * compositor running this should fall back to using shaped windows
index 43e5efe..008ed0a 100644 (file)
@@ -18,7 +18,7 @@ test_icon(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info _
    win = elm_win_add(NULL, "icon-transparent", ELM_WIN_BASIC);
    elm_win_title_set(win, "Icon Transparent");
    elm_win_autodel_set(win, EINA_TRUE);
-   elm_win_alpha_set(win, 1);
+   elm_win_alpha_set(win, EINA_TRUE);
 
    ic = elm_icon_add(win);
    snprintf(buf, sizeof(buf), "%s/images/logo.png", elm_app_data_dir_get());
index d970f90..62a930d 100644 (file)
@@ -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, EINA_TRUE);
-   elm_win_alpha_set(win, 1);
+   elm_win_alpha_set(win, EINA_TRUE);
 
    ic = elm_icon_add(win);
    snprintf(buf, sizeof(buf), "%s/images/animated_logo.gif", elm_app_data_dir_get());
index 364b42c..c61a7ab 100644 (file)
@@ -46,7 +46,7 @@ test_video(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info
    win = elm_win_add(NULL, "video", ELM_WIN_BASIC);
    elm_win_title_set(win, "Video");
    elm_win_autodel_set(win, EINA_TRUE);
-   elm_win_alpha_set(win, 1); /* Needed to turn video fast path on */
+   elm_win_alpha_set(win, EINA_TRUE); /* Needed to turn video fast path on */
 
    bg = elm_bg_add(win);
    evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
index f84d5c9..cce36c6 100644 (file)
@@ -17,7 +17,7 @@ my_bt_38_alpha_on(void *data, Evas_Object *obj __UNUSED__, void *event_info __UN
    Evas_Object *win = data;
    Evas_Object *bg = evas_object_data_get(win, "bg");
    evas_object_hide(bg);
-   elm_win_alpha_set(win, 1);
+   elm_win_alpha_set(win, EINA_TRUE);
 }
 
 static void
@@ -26,7 +26,7 @@ my_bt_38_alpha_off(void *data, Evas_Object *obj __UNUSED__, void *event_info __U
    Evas_Object *win = data;
    Evas_Object *bg = evas_object_data_get(win, "bg");
    evas_object_show(bg);
-   elm_win_alpha_set(win, 0);
+   elm_win_alpha_set(win, EINA_FALSE);
 }
 
 static void