summaryrefslogtreecommitdiff
path: root/mate-volume-control/src/gvc-applet.h
diff options
context:
space:
mode:
authorMichal Ratajsky <[email protected]>2014-06-20 16:14:59 +0200
committerinfirit <[email protected]>2014-10-09 16:53:00 +0200
commitde3e2fc0c8a77708b4921c4d3b3c83efee01cc28 (patch)
treed67a29dd032c99959665e6f5a5cf6ea184813493 /mate-volume-control/src/gvc-applet.h
parentd1c86461bebd11bab895ee4e7506233947756870 (diff)
downloadmate-media-de3e2fc0c8a77708b4921c4d3b3c83efee01cc28.tar.bz2
mate-media-de3e2fc0c8a77708b4921c4d3b3c83efee01cc28.tar.xz
Port applet to libmatemixer
Diffstat (limited to 'mate-volume-control/src/gvc-applet.h')
-rw-r--r--mate-volume-control/src/gvc-applet.h27
1 files changed, 16 insertions, 11 deletions
diff --git a/mate-volume-control/src/gvc-applet.h b/mate-volume-control/src/gvc-applet.h
index 1cce717..50b3a80 100644
--- a/mate-volume-control/src/gvc-applet.h
+++ b/mate-volume-control/src/gvc-applet.h
@@ -21,34 +21,39 @@
#ifndef __GVC_APPLET_H
#define __GVC_APPLET_H
+#include <glib.h>
#include <glib-object.h>
G_BEGIN_DECLS
+#define GVC_APPLET_DBUS_NAME "org.mate.VolumeControlApplet"
+
#define GVC_TYPE_APPLET (gvc_applet_get_type ())
#define GVC_APPLET(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GVC_TYPE_APPLET, GvcApplet))
-#define GVC_APPLET_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), GVC_TYPE_APPLET, GvcAppletClass))
+#define GVC_APPLET_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), GVC_TYPE_APPLET, GvcAppletClass))
#define GVC_IS_APPLET(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GVC_TYPE_APPLET))
#define GVC_IS_APPLET_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), GVC_TYPE_APPLET))
#define GVC_APPLET_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GVC_TYPE_APPLET, GvcAppletClass))
-typedef struct GvcAppletPrivate GvcAppletPrivate;
+typedef struct _GvcApplet GvcApplet;
+typedef struct _GvcAppletClass GvcAppletClass;
+typedef struct _GvcAppletPrivate GvcAppletPrivate;
-typedef struct
+struct _GvcApplet
{
- GObject parent;
- GvcAppletPrivate *priv;
-} GvcApplet;
+ GObject parent;
+ GvcAppletPrivate *priv;
+};
-typedef struct
+struct _GvcAppletClass
{
- GObjectClass parent_class;
-} GvcAppletClass;
+ GObjectClass parent_class;
+};
-GType gvc_applet_get_type (void);
+GType gvc_applet_get_type (void) G_GNUC_CONST;
GvcApplet * gvc_applet_new (void);
-void gvc_applet_start (GvcApplet *applet);
+void gvc_applet_start (GvcApplet *applet);
G_END_DECLS