diff options
author | Daniel Juyung Seo <seojuyung2@gmail.com> | 2015-03-04 20:59:36 +0900 |
---|---|---|
committer | Daniel Juyung Seo <seojuyung2@gmail.com> | 2015-03-04 20:59:36 +0900 |
commit | b2e48a1a1e892fb7ef0de385c507fd068d9918fe (patch) | |
tree | affb682a6c2d971e7deade85c23ffa367932b3c9 | |
parent | 5dfd049d43a612f11c0a2320e954be590d0337fe (diff) | |
download | elementary-b2e48a1a1e892fb7ef0de385c507fd068d9918fe.tar.gz |
colorselector: Check return value of elm_layout_theme_set as other widgets do.
This fixes coverity CID 1273969.
-rw-r--r-- | src/lib/elm_colorselector.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/elm_colorselector.c b/src/lib/elm_colorselector.c index d43402725..e91f454cf 100644 --- a/src/lib/elm_colorselector.c +++ b/src/lib/elm_colorselector.c @@ -1117,7 +1117,10 @@ _elm_colorselector_elm_widget_theme_apply(Eo *obj, Elm_Colorselector_Data *sd) } } - elm_layout_theme_set(sd->picker, "colorselector", "picker/base", elm_widget_style_get(obj)); + if (!elm_layout_theme_set(sd->picker, "colorselector", "picker/base", + elm_widget_style_get(obj))) + CRI("Failed to set layout!"); + style = eina_stringshare_printf("colorselector/%s", elm_widget_style_get(obj)); #ifdef HAVE_ELEMENTARY_X elm_object_style_set(sd->button, style); |