summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSubodh Kumar <s7158.kumar@samsung.com>2016-01-06 11:26:18 -0800
committerCedric BAIL <cedric@osg.samsung.com>2016-01-06 11:26:24 -0800
commitfb7c19f9d6f4a3318a934d8c04261740599bdc05 (patch)
treebd48e2a3cb7b11624a3ef27cdf22e6e0ca9710c3
parent52e13710a3bdcfb3fcf79d6fc9212aa41b1e2e3e (diff)
segment_control: check item disable
Summary: Elm segment_control: check item disable Signed-off by: @adrien Refer T2883 @fix Test Plan: NA Reviewers: cedric Subscribers: adrien Projects: #elementary Differential Revision: https://phab.enlightenment.org/D3531 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
-rw-r--r--src/lib/elm_segment_control.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/elm_segment_control.c b/src/lib/elm_segment_control.c
index 68d46dad8..2b6452aff 100644
--- a/src/lib/elm_segment_control.c
+++ b/src/lib/elm_segment_control.c
@@ -202,7 +202,8 @@ _update_list(Elm_Segment_Control_Data *sd)
202 else 202 else
203 edje_object_signal_emit(VIEW(it), "elm,state,segment,normal", "elm"); 203 edje_object_signal_emit(VIEW(it), "elm,state,segment,normal", "elm");
204 204
205 if (elm_widget_disabled_get(sd->obj)) 205 if (elm_widget_disabled_get(sd->obj)
206 || elm_object_item_disabled_get(eo_it))
206 edje_object_signal_emit(VIEW(it), "elm,state,disabled", "elm"); 207 edje_object_signal_emit(VIEW(it), "elm,state,disabled", "elm");
207 else 208 else
208 edje_object_signal_emit(VIEW(it), "elm,state,enabled", "elm"); 209 edje_object_signal_emit(VIEW(it), "elm,state,enabled", "elm");
@@ -309,6 +310,8 @@ _segment_on(Elm_Segment_Control_Item_Data *it)
309 310
310 if (it == sd->selected_item) return; 311 if (it == sd->selected_item) return;
311 312
313 if (elm_object_item_disabled_get(EO_OBJ(it))) return;
314
312 if (sd->selected_item) _segment_off(sd->selected_item); 315 if (sd->selected_item) _segment_off(sd->selected_item);
313 316
314 edje_object_signal_emit(VIEW(it), "elm,state,segment,selected", "elm"); 317 edje_object_signal_emit(VIEW(it), "elm,state,segment,selected", "elm");