-#include <Elementary.h>
#ifdef HAVE_CONFIG_H
# include "elementary_config.h"
#endif
+#include <Elementary.h>
#ifndef ELM_LIB_QUICKLAUNCH
static void drop_cb(void *mydata, Evas_Object *obj, void *evdata);
void
test_photo(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
- Evas_Object *win, *bg, *sc, *tb, *ph;
+ Evas_Object *win, *sc, *tb, *ph;
int i, j, n;
char buf[PATH_MAX];
const char *img[9] =
elm_need_ethumb();
- win = elm_win_add(NULL, "photo", ELM_WIN_BASIC);
- elm_win_title_set(win, "Photo");
+ win = elm_win_util_standard_add("photo", "Photo");
elm_win_autodel_set(win, EINA_TRUE);
- bg = elm_bg_add(win);
- evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
- elm_win_resize_object_add(win, bg);
- evas_object_show(bg);
-
tb = elm_table_add(win);
evas_object_size_hint_weight_set(tb, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
elm_app_data_dir_get(), img[n]);
n++;
if (n >= 9) n = 0;
+ elm_photo_aspect_fixed_set(ph, EINA_FALSE);
elm_photo_size_set(ph, 80);
if (n == 8)
elm_photo_thumb_set(ph, buf, NULL);
else
elm_photo_file_set(ph, buf);
- elm_photo_editable_set(ph, 1);
+ elm_photo_editable_set(ph, EINA_TRUE);
evas_object_size_hint_weight_set(ph, EVAS_HINT_EXPAND,
EVAS_HINT_EXPAND);
evas_object_size_hint_align_set(ph, EVAS_HINT_FILL,