From 0c558fac14266f8c18cfb8bc1d4669ed35868c2f Mon Sep 17 00:00:00 2001 From: Michal Ratajsky Date: Fri, 18 Jul 2014 17:55:53 +0200 Subject: More porting work along with fixes and cleanups --- mate-volume-control/src/gvc-speaker-test.h | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) (limited to 'mate-volume-control/src/gvc-speaker-test.h') 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 * * 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 #include +#include + #include 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 -- cgit v1.2.1