summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/themes/coco/coco-theme.c5
-rw-r--r--src/themes/nodoka/nodoka-theme.c5
-rw-r--r--src/themes/slider/theme.c5
-rw-r--r--src/themes/standard/theme.c5
4 files changed, 20 insertions, 0 deletions
diff --git a/src/themes/coco/coco-theme.c b/src/themes/coco/coco-theme.c
index f07479d..3be47b1 100644
--- a/src/themes/coco/coco-theme.c
+++ b/src/themes/coco/coco-theme.c
@@ -84,6 +84,11 @@ enum
#define BACKGROUND_OPACITY 0.90
#define GRADIENT_CENTER 0.7
+#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
+
/* Support Nodoka Functions */
/* Handle clicking on link */
diff --git a/src/themes/nodoka/nodoka-theme.c b/src/themes/nodoka/nodoka-theme.c
index 5d43759..64a6848 100644
--- a/src/themes/nodoka/nodoka-theme.c
+++ b/src/themes/nodoka/nodoka-theme.c
@@ -100,6 +100,11 @@ enum
#define BACKGROUND_OPACITY 0.92
#define GRADIENT_CENTER 0.7
+#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
+
/* Support Nodoka Functions */
/* Handle clicking on link */
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;
diff --git a/src/themes/standard/theme.c b/src/themes/standard/theme.c
index bdcfc2d..9a69e61 100644
--- a/src/themes/standard/theme.c
+++ b/src/themes/standard/theme.c
@@ -103,6 +103,11 @@ enum {
#define BACKGROUND_OPACITY 0.92
#define BOTTOM_GRADIENT_HEIGHT 30
+#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 fill_background(GtkWidget* widget, WindowData* windata, cairo_t* cr)
{
GtkStyle* style;