static Eina_Bool _key_action_move(Evas_Object *obj, const char *params) { const char *dir = params; if (!strcmp(dir, "left")) { elm_slideshow_previous(obj); } else if (!strcmp(dir, "right")) { elm_slideshow_next(obj); } else return EINA_FALSE; return EINA_TRUE; }
/** * @brief Implementation of do action from AtkAction interface * * @param action EailSlideshow instance * @param i action index * * @returns TRUE on success, FALSE otherwise */ static gboolean eail_slideshow_do_action(AtkAction *action, gint i) { Evas_Object *widget; gboolean result; double slideshow_timeout; g_return_val_if_fail(EAIL_IS_SLIDESHOW(action), FALSE); widget = eail_widget_get_widget(EAIL_WIDGET(action)); if (!widget) return FALSE; if ((elm_object_disabled_get(widget)) || (!evas_object_visible_get(widget))) return FALSE; switch (i) { case 0: elm_slideshow_next(widget); result = TRUE; break; case 1: elm_slideshow_previous(widget); result = TRUE; break; case 2: elm_slideshow_timeout_set(widget, 0.0); result = TRUE; break; case 3: slideshow_timeout = elm_slideshow_timeout_get(widget); if (_double_cmp(slideshow_timeout, 0.0, 1)) { result = TRUE; elm_slideshow_timeout_set(widget, SLIDESHOW_DEFAULT_TIMEOUT); break; } result = FALSE; break; default: result = FALSE; break; } return result; }
void enna_photo_slideshow_next(Evas_Object *obj) { Smart_Data *sd = evas_object_data_get(obj, "sd"); elm_slideshow_next(sd->slideshow); }
static void _button_clicked_next_cb(void *data, Evas_Object *obj, void *event_info) { Smart_Data *sd = data; elm_slideshow_next(sd->slideshow); }