summaryrefslogtreecommitdiff
path: root/src/lib/elm_separator.c
diff options
context:
space:
mode:
authorCarsten Haitzler <raster@rasterman.com>2011-04-01 06:08:02 +0000
committerCarsten Haitzler <raster@rasterman.com>2011-04-01 06:08:02 +0000
commitc7717f26f614377b220828b047c695ece354c470 (patch)
treec4b918d121483d97d9bc9fce4c681c219deae07d /src/lib/elm_separator.c
parenta5707ea222ff819a3061e746ee6e5c5658cc8460 (diff)
downloadelementary-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.c8
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");