summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2013-09-27 12:36:25 +0100
committerTom Hacohen <tom@stosb.com>2013-09-27 12:36:25 +0100
commit44dc589d3190d1b7288818cd39207410a6c2a948 (patch)
treebc29135bb012a053ca6abc6bdc8d4fd8c243518a
parent4ef1debfe32aa30ef16a09f56bc6be49954c107a (diff)
downloadefl-devs/jeyzu/eo--Eo_Class.tar.gz
Eo: class_get/class_name_get should return 'Class'.devs/jeyzu/eo--Eo_Class
They should not return the same values as an object of that same class. That's confusing.
-rw-r--r--src/lib/eo/eo.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/eo/eo.c b/src/lib/eo/eo.c
index 1ce4a56f9d..1bde32255a 100644
--- a/src/lib/eo/eo.c
+++ b/src/lib/eo/eo.c
@@ -456,8 +456,8 @@ eo_class_get(const Eo *obj_id)
{
if (_eo_is_a_class(obj_id))
{
- EO_CLASS_POINTER_RETURN_VAL(obj_id, _klass, NULL);
- return obj_id;
+ /* FIXME: Actually have a class class. */
+ return NULL;
}
EO_OBJ_POINTER_RETURN_VAL(obj_id, obj, NULL);
@@ -474,8 +474,8 @@ eo_class_name_get(const Eo *obj_id)
if (_eo_is_a_class(obj_id))
{
- EO_CLASS_POINTER_RETURN_VAL(obj_id, _klass, NULL);
- klass = _klass;
+ /* FIXME: Actually have a class class. */
+ return "Class";
}
else
{