efl_ui_focus_manager: present a slightly better error message
authorMarcel Hollerbach <marcel-hollerbach@t-online.de>
Sat, 2 Sep 2017 17:41:30 +0000 (19:41 +0200)
committerMarcel Hollerbach <marcel-hollerbach@t-online.de>
Sat, 2 Sep 2017 18:06:15 +0000 (20:06 +0200)
with this and the backtrace you can probebly figure out if you just
registered the same widget twice for different types

src/lib/elementary/efl_ui_focus_manager_calc.c

index 82e4c86..21c07ae 100644 (file)
@@ -503,9 +503,10 @@ static Node*
 _register(Eo *obj, Efl_Ui_Focus_Manager_Calc_Data *pd, Efl_Ui_Focus_Object *child, Node *parent)
 {
    Node *node;
-   if (!!eina_hash_find(pd->node_hash, &child))
+   node = eina_hash_find(pd->node_hash, &child);
+   if (node)
      {
-        ERR("Child %p is already registered in the graph", child);
+        ERR("Child %p is already registered in the graph (%s)", child, node->type == NODE_TYPE_ONLY_LOGICAL ? "logical" : "regular");
         return NULL;
      }