diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2011-11-22 07:51:00 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2011-11-22 13:12:36 +0800 |
commit | 451179909849e4e4058180f095e6ae889d97b797 (patch) | |
tree | 278c57be55a2c51c52b577f512d33b686d593390 /e-util | |
parent | 5fabd29bd2580bbe479034634b405abfa36bb500 (diff) | |
download | gsoc2013-evolution-451179909849e4e4058180f095e6ae889d97b797.tar.gz gsoc2013-evolution-451179909849e4e4058180f095e6ae889d97b797.tar.zst gsoc2013-evolution-451179909849e4e4058180f095e6ae889d97b797.zip |
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.
Diffstat (limited to 'e-util')
-rw-r--r-- | e-util/e-alert.c | 12 |
1 files changed, 0 insertions, 12 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); } |