summaryrefslogtreecommitdiff
path: root/src/lib/elementary/efl_ui_win_standard.c
blob: ed9b01da03f92f1d72dd2446d440612f7e688a9f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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_efl_object_finalize(Eo *obj, void *pd EINA_UNUSED)
{
   obj = efl_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;
     }
   efl_gfx_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"