aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Uebernickel <lars.uebernickel@canonical.com>2013-01-21 16:38:11 +0100
committerLars Uebernickel <lars.uebernickel@canonical.com>2013-01-21 16:38:11 +0100
commitaf3ac653f86db8fefe9475a3354662636afd15e2 (patch)
tree089412235be06cd8367039bdb05763bd8c3e835e
parentca52243cf50336e0ef9cb0d1dd867cb657580f1b (diff)
downloadlibayatana-indicator-af3ac653f86db8fefe9475a3354662636afd15e2.tar.gz
libayatana-indicator-af3ac653f86db8fefe9475a3354662636afd15e2.tar.bz2
libayatana-indicator-af3ac653f86db8fefe9475a3354662636afd15e2.zip
indicator-ng: always set an accessible description to avoid imminent warning
-rw-r--r--libindicator/indicator-ng.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libindicator/indicator-ng.c b/libindicator/indicator-ng.c
index d0d2177..ea02847 100644
--- a/libindicator/indicator-ng.c
+++ b/libindicator/indicator-ng.c
@@ -431,6 +431,12 @@ indicator_ng_init (IndicatorNg *self)
self->image = g_object_ref_sink (gtk_image_new ());
self->gtkmenu = g_object_ref_sink (gtk_menu_new ());
+ /* work around IndicatorObject's warning that the accessible
+ * description is missing. We never set it on construction, but when
+ * the menu model has arrived on the bus.
+ */
+ self->accessible_desc = g_strdup ("");
+
indicator_object_set_visible (INDICATOR_OBJECT (self), FALSE);
}