fix genlist item signals on prepend
[framework/uifw/elementary.git] / src / lib / elm_separator.c
index 36eca3a..e852d5e 100644 (file)
@@ -1,13 +1,6 @@
 #include <Elementary.h>
 #include "elm_priv.h"
 
-/**
- * @defgroup Separator Separator
- *
- * A separator is a widget that adds a very thin object to separate other objects.
- * A separator can be vertical or horizontal.
- */
-
 typedef struct _Widget_Data Widget_Data;
 
 struct _Widget_Data
@@ -65,15 +58,6 @@ _sizing_eval(Evas_Object *obj)
    evas_object_size_hint_align_set(obj, maxw, maxh);
 }
 
-/**
- * Add a separator object to @p parent
- *
- * @param parent The parent object
- *
- * @return The separator object, or NULL upon failure
- *
- * @ingroup Separator
- */
 EAPI Evas_Object *
 elm_separator_add(Evas_Object *parent)
 {
@@ -81,12 +65,8 @@ elm_separator_add(Evas_Object *parent)
    Evas *e;
    Widget_Data *wd;
 
-   EINA_SAFETY_ON_NULL_RETURN_VAL(parent, NULL);
+   ELM_WIDGET_STANDARD_SETUP(wd, Widget_Data, parent, e, obj, NULL);
 
-   wd = ELM_NEW(Widget_Data);
-   e = evas_object_evas_get(parent);
-   if (!e) return NULL;
-   obj = elm_widget_add(e);
    ELM_SET_WIDTYPE(widtype, "separator");
    wd->horizontal = EINA_FALSE;
    elm_widget_type_set(obj, "separator");
@@ -104,14 +84,6 @@ elm_separator_add(Evas_Object *parent)
    return obj;
 }
 
-/**
- * Set the horizontal mode of a separator object
- *
- * @param obj The separator object
- * @param horizontal If true, the separator is horizontal
- *
- * @ingroup Separator
- */
 EAPI void
 elm_separator_horizontal_set(Evas_Object *obj, Eina_Bool horizontal)
 {
@@ -124,14 +96,6 @@ elm_separator_horizontal_set(Evas_Object *obj, Eina_Bool horizontal)
    _theme_hook(obj);
 }
 
-/**
- * Get the horizontal mode of a separator object
- *
- * @param obj The separator object
- * @return If true, the separator is horizontal
- *
- * @ingroup Separator
- */
 EAPI Eina_Bool
 elm_separator_horizontal_get(const Evas_Object *obj)
 {