summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYakov Goldberg <yakov.g@samsung.com>2014-05-21 11:02:35 +0300
committerYakov Goldberg <yakov.g@samsung.com>2014-05-21 11:02:35 +0300
commite5e226887062ace9ee6800feca77d656432784f2 (patch)
tree80f3100cca3b7c80294207037899abbc4d7f307c
parentf9ff097b5a9a845880c450a9d915d6629f5b4762 (diff)
fix error message in parsing
-rw-r--r--src/lib/gui_parser.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/gui_parser.c b/src/lib/gui_parser.c
index 8572a18..e2b209f 100644
--- a/src/lib/gui_parser.c
+++ b/src/lib/gui_parser.c
@@ -337,13 +337,13 @@ _read_items_section(const Gui_Context *gui_ctx, Gui_Widget *wdg, Gui_Widget_Item
337 tmp = EINA_JSON_OBJECT_VALUE_GET(js_it, "callback"); 337 tmp = EINA_JSON_OBJECT_VALUE_GET(js_it, "callback");
338 if (tmp) 338 if (tmp)
339 { 339 {
340 const char *cb_name = eina_json_string_get(tmp); 340 Dep_Id name_id = 0;
341 Dep_Id dep_id = gui_context_dep_data_get_id_by_name(gui_ctx, cb_name); 341 if (eina_json_type_get(tmp) == EINA_JSON_TYPE_STRING)
342 if (!dep_id)
343 { 342 {
344 ERR("Dep Id wasn't found for CB: \"%s\"", cb_name); 343 const char *cb_name = eina_json_string_get(tmp);
344 name_id = gui_context_dep_data_get_id_by_name(gui_ctx, cb_name);
345 } 345 }
346 gui_value_name_id_set(val_cb, GUI_TYPE_CB, dep_id); 346 gui_value_name_id_set(val_cb, GUI_TYPE_CB, name_id);
347 } 347 }
348 348
349 /* Read "public" field from JSON. */ 349 /* Read "public" field from JSON. */