aboutsummaryrefslogtreecommitdiffstats
path: root/libevolution-utils/e-alert.c
diff options
context:
space:
mode:
Diffstat (limited to 'libevolution-utils/e-alert.c')
-rw-r--r--libevolution-utils/e-alert.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/libevolution-utils/e-alert.c b/libevolution-utils/e-alert.c
index 7983083103..7d3b5e717f 100644
--- a/libevolution-utils/e-alert.c
+++ b/libevolution-utils/e-alert.c
@@ -782,6 +782,9 @@ e_alert_set_message_type (EAlert *alert,
{
g_return_if_fail (E_IS_ALERT (alert));
+ if (alert->priv->message_type == message_type)
+ return;
+
alert->priv->message_type = message_type;
g_object_notify (G_OBJECT (alert), "message-type");
@@ -818,6 +821,9 @@ e_alert_set_primary_text (EAlert *alert,
{
g_return_if_fail (E_IS_ALERT (alert));
+ if (g_strcmp0 (alert->priv->primary_text, primary_text) == 0)
+ return;
+
g_free (alert->priv->primary_text);
alert->priv->primary_text = g_strdup (primary_text);
@@ -855,6 +861,9 @@ e_alert_set_secondary_text (EAlert *alert,
{
g_return_if_fail (E_IS_ALERT (alert));
+ if (g_strcmp0 (alert->priv->secondary_text, secondary_text) == 0)
+ return;
+
g_free (alert->priv->secondary_text);
alert->priv->secondary_text = g_strdup (secondary_text);