X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=libspi%2Ftable.c;h=4264697737404f832bb060f296b1ef46bd2c4bd4;hb=e215f4330239bfe0d9bf87dfe968ced9eca79089;hp=08fc3bc1778c3804eaf1ffeb02de71b808c0c610;hpb=72d587fda7e8dda1632a4a8f4010c6262ffc31be;p=platform%2Fcore%2Fuifw%2Fat-spi2-atk.git diff --git a/libspi/table.c b/libspi/table.c index 08fc3bc..4264697 100644 --- a/libspi/table.c +++ b/libspi/table.c @@ -20,28 +20,14 @@ * Boston, MA 02111-1307, USA. */ -/* - * component.c : bonobo wrapper for accessible component implementation - * - */ -#include -#include +/* table.c : implements the Table interface */ +#include #include +#include +#include -/* - * This pulls the CORBA definitions for the "Accessibility::Accessible" server - */ -#include - -/* - * This pulls the definition of the SpiTable bonobo object - */ -#include "table.h" - -/* - * Static function declarations - */ +/* Static function declarations */ static void spi_table_class_init (SpiTableClass *klass); @@ -333,14 +319,17 @@ impl_getColumnAtIndex (PortableServer_Servant _servant, static CORBA_string -impl_getRowDescription (PortableServer_Servant _servant, - const CORBA_long row, - CORBA_Environment * ev) +impl_getRowDescription (PortableServer_Servant servant, + const CORBA_long row, + CORBA_Environment *ev) { - SpiTable *table = SPI_TABLE (bonobo_object_from_servant (_servant)); - CORBA_char *rv; + const char *rv; + SpiTable *table; + + table = SPI_TABLE (bonobo_object_from_servant (servant)); - rv = atk_table_get_row_description (ATK_TABLE(table->atko), (gint) row); + rv = atk_table_get_row_description (ATK_TABLE (table->atko), row); + if (rv) return CORBA_string_dup (rv); else @@ -350,14 +339,17 @@ impl_getRowDescription (PortableServer_Servant _servant, static CORBA_string -impl_getColumnDescription (PortableServer_Servant _servant, - const CORBA_long column, - CORBA_Environment * ev) +impl_getColumnDescription (PortableServer_Servant servant, + const CORBA_long column, + CORBA_Environment *ev) { - SpiTable *table = SPI_TABLE (bonobo_object_from_servant (_servant)); - CORBA_char *rv; + const char *rv; + SpiTable *table; + + table = SPI_TABLE (bonobo_object_from_servant (servant)); + + rv = atk_table_get_row_description (ATK_TABLE (table->atko), column); - rv = atk_table_get_column_description (ATK_TABLE(table->atko), (gint) column); if (rv) return CORBA_string_dup (rv); else