#define SRC_BTN_PLAY "play"
#define SRC_BTN_FF "ff"
#define SRC_BTN_NEXT "next"
-#define SRC_BTN_PHOTO_PREV "prev_photo"
-#define SRC_BTN_PHOTO_NEXT "next_photo"
+#define SRC_BTN_GALLERY_PREV "prev_gallery"
+#define SRC_BTN_GALLERY_NEXT "next_gallery"
/* images */
#define IMAGE_VIEWER_FAVORITE "ic_title_favorite.png"
}
group {
- name: "elm/button/base/viewer_btn_prev_photo";
+ name: "elm/button/base/viewer_btn_prev_gallery";
inherit: "elm/button/base/viewer_btn_prev";
images {
image: IMAGE_VIEWER_PHOTO_PREV_NORMAL COMP;
programs {
program {
name: "emit,signal";
- action: SIGNAL_EMIT SIG_BTN_CALLBACK SRC_BTN_PHOTO_PREV;
+ action: SIGNAL_EMIT SIG_BTN_CALLBACK SRC_BTN_GALLERY_PREV;
}
}
}
group {
- name: "elm/button/base/viewer_btn_next_photo";
+ name: "elm/button/base/viewer_btn_next_gallery";
inherit: "elm/button/base/viewer_btn_prev";
images {
image: IMAGE_VIEWER_PHOTO_NEXT_NORMAL COMP;
programs {
program {
name: "emit,signal";
- action: SIGNAL_EMIT SIG_BTN_CALLBACK SRC_BTN_PHOTO_NEXT;
+ action: SIGNAL_EMIT SIG_BTN_CALLBACK SRC_BTN_GALLERY_NEXT;
}
}
}
static struct _btn_info btn_photo[] = {
{
- .name = SRC_BTN_PHOTO_PREV,
+ .name = SRC_BTN_GALLERY_PREV,
.loc = 0,
},
{
- .name = SRC_BTN_PHOTO_NEXT,
+ .name = SRC_BTN_GALLERY_NEXT,
.loc = 4,
},
};
static struct _btn_info btn_video[] = {
{
- .name = SRC_BTN_PREV,
+ .name = SRC_BTN_GALLERY_PREV,
.loc = 0,
},
{
.loc = 3,
},
{
- .name = SRC_BTN_NEXT,
+ .name = SRC_BTN_GALLERY_NEXT,
.loc = 4,
},
};
priv = data;
- if (!strcmp(ev, SRC_BTN_PHOTO_PREV))
+ if (!strcmp(ev, SRC_BTN_GALLERY_PREV))
_viewer_prev(priv);
- else if (!strcmp(ev, SRC_BTN_PHOTO_NEXT))
+ else if (!strcmp(ev, SRC_BTN_GALLERY_NEXT))
_viewer_next(priv);
}
priv = data;
- if (!strcmp(ev, SRC_BTN_PREV)) {
+ if (!strcmp(ev, SRC_BTN_GALLERY_PREV)) {
_player_stop(priv);
_viewer_prev(priv);
- } else if (!strcmp(ev, SRC_BTN_NEXT)) {
+ } else if (!strcmp(ev, SRC_BTN_GALLERY_NEXT)) {
_player_stop(priv);
_viewer_next(priv);
} else if (!strcmp(ev, SRC_BTN_PLAY)) {