From 8f91d9b2cefd226c60234a6122b624ba65e7b424 Mon Sep 17 00:00:00 2001 From: Stefano Karapetsas Date: Sun, 22 Jan 2012 22:59:41 +0100 Subject: 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 --- .../cut-n-paste/gvc-gstreamer-acme-vol.h | 56 ++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 plugins/media-keys/cut-n-paste/gvc-gstreamer-acme-vol.h (limited to 'plugins/media-keys/cut-n-paste/gvc-gstreamer-acme-vol.h') 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 + Copyright (C) 2011 Stefano Karapetsas + + 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 + Jon Trowbridge + */ + +#include + +#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); + -- cgit v1.2.1