aboutsummaryrefslogtreecommitdiffstats
path: root/legacy/elementary/src/bin/test_thumb.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--legacy/elementary/src/bin/test_thumb.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/legacy/elementary/src/bin/test_thumb.c b/legacy/elementary/src/bin/test_thumb.c
index 5a6c04a0a4..6f68d18a40 100644
--- a/legacy/elementary/src/bin/test_thumb.c
+++ b/legacy/elementary/src/bin/test_thumb.c
@@ -6,7 +6,7 @@
void
test_thumb(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
- Evas_Object *win, *sc, *tb, *th;
+ Evas_Object *win, *bg, *sc, *tb, *th;
int i, j, n;
char buf[PATH_MAX];
const char *img[11] =
@@ -26,9 +26,15 @@ test_thumb(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info
elm_need_ethumb();
- win = elm_win_util_standard_add("thumb", "Thumb");
+ win = elm_win_add(NULL, "thumb", ELM_WIN_BASIC);
+ elm_win_title_set(win, "Thumb");
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);