User Alert Handling

User Alert Handling

Synopsis

#define             E_ALERT_INFO
#define             E_ALERT_INFO_PRIMARY
#define             E_ALERT_WARNING
#define             E_ALERT_WARNING_PRIMARY
#define             E_ALERT_ERROR
#define             E_ALERT_ERROR_PRIMARY
#define             E_ALERT_ASK_FILE_EXISTS_OVERWRITE
#define             E_ALERT_NO_SAVE_FILE
#define             E_ALERT_NO_LOAD_FILE
                    EAlert;
EAlert *            e_alert_new                         (const gchar *tag,
                                                         ...);
gint                e_alert_run_dialog                  (GtkWindow *parent,
                                                         EAlert *alert);
gint                e_alert_run_dialog_for_args         (GtkWindow *parent,
                                                         const gchar *tag,
                                                         ...);
guint               e_alert_dialog_count_buttons        (EAlertDialog *dialog);

Description

Details

E_ALERT_INFO

#define E_ALERT_INFO "builtin:info"


E_ALERT_INFO_PRIMARY

#define E_ALERT_INFO_PRIMARY "builtin:info-primary"


E_ALERT_WARNING

#define E_ALERT_WARNING "builtin:warning"


E_ALERT_WARNING_PRIMARY

#define E_ALERT_WARNING_PRIMARY "builtin:warning-primary"


E_ALERT_ERROR

#define E_ALERT_ERROR "builtin:error"


E_ALERT_ERROR_PRIMARY

#define E_ALERT_ERROR_PRIMARY "builtin:error-primary"


E_ALERT_ASK_FILE_EXISTS_OVERWRITE

#define E_ALERT_ASK_FILE_EXISTS_OVERWRITE "system:ask-save-file-exists-overwrite"


E_ALERT_NO_SAVE_FILE

#define E_ALERT_NO_SAVE_FILE "system:no-save-file"


E_ALERT_NO_LOAD_FILE

#define E_ALERT_NO_LOAD_FILE "system:no-save-file"


EAlert

typedef struct {
  GObject parent;
  EAlertPrivate *priv;
} EAlert;


e_alert_new ()

EAlert *            e_alert_new                         (const gchar *tag,
                                                         ...);

Creates a new EAlert. The tag argument is used to determine which alert to use, it is in the format domain:alert-id. The NULL terminated list of arguments, starting with arg0 is used to fill out the alert definition.

tag :

alert identifier

... :

Returns :

a new EAlert

e_alert_run_dialog ()

gint                e_alert_run_dialog                  (GtkWindow *parent,
                                                         EAlert *alert);

parent :

alert :

Returns :


e_alert_run_dialog_for_args ()

gint                e_alert_run_dialog_for_args         (GtkWindow *parent,
                                                         const gchar *tag,
                                                         ...);

parent :

tag :

... :

Returns :


e_alert_dialog_count_buttons ()

guint               e_alert_dialog_count_buttons        (EAlertDialog *dialog);

Counts the number of buttons in dialog's action area.

dialog :

a EAlertDialog

Returns :

number of action area buttons