From 06e16c46d75327e6e8b921a6a34dbe5e835bd1a3 Mon Sep 17 00:00:00 2001 From: seoz Date: Fri, 29 Apr 2011 12:33:36 +0000 Subject: [PATCH] Elementary layout: Removed 'const' from elm_layout_content_get() API. This API callers can handle layout content. ex) evas_object_del(content); git-svn-id: https://svn.enlightenment.org/svn/e/trunk/elementary@59035 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/Elementary.h.in | 2 +- src/lib/elm_layout.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/Elementary.h.in b/src/lib/Elementary.h.in index 7d3e202..77cbed0 100644 --- a/src/lib/Elementary.h.in +++ b/src/lib/Elementary.h.in @@ -1043,7 +1043,7 @@ extern "C" { EAPI Eina_Bool elm_layout_file_set(Evas_Object *obj, const char *file, const char *group) EINA_ARG_NONNULL(1); EAPI Eina_Bool elm_layout_theme_set(Evas_Object *obj, const char *clas, const char *group, const char *style) EINA_ARG_NONNULL(1); EAPI void elm_layout_content_set(Evas_Object *obj, const char *swallow, Evas_Object *content) EINA_ARG_NONNULL(1); - EAPI const Evas_Object *elm_layout_content_get(const Evas_Object *obj, const char *swallow) EINA_ARG_NONNULL(1); + EAPI Evas_Object *elm_layout_content_get(const Evas_Object *obj, const char *swallow) EINA_ARG_NONNULL(1); EAPI Evas_Object *elm_layout_content_unset(Evas_Object *obj, const char *swallow) EINA_ARG_NONNULL(1); EAPI void elm_layout_text_set(Evas_Object *obj, const char *part, const char *text) EINA_ARG_NONNULL(1); EAPI const char *elm_layout_text_get(const Evas_Object *obj, const char *part) EINA_ARG_NONNULL(1); diff --git a/src/lib/elm_layout.c b/src/lib/elm_layout.c index 77dc9a6..e55aaa2 100644 --- a/src/lib/elm_layout.c +++ b/src/lib/elm_layout.c @@ -464,7 +464,7 @@ elm_layout_content_set(Evas_Object *obj, const char *swallow, Evas_Object *conte * * @ingroup Layout */ -EAPI const Evas_Object * +EAPI Evas_Object * elm_layout_content_get(const Evas_Object *obj, const char *swallow) { Widget_Data *wd = elm_widget_data_get(obj); -- 2.7.4