summaryrefslogtreecommitdiff
path: root/mate-volume-control/src/gvc-speaker-test.h
diff options
context:
space:
mode:
authorMichal Ratajsky <[email protected]>2014-07-18 17:55:53 +0200
committerinfirit <[email protected]>2014-10-09 16:53:00 +0200
commit0c558fac14266f8c18cfb8bc1d4669ed35868c2f (patch)
treefb7479547b7c1032b13a1adc0f33e9c71861251a /mate-volume-control/src/gvc-speaker-test.h
parent25445eb4cb2d7b49bc435113056587f83b742104 (diff)
downloadmate-media-0c558fac14266f8c18cfb8bc1d4669ed35868c2f.tar.bz2
mate-media-0c558fac14266f8c18cfb8bc1d4669ed35868c2f.tar.xz
More porting work along with fixes and cleanups
Diffstat (limited to 'mate-volume-control/src/gvc-speaker-test.h')
-rw-r--r--mate-volume-control/src/gvc-speaker-test.h20
1 files changed, 16 insertions, 4 deletions
diff --git a/mate-volume-control/src/gvc-speaker-test.h b/mate-volume-control/src/gvc-speaker-test.h
index 035df19..1c1546d 100644
--- a/mate-volume-control/src/gvc-speaker-test.h
+++ b/mate-volume-control/src/gvc-speaker-test.h
@@ -1,6 +1,7 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*-
*
* Copyright (C) 2009 Red Hat, Inc.
+ * Copyright (C) 2014 Michal Ratajsky <[email protected]>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -23,6 +24,8 @@
#include <glib.h>
#include <glib-object.h>
+#include <gtk/gtk.h>
+
#include <libmatemixer/matemixer.h>
G_BEGIN_DECLS
@@ -40,19 +43,28 @@ typedef struct _GvcSpeakerTestPrivate GvcSpeakerTestPrivate;
struct _GvcSpeakerTest
{
- GtkNotebook parent;
+#if GTK_CHECK_VERSION (3, 4, 0)
+ GtkGrid parent;
+#else
+ GtkTable parent;
+#endif
GvcSpeakerTestPrivate *priv;
};
struct _GvcSpeakerTestClass
{
- GtkNotebookClass parent_class;
+#if GTK_CHECK_VERSION (3, 4, 0)
+ GtkGridClass parent_class;
+#else
+ GtkTableClass parent_class;
+#endif
};
GType gvc_speaker_test_get_type (void) G_GNUC_CONST;
-GtkWidget * gvc_speaker_test_new (MateMixerControl *control,
- MateMixerDevice *device);
+GtkWidget * gvc_speaker_test_new (MateMixerStream *stream);
+
+MateMixerStream * gvc_speaker_test_get_stream (GvcSpeakerTest *test);
G_END_DECLS