From 6545bcaf94a98ae820464fba222da23968b17941 Mon Sep 17 00:00:00 2001 From: Luke Yelavich Date: Mon, 14 Feb 2011 15:17:40 +1100 Subject: Add accessible_desc support --- src/indicator-session.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/indicator-session.c b/src/indicator-session.c index 2104281..6a9030a 100644 --- a/src/indicator-session.c +++ b/src/indicator-session.c @@ -72,6 +72,7 @@ INDICATOR_SET_TYPE(INDICATOR_SESSION_TYPE) static GtkLabel * get_label (IndicatorObject * io); static GtkImage * get_icon (IndicatorObject * io); static GtkMenu * get_menu (IndicatorObject * io); +static const gchar * get_accessible_desc (IndicatorObject * io); static gboolean build_menu_switch (DbusmenuMenuitem * newitem, DbusmenuMenuitem * parent, DbusmenuClient * client, gpointer user_data); static gboolean new_user_item (DbusmenuMenuitem * newitem, DbusmenuMenuitem * parent, DbusmenuClient * client, gpointer user_data); static void icon_changed (IndicatorSession * session, const gchar * icon_name); @@ -99,6 +100,7 @@ indicator_session_class_init (IndicatorSessionClass *klass) io_class->get_label = get_label; io_class->get_image = get_icon; io_class->get_menu = get_menu; + io_class->get_accessible_desc = get_accessible_desc; return; } @@ -253,6 +255,12 @@ get_label (IndicatorObject * io) return NULL; } +static const gchar * +get_accessible_desc (IndicatorObject * io) +{ + return "Session"; +} + static void icon_changed (IndicatorSession * session, const gchar * icon_name) { -- cgit v1.2.3