efl_ui_spin_button: fix initial displaying of formatting string
authorMarcel Hollerbach <mail@marcel-hollerbach.de>
Thu, 1 Aug 2019 11:35:53 +0000 (13:35 +0200)
committerWooHyun Jung <wh0705.jung@samsung.com>
Mon, 5 Aug 2019 02:51:03 +0000 (11:51 +0900)
spin_button should also implement formatted_apply, the label has a
different part name then spin.

ref T8097

Reviewed-by: Xavi Artigas <xavierartigas@yahoo.es>
Differential Revision: https://phab.enlightenment.org/D9474

src/lib/elementary/efl_ui_spin_button.c
src/lib/elementary/efl_ui_spin_button.eo

index ef53137..0419022 100644 (file)
@@ -805,6 +805,13 @@ _efl_ui_spin_button_efl_access_object_i18n_name_get(const Eo *obj, Efl_Ui_Spin_B
    return ret;
 }
 
+EOLIAN static void
+_efl_ui_spin_button_efl_ui_format_apply_formatted_value(Eo *obj, Efl_Ui_Spin_Button_Data *sd EINA_UNUSED)
+{
+   _label_write(obj);
+   efl_canvas_group_change(obj);
+}
+
 // A11Y Accessibility - END
 
 #include "efl_ui_spin_button.eo.c"
index a4ec1c6..45b16b7 100644 (file)
@@ -72,5 +72,6 @@ class @beta Efl.Ui.Spin_Button extends Efl.Ui.Spin implements Efl.Ui.Focus.Compo
       Efl.Access.Value.range { get; }
       Efl.Access.Value.increment { get; }
       Efl.Access.Widget.Action.elm_actions { get; }
+      Efl.Ui.Format.apply_formatted_value;
    }
 }