aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2013-01-29 12:04:26 -0600
committerCharles Kerr <charles.kerr@canonical.com>2013-01-29 12:04:26 -0600
commit0793d596ca9934a0270c42876e1201319f515564 (patch)
treec833191925079703349a5b29ad9ca0362e061e9d /src
parent345b7af04ab99882da94328308e6a65bc2df5b31 (diff)
downloadlibayatana-appindicator-0793d596ca9934a0270c42876e1201319f515564.tar.gz
libayatana-appindicator-0793d596ca9934a0270c42876e1201319f515564.tar.bz2
libayatana-appindicator-0793d596ca9934a0270c42876e1201319f515564.zip
fix copy-paste error when updating the attention accessible text
Diffstat (limited to 'src')
-rw-r--r--src/app-indicator.c26
1 files changed, 10 insertions, 16 deletions
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);