target: "image_2_whole";
after: "square_next_2";
}
+ program { name: "next";
+ signal: "none,next";
+ source: "slideshow";
+ action: STATE_SET "fade_prev_next" 0.0;
+ target: "image_1_whole";
+ target: "image_2_whole";
+ after: "end";
+ }
+ program { name: "previous";
+ signal: "none,previous";
+ source: "slideshow";
+ action: STATE_SET "fade_prev_next" 0.0;
+ target: "image_1_whole";
+ target: "image_2_whole";
+ after: "end";
+ }
program { name: "end";
action: SIGNAL_EMIT "end" "slideshow";
}
}
static void
-_hv_select(void *data, Evas_Object *obj, void *event_info __UNUSED__)
+_hv_select(void *data, Evas_Object *obj, void *event_info)
{
elm_slideshow_transition_set(slideshow, data);
- elm_object_text_set(obj, data);
+ elm_object_text_set(obj, elm_object_item_text_get(event_info));
}
static void
elm_hoversel_hover_parent_set(hv, win);
EINA_LIST_FOREACH(elm_slideshow_transitions_get(slideshow), l, transition)
elm_hoversel_item_add(hv, transition, NULL, 0, _hv_select, transition);
+ elm_hoversel_item_add(hv, "None", NULL, 0, _hv_select, NULL);
elm_object_text_set(hv, eina_list_data_get(elm_slideshow_transitions_get(slideshow)));
evas_object_show(hv);
wd->timer = ecore_timer_add(wd->timeout, _timer_cb, WIDGET(item));
_item_realize(next);
edje_object_part_swallow(wd->slideshow, "elm.swallow.2", VIEW(next));
- snprintf(buf, sizeof(buf), "%s,next", wd->transition);
+
+ if (!wd->transition)
+ sprintf(buf, "none,next");
+ else
+ snprintf(buf, sizeof(buf), "%s,next", wd->transition);
edje_object_signal_emit(wd->slideshow, buf, "slideshow");
wd->previous = wd->current;
wd->current = next;
edje_object_part_swallow(wd->slideshow, "elm.swallow.2", VIEW(next));
- snprintf(buf, sizeof(buf), "%s,next", wd->transition);
+ if (!wd->transition)
+ sprintf(buf, "none,next");
+ else
+ snprintf(buf, sizeof(buf), "%s,next", wd->transition);
edje_object_signal_emit(wd->slideshow, buf, "slideshow");
wd->previous = wd->current;
edje_object_part_swallow(wd->slideshow, "elm.swallow.2", VIEW(prev));
- snprintf(buf, 1024, "%s,previous", wd->transition);
+ if (!wd->transition)
+ sprintf(buf, "none,previous");
+ else
+ snprintf(buf, sizeof(buf), "%s,previous", wd->transition);
edje_object_signal_emit(wd->slideshow, buf, "slideshow");
wd->previous = wd->current;