From 3e222bb72fd8ee2b33a6a3b9e9ee0f0fed983959 Mon Sep 17 00:00:00 2001 From: raveit65 Date: Wed, 22 Jul 2015 15:09:47 +0200 Subject: GTK3: replace deprecated gtk_[v/h]_box_new --- src/themes/slider/theme.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/themes/slider') diff --git a/src/themes/slider/theme.c b/src/themes/slider/theme.c index dc369a7..16012a4 100644 --- a/src/themes/slider/theme.c +++ b/src/themes/slider/theme.c @@ -77,6 +77,11 @@ enum { #define MAX_ICON_SIZE IMAGE_SIZE +#if GTK_CHECK_VERSION (3, 2, 0) +#define gtk_hbox_new(X,Y) gtk_box_new(GTK_ORIENTATION_HORIZONTAL,Y) +#define gtk_vbox_new(X,Y) gtk_box_new(GTK_ORIENTATION_VERTICAL,Y) +#endif + static void draw_round_rect(cairo_t* cr, gdouble aspect, gdouble x, gdouble y, gdouble corner_radius, gdouble width, gdouble height) { gdouble radius = corner_radius / aspect; -- cgit v1.2.1