Top | ![]() |
![]() |
![]() |
![]() |
EAlert * | e_alert_new () |
EAlert * | e_alert_new_valist () |
EAlert * | e_alert_new_array () |
const gchar * | e_alert_get_tag () |
gint | e_alert_get_default_response () |
void | e_alert_set_default_response () |
GtkMessageType | e_alert_get_message_type () |
void | e_alert_set_message_type () |
const gchar * | e_alert_get_primary_text () |
void | e_alert_set_primary_text () |
const gchar * | e_alert_get_secondary_text () |
void | e_alert_set_secondary_text () |
const gchar * | e_alert_get_icon_name () |
void | e_alert_add_action () |
GList * | e_alert_peek_actions () |
void | e_alert_add_widget () |
GList * | e_alert_peek_widgets () |
GtkWidget * | e_alert_create_image () |
void | e_alert_response () |
void | e_alert_start_timer () |
void | e_alert_submit () |
void | e_alert_submit_valist () |
GtkWidget * | e_alert_create_button_for_action () |
GPtrArray * | args | Read / Write / Construct Only |
GtkMessageType | message-type | Read / Write |
char * | primary-text | Read / Write |
char * | secondary-text | Read / Write |
char * | tag | Read / Write / Construct Only |
#define | E_ALERT_ASK_FILE_EXISTS_OVERWRITE |
#define | E_ALERT_NO_SAVE_FILE |
#define | E_ALERT_NO_LOAD_FILE |
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 is used to fill out the alert definition.
void e_alert_set_default_response (EAlert *alert
,gint response_id
);
void e_alert_set_message_type (EAlert *alert
,GtkMessageType message_type
);
void e_alert_set_primary_text (EAlert *alert
,const gchar *primary_text
);
void e_alert_set_secondary_text (EAlert *alert
,const gchar *secondary_text
);
void e_alert_add_action (EAlert *alert
,EUIAction *action
,gint response_id
,gboolean is_destructive
);
void e_alert_start_timer (EAlert *alert
,guint seconds
);
Starts an internal timer for alert
. When the timer expires, alert
will emit the default response. There is only one timer per EAlert,
so calling this function repeatedly on the same EAlert will restart
its timer each time. If seconds
is zero, the timer is cancelled and
no response will be emitted.
void e_alert_submit_valist (struct _EAlertSink *alert_sink
,const gchar *tag
,va_list va
);
GtkWidget *
e_alert_create_button_for_action (EUIAction *for_action
);
“args”
property “args” GPtrArray *
Arguments for formatting the alert.
Owner: EAlert
Flags: Read / Write / Construct Only
“message-type”
property “message-type” GtkMessageType
Owner: EAlert
Flags: Read / Write
Default value: GTK_MESSAGE_ERROR
“primary-text”
property “primary-text” char *
Owner: EAlert
Flags: Read / Write
Default value: NULL
“secondary-text”
property “secondary-text” char *
Owner: EAlert
Flags: Read / Write
Default value: NULL
“response”
signalvoid user_function (EAlert *ealert, int arg1, gpointer user_data)
Flags: Run Last