aboutsummaryrefslogtreecommitdiff
path: root/libindicator
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2011-07-05 16:18:56 -0500
committerTed Gould <ted@gould.cx>2011-07-05 16:18:56 -0500
commitf837b4b6102108a10bc897bdc1484882b5747316 (patch)
treeb864c80b9e8a79001ada375293f7b177e5490681 /libindicator
parent26c580fe6b0196d9bfb1eb136af7ae07eae017d8 (diff)
downloadlibayatana-indicator-f837b4b6102108a10bc897bdc1484882b5747316.tar.gz
libayatana-indicator-f837b4b6102108a10bc897bdc1484882b5747316.tar.bz2
libayatana-indicator-f837b4b6102108a10bc897bdc1484882b5747316.zip
Clearing our local name_hint and ensuring we fill it if a function is provided.
Diffstat (limited to 'libindicator')
-rw-r--r--libindicator/indicator-object.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libindicator/indicator-object.c b/libindicator/indicator-object.c
index a91251c..2fe8dd1 100644
--- a/libindicator/indicator-object.c
+++ b/libindicator/indicator-object.c
@@ -240,6 +240,7 @@ indicator_object_init (IndicatorObject *self)
self->priv->entry.label = NULL;
self->priv->entry.image = NULL;
self->priv->entry.accessible_desc = NULL;
+ self->priv->entry.name_hint = NULL;
self->priv->gotten_entries = FALSE;
@@ -435,6 +436,10 @@ get_entries_default (IndicatorObject * io)
g_warning("IndicatorObject class does not have an accessible description.");
}
+ if (class->get_name_hint) {
+ priv->entry.name_hint = class->get_name_hint(io);
+ }
+
priv->gotten_entries = TRUE;
}