GnomeDbList

GnomeDbList — Data-bound list widget

Synopsis

                    GnomeDbListPrivate;
GtkWidget *         gnome_db_list_new                   (void);
GtkWidget *         gnome_db_list_new_with_model        (GdaDataModel *model,
                                                         gint col);
GdaDataModel *      gnome_db_list_get_model             (GnomeDbList *list);
void                gnome_db_list_set_model             (GnomeDbList *list,
                                                         GdaDataModel *model,
                                                         gint col);
GList *             gnome_db_list_get_selection         (GnomeDbList *list);

Description

Details

GnomeDbListPrivate

typedef struct _GnomeDbListPrivate GnomeDbListPrivate;


gnome_db_list_new ()

GtkWidget *         gnome_db_list_new                   (void);

Create a new GnomeDbList widget, which lets you display lists of columns.

Returns :

the newly created object

gnome_db_list_new_with_model ()

GtkWidget *         gnome_db_list_new_with_model        (GdaDataModel *model,
                                                         gint col);

Returns :


gnome_db_list_get_model ()

GdaDataModel *      gnome_db_list_get_model             (GnomeDbList *list);

Returns :


gnome_db_list_set_model ()

void                gnome_db_list_set_model             (GnomeDbList *list,
                                                         GdaDataModel *model,
                                                         gint col);

Set the data model to be displayed by the GnomeDbList widget. As this widget just shows single-columns data models, you have to specify, along with the GdaDataModel object, the column position to be shown.

list :

a GnomeDbList widget.

model :

a GdaDataModel object.

col :

column to be shown from the data model.

gnome_db_list_get_selection ()

GList *             gnome_db_list_get_selection         (GnomeDbList *list);

Gets the list of selected rows in the given GnomeDbList widget.

list :

a GnomeDbList widget.

Returns :

a GList of integers representing the numbers of the selected rows. This list should be freed (by calling * g_list_free) when no longer needed.