summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorinfirit <[email protected]>2014-12-20 19:01:29 +0100
committerinfirit <[email protected]>2015-08-25 10:57:08 +0200
commit091fed75fb2adc57c9b699641a31db6e5c83db2b (patch)
treef4865bcfb880748a175ba5b728278a7dd861429d
parent63c915766a60c2083825b6a00fdf395c2e2f8d18 (diff)
downloadlibmateweather-091fed75fb2adc57c9b699641a31db6e5c83db2b.tar.bz2
libmateweather-091fed75fb2adc57c9b699641a31db6e5c83db2b.tar.xz
Gtk3: Use gtk_box_new() instead of deprecated gtk_vbox_new()
-rw-r--r--libmateweather/test_locations.c5
1 files changed, 5 insertions, 0 deletions
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 <gtk/gtk.h>
#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);