From 29eb9f05deff1cf85118f50529633a8ec5d80306 Mon Sep 17 00:00:00 2001 From: Jonathan Li Date: Sat, 4 Aug 2018 14:23:29 +0100 Subject: [PATCH] spu2-x:gtk3: Fix hbox/vbox deprecation warnings --- plugins/spu2-x/src/Linux/Config.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/plugins/spu2-x/src/Linux/Config.cpp b/plugins/spu2-x/src/Linux/Config.cpp index db49cf622e..9d946becdc 100644 --- a/plugins/spu2-x/src/Linux/Config.cpp +++ b/plugins/spu2-x/src/Linux/Config.cpp @@ -325,15 +325,27 @@ void DisplayDialog() advanced_button = gtk_button_new_with_label("Advanced..."); +#if GTK_MAJOR_VERSION < 3 main_box = gtk_hbox_new(false, 5); +#else + main_box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 5); +#endif main_frame = gtk_frame_new("SPU2-X Config"); gtk_container_add(GTK_CONTAINER(main_frame), main_box); +#if GTK_MAJOR_VERSION < 3 mixing_box = gtk_vbox_new(false, 5); +#else + mixing_box = gtk_box_new(GTK_ORIENTATION_VERTICAL, 5); +#endif mixing_frame = gtk_frame_new("Mixing Settings:"); gtk_container_add(GTK_CONTAINER(mixing_frame), mixing_box); +#if GTK_MAJOR_VERSION < 3 output_box = gtk_vbox_new(false, 5); +#else + output_box = gtk_box_new(GTK_ORIENTATION_VERTICAL, 5); +#endif output_frame = gtk_frame_new("Output Settings:"); gtk_container_add(GTK_CONTAINER(output_frame), output_box);