diff options
author | Ted Gould <ted@gould.cx> | 2011-11-29 15:44:17 -0600 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2011-11-29 15:44:17 -0600 |
commit | d3f2a4b29a08e4d191519eca806cd8b82f6d3f69 (patch) | |
tree | ddd25a0215eb34f5cc54508c8ec744c4aa3b5c2d /src/indicator-messages.c | |
parent | de9314480fa9df8b5c7ab30f0e013205fc46347c (diff) | |
parent | 1788ec9ce2c0d99c6b5d85150d67db76fed02d12 (diff) | |
download | ayatana-indicator-messages-d3f2a4b29a08e4d191519eca806cd8b82f6d3f69.tar.gz ayatana-indicator-messages-d3f2a4b29a08e4d191519eca806cd8b82f6d3f69.tar.bz2 ayatana-indicator-messages-d3f2a4b29a08e4d191519eca806cd8b82f6d3f69.zip |
Adding a name hint
Diffstat (limited to 'src/indicator-messages.c')
-rw-r--r-- | src/indicator-messages.c | 11 |
1 files changed, 11 insertions, 0 deletions
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 <http://www.gnu.org/licenses/>. */ +#include "config.h" + #include <string.h> #include <glib.h> #include <glib-object.h> @@ -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, |