forked from enlightenment/enlightenment
parent
f1ba6e8204
commit
746ea5f85a
|
@ -225,7 +225,7 @@ e_icon_scale_size_set(Evas_Object *obj, int size)
|
|||
E_Smart_Data *sd;
|
||||
|
||||
sd = evas_object_smart_data_get(obj);
|
||||
if (!sd) return NULL;
|
||||
if (!sd) return;
|
||||
sd->size = size;
|
||||
if (!strcmp(evas_object_type_get(sd->obj), "edje"))
|
||||
return;
|
||||
|
@ -238,7 +238,7 @@ e_icon_scale_size_get(Evas_Object *obj)
|
|||
E_Smart_Data *sd;
|
||||
|
||||
sd = evas_object_smart_data_get(obj);
|
||||
if (!sd) return NULL;
|
||||
if (!sd) return 0;
|
||||
return sd->size;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,7 +1,9 @@
|
|||
/*
|
||||
* vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
|
||||
*/
|
||||
#define _XOPEN_SOURCE 600
|
||||
#include "e.h"
|
||||
#include <math.h>
|
||||
|
||||
#define SMART_NAME "e_slider"
|
||||
#define API_ENTRY E_Smart_Data *sd; sd = evas_object_smart_data_get(obj); if ((!obj) || (!sd) || (evas_object_type_get(obj) && strcmp(evas_object_type_get(obj), SMART_NAME)))
|
||||
|
|
Loading…
Reference in New Issue