diff options
author | Gustavo Lima Chaves <glima@profusion.mobi> | 2013-03-01 23:04:31 -0300 |
---|---|---|
committer | Gustavo Lima Chaves <glima@profusion.mobi> | 2013-03-01 23:04:31 -0300 |
commit | 07523ed88a6d0d8d8adee6105c3bdb09e931ce29 (patch) | |
tree | ced6dd0dfe7a2ba8fc3d89db037b9f06082abaa2 /doc | |
parent | 0d6443dfaeb4612196e87ec6445a20d0328e2336 (diff) | |
download | elementary-07523ed88a6d0d8d8adee6105c3bdb09e931ce29.tar.gz |
An internal layout error, on a widget set, is a CRITICAL error.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/widgets/widget_preview_layout.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/doc/widgets/widget_preview_layout.c b/doc/widgets/widget_preview_layout.c index 6ad287319..301f54d00 100644 --- a/doc/widgets/widget_preview_layout.c +++ b/doc/widgets/widget_preview_layout.c @@ -2,7 +2,11 @@ Evas_Object *layout = elm_layout_add(win); evas_object_size_hint_weight_set(layout, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); -elm_layout_theme_set(layout, "layout", "application", "toolbar-content-back-next"); + +if (!elm_layout_theme_set + (layout, "layout", "application", "toolbar-content-back-next")) + fprintf(stderr, "Failed to set layout!"); + elm_win_resize_object_add(win, layout); evas_object_show(layout); |