ami pushed a commit to branch master.

http://git.enlightenment.org/core/elementary.git/commit/?id=312a225dc09f06a423e2dd841577e0866c426a82

commit 312a225dc09f06a423e2dd841577e0866c426a82
Author: Amitesh Singh <amitesh...@samsung.com>
Date:   Fri Jul 10 20:45:18 2015 +0530

    color_class: Check return value of elm_layout_theme_set
---
 src/lib/elm_color_class.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/lib/elm_color_class.c b/src/lib/elm_color_class.c
index 0014d7e..d40a59c 100644
--- a/src/lib/elm_color_class.c
+++ b/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);

-- 


Reply via email to