[svn 51773]elm_mapbuf.c
authorshilpa singh <shilpa.singh@samsung.com>
Fri, 8 Oct 2010 12:28:07 +0000 (21:28 +0900)
committershilpa singh <shilpa.singh@samsung.com>
Fri, 8 Oct 2010 12:28:07 +0000 (21:28 +0900)
src/lib/elm_mapbuf.c

index 7e46d83..6b6e34f 100644 (file)
@@ -198,7 +198,9 @@ elm_mapbuf_content_set(Evas_Object *obj, Evas_Object *content)
      {
        elm_widget_sub_object_add(content, obj);
        evas_object_smart_member_add(content, obj);
-       evas_object_event_callback_add(content, EVAS_CALLBACK_CHANGED_SIZE_HINTS,
+        evas_object_clip_set(content, evas_object_clip_get(obj));
+       evas_object_event_callback_add(content,
+                                       EVAS_CALLBACK_CHANGED_SIZE_HINTS,
                                       _changed_size_hints, obj);
      }
    _sizing_eval(obj);
@@ -226,6 +228,7 @@ elm_mapbuf_content_unset(Evas_Object *obj)
    content = wd->content;
    elm_widget_sub_object_del(obj, wd->content);
    evas_object_smart_member_del(wd->content);
+   evas_object_clip_unset(wd->content);
    wd->content = NULL;
    return content;
 }