aboutsummaryrefslogtreecommitdiffstats
path: root/legacy/elementary/src/lib/elm_color_class.c
diff options
context:
space:
mode:
authorAmitesh Singh <amitesh.sh@samsung.com>2015-07-10 20:45:18 +0530
committerAmitesh Singh <amitesh.sh@samsung.com>2015-07-10 20:45:18 +0530
commit96f6141a254740472b43a531194c2dccd0a52a59 (patch)
tree2466ab2cb88572d3d2662ec9bc1e7278c0752dad /legacy/elementary/src/lib/elm_color_class.c
parentElm.Colorselector: Fix crash in infinite callback loop (diff)
downloadefl-96f6141a254740472b43a531194c2dccd0a52a59.tar.gz
color_class: Check return value of elm_layout_theme_set
Diffstat (limited to 'legacy/elementary/src/lib/elm_color_class.c')
-rw-r--r--legacy/elementary/src/lib/elm_color_class.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/legacy/elementary/src/lib/elm_color_class.c b/legacy/elementary/src/lib/elm_color_class.c
index 0014d7ec27..d40a59c26b 100644
--- a/legacy/elementary/src/lib/elm_color_class.c
+++ b/legacy/elementary/src/lib/elm_color_class.c
@@ -715,7 +715,8 @@ elm_color_class_editor_add(Evas_Object *obj, uint64_t winid)
}
cc->winid = winid;
cc->ly = ly = elm_layout_add(obj);
- elm_layout_theme_set(ly, "layout", "colorclass", "base");
+ if (!elm_layout_theme_set(ly, "layout", "colorclass", "base"))
+ CRI("Failed to set layout!");
elm_layout_signal_callback_add(ly, "elm,colorclass,select,*", "elm", _colorclass_select, cc);
elm_layout_signal_callback_add(ly, "elm,colorclass,deactivate", "elm", _colorclass_deactivate, cc);
elm_layout_signal_callback_add(ly, "elm,colorclass,dismiss", "elm", _colorclass_dismiss, cc);