From 0793d596ca9934a0270c42876e1201319f515564 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Tue, 29 Jan 2013 12:04:26 -0600 Subject: fix copy-paste error when updating the attention accessible text --- src/app-indicator.c | 26 ++++++++++---------------- 1 file changed, 10 insertions(+), 16 deletions(-) (limited to 'src') diff --git a/src/app-indicator.c b/src/app-indicator.c index 2e98b48..0bc33af 100644 --- a/src/app-indicator.c +++ b/src/app-indicator.c @@ -1886,20 +1886,14 @@ app_indicator_set_attention_icon_full (AppIndicator *self, const gchar *icon_nam gboolean changed = FALSE; if (g_strcmp0 (self->priv->attention_icon_name, icon_name) != 0) { - if (self->priv->attention_icon_name) { - g_free (self->priv->attention_icon_name); - } - - self->priv->attention_icon_name = g_strdup(icon_name); + g_free (self->priv->attention_icon_name); + self->priv->attention_icon_name = g_strdup (icon_name); changed = TRUE; } if (g_strcmp0(self->priv->att_accessible_desc, icon_desc) != 0) { - if (self->priv->att_accessible_desc) { - g_free (self->priv->att_accessible_desc); - } - - self->priv->att_accessible_desc = g_strdup(icon_name); + g_free (self->priv->att_accessible_desc); + self->priv->att_accessible_desc = g_strdup (icon_desc); changed = TRUE; } @@ -1910,12 +1904,12 @@ app_indicator_set_attention_icon_full (AppIndicator *self, const gchar *icon_nam GError * error = NULL; g_dbus_connection_emit_signal(self->priv->connection, - NULL, - self->priv->path, - NOTIFICATION_ITEM_DBUS_IFACE, - "NewAttentionIcon", - NULL, - &error); + NULL, + self->priv->path, + NOTIFICATION_ITEM_DBUS_IFACE, + "NewAttentionIcon", + NULL, + &error); if (error != NULL) { g_warning("Unable to send signal for NewAttentionIcon: %s", error->message); -- cgit v1.2.3