From 8cf9ee67bdc22eb24b90749d7cce1fb827998562 Mon Sep 17 00:00:00 2001 From: Ji-Youn Park Date: Tue, 7 Jun 2016 23:11:48 +0830 Subject: efl_ui_win: rename elm_win to efl_ui_win --- src/lib/elementary/efl_ui_win_standard.c | 36 ++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 src/lib/elementary/efl_ui_win_standard.c (limited to 'src/lib/elementary/efl_ui_win_standard.c') diff --git a/src/lib/elementary/efl_ui_win_standard.c b/src/lib/elementary/efl_ui_win_standard.c new file mode 100644 index 0000000000..d98c2f4f8a --- /dev/null +++ b/src/lib/elementary/efl_ui_win_standard.c @@ -0,0 +1,36 @@ +#ifdef HAVE_CONFIG_H +# include "elementary_config.h" +#endif + +#define ELM_INTERFACE_ATSPI_ACCESSIBLE_PROTECTED +#define ELM_INTERFACE_ATSPI_WIDGET_ACTION_PROTECTED +#define ELM_WIN_PROTECTED + +#include + +#include "elm_priv.h" + +#define MY_CLASS EFL_UI_WIN_STANDARD_CLASS + +EOLIAN static Eo * +_efl_ui_win_standard_eo_base_finalize(Eo *obj, void *pd EINA_UNUSED) +{ + obj = eo_finalize(eo_super(obj, MY_CLASS)); + if (!obj) + return NULL; + + Evas_Object *bg = eo_add(ELM_BG_CLASS, obj); + if (!bg) + { + ERR("Cannot create background."); + evas_object_del(obj); + return NULL; + } + evas_obj_size_hint_weight_set(bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); + efl_pack(obj, bg); + efl_gfx_visible_set(bg, EINA_TRUE); + + return obj; +} + +#include "efl_ui_win_standard.eo.c" -- cgit v1.2.1