From: PRINCE KUMAR DUBEY <prince.dubey@samsung.com>
authorPRINCE KUMAR DUBEY <prince.dubey@samsung.com>
Fri, 14 Oct 2011 11:05:56 +0000 (11:05 +0000)
committerCarsten Haitzler <raster@rasterman.com>
Fri, 14 Oct 2011 11:05:56 +0000 (11:05 +0000)
Subject: [E-devel] elm_segment_control patch for enable/disable issue
fix.

Change Description:

[Issue-Fixed] After disable, on enabling, the segment control, segment
item's image remains of disable type.

SVN revision: 64074

data/themes/widgets/segment_control.edc
src/lib/elm_segment_control.c

index 4924d6e..39dfbee 100644 (file)
@@ -377,6 +377,9 @@ group { name: "elm/segment_control/item/default";
                set_state(PART:"disabler", "disabled_right", 0.0);
                set_state(PART:"elm.text", "disabled", 0.0);
             }
+            else
+               set_state(PART:"disabler", "default", 0.0);
+            
          }
       }
       program {
index 77d4441..fc0b7ce 100644 (file)
@@ -367,6 +367,8 @@ _update_list(Widget_Data *wd)
 
         if (elm_widget_disabled_get(wd->obj))
           edje_object_signal_emit(it->base.view, "elm,state,disabled", "elm");
+        else
+          edje_object_signal_emit(it->base.view, "elm,state,enabled", "elm");
 
         _swallow_item_objects(it);
         return;
@@ -410,6 +412,8 @@ _update_list(Widget_Data *wd)
 
         if (elm_widget_disabled_get(wd->obj))
           edje_object_signal_emit(it->base.view, "elm,state,disabled", "elm");
+        else
+          edje_object_signal_emit(it->base.view, "elm,state,enabled", "elm");
 
         _swallow_item_objects(it);
         idx++;