colorselector: Check return value of elm_layout_theme_set as other widgets do.
authorDaniel Juyung Seo <seojuyung2@gmail.com>
Wed, 4 Mar 2015 11:59:36 +0000 (20:59 +0900)
committerDaniel Juyung Seo <seojuyung2@gmail.com>
Wed, 4 Mar 2015 11:59:36 +0000 (20:59 +0900)
This fixes coverity CID 1273969.

legacy/elementary/src/lib/elm_colorselector.c

index d434027..e91f454 100644 (file)
@@ -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);