aboutsummaryrefslogtreecommitdiffstats
path: root/legacy/elementary/src/bin/test_layout.c
diff options
context:
space:
mode:
authorGustavo Lima Chaves <glima@profusion.mobi>2013-03-01 23:04:31 -0300
committerGustavo Lima Chaves <glima@profusion.mobi>2013-03-01 23:04:31 -0300
commit312d0217a012347058c0877492cca7b8833ba63d (patch)
tree47b4c4bd8c8ad6be8c123cad4e4a8e178701b5e0 /legacy/elementary/src/bin/test_layout.c
parentspinner: Fix initial value of the spinner. (diff)
downloadefl-312d0217a012347058c0877492cca7b8833ba63d.tar.gz
An internal layout error, on a widget set, is a CRITICAL error.
Diffstat (limited to 'legacy/elementary/src/bin/test_layout.c')
-rw-r--r--legacy/elementary/src/bin/test_layout.c18
1 files changed, 15 insertions, 3 deletions
diff --git a/legacy/elementary/src/bin/test_layout.c b/legacy/elementary/src/bin/test_layout.c
index 659e86a5a8..9caac5c1fb 100644
--- a/legacy/elementary/src/bin/test_layout.c
+++ b/legacy/elementary/src/bin/test_layout.c
@@ -49,7 +49,11 @@ test_layout(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info
evas_object_show(box);
ly = elm_layout_add(win);
- elm_layout_theme_set(ly, "layout", "application", "titlebar");
+
+ if (!elm_layout_theme_set(
+ ly, "layout", "application", "titlebar"))
+ fprintf(stderr, "Failed to set layout");
+
elm_object_part_text_set(ly, "elm.text", "Some title");
evas_object_size_hint_weight_set(ly, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
evas_object_size_hint_align_set(ly, EVAS_HINT_FILL, EVAS_HINT_FILL);
@@ -217,7 +221,11 @@ test_layout2(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_inf
/* Layout Box Test */
api->box_layout = ly = elm_layout_add(win);
- elm_layout_theme_set(ly, "layout", "application", "toolbar-vbox");
+
+ if (!elm_layout_theme_set(
+ ly, "layout", "application", "toolbar-vbox"))
+ fprintf(stderr, "Failed to set layout");
+
evas_object_size_hint_weight_set(ly, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
evas_object_size_hint_align_set(ly, EVAS_HINT_FILL, EVAS_HINT_FILL);
elm_box_pack_end(box, ly);
@@ -232,7 +240,11 @@ test_layout2(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_inf
/* Layout Table Test */
api->table_layout = ly = elm_layout_add(win);
- elm_layout_theme_set(ly, "layout", "application", "toolbar-table");
+
+ if (!elm_layout_theme_set(
+ ly, "layout", "application", "toolbar-table"))
+ fprintf(stderr, "Failed to set layout");
+
evas_object_size_hint_weight_set(ly, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
evas_object_size_hint_align_set(ly, EVAS_HINT_FILL, EVAS_HINT_FILL);
elm_box_pack_end(box, ly);