elm key events/disabling/focus - fix after another disabled widget fix
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>
Thu, 4 Aug 2016 07:34:40 +0000 (16:34 +0900)
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>
Thu, 4 Aug 2016 07:37:21 +0000 (16:37 +0900)
this fixes key events in rage again after
ea2b5e40485a49b5c5aadae98ed379f1c3cf5f71 broke them. this fixes T4285

src/lib/elementary/elm_widget.c

index 18e38da..529fef6 100644 (file)
@@ -1024,7 +1024,8 @@ EOLIAN static Elm_Theme_Apply
 _elm_widget_theme_apply(Eo *obj, Elm_Widget_Smart_Data *_pd EINA_UNUSED)
 {
    _elm_widget_mirrored_reload(obj);
-   elm_widget_disabled_internal(obj, elm_widget_disabled_get(obj));
+   if (elm_widget_disabled_get(obj))
+     elm_widget_disabled_set(obj, elm_widget_disabled_get(obj));
 
    return ELM_THEME_APPLY_SUCCESS;
 }