GnomeDbDataSourceSelector

GnomeDbDataSourceSelector — A combo box style widget to select a data source

Synopsis




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

Object Hierarchy


  GObject
   +----GInitiallyUnowned
         +----GtkObject
               +----GtkWidget
                     +----GtkContainer
                           +----GtkBin
                                 +----GtkComboBox
                                       +----GnomeDbDataSourceSelector

Implemented Interfaces

GnomeDbDataSourceSelector implements AtkImplementorIface, GtkCellLayout and GtkCellEditable.

Properties


  "source-name"              gchararray            : Write / Construct Only

Description

Details

GnomeDbDataSourceSelector

typedef struct _GnomeDbDataSourceSelector GnomeDbDataSourceSelector;


GnomeDbDataSourceSelectorClass

typedef struct {
	GtkComboBoxClass                  parent_class;
} GnomeDbDataSourceSelectorClass;


GnomeDbDataSourceSelectorPrivate

typedef struct _GnomeDbDataSourceSelectorPrivate GnomeDbDataSourceSelectorPrivate;


gnome_db_data_source_selector_new ()

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.

gnome_db_data_source_selector_get_dsn ()

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 as a new string.

gnome_db_data_source_selector_set_dsn ()

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 :

Property Details

The "source-name" property

  "source-name"              gchararray            : Write / Construct Only

Default value: NULL