summaryrefslogtreecommitdiff
path: root/src/lib/elementary/elm_interface_scrollable.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/elementary/elm_interface_scrollable.c')
-rw-r--r--src/lib/elementary/elm_interface_scrollable.c20
1 files changed, 16 insertions, 4 deletions
diff --git a/src/lib/elementary/elm_interface_scrollable.c b/src/lib/elementary/elm_interface_scrollable.c
index 8a2c390..7130efb 100644
--- a/src/lib/elementary/elm_interface_scrollable.c
+++ b/src/lib/elementary/elm_interface_scrollable.c
@@ -4028,6 +4028,21 @@ _scroll_event_object_detach(Evas_Object *obj)
4028} 4028}
4029 4029
4030EOLIAN static void 4030EOLIAN static void
4031_elm_interface_scrollable_reset_signals(Eo *obj EINA_UNUSED, Elm_Scrollable_Smart_Interface_Data *sid)
4032{
4033 sid->go_up = sid->go_down = sid->go_right = sid->go_left = EINA_FALSE;
4034
4035 edje_object_signal_emit(sid->edje_obj, "elm,action,hide,up", "elm");
4036 edje_object_signal_emit(sid->edje_obj, "elm,action,hide,down", "elm");
4037 edje_object_signal_emit(sid->edje_obj, "elm,action,hide,right", "elm");
4038 edje_object_signal_emit(sid->edje_obj, "elm,action,hide,left", "elm");
4039 edje_object_signal_emit(sid->edje_obj, "elm,action,hide,vbar", "elm");
4040 edje_object_signal_emit(sid->edje_obj, "elm,action,hide,hbar", "elm");
4041
4042 _elm_scroll_scroll_bar_visibility_adjust(sid);
4043}
4044
4045EOLIAN static void
4031_elm_interface_scrollable_objects_set(Eo *obj, Elm_Scrollable_Smart_Interface_Data *sid, Evas_Object *edje_object, Evas_Object *hit_rectangle) 4046_elm_interface_scrollable_objects_set(Eo *obj, Elm_Scrollable_Smart_Interface_Data *sid, Evas_Object *edje_object, Evas_Object *hit_rectangle)
4032{ 4047{
4033 Evas_Coord mw, mh; 4048 Evas_Coord mw, mh;
@@ -4039,10 +4054,7 @@ _elm_interface_scrollable_objects_set(Eo *obj, Elm_Scrollable_Smart_Interface_Da
4039 4054
4040 sid->edje_obj = edje_object; 4055 sid->edje_obj = edje_object;
4041 4056
4042 edje_object_signal_emit(sid->edje_obj, "elm,action,hide,up", "elm"); 4057 elm_interface_scrollable_reset_signals(obj);
4043 edje_object_signal_emit(sid->edje_obj, "elm,action,hide,down", "elm");
4044 edje_object_signal_emit(sid->edje_obj, "elm,action,hide,right", "elm");
4045 edje_object_signal_emit(sid->edje_obj, "elm,action,hide,left", "elm");
4046 4058
4047 if (sid->event_rect) 4059 if (sid->event_rect)
4048 _scroll_event_object_detach(obj); 4060 _scroll_event_object_detach(obj);