diff options
author | Stefano Karapetsas <[email protected]> | 2012-01-22 22:59:41 +0100 |
---|---|---|
committer | Stefano Karapetsas <[email protected]> | 2012-01-22 22:59:41 +0100 |
commit | 8f91d9b2cefd226c60234a6122b624ba65e7b424 (patch) | |
tree | 7b9422f117477da0aa0145a1f14a02ae47493969 /plugins/media-keys/cut-n-paste/gvc-gstreamer-acme-vol.h | |
parent | 5c00322b3ea38a54d06e6390711dd49c31b77040 (diff) | |
download | mate-settings-daemon-8f91d9b2cefd226c60234a6122b624ba65e7b424.tar.bz2 mate-settings-daemon-8f91d9b2cefd226c60234a6122b624ba65e7b424.tar.xz |
add support for gstreamer/alsa/oss instead of pulse for media-keys
https://bugzilla.gnome.org/show_bug.cgi?id=571145
patch stolen from debian:
http://patch-tracker.debian.org/patch/series/view/gnome-settings-daemon/2.30.2-2+squeeze1/20_gstreamer.patch
Diffstat (limited to 'plugins/media-keys/cut-n-paste/gvc-gstreamer-acme-vol.h')
-rw-r--r-- | plugins/media-keys/cut-n-paste/gvc-gstreamer-acme-vol.h | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/plugins/media-keys/cut-n-paste/gvc-gstreamer-acme-vol.h b/plugins/media-keys/cut-n-paste/gvc-gstreamer-acme-vol.h new file mode 100644 index 0000000..82c1b18 --- /dev/null +++ b/plugins/media-keys/cut-n-paste/gvc-gstreamer-acme-vol.h @@ -0,0 +1,56 @@ +/* acme-volume.h + + Copyright (C) 2002, 2003 Bastien Nocera + Copyright (C) 2004 Novell, Inc. + Copyright (C) 2009 PERIER Romain <[email protected]> + Copyright (C) 2011 Stefano Karapetsas <[email protected]> + + The Mate Library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public License as + published by the Free Software Foundation; either version 2 of the + License, or (at your option) any later version. + + The Mate Library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public + License along with the Mate Library; see the file COPYING.LIB. If not, + write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, + Boston, MA 02111-1307, USA. + + Author: Bastien Nocera <[email protected]> + Jon Trowbridge <[email protected]> + */ + +#include <glib-object.h> + +#define ACME_TYPE_VOLUME (acme_volume_get_type ()) +#define ACME_VOLUME(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), ACME_TYPE_VOLUME, AcmeVolume)) +#define ACME_VOLUME_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), ACME_TYPE_VOLUME, AcmeVolumeClass)) +#define ACME_IS_VOLUME(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), ACME_TYPE_VOLUME)) +#define ACME_VOLUME_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), ACME_TYPE_VOLUME, AcmeVolumeClass)) + +typedef struct AcmeVolume AcmeVolume; +typedef struct AcmeVolumeClass AcmeVolumeClass; +typedef struct AcmeVolumePrivate AcmeVolumePrivate; + +struct AcmeVolume { + GObject parent; + AcmeVolumePrivate *_priv; +}; + +struct AcmeVolumeClass { + GObjectClass parent; +}; + +GType acme_volume_get_type (void); +AcmeVolume *acme_volume_new (void); +void acme_volume_set_mute (AcmeVolume *self, gboolean val); +void acme_volume_mute_toggle (AcmeVolume *self); +gboolean acme_volume_get_mute (AcmeVolume *self); +void acme_volume_set_volume (AcmeVolume *self, gint val); +gint acme_volume_get_volume (AcmeVolume *self); +gint acme_volume_get_threshold (AcmeVolume *self); + |