aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/misc
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2010-10-14 04:03:37 +0800
committerMatthew Barnes <mbarnes@redhat.com>2010-10-14 04:03:37 +0800
commit9108b38d83a16110e5973d73a15ab4d3b8188ca4 (patch)
tree2682a57d0b451eb9aa97dadd6abc11ad5d0ca0a6 /widgets/misc
parent3fbcc8ef800b2c0ef74fcdea17f6a1e5ec01cdff (diff)
downloadgsoc2013-evolution-9108b38d83a16110e5973d73a15ab4d3b8188ca4.tar.gz
gsoc2013-evolution-9108b38d83a16110e5973d73a15ab4d3b8188ca4.tar.zst
gsoc2013-evolution-9108b38d83a16110e5973d73a15ab4d3b8188ca4.zip
EAlertBar: Always show the most recent alert.
Make it work like a stack instead of a queue.
Diffstat (limited to 'widgets/misc')
-rw-r--r--widgets/misc/e-alert-bar.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/widgets/misc/e-alert-bar.c b/widgets/misc/e-alert-bar.c
index 0e9d2b7bb5..b0509785f4 100644
--- a/widgets/misc/e-alert-bar.c
+++ b/widgets/misc/e-alert-bar.c
@@ -227,14 +227,10 @@ void
e_alert_bar_add_alert (EAlertBar *alert_bar,
EAlert *alert)
{
- gboolean show_it_now;
-
g_return_if_fail (E_IS_ALERT_BAR (alert_bar));
g_return_if_fail (E_IS_ALERT (alert));
- show_it_now = g_queue_is_empty (&alert_bar->priv->alerts);
- g_queue_push_tail (&alert_bar->priv->alerts, g_object_ref (alert));
+ g_queue_push_head (&alert_bar->priv->alerts, g_object_ref (alert));
- if (show_it_now)
- alert_bar_show_alert (alert_bar);
+ alert_bar_show_alert (alert_bar);
}