~3v1n0/indicator-sound/add-name-hint_fix-memleak

« back to all changes in this revision

Viewing changes to src/indicator-sound.c

  • Committer: Marco Trevisan (Treviño)
  • Date: 2011-11-07 03:07:52 UTC
  • Revision ID: mail@3v1n0.net-20111107030752-qn5pjsqyu68i8flc
Indicator-sound: Added the "indicator-sound" name hint.

Show diffs side-by-side

added added

removed removed

Lines of Context:
74
74
static GtkImage * get_icon (IndicatorObject * io);
75
75
static GtkMenu *  get_menu (IndicatorObject * io);
76
76
static const gchar * get_accessible_desc (IndicatorObject * io);
 
77
static const gchar * get_name_hint (IndicatorObject * io);
77
78
static void indicator_sound_scroll (IndicatorObject * io,
78
79
                                    IndicatorObjectEntry * entry, gint delta,
79
80
                                    IndicatorScrollDirection direction);
133
134
  io_class->get_image = get_icon;
134
135
  io_class->get_menu  = get_menu;
135
136
  io_class->get_accessible_desc = get_accessible_desc;
 
137
  io_class->get_name_hint = get_name_hint;
136
138
  io_class->entry_scrolled = indicator_sound_scroll;
137
139
  io_class->secondary_activate = indicator_sound_middle_click;
138
140
}
241
243
  return NULL;
242
244
}
243
245
 
 
246
static const gchar * get_name_hint (IndicatorObject * io)
 
247
{
 
248
  return "indicator-sound";
 
249
}
244
250
 
245
251
static void
246
252
connection_changed (IndicatorServiceManager * sm,