Eo: Removed "type" property from event/op descriptions.
[profile/ivi/eobj.git] / examples / evas / elw_button.c
index 42911c8..52e6d5f 100644 (file)
@@ -8,8 +8,8 @@
 
 EAPI Eo_Op ELW_BUTTON_BASE_ID = 0;
 
-EAPI const Eo_Event_Description _SIG_CLICKED =
-        EO_EVENT_DESCRIPTION("clicked", "", "Called when there was a click.");
+EAPI const Eo_Event_Description _EV_CLICKED =
+        EO_EVENT_DESCRIPTION("clicked", "Called when there was a click.");
 
 typedef struct
 {
@@ -44,7 +44,7 @@ _btn_clicked(void *data, Evas_Object *evas_obj, void *event_info)
    (void) evas_obj;
    (void) event_info;
    Eo *obj = data;
-   eo_event_callback_call(obj, SIG_CLICKED, NULL);
+   eo_do(obj, eo_event_callback_call(EV_CLICKED, NULL, NULL));
 }
 
 static void
@@ -87,12 +87,12 @@ _class_constructor(Eo_Class *klass)
 }
 
 static const Eo_Op_Description op_desc[] = {
-     EO_OP_DESCRIPTION(ELW_BUTTON_SUB_ID_TEXT_SET, "s", "Text of a text supporting evas object."), // FIXME: This ID sholudn't really be defined here...
+     EO_OP_DESCRIPTION(ELW_BUTTON_SUB_ID_TEXT_SET, "Text of a text supporting evas object."), // FIXME: This ID sholudn't really be defined here...
      EO_OP_DESCRIPTION_SENTINEL
 };
 
 static const Eo_Event_Description *event_desc[] = {
-     SIG_CLICKED,
+     EV_CLICKED,
      NULL
 };