aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/extantz/extantz.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/extantz/extantz.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/extantz/extantz.c b/src/extantz/extantz.c
index 4ef9ecc..ef493b8 100644
--- a/src/extantz/extantz.c
+++ b/src/extantz/extantz.c
@@ -279,9 +279,7 @@ static void makeMainMenu(globals *ourGlobals)
279 Elm_Object_Item *tb_it; 279 Elm_Object_Item *tb_it;
280 280
281 // A toolbar thingy. 281 // A toolbar thingy.
282 tb = eo_add(ELM_OBJ_TOOLBAR_CLASS, ourGlobals->win); 282 tb = eo_add(ELM_OBJ_TOOLBAR_CLASS, ourGlobals->win,
283 ourGlobals->tb = tb;
284 eo_do(tb,
285 evas_obj_size_hint_weight_set(EVAS_HINT_EXPAND, 0.0), 283 evas_obj_size_hint_weight_set(EVAS_HINT_EXPAND, 0.0),
286 evas_obj_size_hint_align_set(EVAS_HINT_FILL, EVAS_HINT_FILL), 284 evas_obj_size_hint_align_set(EVAS_HINT_FILL, EVAS_HINT_FILL),
287 elm_obj_toolbar_shrink_mode_set(ELM_TOOLBAR_SHRINK_MENU), 285 elm_obj_toolbar_shrink_mode_set(ELM_TOOLBAR_SHRINK_MENU),
@@ -289,6 +287,7 @@ static void makeMainMenu(globals *ourGlobals)
289 evas_obj_position_set(0, 0), 287 evas_obj_position_set(0, 0),
290 elm_obj_toolbar_align_set(0.0) 288 elm_obj_toolbar_align_set(0.0)
291 ); 289 );
290 ourGlobals->tb = tb;
292 291
293 // Menus. 292 // Menus.
294 menu = _toolbar_menu_add(ourGlobals->win, tb, "file"); 293 menu = _toolbar_menu_add(ourGlobals->win, tb, "file");
@@ -398,9 +397,8 @@ EAPI_MAIN int elm_main(int argc, char **argv)
398 ourGlobals.win_h = ourGlobals.scr_h - 30; 397 ourGlobals.win_h = ourGlobals.scr_h - 30;
399 398
400 // Add a background image object. 399 // Add a background image object.
401 obj = eo_add(ELM_OBJ_IMAGE_CLASS, ourGlobals.win);
402 snprintf(buf, sizeof(buf), "%s/sky_03.jpg", elm_app_data_dir_get()); 400 snprintf(buf, sizeof(buf), "%s/sky_03.jpg", elm_app_data_dir_get());
403 eo_do(obj, 401 obj = eo_add(ELM_OBJ_IMAGE_CLASS, ourGlobals.win,
404 evas_obj_size_hint_weight_set(EVAS_HINT_EXPAND, EVAS_HINT_EXPAND), 402 evas_obj_size_hint_weight_set(EVAS_HINT_EXPAND, EVAS_HINT_EXPAND),
405 elm_obj_image_fill_outside_set(EINA_TRUE), 403 elm_obj_image_fill_outside_set(EINA_TRUE),
406 elm_obj_image_file_set(buf, NULL), 404 elm_obj_image_file_set(buf, NULL),
@@ -409,8 +407,7 @@ EAPI_MAIN int elm_main(int argc, char **argv)
409 elm_win_resize_object_add(ourGlobals.win, obj); 407 elm_win_resize_object_add(ourGlobals.win, obj);
410 eo_unref(obj); 408 eo_unref(obj);
411 409
412 ourGlobals.bx = eo_add(ELM_OBJ_BOX_CLASS, ourGlobals.win); 410 ourGlobals.bx = eo_add(ELM_OBJ_BOX_CLASS, ourGlobals.win,
413 eo_do(ourGlobals.bx,
414 evas_obj_size_hint_weight_set(EVAS_HINT_EXPAND, EVAS_HINT_EXPAND), 411 evas_obj_size_hint_weight_set(EVAS_HINT_EXPAND, EVAS_HINT_EXPAND),
415 evas_obj_size_hint_align_set(EVAS_HINT_FILL, EVAS_HINT_FILL), 412 evas_obj_size_hint_align_set(EVAS_HINT_FILL, EVAS_HINT_FILL),
416 evas_obj_visibility_set(EINA_TRUE) 413 evas_obj_visibility_set(EINA_TRUE)