## GdauiProviderSelector GdauiProviderSelector — Select a database provider from a combo box |

## Synopsis

                        GdauiProviderSelector;
    GtkWidget *         gdaui_provider_selector_new         (void);
    GdaServerProvider * gdaui_provider_selector_get_provider_obj
                                                            (GdauiProviderSelector *selector);
    const gchar *       gdaui_provider_selector_get_provider
                                                            (GdauiProviderSelector *selector);
    gboolean            gdaui_provider_selector_set_provider
                                                            (GdauiProviderSelector *selector,
                                                             const gchar *provider);

## Object Hierarchy

      GObject
       +----GInitiallyUnowned
             +----GtkObject
                   +----GtkWidget
                         +----GtkContainer
                               +----GtkBin
                                     +----GtkComboBox
                                           +----GdauiCombo
                                                 +----GdauiProviderSelector

## Implemented Interfaces

GdauiProviderSelector implements AtkImplementorIface, GtkBuildable, GtkCellLayout, GtkCellEditable and GdauiDataSelector.

## Description

## Details

### GdauiProviderSelector

    typedef struct _GdauiProviderSelector GdauiProviderSelector;

### gdaui_provider_selector_new ()

    GtkWidget *         gdaui_provider_selector_new         (void);

Create a new GdauiProviderSelector widget.

Returns : | the newly created widget. [transfer full]

### gdaui_provider_selector_get_provider_obj ()

    GdaServerProvider * gdaui_provider_selector_get_provider_obj
                                                            (GdauiProviderSelector *selector);

Get the selected provider as a GdaServerProvider object

`selector` : | a GdauiProviderSelector widget
Returns : | a GdaServerProvider or `NULL` if an error occurred. [transfer none]

Since 4.2

### gdaui_provider_selector_get_provider ()

    const gchar *       gdaui_provider_selector_get_provider
                                                            (GdauiProviderSelector *selector);

Get the selected provider.

`selector` : | a GdauiProviderSelector widget
Returns : | the selected provider, or `NULL` if no provider is selected. [transfer none]

Since 4.2

### gdaui_provider_selector_set_provider ()

    gboolean            gdaui_provider_selector_set_provider
                                                            (GdauiProviderSelector *selector,
                                                             const gchar *provider);

Forces `selector` to be set on `provider`

`selector` : | a GdauiProviderSelector widget
`provider` : | the provider to be selected, or `NULL` for the default (SQLite). [allow-none]
Returns : | `TRUE` if `provider` has been selected

Since 4.2