You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

69 lines
3.0 KiB

  1. /* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*-
  2. *
  3. * Copyright (C) 2008 Red Hat, Inc.
  4. * Copyright (C) 2014 Michal Ratajsky <michal.ratajsky@gmail.com>
  5. *
  6. * This program is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License as published by
  8. * the Free Software Foundation; either version 2 of the License, or
  9. * (at your option) any later version.
  10. *
  11. * This program is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. * GNU General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU General Public License
  17. * along with this program; if not, write to the Free Software
  18. * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
  19. *
  20. */
  21. #ifndef __GVC_STREAM_STATUS_ICON_H
  22. #define __GVC_STREAM_STATUS_ICON_H
  23. #include <glib.h>
  24. #include <glib-object.h>
  25. #include <libmatemixer/matemixer.h>
  26. G_BEGIN_DECLS
  27. #define GVC_TYPE_STREAM_STATUS_ICON (gvc_stream_status_icon_get_type ())
  28. #define GVC_STREAM_STATUS_ICON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GVC_TYPE_STREAM_STATUS_ICON, GvcStreamStatusIcon))
  29. #define GVC_STREAM_STATUS_ICON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), GVC_TYPE_STREAM_STATUS_ICON, GvcStreamStatusIconClass))
  30. #define GVC_IS_STREAM_STATUS_ICON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GVC_TYPE_STREAM_STATUS_ICON))
  31. #define GVC_IS_STREAM_STATUS_ICON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), GVC_TYPE_STREAM_STATUS_ICON))
  32. #define GVC_STREAM_STATUS_ICON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GVC_TYPE_STREAM_STATUS_ICON, GvcStreamStatusIconClass))
  33. typedef struct _GvcStreamStatusIcon GvcStreamStatusIcon;
  34. typedef struct _GvcStreamStatusIconClass GvcStreamStatusIconClass;
  35. typedef struct _GvcStreamStatusIconPrivate GvcStreamStatusIconPrivate;
  36. struct _GvcStreamStatusIcon
  37. {
  38. GtkStatusIcon parent;
  39. GvcStreamStatusIconPrivate *priv;
  40. };
  41. struct _GvcStreamStatusIconClass
  42. {
  43. GtkStatusIconClass parent_class;
  44. };
  45. GType gvc_stream_status_icon_get_type (void) G_GNUC_CONST;
  46. GvcStreamStatusIcon * gvc_stream_status_icon_new (MateMixerStreamControl *control,
  47. const gchar **icon_names);
  48. void gvc_stream_status_icon_set_icon_names (GvcStreamStatusIcon *icon,
  49. const gchar **icon_names);
  50. void gvc_stream_status_icon_set_display_name (GvcStreamStatusIcon *icon,
  51. const gchar *display_name);
  52. void gvc_stream_status_icon_set_control (GvcStreamStatusIcon *icon,
  53. MateMixerStreamControl *control);
  54. G_END_DECLS
  55. #endif /* __GVC_STREAM_STATUS_ICON_H */