summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2015-09-27 17:07:04 +0200
committermonsta <[email protected]>2015-10-19 16:06:57 +0300
commit5609227c672d94e54edec26e2b4db5f9e1697e17 (patch)
tree58e3dd3e0336c733981d8c4213089f59af5f2931 /test
parentd14fef384a435471860130f7337d5dea5bb824a0 (diff)
downloadcaja-5609227c672d94e54edec26e2b4db5f9e1697e17.tar.bz2
caja-5609227c672d94e54edec26e2b4db5f9e1697e17.tar.xz
GTK3: Replace gtk_{v,h}box new with gtk_box_new
- gtk_{v,h}box usage is deprecated since gtk+-3.2.0
Diffstat (limited to 'test')
-rw-r--r--test/test-eel-editable-label.c4
-rw-r--r--test/test-eel-labeled-image.c3
2 files changed, 7 insertions, 0 deletions
diff --git a/test/test-eel-editable-label.c b/test/test-eel-editable-label.c
index f2ba6961..75dc3f49 100644
--- a/test/test-eel-editable-label.c
+++ b/test/test-eel-editable-label.c
@@ -6,6 +6,10 @@
#include <eel/eel-editable-label.h>
+#if GTK_CHECK_VERSION (3, 0, 0)
+#define gtk_vbox_new(X,Y) gtk_box_new(GTK_ORIENTATION_VERTICAL,Y)
+#endif
+
static void
quit (GtkWidget *widget, gpointer data)
diff --git a/test/test-eel-labeled-image.c b/test/test-eel-labeled-image.c
index a90afebc..d59d8def 100644
--- a/test/test-eel-labeled-image.c
+++ b/test/test-eel-labeled-image.c
@@ -2,6 +2,9 @@
#include <eel/eel-labeled-image.h>
+#if GTK_CHECK_VERSION (3, 0, 0)
+#define gtk_vbox_new(X,Y) gtk_box_new(GTK_ORIENTATION_VERTICAL,Y)
+#endif
static const char pixbuf_name[] = "/usr/share/pixmaps/mate-globe.png";