Widget_Data *wd = NULL;
Evas *e;
- wd = ELM_NEW(Widget_Data);
e = evas_object_evas_get(parent);
if (e == NULL) return NULL;
+ wd = ELM_NEW(Widget_Data);
obj = elm_widget_add(e);
elm_widget_type_set(obj, "colorpalette");
elm_widget_sub_object_add(parent, obj);
Widget_Data *wd = NULL;
Evas *e;
- wd = ELM_NEW(Widget_Data);
e = evas_object_evas_get(parent);
if (e == NULL)
return NULL;
+ wd = ELM_NEW(Widget_Data);
+ e = evas_object_evas_get(parent);
obj = elm_widget_add(e);
ELM_SET_WIDTYPE(widtype, "colorpicker");
elm_widget_type_set(obj, "colorpicker");
struct _Widget_Data
{
Evas_Object *parent;
- Evas *e;
Evas_Object *box;
Evas_Object *title_layout;
const char *title;
{
Evas_Object *obj = NULL;
Widget_Data *wd = NULL;
+ Evas *e = NULL;
+ e = evas_object_evas_get(parent);
+ if (e == NULL) return NULL;
wd = ELM_NEW(Widget_Data);
- wd->e = evas_object_evas_get(parent);
- if (wd->e == NULL) return NULL;
- obj = elm_widget_add(wd->e);
+ obj = elm_widget_add(e);
ELM_SET_WIDTYPE(widtype, "dialoguegroup");
elm_widget_type_set(obj, "dialoguegroup");
elm_widget_sub_object_add(parent, obj);
Evas *e;
Widget_Data *wd;
- wd = ELM_NEW(Widget_Data);
e = evas_object_evas_get(parent);
if (e == NULL)
return NULL;
+ wd = ELM_NEW(Widget_Data);
obj = elm_widget_add(e);
ELM_SET_WIDTYPE(widtype, "editfield");
elm_widget_type_set(obj, "editfield");
Evas *e;
Widget_Data *wd;
- wd = ELM_NEW(Widget_Data);
e = evas_object_evas_get(parent);
+ if (e == NULL) return NULL;
+ wd = ELM_NEW(Widget_Data);
obj = elm_widget_add(e);
ELM_SET_WIDTYPE(widtype, "slider");
elm_widget_type_set(obj, "slider");
/**
- * Set the right icon object of the slider object
+ * Set the end side icon object of the slider object
*
- * Once the right icon object is set, it will become a child of the slider object and
+ * Once the end side icon object is set, it will become a child of the slider object and
* be deleted when the slider object is deleted. If another icon object is set
* then the previous one becomes orophaned and will no longer be deleted along
* with the slider.
* @param obj The slider object
* @param icon The icon object
*
- * @return 1 if icon set succeed, 0 if there is no part for right icon
+ * @return 1 if icon set succeed, 0 if there is no part for the end side icon
*
* @ingroup Slider
*/
/**
- * Get the right icon object of the slider object
+ * Get the end side icon object of the slider object
*
* @param obj The slider object
- * @return The right icon object
+ * @return The end side icon object
*
* @ingroup Slider
*/