path: root/src/lib/elementary/efl_ui_win.c
diff options
authorMike Blumenkrantz <zmike@samsung.com>2019-02-27 14:00:14 -0500
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2019-02-27 20:19:23 +0100
commit0b152734ba13d46155b2c1dcc98cd13c79fc804c (patch)
treec561dfae458ad5c53f2f44f2c20db81d28a61167 /src/lib/elementary/efl_ui_win.c
parentelementary: remove unnecessessary disabled setter (diff)
efl_ui_widget: redo disable handling
before the disable property was a bit weird. Setting something to disabled=true will disable all children of the widget that is changed. However, only the update function of the children will get the false flag, not the flag itself. Which means, to query the real disabled state, we need to walk up the parent relations. With this patch, every change to disabled will go through the disabled property, which mean, a implementor can just overwrite the disabled property, and adjust its internal state there. Just be carefull, a set to disabled=true still might result in disabled=false. This makes the function on_disable_update unneccesary. Which also cleans up the Efl.Ui.Widget class. ref https://phab.enlightenment.org/T7553 Depends on https://phab.enlightenment.org/D8016 Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Differential Revision: https://phab.enlightenment.org/D8017
Diffstat (limited to 'src/lib/elementary/efl_ui_win.c')
1 files changed, 1 insertions, 4 deletions
diff --git a/src/lib/elementary/efl_ui_win.c b/src/lib/elementary/efl_ui_win.c
index f3086dbc3f..99ccf86705 100644
--- a/src/lib/elementary/efl_ui_win.c
+++ b/src/lib/elementary/efl_ui_win.c
@@ -6973,7 +6973,7 @@ static Efl_Ui_Theme_Apply_Result
_elm_win_theme_internal(Eo *obj, Efl_Ui_Win_Data *sd)
Efl_Ui_Theme_Apply_Result int_ret = EFL_UI_THEME_APPLY_RESULT_FAIL;
- Eina_Bool ret = EINA_FALSE, prev_alpha;
+ Eina_Bool prev_alpha;
const char *s;
int_ret = elm_widget_theme_object_set(obj, sd->legacy.edje, "win", "base",
@@ -6985,9 +6985,6 @@ _elm_win_theme_internal(Eo *obj, Efl_Ui_Win_Data *sd)
efl_gfx_entity_scale_get(obj) * elm_config_scale_get());
efl_event_callback_legacy_call(obj, EFL_UI_WIN_EVENT_THEME_CHANGED, NULL);
- ret = efl_ui_widget_on_disabled_update(obj, elm_widget_disabled_get(obj));
- if (!ret) int_ret = EFL_UI_THEME_APPLY_RESULT_FAIL;
prev_alpha = sd->theme_alpha;
s = edje_object_data_get(sd->legacy.edje, "alpha");