From f1c78bf12b539430e2327b83e64a86649ed2faa9 Mon Sep 17 00:00:00 2001 From: infirit Date: Tue, 25 Nov 2014 17:18:24 +0100 Subject: Gtk3: Silence the GtkVBox and GtkHBox deprecations warnings --- src/tools/marco-window-demo.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/tools') diff --git a/src/tools/marco-window-demo.c b/src/tools/marco-window-demo.c index d78d0130..b28e0818 100644 --- a/src/tools/marco-window-demo.c +++ b/src/tools/marco-window-demo.c @@ -24,6 +24,11 @@ #include #include +#if GTK_CHECK_VERSION (3, 0, 0) +#define gtk_vbox_new(X, Y) gtk_box_new(GTK_ORIENTATION_VERTICAL, Y) +#define gtk_hbox_new(X, Y) gtk_box_new (GTK_ORIENTATION_HORIZONTAL, Y) +#endif + static GtkWidget* do_appwindow (void); static gboolean aspect_on; -- cgit v1.2.1