From 1788ec9ce2c0d99c6b5d85150d67db76fed02d12 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= Date: Tue, 8 Nov 2011 23:42:40 +0100 Subject: Export the indicator name hint Using the PACKAGE config.h variable. --- src/indicator-messages.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/indicator-messages.c b/src/indicator-messages.c index 1b96464..d13de56 100644 --- a/src/indicator-messages.c +++ b/src/indicator-messages.c @@ -20,6 +20,8 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ +#include "config.h" + #include #include #include @@ -93,6 +95,7 @@ static void indicator_messages_middle_click (IndicatorObject * io, IndicatorObjectEntry * entry, guint time, gpointer data); static const gchar * get_accessible_desc (IndicatorObject * io); +static const gchar * get_name_hint (IndicatorObject * io); static void connection_change (IndicatorServiceManager * sm, gboolean connected, gpointer user_data); @@ -134,6 +137,7 @@ indicator_messages_class_init (IndicatorMessagesClass *klass) io_class->get_image = get_icon; io_class->get_menu = get_menu; io_class->get_accessible_desc = get_accessible_desc; + io_class->get_name_hint = get_name_hint; io_class->secondary_activate = indicator_messages_middle_click; if (bus_node_info == NULL) { @@ -796,6 +800,13 @@ get_accessible_desc (IndicatorObject * io) return accessible_desc; } +/* Returns the name hint of the indicator */ +static const gchar * +get_name_hint (IndicatorObject *io) +{ + return PACKAGE; +} + /* Hide the notifications on middle-click over the indicator-messages */ static void indicator_messages_middle_click (IndicatorObject * io, IndicatorObjectEntry * entry, -- cgit v1.2.3