aboutsummaryrefslogtreecommitdiffstats
path: root/e-util
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2011-11-22 07:51:00 +0800
committerMatthew Barnes <mbarnes@redhat.com>2011-11-22 13:12:36 +0800
commit451179909849e4e4058180f095e6ae889d97b797 (patch)
tree278c57be55a2c51c52b577f512d33b686d593390 /e-util
parent5fabd29bd2580bbe479034634b405abfa36bb500 (diff)
downloadgsoc2013-evolution-451179909849e4e4058180f095e6ae889d97b797.tar
gsoc2013-evolution-451179909849e4e4058180f095e6ae889d97b797.tar.gz
gsoc2013-evolution-451179909849e4e4058180f095e6ae889d97b797.tar.bz2
gsoc2013-evolution-451179909849e4e4058180f095e6ae889d97b797.tar.lz
gsoc2013-evolution-451179909849e4e4058180f095e6ae889d97b797.tar.xz
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.c12
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);
}