| Libgnomedb Reference Manual | ||||
|---|---|---|---|---|
GnomeDbDataSourceSelectorGnomeDbDataSourceSelector — A combo box style widget to select a data source |
GnomeDbDataSourceSelector;
GnomeDbDataSourceSelectorClass;
GnomeDbDataSourceSelectorPrivate;
GtkWidget* gnome_db_data_source_selector_new
(const gchar *name);
gchar* gnome_db_data_source_selector_get_dsn
(GnomeDbDataSourceSelector *selector);
void gnome_db_data_source_selector_set_dsn
(GnomeDbDataSourceSelector *selector,
const gchar *dsn);
GObject
+----GInitiallyUnowned
+----GtkObject
+----GtkWidget
+----GtkContainer
+----GtkBin
+----GtkComboBox
+----GnomeDbDataSourceSelector
GnomeDbDataSourceSelector implements AtkImplementorIface, GtkCellLayout and GtkCellEditable.
typedef struct {
GtkComboBoxClass parent_class;
} GnomeDbDataSourceSelectorClass;
typedef struct _GnomeDbDataSourceSelectorPrivate GnomeDbDataSourceSelectorPrivate;
GtkWidget* gnome_db_data_source_selector_new
(const gchar *name);
Create a new GnomeDbDataSourceSelector, which is just a GtkComboBox which displays, as its items, all the data sources currently configured in the system. It is useful for connection and configuration screens, where the user has to choose a data source to work with.
name : |
name of data source to display. |
| Returns : | the newly created widget. |
gchar* gnome_db_data_source_selector_get_dsn
(GnomeDbDataSourceSelector *selector);
Get the Data Source Name (DSN) actualy selected in the GnomeDbDataSourceSelector.
selector : |
|
| Returns : | the DSN name actualy selected. |
void gnome_db_data_source_selector_set_dsn
(GnomeDbDataSourceSelector *selector,
const gchar *dsn);
Set the selected Data Source Name (DSN) in the GnomeDbDataSourceSelector.
selector : |
|
dsn : |