aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHermet Park <hermetpark@gmail.com>2018-08-21 14:04:58 +0900
committerHermet Park <hermetpark@gmail.com>2018-08-21 14:04:58 +0900
commit8312a99a92c1d7ad535ce89ee49f0eb26123c8a3 (patch)
tree1b50f1c5333dc0b260dcef65ae4b89ee67428414
parentefl_ui_spin_button: Addded direction feature. (diff)
downloadefl-8312a99a92c1d7ad535ce89ee49f0eb26123c8a3.tar.gz
ui_spin_button: avoid duplicated calls.
-rw-r--r--src/lib/elementary/efl_ui_spin_button.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/elementary/efl_ui_spin_button.c b/src/lib/elementary/efl_ui_spin_button.c
index fa21913e75..02b5da6bbe 100644
--- a/src/lib/elementary/efl_ui_spin_button.c
+++ b/src/lib/elementary/efl_ui_spin_button.c
@@ -887,6 +887,8 @@ _efl_ui_spin_button_efl_object_constructor(Eo *obj, Efl_Ui_Spin_Button_Data *sd)
EOLIAN static void
_efl_ui_spin_button_efl_ui_direction_direction_set(Eo *obj, Efl_Ui_Spin_Button_Data *sd, Efl_Ui_Dir dir)
{
+ if (sd->dir == dir) return;
+
sd->dir = dir;
efl_ui_widget_theme_apply(obj);