From 091fed75fb2adc57c9b699641a31db6e5c83db2b Mon Sep 17 00:00:00 2001 From: infirit Date: Sat, 20 Dec 2014 19:01:29 +0100 Subject: Gtk3: Use gtk_box_new() instead of deprecated gtk_vbox_new() --- libmateweather/test_locations.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libmateweather/test_locations.c b/libmateweather/test_locations.c index b0400c2..7a11ad7 100644 --- a/libmateweather/test_locations.c +++ b/libmateweather/test_locations.c @@ -1,5 +1,6 @@ #define MATEWEATHER_I_KNOW_THIS_IS_UNSTABLE +#include #include "location-entry.h" #include "timezone-menu.h" @@ -42,7 +43,11 @@ main (int argc, char **argv) g_signal_connect (window, "delete-event", G_CALLBACK (deleted), NULL); +#if GTK_CHECK_VERSION (3, 0, 0) + vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 8); +#else vbox = gtk_vbox_new (FALSE, 8); +#endif gtk_container_add (GTK_CONTAINER (window), vbox); loc = mateweather_location_new_world (FALSE); -- cgit v1.2.1