[elm_widget] fix bug in elm_widget_show_region_set function
authorMyungjae Lee <mjae.lee@samsung.com>
Thu, 19 Aug 2010 02:21:15 +0000 (11:21 +0900)
committerMyungjae Lee <mjae.lee@samsung.com>
Thu, 19 Aug 2010 02:21:15 +0000 (11:21 +0900)
src/lib/elm_widget.c

index cee9846..b417271 100644 (file)
@@ -794,6 +794,22 @@ elm_widget_show_region_set(Evas_Object *obj, Evas_Coord x, Evas_Coord y, Evas_Co
    sd->rh = h;
    if (sd->on_show_region_func)
      sd->on_show_region_func(sd->on_show_region_data, obj);
+   else
+     {
+       Evas_Object *parent_obj;
+       do
+         {
+            parent_obj = sd->parent_obj;                
+            sd = evas_object_smart_data_get(parent_obj);
+            if ((!parent_obj) || (!sd) || (!_elm_widget_is(parent_obj))) break;
+            if (sd->on_show_region_func)
+              {
+                 sd->on_show_region_func(sd->on_show_region_data, obj);
+                 break;
+              }
+         }
+       while (parent_obj);
+     }
 }
 
 EAPI void