summaryrefslogtreecommitdiff
path: root/src/lib/elm_win_standard.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/elm_win_standard.c')
-rw-r--r--src/lib/elm_win_standard.c34
1 files changed, 34 insertions, 0 deletions
diff --git a/src/lib/elm_win_standard.c b/src/lib/elm_win_standard.c
new file mode 100644
index 000000000..e449cc3f4
--- /dev/null
+++ b/src/lib/elm_win_standard.c
@@ -0,0 +1,34 @@
1#ifdef HAVE_CONFIG_H
2# include "elementary_config.h"
3#endif
4
5#define ELM_INTERFACE_ATSPI_ACCESSIBLE_PROTECTED
6#define ELM_INTERFACE_ATSPI_WIDGET_ACTION_PROTECTED
7#define ELM_WIN_PROTECTED
8
9#include <Elementary.h>
10
11#include "elm_priv.h"
12
13#define MY_CLASS ELM_WIN_STANDARD_CLASS
14
15EOLIAN static Eo *
16_elm_win_standard_eo_base_finalize(Eo *obj, void *pd EINA_UNUSED)
17{
18 eo_do_super(obj, MY_CLASS, eo_finalize());
19
20 Evas_Object *bg = eo_add(ELM_BG_CLASS, obj);
21 if (!bg)
22 {
23 ERR("Cannot create background.");
24 evas_object_del(obj);
25 return NULL;
26 }
27 eo_do(bg, evas_obj_size_hint_weight_set(EVAS_HINT_EXPAND, EVAS_HINT_EXPAND));
28 eo_do(obj, elm_obj_win_resize_object_add(bg));
29 eo_do(bg, efl_gfx_visible_set(EINA_TRUE));
30
31 return obj;
32}
33
34#include "elm_win_standard.eo.c"