From b4d7fed3ddda7a78ef04e853db07d2035bd8abe1 Mon Sep 17 00:00:00 2001 From: Hermet Park Date: Tue, 5 Jun 2018 20:22:04 +0900 Subject: [PATCH] elementary widget: fix to trigger object signal emit properly. This is more generic way to trigger signals for all derived classes of layout. This fixes the dayselector item signal emit issue as well. @fix T6981 --- src/lib/elementary/efl_ui_widget.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib/elementary/efl_ui_widget.c b/src/lib/elementary/efl_ui_widget.c index 5bbc9b0..84b2e71 100644 --- a/src/lib/elementary/efl_ui_widget.c +++ b/src/lib/elementary/efl_ui_widget.c @@ -6690,7 +6690,8 @@ EAPI void elm_widget_signal_emit(Eo *obj, const char *emission, const char *source) { ELM_WIDGET_CHECK(obj); - if (evas_object_smart_type_check(obj, "elm_layout")) + + if (efl_isa(obj, EFL_UI_LAYOUT_OBJECT_CLASS)) elm_layout_signal_emit(obj, emission, source); else if (evas_object_smart_type_check(obj, "elm_icon")) { -- 2.7.4