From: sanjeev Date: Tue, 21 Feb 2012 06:12:51 +0000 (+0000) Subject: make API naming consistent for elm_video API. X-Git-Tag: REL_F_I9500_20120323_1~17^2~617 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f4fd52d35febafb2b94ac80e56c98e9527eb240e;p=framework%2Fuifw%2Felementary.git make API naming consistent for elm_video API. Signed-off-by: Sanjeev BA git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/elementary@68202 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/src/lib/elc_player.c b/src/lib/elc_player.c index 7df4426..a3949c8 100644 --- a/src/lib/elc_player.c +++ b/src/lib/elc_player.c @@ -101,7 +101,7 @@ _event_hook(Evas_Object *obj, Evas_Object *src __UNUSED__, Evas_Callback_Type ty } if (!strcmp(ev->keyname, "space")) { - if (elm_video_is_playing(wd->video)) + if (elm_video_is_playing_get(wd->video)) elm_video_pause(wd->video); else elm_video_play(wd->video); @@ -191,7 +191,7 @@ _update_slider(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSE Eina_Bool seekable; if (!wd) return ; - seekable = elm_video_is_seekable(wd->video); + seekable = elm_video_is_seekable_get(wd->video); length = elm_video_play_length_get(wd->video); pos = elm_video_play_position_get(wd->video); @@ -489,7 +489,7 @@ _content_set_hook(Evas_Object *obj, const char *part, Evas_Object *content) evas_object_event_callback_add(wd->video, EVAS_CALLBACK_DEL, _track_video, wd); - seekable = elm_video_is_seekable(wd->video); + seekable = elm_video_is_seekable_get(wd->video); length = elm_video_play_length_get(wd->video); pos = elm_video_play_position_get(wd->video); @@ -497,7 +497,7 @@ _content_set_hook(Evas_Object *obj, const char *part, Evas_Object *content) elm_slider_min_max_set(wd->slider, 0, length); elm_slider_value_set(wd->slider, pos); - if (elm_video_is_playing(wd->video)) edje_object_signal_emit(wd->layout, "elm,player,play", "elm"); + if (elm_video_is_playing_get(wd->video)) edje_object_signal_emit(wd->layout, "elm,player,play", "elm"); else edje_object_signal_emit(wd->layout, "elm,player,pause", "elm"); evas_object_smart_callback_add(wd->emotion, "frame_decode", diff --git a/src/lib/elm_video.c b/src/lib/elm_video.c index de85ced..c6a94d3 100644 --- a/src/lib/elm_video.c +++ b/src/lib/elm_video.c @@ -79,7 +79,7 @@ _event_hook(Evas_Object *obj, Evas_Object *src __UNUSED__, Evas_Callback_Type ty } if (!strcmp(ev->keyname, "space")) { - if (elm_video_is_playing(obj)) + if (elm_video_is_playing_get(obj)) elm_video_pause(obj); else elm_video_play(obj); @@ -424,7 +424,7 @@ elm_video_stop(Evas_Object *video) } EAPI Eina_Bool -elm_video_is_playing(const Evas_Object *video) +elm_video_is_playing_get(const Evas_Object *video) { #ifdef HAVE_EMOTION ELM_CHECK_WIDTYPE(video, widtype) EINA_FALSE; @@ -438,7 +438,7 @@ elm_video_is_playing(const Evas_Object *video) } EAPI Eina_Bool -elm_video_is_seekable(const Evas_Object *video) +elm_video_is_seekable_get(const Evas_Object *video) { #ifdef HAVE_EMOTION ELM_CHECK_WIDTYPE(video, widtype) EINA_FALSE; diff --git a/src/lib/elm_video.h b/src/lib/elm_video.h index acc2f77..fc3c657 100644 --- a/src/lib/elm_video.h +++ b/src/lib/elm_video.h @@ -139,8 +139,7 @@ EAPI void elm_video_stop(Evas_Object *video); * * @ingroup Video */ -/* XXX: elm_video_is_playing_get() */ -EAPI Eina_Bool elm_video_is_playing(const Evas_Object *video); +EAPI Eina_Bool elm_video_is_playing_get(const Evas_Object *video); /** * @brief Is it possible to seek inside the video. @@ -150,8 +149,7 @@ EAPI Eina_Bool elm_video_is_playing(const Evas_Object *video); * * @ingroup Video */ -/* XXX: elm_video_is_seekable_get() */ -EAPI Eina_Bool elm_video_is_seekable(const Evas_Object *video); +EAPI Eina_Bool elm_video_is_seekable_get(const Evas_Object *video); /** * @brief Is the audio muted.