projects
/
framework
/
uifw
/
elementary.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3d5352c
)
[SegmentControl] Intenal function added to get the color of label from widget.
author
Prince Kr Dubey
<prince.dubey@samsung.com>
Fri, 26 Nov 2010 02:06:50 +0000
(11:06 +0900)
committer
Prince Kr Dubey
<prince.dubey@samsung.com>
Fri, 26 Nov 2010 02:06:50 +0000
(11:06 +0900)
src/lib/elm_segment_control.c
patch
|
blob
|
history
diff --git
a/src/lib/elm_segment_control.c
b/src/lib/elm_segment_control.c
index
920c8a5
..
5f548b6
100644
(file)
--- a/
src/lib/elm_segment_control.c
+++ b/
src/lib/elm_segment_control.c
@@
-606,7
+606,7
@@
_state_value_set(Evas_Object *obj)
static void _color_value_get(Evas_Object *obj)
{
- Widget_Data *wd =
elm_widget_data_get(obj)
;
+ Widget_Data *wd =
(Widget_Data *)obj
;
if (!wd) return;
const char *def_r, *def_g, *def_b, *def_a;
@@
-1227,6
+1227,7
@@
elm_segment_control_item_label_object_set(Elm_Segment_Item *item, char *label)
if(!wd) return NULL;
if(!label) return NULL;
+ _color_value_get(wd);
item->label_wd = elm_label_add(item->obj);
elm_object_style_set(item->label_wd, "segment");
elm_label_label_set(item->label_wd, label);