summaryrefslogtreecommitdiff
path: root/legacy/elementary
diff options
context:
space:
mode:
authorChunEon Park <hermet@hermet.pe.kr>2012-03-28 10:03:45 +0000
committerChunEon Park <hermet@hermet.pe.kr>2012-03-28 10:03:45 +0000
commit0519f0178da9ffe91cb97bade8612ce6199e8e28 (patch)
tree5e4c21b958ebc3eedc992bb674703203f4b52e72 /legacy/elementary
parent7908a77ad80cb337518806c931ace08475d0b55c (diff)
elementary/widget - fixed to update the some status -color, clip, visibitliy- even if the memebers are added later.
SVN revision: 69701
Diffstat (limited to 'legacy/elementary')
-rw-r--r--legacy/elementary/src/lib/elm_widget.c22
1 files changed, 20 insertions, 2 deletions
diff --git a/legacy/elementary/src/lib/elm_widget.c b/legacy/elementary/src/lib/elm_widget.c
index b09eee978c..f51ff01146 100644
--- a/legacy/elementary/src/lib/elm_widget.c
+++ b/legacy/elementary/src/lib/elm_widget.c
@@ -174,6 +174,7 @@ static void _smart_clip_set(Evas_Object *obj,
174 Evas_Object *clip); 174 Evas_Object *clip);
175static void _smart_clip_unset(Evas_Object *obj); 175static void _smart_clip_unset(Evas_Object *obj);
176static void _smart_calculate(Evas_Object *obj); 176static void _smart_calculate(Evas_Object *obj);
177static void _smart_member_add(Evas_Object *obj, Evas_Object *child);
177static void _smart_init(void); 178static void _smart_init(void);
178 179
179static void _if_focused_revert(Evas_Object *obj, 180static void _if_focused_revert(Evas_Object *obj,
@@ -1120,7 +1121,6 @@ elm_widget_resize_object_set(Evas_Object *obj,
1120 evas_object_event_callback_add(sobj, EVAS_CALLBACK_HIDE, 1121 evas_object_event_callback_add(sobj, EVAS_CALLBACK_HIDE,
1121 _sub_obj_hide, sd); 1122 _sub_obj_hide, sd);
1122 } 1123 }
1123 evas_object_clip_set(sobj, evas_object_clip_get(obj));
1124 evas_object_smart_member_add(sobj, obj); 1124 evas_object_smart_member_add(sobj, obj);
1125 evas_object_event_callback_add(sobj, EVAS_CALLBACK_DEL, 1125 evas_object_event_callback_add(sobj, EVAS_CALLBACK_DEL,
1126 _sub_obj_del, sd); 1126 _sub_obj_del, sd);
@@ -3848,6 +3848,24 @@ _smart_calculate(Evas_Object *obj)
3848 if (sd->changed_func) sd->changed_func(obj); 3848 if (sd->changed_func) sd->changed_func(obj);
3849} 3849}
3850 3850
3851static void
3852_smart_member_add(Evas_Object *obj, Evas_Object *child)
3853{
3854 int r, g, b, a;
3855
3856 if (evas_object_data_get(child, "_elm_leaveme")) return;
3857
3858 evas_object_color_get(obj, &r, &g, &b, &a);
3859 evas_object_color_set(child, r, g, b, a);
3860
3861 evas_object_clip_set(child, evas_object_clip_get(obj));
3862
3863 if (evas_object_visible_get(obj))
3864 evas_object_show(child);
3865 else
3866 evas_object_hide(child);
3867}
3868
3851/* never need to touch this */ 3869/* never need to touch this */
3852static void 3870static void
3853_smart_init(void) 3871_smart_init(void)
@@ -3868,7 +3886,7 @@ _smart_init(void)
3868 _smart_clip_set, 3886 _smart_clip_set,
3869 _smart_clip_unset, 3887 _smart_clip_unset,
3870 _smart_calculate, 3888 _smart_calculate,
3871 NULL, 3889 _smart_member_add,
3872 NULL, 3890 NULL,
3873 NULL, 3891 NULL,
3874 NULL, 3892 NULL,