diff options
author | Ji-Youn Park <jy0703.park@samsung.com> | 2016-06-07 23:11:48 +0830 |
---|---|---|
committer | Ji-Youn Park <jy0703.park@samsung.com> | 2016-06-07 23:11:48 +0830 |
commit | 8cf9ee67bdc22eb24b90749d7cce1fb827998562 (patch) | |
tree | 5c38ed3249dfa0561f5dfaf10a2934f63b7a5e8d /src/lib/elementary/efl_ui_win_standard.c | |
parent | 1637c21a768ee5a914236d4979a700c3be007295 (diff) | |
download | efl-8cf9ee67bdc22eb24b90749d7cce1fb827998562.tar.gz |
efl_ui_win: rename elm_win to efl_ui_win
Diffstat (limited to 'src/lib/elementary/efl_ui_win_standard.c')
-rw-r--r-- | src/lib/elementary/efl_ui_win_standard.c | 36 |
1 files changed, 36 insertions, 0 deletions
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 <Elementary.h> + +#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" |