summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Juyung Seo <seojuyung2@gmail.com>2015-03-04 20:59:36 +0900
committerDaniel Juyung Seo <seojuyung2@gmail.com>2015-03-04 20:59:36 +0900
commitb2e48a1a1e892fb7ef0de385c507fd068d9918fe (patch)
treeaffb682a6c2d971e7deade85c23ffa367932b3c9
parent5dfd049d43a612f11c0a2320e954be590d0337fe (diff)
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.c5
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)
1117 } 1117 }
1118 } 1118 }
1119 1119
1120 elm_layout_theme_set(sd->picker, "colorselector", "picker/base", elm_widget_style_get(obj)); 1120 if (!elm_layout_theme_set(sd->picker, "colorselector", "picker/base",
1121 elm_widget_style_get(obj)))
1122 CRI("Failed to set layout!");
1123
1121 style = eina_stringshare_printf("colorselector/%s", elm_widget_style_get(obj)); 1124 style = eina_stringshare_printf("colorselector/%s", elm_widget_style_get(obj));
1122#ifdef HAVE_ELEMENTARY_X 1125#ifdef HAVE_ELEMENTARY_X
1123 elm_object_style_set(sd->button, style); 1126 elm_object_style_set(sd->button, style);