diff options
author | Carsten Haitzler <raster@rasterman.com> | 2011-04-01 06:08:02 +0000 |
---|---|---|
committer | Carsten Haitzler <raster@rasterman.com> | 2011-04-01 06:08:02 +0000 |
commit | c7717f26f614377b220828b047c695ece354c470 (patch) | |
tree | c4b918d121483d97d9bc9fce4c681c219deae07d /src/lib/elm_separator.c | |
parent | a5707ea222ff819a3061e746ee6e5c5658cc8460 (diff) | |
download | elementary-c7717f26f614377b220828b047c695ece354c470.tar.gz |
make all widgets use a standard setup macro. cuts code down and
handles null parent errors, null wd alloc, null obj create errors etc.
SVN revision: 58242
Diffstat (limited to 'src/lib/elm_separator.c')
-rw-r--r-- | src/lib/elm_separator.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/lib/elm_separator.c b/src/lib/elm_separator.c index 36eca3a1a..58084a126 100644 --- a/src/lib/elm_separator.c +++ b/src/lib/elm_separator.c @@ -81,12 +81,8 @@ elm_separator_add(Evas_Object *parent) Evas *e; Widget_Data *wd; - EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL); - - wd = ELM_NEW(Widget_Data); - e = evas_object_evas_get(parent); - if (!e) return NULL; - obj = elm_widget_add(e); + ELM_WIDGET_STANDARD_SETUP(wd, Widget_Data, parent, e, obj, NULL); + ELM_SET_WIDTYPE(widtype, "separator"); wd->horizontal = EINA_FALSE; elm_widget_type_set(obj, "separator"); |