![]() |
![]() |
![]() |
Libgnomedb 3.0 Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Implemented Interfaces | Properties |
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 GtkBuildable, 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 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.
|
|
Returns : |
the DSN name actualy selected as a new string. |
void gnome_db_data_source_selector_set_dsn (GnomeDbDataSourceSelector *selector, const gchar *dsn);
Set the selected Data Source Name (DSN) in the GnomeDbDataSourceSelector.
|
|
|