AccessibleTextChangedEvent_getChangeString (const AccessibleEvent *e)
{
const InternalEvent *foo = (InternalEvent *) e;
- /* TODO: check the event type? expensive... */
+ /* TODO: check the event type. */
return cspi_internal_event_get_text (foo);
}
/**
* AccessibleTextSelectionChangedEvent_getSelectionString:
- * @event: a pointer to the #AccessibleEvent being queried.
+ * @e: a pointer to the #AccessibleEvent being queried.
*
* Queries an #AccessibleEvent of type "object:text-selection-changed",
* returning the newly added, removed, or modified selection string.
AccessibleTextSelectionChangedEvent_getSelectionString (const AccessibleEvent *e)
{
const InternalEvent *foo = (InternalEvent *) e;
- /* TODO: check the event type? expensive... */
+ /* TODO: check the event type. */
return cspi_internal_event_get_text (foo);
}
/**
* AccessibleWindowEvent_getTitleString:
- * @event: a pointer to the #AccessibleEvent being queried.
+ * @e: a pointer to the #AccessibleEvent being queried.
*
* Queries an #AccessibleEvent of type "window:",
* returning the window title.
AccessibleWindowEvent_getTitleString (const AccessibleEvent *e)
{
const InternalEvent *foo = (InternalEvent *) e;
- /* TODO: check the event type? expensive... */
+ /* TODO: check the event type. */
return cspi_internal_event_get_text (foo);
}
/**
* AccessibleChildChangedEvent_getChildAccessible:
- * @event: a pointer to the #AccessibleEvent being queried.
+ * @e: a pointer to the #AccessibleEvent being queried.
*
* Queries an #AccessibleEvent of type "object:children_changed"
* to get a reference to the changed #Accessible.
/**
* AccessibleParentChangedEvent_getParentAccessible:
- * @event: a pointer to the #AccessibleEvent being queried.
+ * @e: a pointer to the #AccessibleEvent being queried.
*
* Queries an #AccessibleEvent of type "object:property-change:accessible-parent"
* to get a reference to the changed #Accessible.
/**
* AccessibleActiveDescendantChangedEvent_getActiveDescendant:
- * @event: a pointer to the #AccessibleEvent being queried.
+ * @e: a pointer to the #AccessibleEvent being queried.
*
* Queries an #AccessibleEvent of type "object:active-descendant-changed"
* to get a reference to the changed #Accessible.
/**
* AccessibleTableSummaryChangedEvent_getSummaryAccessible:
- * @event: a pointer to the #AccessibleEvent being queried.
+ * @e: a pointer to the #AccessibleEvent being queried.
*
* Queries an #AccessibleEvent of type "object:property-changed:accessible-table-summary"
* to get a reference to the changed #Accessible.
/**
* AccessibleTableHeaderChangedEvent_getHeaderAccessible:
- * @event: a pointer to the #AccessibleEvent being queried.
+ * @e: a pointer to the #AccessibleEvent being queried.
*
* Queries an #AccessibleEvent of type
* "object:property-changed:accessible-table-row-header" or
AccessibleTableCaptionChangedEvent_getCaptionString (const AccessibleEvent *e)
{
const InternalEvent *foo = (InternalEvent *) e;
- /* TODO: check the event type? expensive... */
+ /* TODO: check the event type. */
return cspi_internal_event_get_text (foo);
}
/**
- * AccessibleTableRowDescriptionEvent_getDescriptionString:
- * @event: a pointer to the #AccessibleEvent being queried.
+ * AccessibleTableRowDescriptionChangedEvent_getDescriptionString:
+ * @e: a pointer to the #AccessibleEvent being queried.
*
* Queries an #AccessibleEvent of type
* "object:property-changed:accessible-table-row-description"
AccessibleTableRowDescriptionChangedEvent_getDescriptionString (const AccessibleEvent *e)
{
const InternalEvent *foo = (InternalEvent *) e;
- /* TODO: check the event type? expensive... */
+ /* TODO: check the event type. */
return cspi_internal_event_get_text (foo);
}
/**
- * AccessibleTableColumnDescriptionEvent_getDescriptionString:
- * @event: a pointer to the #AccessibleEvent being queried.
+ * AccessibleTableColumnDescriptionChangedEvent_getDescriptionString:
+ * @e: a pointer to the #AccessibleEvent being queried.
*
* Queries an #AccessibleEvent of type
* "object:property-changed:accessible-table-column-description"
AccessibleTableColumnDescriptionChangedEvent_getDescriptionString (const AccessibleEvent *e)
{
const InternalEvent *foo = (InternalEvent *) e;
- /* TODO: check the event type? expensive... */
+ /* TODO: check the event type. */
return cspi_internal_event_get_text (foo);
}
/**
- * AccessibleDescriptionEvent_getDescriptionString:
- * @event: a pointer to the #AccessibleEvent being queried.
+ * AccessibleDescriptionChangedEvent_getDescriptionString:
+ * @e: a pointer to the #AccessibleEvent being queried.
*
* Queries an #AccessibleEvent of type
* "object:property-changed:accessible-description"
AccessibleDescriptionChangedEvent_getDescriptionString (const AccessibleEvent *e)
{
const InternalEvent *foo = (InternalEvent *) e;
- /* TODO: check the event type? expensive... */
+ /* TODO: check the event type. */
return cspi_internal_event_get_text (foo);
}
}
/**
- * AccessibleNameChangedEvent_getNametring:
- * @event: a pointer to the #AccessibleEvent being queried.
+ * AccessibleNameChangedEvent_getNameString:
+ * @e: a pointer to the #AccessibleEvent being queried.
*
* Queries an #AccessibleEvent of type "object:property-change:accessible_name:",
* returning the name.
return cspi_internal_event_get_text (foo);
}
+/**
+ * AccessibleEvent_ref:
+ * @e: a pointer to the #AccessibleEvent being referenced.
+ *
+ * Increments by 1 the reference count of the event
+ *
+ * Returns: TRUE if the function succeeded; FALSE if the pointer is not a
+ * valid event.
+ **/
SPIBoolean
AccessibleEvent_ref (const AccessibleEvent *e)
{
return FALSE;
}
+/**
+ * AccessibleEvent_unref:
+ * @e: a pointer to the #AccessibleEvent being referenced.
+ *
+ * Decrements by 1 the reference count of the event. The event is destroyed
+ * when the reference count recahes zero.
+ *
+ **/
void
AccessibleEvent_unref (const AccessibleEvent *e)
{
{
event->ref_count--;
if (event->ref_count < 1)
- cspi_internal_event_remove (event);
+ {
+ cspi_internal_event_remove (event);
+ g_free ((gpointer)e->type);
+ Accessible_unref (e->source);
+ CORBA_free (event->data);
+ g_free ((gpointer)e);
+ }
}
}
}