| Libgnomedb 4.0 Reference Manual | ||||
|---|---|---|---|---|
GnomeDbDsnSelector;
GnomeDbDsnSelectorClass;
GnomeDbDsnSelectorPrivate;
GtkWidget* gnome_db_dsn_selector_new (void);
gchar* gnome_db_dsn_selector_get_dsn (GnomeDbDsnSelector *selector);
void gnome_db_dsn_selector_set_dsn (GnomeDbDsnSelector *selector,
const gchar *dsn);
GObject
+----GInitiallyUnowned
+----GtkObject
+----GtkWidget
+----GtkContainer
+----GtkBin
+----GtkComboBox
+----GnomeDbCombo
+----GnomeDbDsnSelector
GnomeDbDsnSelector implements AtkImplementorIface, GtkBuildable, GtkCellLayout and GtkCellEditable.
GtkWidget* gnome_db_dsn_selector_new (void);
Create a new GnomeDbDsnSelector, 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.
Returns : |
the newly created widget. |
gchar* gnome_db_dsn_selector_get_dsn (GnomeDbDsnSelector *selector);
Get the Data Source Name (DSN) actualy selected in the GnomeDbDsnSelector.
|
|
Returns : |
the DSN name actualy selected as a new string. |
void gnome_db_dsn_selector_set_dsn (GnomeDbDsnSelector *selector, const gchar *dsn);
Set the selected Data Source Name (DSN) in the GnomeDbDsnSelector.
|
|
|