return efl_file_set(efl_super(obj, MY_CLASS), file);
}
+EOLIAN static const char *
+_efl_ui_image_zoomable_efl_file_file_get(const Eo *obj EINA_UNUSED, Efl_Ui_Image_Zoomable_Data *sd)
+{
+ return sd->file;
+}
+
EOLIAN static void
_efl_ui_image_zoomable_efl_ui_zoom_zoom_level_set(Eo *obj, Efl_Ui_Image_Zoomable_Data *sd, double zoom)
{
Efl.Ui.Scrollable_Interactive.scroll;
Efl.Access.Widget.Action.elm_actions { get; }
Efl.File.load;
- Efl.File.file { set; }
+ Efl.File.file { get; set; }
Efl.Orientation.orientation { get; set; }
Efl.Orientation.flip { get; set; }
Efl.Layout.Group.group_size_min { get; }
}
EFL_END_TEST
+EFL_START_TEST(elm_photocam_file)
+{
+ Evas_Object *win, *photocam;
+ const char *buf = ELM_IMAGE_DATA_DIR "/images/logo_small.png";
+
+ win = win_add(NULL, "photocam", ELM_WIN_BASIC);
+ photocam = elm_photocam_add(win);
+
+ ck_assert_int_eq(elm_photocam_file_set(photocam, buf), EVAS_LOAD_ERROR_NONE);
+ ck_assert_str_eq(elm_photocam_file_get(photocam), buf);
+
+ ck_assert_int_eq(elm_photocam_file_set(photocam, "non_existing.png"), EVAS_LOAD_ERROR_DOES_NOT_EXIST);
+ ck_assert_str_eq(elm_photocam_file_get(photocam), "non_existing.png");
+}
+EFL_END_TEST
+
void elm_test_photocam(TCase *tc)
{
tcase_add_test(tc, elm_photocam_legacy_type_check);
tcase_add_test(tc, elm_atspi_role_get);
+ tcase_add_test(tc, elm_photocam_file);
}