git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@59896
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
}
/* public functions */
-
+extern const char *o_rect_type;
EAPI void
evas_object_clip_set(Evas_Object *obj, Evas_Object *clip)
if (obj->cur.clipper == clip) return;
if (obj == clip) return;
if (evas_object_intercept_call_clip_set(obj, clip)) return;
+ // illegal to set anything but a rect as a clip
+ if (clip->type != o_rect_type) return;
if (obj->smart.smart)
{
if (obj->smart.smart->smart_class->clip_set)
/* private magic number for rectangle objects */
static const char o_type[] = "rectangle";
+const char *o_rect_type = o_type;
+
/* private struct for rectangle object internal data */
typedef struct _Evas_Object_Rectangle Evas_Object_Rectangle;