~kelemeng/indicator-messages/bug957525

« back to all changes in this revision

Viewing changes to src/indicator-messages.c

  • Committer: Ted Gould
  • Date: 2011-11-29 21:44:17 UTC
  • mfrom: (232.1.1 indicator-messages)
  • Revision ID: ted@gould.cx-20111129214417-wigid5m4jgoug1eb
Adding a name hint

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
with this program.  If not, see <http://www.gnu.org/licenses/>.
21
21
*/
22
22
 
 
23
#include "config.h"
 
24
 
23
25
#include <string.h>
24
26
#include <glib.h>
25
27
#include <glib-object.h>
93
95
                                             IndicatorObjectEntry * entry,
94
96
                                             guint time, gpointer data);
95
97
static const gchar * get_accessible_desc  (IndicatorObject * io);
 
98
static const gchar * get_name_hint        (IndicatorObject * io);
96
99
static void connection_change             (IndicatorServiceManager * sm,
97
100
                                           gboolean connected,
98
101
                                           gpointer user_data);
134
137
        io_class->get_image = get_icon;
135
138
        io_class->get_menu = get_menu;
136
139
        io_class->get_accessible_desc = get_accessible_desc;
 
140
        io_class->get_name_hint = get_name_hint;
137
141
        io_class->secondary_activate = indicator_messages_middle_click;
138
142
 
139
143
        if (bus_node_info == NULL) {
796
800
        return accessible_desc;
797
801
}
798
802
 
 
803
/* Returns the name hint of the indicator */
 
804
static const gchar *
 
805
get_name_hint (IndicatorObject *io)
 
806
{
 
807
  return PACKAGE;
 
808
}
 
809
 
799
810
/* Hide the notifications on middle-click over the indicator-messages */
800
811
static void
801
812
indicator_messages_middle_click (IndicatorObject * io, IndicatorObjectEntry * entry,