gel-ui-dialogs

gel-ui-dialogs

Synopsis

enum                GelUIDialogType;
GtkWidget *         gel_ui_dialog_error                 (GtkWidget *parent,
                                                         const gchar *title,
                                                         const gchar *message,
                                                         const gchar *details,
                                                         gboolean run_and_destroy);
GtkWidget *         gel_ui_dialog_generic               (GtkWidget *parent,
                                                         GelUIDialogType type,
                                                         const gchar *title,
                                                         const gchar *message,
                                                         const gchar *details,
                                                         gboolean run_and_destroy);

Description

Details

enum GelUIDialogType

typedef enum {
	GEL_UI_DIALOG_TYPE_ERROR = 0,
	GEL_UI_DIALOG_N_TYPES
} GelUIDialogType;

gel_ui_dialog_error ()

GtkWidget *         gel_ui_dialog_error                 (GtkWidget *parent,
                                                         const gchar *title,
                                                         const gchar *message,
                                                         const gchar *details,
                                                         gboolean run_and_destroy);

Calls gel_ui_dialog_generic() with type = GEL_UI_DIALOG_TYPE_ERROR

parent :

Parent window for dialog or NULL. [allow-none][transfer none]

title :

Title for dialog

message :

Short message for display

details :

Long message for display or NULL. [allow-none]

run_and_destroy :

TRUE if dialog should be run and disposed inmedialty or FALSE if dialog should be returned.

Returns :

The dialog or NULL. [transfer full][allow-none]

gel_ui_dialog_generic ()

GtkWidget *         gel_ui_dialog_generic               (GtkWidget *parent,
                                                         GelUIDialogType type,
                                                         const gchar *title,
                                                         const gchar *message,
                                                         const gchar *details,
                                                         gboolean run_and_destroy);

Creates a GtkDialog with the especified parameters. If run_and_destroy is TRUE the dialog showed and run, NULL is returned. With run_and_destroy as FALSE the GtkWidget is created and returned, but not run.

parent :

Parent window for dialog or NULL. [allow-none][transfer none]

type :

Type of dialog

title :

Title for dialog

message :

Short message for display

details :

Long message for display or NULL. [allow-none]

run_and_destroy :

TRUE if dialog should be run and disposed inmedialty or FALSE if dialog should be returned.

Returns :

The dialog or NULL. [transfer full][allow-none]