summaryrefslogtreecommitdiff
path: root/backends/pulse
diff options
context:
space:
mode:
authorMichal Ratajsky <[email protected]>2014-08-20 22:59:43 +0200
committerMichal Ratajsky <[email protected]>2014-08-20 22:59:43 +0200
commit3a99c51bb0bcba28d0d38bbed937c2071d9666b2 (patch)
tree62cec902054a0087461ffcdb69bbef1f1f991c22 /backends/pulse
parent4a2da6bcb81e407dbaa40d053cdda2e03a696c68 (diff)
downloadlibmatemixer-3a99c51bb0bcba28d0d38bbed937c2071d9666b2.tar.bz2
libmatemixer-3a99c51bb0bcba28d0d38bbed937c2071d9666b2.tar.xz
Fix a typo and some compiler warnings
Diffstat (limited to 'backends/pulse')
-rw-r--r--backends/pulse/pulse-backend.c3
-rw-r--r--backends/pulse/pulse-stream.c5
2 files changed, 2 insertions, 6 deletions
diff --git a/backends/pulse/pulse-backend.c b/backends/pulse/pulse-backend.c
index 1a1cabc..0d9c39c 100644
--- a/backends/pulse/pulse-backend.c
+++ b/backends/pulse/pulse-backend.c
@@ -99,8 +99,7 @@ struct _PulseBackendPrivate
NULL))
#define PULSE_GET_HANGING(o) \
- ((gboolean) g_object_get_data (G_OBJECT (o), \
- "__matemixer_pulse_hanging"))
+ ((gboolean) GPOINTER_TO_UINT (g_object_get_data (G_OBJECT (o), "__matemixer_pulse_hanging")))
#define PULSE_SET_HANGING(o) \
(g_object_set_data (G_OBJECT (o), \
diff --git a/backends/pulse/pulse-stream.c b/backends/pulse/pulse-stream.c
index 752c3e6..9856c98 100644
--- a/backends/pulse/pulse-stream.c
+++ b/backends/pulse/pulse-stream.c
@@ -63,16 +63,13 @@ G_DEFINE_ABSTRACT_TYPE (PulseStream, pulse_stream, MATE_MIXER_TYPE_STREAM)
static void
pulse_stream_class_init (PulseStreamClass *klass)
{
- GObjectClass *object_class;
- MateMixerStreamClass *stream_class;
+ GObjectClass *object_class;
object_class = G_OBJECT_CLASS (klass);
object_class->dispose = pulse_stream_dispose;
object_class->get_property = pulse_stream_get_property;
object_class->set_property = pulse_stream_set_property;
- stream_class = MATE_MIXER_STREAM_CLASS (klass);
-
properties[PROP_INDEX] =
g_param_spec_uint ("index",
"Index",