summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Hollerbach <marcel-hollerbach@t-online.de>2014-12-06 00:35:36 +0100
committerMarcel Hollerbach <marcel-hollerbach@t-online.de>2014-12-06 00:35:36 +0100
commitbf1dbf743004ebd255838ec0e35381c3e58db774 (patch)
tree759da9f66496e8e23f618000266faadc826d8248
parent7527590f1c265d49a9c7a38a9f8e8f6b47d7a645 (diff)
Ref the content so it is not deleted.
-rw-r--r--src/elm_settingspane.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/elm_settingspane.c b/src/elm_settingspane.c
index d1282b3..7058f5e 100644
--- a/src/elm_settingspane.c
+++ b/src/elm_settingspane.c
@@ -296,7 +296,9 @@ _content_layout_content_init(Evas_Object *w)
296static Eina_Bool 296static Eina_Bool
297_content_layout_del_cb(void *data) 297_content_layout_del_cb(void *data)
298{ 298{
299 evas_object_del((Evas_Object*)data); 299 Evas_Object *del = data;
300 eo_unref(del);
301 evas_object_del(del);
300 return EINA_FALSE; 302 return EINA_FALSE;
301} 303}
302 304
@@ -359,6 +361,7 @@ _content_layout_content_set(Evas_Object *w, Elm_Settingspane_Item *it)
359 if (!id->panel.tmp_content) 361 if (!id->panel.tmp_content)
360 { 362 {
361 id->panel.tmp_content = elm_scroller_add(w); 363 id->panel.tmp_content = elm_scroller_add(w);
364 eo_ref(id->panel.tmp_content);
362 evas_object_size_hint_weight_set(id->panel.tmp_content, 365 evas_object_size_hint_weight_set(id->panel.tmp_content,
363 EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); 366 EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
364 evas_object_show(id->panel.tmp_content); 367 evas_object_show(id->panel.tmp_content);