elementary/naviframe - set main content to naviframe sub object to keep the obj-sub...
authorChunEon Park <hermet@hermet.pe.kr>
Sat, 8 Dec 2012 09:39:19 +0000 (09:39 +0000)
committerChunEon Park <hermet@hermet.pe.kr>
Sat, 8 Dec 2012 09:39:19 +0000 (09:39 +0000)
it needs to set other item contnets to be sub object.

SVN revision: 80520

legacy/elementary/src/lib/elc_naviframe.c

index b36a1a0..b0d08f7 100644 (file)
@@ -507,6 +507,7 @@ _item_content_set(Elm_Naviframe_Item *it,
 
    evas_object_event_callback_add
      (content, EVAS_CALLBACK_DEL, _item_content_del_cb, it);
+   elm_widget_sub_object_add(WIDGET(it), content);
 }
 
 static void
@@ -569,6 +570,7 @@ _item_content_unset(Elm_Naviframe_Item *it)
    evas_object_event_callback_del
      (content, EVAS_CALLBACK_DEL, _item_content_del_cb);
 
+   elm_widget_sub_object_del(WIDGET(it), content);
    it->content = NULL;
    return content;
 }