diff options
author | infirit <[email protected]> | 2014-12-20 19:01:29 +0100 |
---|---|---|
committer | infirit <[email protected]> | 2015-08-25 10:57:08 +0200 |
commit | 091fed75fb2adc57c9b699641a31db6e5c83db2b (patch) | |
tree | f4865bcfb880748a175ba5b728278a7dd861429d | |
parent | 63c915766a60c2083825b6a00fdf395c2e2f8d18 (diff) | |
download | libmateweather-091fed75fb2adc57c9b699641a31db6e5c83db2b.tar.bz2 libmateweather-091fed75fb2adc57c9b699641a31db6e5c83db2b.tar.xz |
Gtk3: Use gtk_box_new() instead of deprecated gtk_vbox_new()
-rw-r--r-- | libmateweather/test_locations.c | 5 |
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); |