![]() |
![]() |
![]() |
GNOME Data Access 4 manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Implemented Interfaces | Properties |
GdauiGrid; GtkWidget * gdaui_grid_new (GdaDataModel *model); GList * gdaui_grid_get_selection (GdauiGrid *grid); void gdaui_grid_set_sample_size (GdauiGrid *grid, gint sample_size);
GObject +----GInitiallyUnowned +----GtkObject +----GtkWidget +----GtkContainer +----GtkBox +----GtkVBox +----GdauiGrid
"model" GdaDataModel* : Read / Write / Construct Only "raw-grid" GdauiRawGrid* : Read "widget-info" GdauiDataWidgetInfo* : Read
GtkWidget * gdaui_grid_new (GdaDataModel *model);
Creates a new GdauiGrid widget suitable to display the data in model
|
a GdaDataModel |
Returns : |
the new widget |
GList * gdaui_grid_get_selection (GdauiGrid *grid);
Returns the list of the currently selected rows in a GdauiGrid widget. The returned value is a list of integers, which represent each of the selected rows.
If new rows have been inserted, then those new rows will have a row number equal to -1.
This function is a wrapper around the gdaui_raw_grid_get_selection()
function.
|
a GdauiGrid widget |
Returns : |
a new list, should be freed (by calling g_list_free) when no longer needed. |