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 From 8970d61902bcbb4abbf243162b491934208c9358 Mon Sep 17 00:00:00 2001 From: Luke Yelavich Date: Mon, 14 Feb 2011 16:02:01 +1100 Subject: Make the word session translatable --- src/indicator-session.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/indicator-session.c b/src/indicator-session.c index 6a9030a..97e2ce9 100644 --- a/src/indicator-session.c +++ b/src/indicator-session.c @@ -258,7 +258,7 @@ get_label (IndicatorObject * io) static const gchar * get_accessible_desc (IndicatorObject * io) { - return "Session"; + return _("Session"); } static void -- cgit v1.2.3 From fc71071e64cc1f5b3016c43f2b5481315d1ef8ee Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Thu, 17 Feb 2011 13:19:30 -0600 Subject: Increasing the libindicator version --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3 From f4cdae15419acd81f378c158fb8159016ef0a9dd Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Thu, 17 Feb 2011 13:21:35 -0600 Subject: 0.2.14 --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 8c3f96f..e12c744 100644 --- a/configure.ac +++ b/configure.ac @@ -4,7 +4,7 @@ AC_INIT(src/indicator-session.c) AC_PREREQ(2.53) AM_CONFIG_HEADER(config.h) -AM_INIT_AUTOMAKE(indicator-session, 0.2.13) +AM_INIT_AUTOMAKE(indicator-session, 0.2.14) AM_MAINTAINER_MODE -- cgit v1.2.3 From 0f8285c21bfa728a8ae67599d1d740f75dcb8382 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Thu, 17 Feb 2011 13:30:24 -0600 Subject: debian/control: Bumping libindicator dep to 0.3.19 --- debian/changelog | 3 ++- debian/control | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/debian/changelog b/debian/changelog index bbd644f..a0a5d92 100644 --- a/debian/changelog +++ b/debian/changelog @@ -2,8 +2,9 @@ indicator-session (0.2.14-0ubuntu1~ppa1) UNRELEASED; urgency=low * New upstream release. * Adding in accessible description + * debian/control: Bumping libindicator dep to 0.3.19 - -- Ted Gould Thu, 17 Feb 2011 13:29:14 -0600 + -- Ted Gould Thu, 17 Feb 2011 13:30:12 -0600 indicator-session (0.2.13-0ubuntu1) natty; urgency=low diff --git a/debian/control b/debian/control index aea621f..5099fe5 100644 --- a/debian/control +++ b/debian/control @@ -8,7 +8,7 @@ Build-Depends: debhelper (>= 5.0), libgconf2-dev, libdbus-glib-1-dev, gnome-doc-utils, - libindicator-dev (>= 0.3.16), + libindicator-dev (>= 0.3.19), libdbusmenu-glib-dev (>= 0.3.91), libdbusmenu-gtk-dev (>= 0.3.91), libpolkit-gobject-1-dev, -- cgit v1.2.3 From 220d1bbffd0f4116f1e1a71e31b7054f3fc690c1 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Thu, 17 Feb 2011 13:31:42 -0600 Subject: releasing version 0.2.14-0ubuntu1~ppa1 --- debian/changelog | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/debian/changelog b/debian/changelog index a0a5d92..9a91793 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,10 +1,10 @@ -indicator-session (0.2.14-0ubuntu1~ppa1) UNRELEASED; urgency=low +indicator-session (0.2.14-0ubuntu1~ppa1) natty; urgency=low * New upstream release. * Adding in accessible description * debian/control: Bumping libindicator dep to 0.3.19 - -- Ted Gould Thu, 17 Feb 2011 13:30:12 -0600 + -- Ted Gould Thu, 17 Feb 2011 13:31:40 -0600 indicator-session (0.2.13-0ubuntu1) natty; urgency=low -- cgit v1.2.3