diff options
author | Ted Gould <ted@gould.cx> | 2011-02-23 21:10:58 -0600 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2011-02-23 21:10:58 -0600 |
commit | 5de3ea9982cb396feceab453ce9c83032bc00074 (patch) | |
tree | 80b420b7992347de2b2d20c75c0672d701bbb501 /src/app-indicator.c | |
parent | d63e2d04123cb7e37fa5f9a3cb8239364d81e629 (diff) | |
download | libayatana-appindicator-5de3ea9982cb396feceab453ce9c83032bc00074.tar.gz libayatana-appindicator-5de3ea9982cb396feceab453ce9c83032bc00074.tar.bz2 libayatana-appindicator-5de3ea9982cb396feceab453ce9c83032bc00074.zip |
Change the name of the accessible description and add the attention one.
Diffstat (limited to 'src/app-indicator.c')
-rw-r--r-- | src/app-indicator.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/app-indicator.c b/src/app-indicator.c index c3da8ed..7d849dd 100644 --- a/src/app-indicator.c +++ b/src/app-indicator.c @@ -81,6 +81,7 @@ struct _AppIndicatorPrivate { gchar * label; gchar * label_guide; gchar * accessible_desc; + gchar * att_accessible_desc; guint label_change_idle; guint accessible_desc_change_idle; @@ -736,6 +737,11 @@ app_indicator_finalize (GObject *object) priv->accessible_desc = NULL; } + if (priv->att_accessible_desc != NULL) { + g_free(priv->att_accessible_desc); + priv->att_accessible_desc = NULL; + } + if (priv->path != NULL) { g_free(priv->path); priv->path = NULL; @@ -1069,8 +1075,10 @@ bus_get_prop (GDBusConnection * connection, const gchar * sender, const gchar * return g_variant_new_string(priv->label_guide ? priv->label_guide : ""); } else if (g_strcmp0(property, "XAyatanaOrderingIndex") == 0) { return g_variant_new_uint32(priv->ordering_index); - } else if (g_strcmp0(property, "AccessibleDesc") == 0) { + } else if (g_strcmp0(property, "IconAccessibleDesc") == 0) { return g_variant_new_string(priv->accessible_desc ? priv->accessible_desc : ""); + } else if (g_strcmp0(property, "AttentionAccessibleDesc") == 0) { + return g_variant_new_string(priv->att_accessible_desc ? priv->att_accessible_desc : ""); } *error = g_error_new(0, 0, "Unknown property: %s", property); |