From 03ac0f66bb61fb5b27ea997bc1c60730e2b61671 Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Mon, 12 May 2014 03:42:09 +1000 Subject: Internal and external windows now both use the layout. --- src/extantz/extantz.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/extantz') diff --git a/src/extantz/extantz.c b/src/extantz/extantz.c index 5e79597..ed3a78f 100644 --- a/src/extantz/extantz.c +++ b/src/extantz/extantz.c @@ -494,11 +494,22 @@ EAPI_MAIN int elm_main(int argc, char **argv) */ // Override the background image +#if 1 + snprintf(buf, sizeof(buf), "%s/sky_03.jpg", elm_app_data_dir_get()); + ourGlobals.mainWindow->bg = eo_add(ELM_OBJ_IMAGE_CLASS, ourGlobals.mainWindow->win, + evas_obj_size_hint_weight_set(EVAS_HINT_EXPAND, EVAS_HINT_EXPAND), + elm_obj_image_fill_outside_set(EINA_TRUE), + elm_obj_image_file_set(buf, NULL), + evas_obj_visibility_set(EINA_TRUE) + ); + elm_win_resize_object_add(ourGlobals.mainWindow->win, ourGlobals.mainWindow->bg); +#else snprintf(buf, sizeof(buf), "%s/sky_03.jpg", elm_app_data_dir_get()); eo_do(ourGlobals.mainWindow->bg, elm_obj_image_file_set(buf, NULL), evas_obj_color_set(255, 255, 255, 255) ); +#endif init_evas_gl(&ourGlobals); -- cgit v1.1