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.
 
 
 
 
 
 

62 lines
2.1 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_APPLET_H
  22. #define __GVC_APPLET_H
  23. #include <glib.h>
  24. #include <glib-object.h>
  25. G_BEGIN_DECLS
  26. #define GVC_APPLET_DBUS_NAME "org.mate.VolumeControlApplet"
  27. #define GVC_TYPE_APPLET (gvc_applet_get_type ())
  28. #define GVC_APPLET(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GVC_TYPE_APPLET, GvcApplet))
  29. #define GVC_APPLET_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), GVC_TYPE_APPLET, GvcAppletClass))
  30. #define GVC_IS_APPLET(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GVC_TYPE_APPLET))
  31. #define GVC_IS_APPLET_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), GVC_TYPE_APPLET))
  32. #define GVC_APPLET_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GVC_TYPE_APPLET, GvcAppletClass))
  33. typedef struct _GvcApplet GvcApplet;
  34. typedef struct _GvcAppletClass GvcAppletClass;
  35. typedef struct _GvcAppletPrivate GvcAppletPrivate;
  36. struct _GvcApplet
  37. {
  38. GObject parent;
  39. GvcAppletPrivate *priv;
  40. };
  41. struct _GvcAppletClass
  42. {
  43. GObjectClass parent_class;
  44. };
  45. GType gvc_applet_get_type (void) G_GNUC_CONST;
  46. GvcApplet * gvc_applet_new (void);
  47. void gvc_applet_start (GvcApplet *applet);
  48. G_END_DECLS
  49. #endif /* __GVC_APPLET_H */