## GnomeDbDsnSelector GnomeDbDsnSelector — Choose a data source |

## Synopsis

                        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);

## Object Hierarchy

      GObject
       +----GInitiallyUnowned
             +----GtkObject
                   +----GtkWidget
                         +----GtkContainer
                               +----GtkBin
                                     +----GtkComboBox
                                           +----GnomeDbCombo
                                                 +----GnomeDbDsnSelector

## Implemented Interfaces

GnomeDbDsnSelector implements GtkBuildable, AtkImplementorIface, GtkCellLayout and GtkCellEditable.

## Properties

      "source-name"              gchar*                : Read / Write

## Description

## Details

### GnomeDbDsnSelector

    typedef struct _GnomeDbDsnSelector GnomeDbDsnSelector;

### GnomeDbDsnSelectorClass

    typedef struct {
    	GnomeDbComboClass                 parent_class;
    } GnomeDbDsnSelectorClass;

### GnomeDbDsnSelectorPrivate

    typedef struct _GnomeDbDsnSelectorPrivate GnomeDbDsnSelectorPrivate;

### gnome_db_dsn_selector_new ()

    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.

### gnome_db_dsn_selector_get_dsn ()

    gchar *             gnome_db_dsn_selector_get_dsn       (GnomeDbDsnSelector *selector);

Get the Data Source Name (DSN) actualy selected in the GnomeDbDsnSelector.

`selector` : |
Returns : | the DSN name actualy selected as a new string.

### gnome_db_dsn_selector_set_dsn ()

    void                gnome_db_dsn_selector_set_dsn       (GnomeDbDsnSelector *selector,
                                                             const gchar *dsn);

Set the selected Data Source Name (DSN) in the GnomeDbDsnSelector.

`selector` : |
`dsn` : |

## Property Details

### The `"source-name"` property

      "source-name"              gchar*                : Read / Write

Default value: NULL