libgda-ui

libgda-ui

Functions

void gdaui_init ()
const gchar * gdaui_get_default_path ()
void gdaui_set_default_path ()
GdkPixbuf * gdaui_get_icon_for_db_engine ()

Description

Functions

gdaui_init ()

void
gdaui_init (void);

Initialization of the libgda-ui library, must be called before any usage of the library.

  • Note 1: gtk_init() is not called by this function and should also be called (see Note 2 about the importance of the calling order)

  • Note 2: you should always call gtk_init() before gdaui_init().

  • Note 3: this funtion also calls gda_init() so it should not be called again

Since: 4.2


gdaui_get_default_path ()

const gchar *
gdaui_get_default_path (void);

Get the default path used when saving a file, or when showing a GtkFileChooser file chooser. When the application starts, the default path will be the same as the onde returned by g_get_current_dir().

Returns

the default path, or NULL.

[transfer none]

Since: 4.2.9


gdaui_set_default_path ()

void
gdaui_set_default_path (const gchar *path);

Define the default path used when saving a file, or when showing a GtkFileChooser file chooser.

Parameters

path

a path, or NULL to unset.

[nullable]

Since: 4.2.9


gdaui_get_icon_for_db_engine ()

GdkPixbuf *
gdaui_get_icon_for_db_engine (const gchar *engine);

Get an icon for the database engine.

Parameters

engine

a database engine (case non sensitive), like "PostgreSQL", "MySQL", etc.

 

Returns

a GdkPixbuf, or NULL if none found.

[transfer none]

Since: 6.0