elm photocam : add file_get()> elm slideshow test : fix a bug

SVN revision: 42857
This commit is contained in:
Jonathan Atton 2009-10-02 13:03:57 +00:00
parent 07eef230f6
commit 6b56241c3a
3 changed files with 16 additions and 1 deletions

View File

@ -109,7 +109,7 @@ test_slideshow(void *data, Evas_Object *obj, void *event_info)
bx = elm_box_add(win);
elm_box_horizontal_set(bx, 1);
elm_notify_content_set(notify, bx);
evas_object_show(bt);
evas_object_show(bx);
evas_object_event_callback_add(bx, EVAS_CALLBACK_MOUSE_IN, _mouse_in, notify);
evas_object_event_callback_add(bx, EVAS_CALLBACK_MOUSE_OUT, _mouse_out, notify);

View File

@ -881,6 +881,7 @@ extern "C" {
} Elm_Photocam_Zoom_Mode;
EAPI Evas_Object *elm_photocam_add(Evas_Object *parent);
EAPI int elm_photocam_file_set(Evas_Object *obj, const char *file);
EAPI const char * elm_photocam_file_get(Evas_Object *obj);
EAPI void elm_photocam_zoom_set(Evas_Object *obj, int zoom);
EAPI int elm_photocam_zoom_get(Evas_Object *obj);
EAPI void elm_photocam_zoom_mode_set(Evas_Object *obj, Elm_Photocam_Zoom_Mode mode);

View File

@ -979,6 +979,20 @@ elm_photocam_file_set(Evas_Object *obj, const char *file)
return evas_object_image_load_error_get(wd->img);
}
/*
* Returns the path of the current image file
*
* @param obj The photocam object
* @return Returns the path
*
* @ingroup Photocam
*/
EAPI const char * elm_photocam_file_get(Evas_Object *obj)
{
Widget_Data *wd = elm_widget_data_get(obj);
return wd->file;
}
/**
* Set the zoom level of the photo
*