aboutsummaryrefslogtreecommitdiffstats
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 @@
+#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 ELM_WIN_STANDARD_CLASS
+
+EOLIAN static Eo *
+_elm_win_standard_eo_base_finalize(Eo *obj, void *pd EINA_UNUSED)
+{
+ eo_do_super(obj, MY_CLASS, eo_finalize());
+
+ Evas_Object *bg = eo_add(ELM_BG_CLASS, obj);
+ if (!bg)
+ {
+ ERR("Cannot create background.");
+ evas_object_del(obj);
+ return NULL;
+ }
+ eo_do(bg, evas_obj_size_hint_weight_set(EVAS_HINT_EXPAND, EVAS_HINT_EXPAND));
+ eo_do(obj, elm_obj_win_resize_object_add(bg));
+ eo_do(bg, efl_gfx_visible_set(EINA_TRUE));
+
+ return obj;
+}
+
+#include "elm_win_standard.eo.c"