Commit 2960fd2f authored by Alexandre Perraud's avatar Alexandre Perraud

Add Lock and More video buttons

parent 740ee8cb
......@@ -90,11 +90,10 @@ collections
}
}
part {
name: "swallow.button1";
type: RECT;
name: "swallow.lock_button";
type: SWALLOW;
description {
visible: 0;
state: "pause" 0.0;
rel1 {
relative: 0.0 0.0;
to: "hub_button";
......@@ -159,11 +158,10 @@ collections
}
}
part {
name: "swallow.button5";
type: RECT;
name: "swallow.more_button";
type: SWALLOW;
description {
visible: 0;
state: "pause" 0.0;
rel1 {
relative: 0.8 0.0;
to: "hub_button";
......
......@@ -79,6 +79,20 @@ clicked_forward(void *data, Evas_Object *obj, void *event_info)
LOGD("forward button");
}
static void
clicked_lock(void *data, Evas_Object *obj, void *event_info)
{
//TODO lock action
LOGD("lock button");
}
static void
clicked_more(void *data, Evas_Object *obj, void *event_info)
{
//TODO more action
LOGD("more button");
}
Evas_Object*
create_video_gui(Evas_Object *parent, const char* file_path)
{
......@@ -122,6 +136,18 @@ create_video_gui(Evas_Object *parent, const char* file_path)
elm_object_part_content_set(vd->layout, "swallow.forward_button", forward_button);
evas_object_smart_callback_add(forward_button, "clicked", clicked_forward, vd);
//create lock button
Evas_Object *lock_button = elm_image_add(vd->layout);
elm_image_file_set(lock_button, ICON_DIR"ic_lock_circle_normal_o.png", NULL);
elm_object_part_content_set(vd->layout, "swallow.lock_button", lock_button);
evas_object_smart_callback_add(lock_button, "clicked", clicked_lock, vd);
//create more button
Evas_Object *more_button = elm_image_add(vd->layout);
elm_image_file_set(more_button, ICON_DIR"ic_more_circle_normal_o.png", NULL);
elm_object_part_content_set(vd->layout, "swallow.more_button", more_button);
evas_object_smart_callback_add(more_button, "clicked", clicked_more, vd);
//progress slider
vd->progress_slider = elm_slider_add(vd->layout);
elm_slider_horizontal_set(vd->progress_slider, EINA_TRUE);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment