summaryrefslogtreecommitdiff
path: root/sound-theme/gvc-sound-theme-chooser.c
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2014-01-20 16:15:52 +0100
committerStefano Karapetsas <[email protected]>2014-01-20 16:15:52 +0100
commit6bab762efb1b6a9f609650d3934bec09527360f8 (patch)
tree03bd6e4e39138038c794936f89ae0d5c4de4c11b /sound-theme/gvc-sound-theme-chooser.c
parent3b258104eee9458fe14bae1ffe0353fb0818be6f (diff)
downloadmate-media-6bab762efb1b6a9f609650d3934bec09527360f8.tar.bz2
mate-media-6bab762efb1b6a9f609650d3934bec09527360f8.tar.xz
sound-theme: Add GTK3 support
Diffstat (limited to 'sound-theme/gvc-sound-theme-chooser.c')
-rw-r--r--sound-theme/gvc-sound-theme-chooser.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sound-theme/gvc-sound-theme-chooser.c b/sound-theme/gvc-sound-theme-chooser.c
index e423423..7cd3ece 100644
--- a/sound-theme/gvc-sound-theme-chooser.c
+++ b/sound-theme/gvc-sound-theme-chooser.c
@@ -54,7 +54,11 @@ static void gvc_sound_theme_chooser_class_init (GvcSoundThemeChooserClass *k
static void gvc_sound_theme_chooser_init (GvcSoundThemeChooser *sound_theme_chooser);
static void gvc_sound_theme_chooser_finalize (GObject *object);
+#if GTK_CHECK_VERSION (3, 0, 0)
+G_DEFINE_TYPE (GvcSoundThemeChooser, gvc_sound_theme_chooser, GTK_TYPE_BOX)
+#else
G_DEFINE_TYPE (GvcSoundThemeChooser, gvc_sound_theme_chooser, GTK_TYPE_VBOX)
+#endif
#define KEY_SOUNDS_SCHEMA "org.mate.sound"
#define EVENT_SOUNDS_KEY "event-sounds"