/* 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
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());
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());
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);
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
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