diff options
author | Mike Gorse <mgorse@suse.com> | 2017-03-13 16:56:34 -0500 |
---|---|---|
committer | Mike Gorse <mgorse@suse.com> | 2017-03-13 16:56:34 -0500 |
commit | ac5daef64178de2bfc325fe890e35717702ffa3b (patch) | |
tree | e46ba3885dd9e696d69d61fe58a7a7683211fbd3 | |
parent | 3e4a651d8164b62c9f16fa78527360b4f4e01e35 (diff) | |
download | at-spi2-core-ac5daef64178de2bfc325fe890e35717702ffa3b.tar.gz |
Table cell API fixes
We had a non-working get_column_index function and no get_row_index
function. GetPosition is the only function implemented on at-spi2-atk.
Removed the non-working functions, for consistency, and add a missing
prototype for atspi_table_cell_get_position.
https://bugzilla.gnome.org/show_bug.cgi?id=779835
-rw-r--r-- | atspi/atspi-table-cell.c | 23 | ||||
-rw-r--r-- | atspi/atspi-table-cell.h | 5 |
2 files changed, 5 insertions, 23 deletions
diff --git a/atspi/atspi-table-cell.c b/atspi/atspi-table-cell.c index 3c00519c..c18e6dc4 100644 --- a/atspi/atspi-table-cell.c +++ b/atspi/atspi-table-cell.c @@ -97,27 +97,6 @@ atspi_table_cell_get_column_header_cells (AtspiTableCell *obj, GError **error) } /** - * atspi_table_cell_get_column_index: - * @obj: a GObject instance that implements AtspiTableCellIface - * - * Translates this cell accessible into the corresponding column index. - * - * Returns: the column index for this cell, or -1 if unimplemented. - */ -gint -atspi_table_cell_get_column_index (AtspiTableCell *obj, GError **error) -{ - dbus_int32_t retval = -1; - - g_return_val_if_fail (obj != NULL, -1); - - _atspi_dbus_get_property (obj, atspi_interface_table_cell, "ColumnIndex", - error, "i", &retval); - - return retval; -} - -/** * atspi_table_cell_get_row_span: * @obj: a GObject instance that implements AtspiTableCellIface * @@ -174,7 +153,7 @@ gint atspi_table_cell_get_position (AtspiTableCell *obj, gint *row, gint *column, - GError *error) + GError **error) { DBusMessage *reply; DBusMessageIter iter, iter_struct, iter_variant; diff --git a/atspi/atspi-table-cell.h b/atspi/atspi-table-cell.h index 8174db8a..757ab0d7 100644 --- a/atspi/atspi-table-cell.h +++ b/atspi/atspi-table-cell.h @@ -58,7 +58,10 @@ gint atspi_table_cell_get_row_span (AtspiTableCell *obj, GError **error); GPtrArray *atspi_table_cell_get_row_header_cells (AtspiTableCell *obj, GError **error); -gint atspi_table_cell_get_row_index (AtspiTableCell *obj, GError **error); +gint atspi_table_cell_get_position (AtspiTableCell *obj, + gint *row, + gint *column, + GError **error); void atspi_table_cell_get_row_column_span (AtspiTableCell *obj, gint *row, |