aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2011-02-17 13:21:19 -0600
committerTed Gould <ted@gould.cx>2011-02-17 13:21:19 -0600
commit110a126bef84442ed6419111e528098287b38653 (patch)
treef2802c32391537c5fa7b9b13349a327562b7aceb
parenta5e8b16aa7c16b50c52b4fa86f0a0dffcf28f729 (diff)
parentfc71071e64cc1f5b3016c43f2b5481315d1ef8ee (diff)
downloadayatana-indicator-session-110a126bef84442ed6419111e528098287b38653.tar.gz
ayatana-indicator-session-110a126bef84442ed6419111e528098287b38653.tar.bz2
ayatana-indicator-session-110a126bef84442ed6419111e528098287b38653.zip
Adding an accessible description
-rw-r--r--configure.ac2
-rw-r--r--src/indicator-session.c8
2 files changed, 9 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 8350dd5..8c3f96f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -26,7 +26,7 @@ m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])
###########################
GTK_REQUIRED_VERSION=2.12
-INDICATOR_REQUIRED_VERSION=0.3.5
+INDICATOR_REQUIRED_VERSION=0.3.19
DBUSMENUGTK_REQUIRED_VERSION=0.3.91
POLKIT_REQUIRED_VERSION=0.92
diff --git a/src/indicator-session.c b/src/indicator-session.c
index 2104281..97e2ce9 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)
{