elm_widget: do not set NULL as parent for object
authorVyacheslav Reutskiy <v.reutskiy@samsung.com>
Wed, 17 Feb 2016 15:43:00 +0000 (17:43 +0200)
committerVyacheslav Reutskiy <v.reutskiy@samsung.com>
Thu, 18 Feb 2016 08:59:36 +0000 (10:59 +0200)
When widget has no parent object, it breakes usage of a custom
Elm_Theme. This commit fixes it.

@fix

legacy/elementary/src/lib/elm_widget.c

index fd00284..b13a2d9 100644 (file)
@@ -1289,7 +1289,7 @@ _elm_widget_sub_object_del(Eo *obj, Elm_Widget_Smart_Data *sd, Evas_Object *sobj
           }
 
         ELM_WIDGET_DATA_GET(sobj, sdc);
-        sdc->parent_obj = NULL;
+        sdc->parent_obj = elm_widget_top_get(obj);
      }
 
    if (sd->resize_obj == sobj) sd->resize_obj = NULL;