* AT-SPI - Assistive Technology Service Provider Interface
* (Gnome Accessibility Project; http://developer.gnome.org/projects/gap)
*
- * Copyright 2001 Sun Microsystems Inc.
+ * Copyright 2001, 2002 Sun Microsystems Inc.,
+ * Copyright 2001, 2002 Ximian, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
g_return_val_if_fail (table != NULL, 0);
- return (CORBA_long) atk_table_get_n_rows (table);
+ return atk_table_get_n_rows (table);
}
g_return_val_if_fail (table != NULL, 0);
- return (CORBA_long) atk_table_get_n_columns (table);
+ return atk_table_get_n_columns (table);
}
bonobo_return_val_if_fail (length > 0, NULL, ev);
retval = Accessibility_LongSeq__alloc ();
- retval->_maximum = retval->_length = (CORBA_long) length;
+ retval->_maximum = retval->_length = length;
retval->_buffer = Accessibility_LongSeq_allocbuf (length);
- while (--length)
+ while (--length >= 0)
{
- retval->_buffer[length] = (CORBA_long) selectedRows[length];
+ retval->_buffer[length] = selectedRows[length];
}
- g_free ((gpointer) selectedRows);
+ g_free (selectedRows);
return retval;
}
bonobo_return_val_if_fail (length >= 0, NULL, ev);
retval = Accessibility_LongSeq__alloc ();
- retval->_maximum = retval->_length = (CORBA_long) length;
+ retval->_maximum = retval->_length = length;
retval->_buffer = Accessibility_LongSeq_allocbuf (length);
- while (--length)
+ while (--length >= 0)
{
retval->_buffer[length] = (CORBA_long) selectedColumns[length];
}
- g_free ((gpointer) selectedColumns);
+ g_free (selectedColumns);
return retval;
}
BONOBO_TYPE_FUNC_FULL (SpiTable,
Accessibility_Table,
SPI_TYPE_BASE,
- spi_table);
+ spi_table)