From af3ac653f86db8fefe9475a3354662636afd15e2 Mon Sep 17 00:00:00 2001 From: Lars Uebernickel Date: Mon, 21 Jan 2013 16:38:11 +0100 Subject: indicator-ng: always set an accessible description to avoid imminent warning --- libindicator/indicator-ng.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'libindicator/indicator-ng.c') 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); } -- cgit v1.2.3