Merge lp:~themuso/indicator-session/a11y-desc into lp:indicator-session/0.1

Proposed by Luke Yelavich
Status: Merged
Merged at revision: 138
Proposed branch: lp:~themuso/indicator-session/a11y-desc
Merge into: lp:indicator-session/0.1
Diff against target: 32 lines (+8/-0)
1 file modified
src/indicator-session.c (+8/-0)
To merge this branch: bzr merge lp:~themuso/indicator-session/a11y-desc
Reviewer Review Type Date Requested Status
Ted Gould (community) Approve
Review via email: mp+49750@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Ted Gould (ted) wrote :

  review approve

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/indicator-session.c'
2--- src/indicator-session.c 2011-01-28 17:14:45 +0000
3+++ src/indicator-session.c 2011-02-15 01:05:59 +0000
4@@ -72,6 +72,7 @@
5 static GtkLabel * get_label (IndicatorObject * io);
6 static GtkImage * get_icon (IndicatorObject * io);
7 static GtkMenu * get_menu (IndicatorObject * io);
8+static const gchar * get_accessible_desc (IndicatorObject * io);
9 static gboolean build_menu_switch (DbusmenuMenuitem * newitem, DbusmenuMenuitem * parent, DbusmenuClient * client, gpointer user_data);
10 static gboolean new_user_item (DbusmenuMenuitem * newitem, DbusmenuMenuitem * parent, DbusmenuClient * client, gpointer user_data);
11 static void icon_changed (IndicatorSession * session, const gchar * icon_name);
12@@ -99,6 +100,7 @@
13 io_class->get_label = get_label;
14 io_class->get_image = get_icon;
15 io_class->get_menu = get_menu;
16+ io_class->get_accessible_desc = get_accessible_desc;
17
18 return;
19 }
20@@ -253,6 +255,12 @@
21 return NULL;
22 }
23
24+static const gchar *
25+get_accessible_desc (IndicatorObject * io)
26+{
27+ return _("Session");
28+}
29+
30 static void
31 icon_changed (IndicatorSession * session, const gchar * icon_name)
32 {

Subscribers

People subscribed via source and target branches