From 451179909849e4e4058180f095e6ae889d97b797 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Mon, 21 Nov 2011 18:51:00 -0500 Subject: [PATCH] EAlertBar: Add a close button to all alerts. Replaces the 'Dismiss' button. All alerts appearing in an alert bar should be dismissable (i.e. non-modal). For modal alerts use a dialog. --- e-util/e-alert.c | 12 - .../evolution-offline-alert.error.xml | 2 - widgets/misc/e-alert-bar.c | 232 ++++++++++++------ widgets/misc/e-alert-bar.h | 1 + 4 files changed, 154 insertions(+), 93 deletions(-) diff --git a/e-util/e-alert.c b/e-util/e-alert.c index 88dbb7189d..d4a7a9ea13 100644 --- a/e-util/e-alert.c +++ b/e-util/e-alert.c @@ -909,18 +909,6 @@ e_alert_peek_actions (EAlert *alert) { g_return_val_if_fail (E_IS_ALERT (alert), NULL); - /* Make sure we have at least one action. Do this on-demand - * in case the XML definition did not specify any actions but - * other actions were added via e_alert_add_action(). */ - if (g_queue_is_empty (&alert->priv->actions)) { - GtkAction *action; - - action = gtk_action_new ( - "alert-response-0", _("_Dismiss"), NULL, NULL); - e_alert_add_action (alert, action, GTK_RESPONSE_CLOSE); - g_object_unref (action); - } - return g_queue_peek_head_link (&alert->priv->actions); } diff --git a/modules/offline-alert/evolution-offline-alert.error.xml b/modules/offline-alert/evolution-offline-alert.error.xml index a6362da42e..782ee8d635 100644 --- a/modules/offline-alert/evolution-offline-alert.error.xml +++ b/modules/offline-alert/evolution-offline-alert.error.xml @@ -3,11 +3,9 @@ <_primary>Evolution is currently offline. <_secondary>Click 'Work Online' to return to online mode. -