summaryrefslogtreecommitdiff
path: root/src/dlg-extract.c
diff options
context:
space:
mode:
authorinfirit <[email protected]>2014-11-20 19:26:59 +0100
committerinfirit <[email protected]>2014-11-20 19:40:56 +0100
commit0ecd00c6f86b4558e978c07221baebe64039525b (patch)
treeda35027c96ed8f36f0d4148015552edf7e980641 /src/dlg-extract.c
parent09fe261d9d0e6bbb9c44d073e6211c5eed37b2c0 (diff)
downloadengrampa-0ecd00c6f86b4558e978c07221baebe64039525b.tar.bz2
engrampa-0ecd00c6f86b4558e978c07221baebe64039525b.tar.xz
Gtk3: Silence the GtkBox and GtkPaned deprecation warnings
Diffstat (limited to 'src/dlg-extract.c')
-rw-r--r--src/dlg-extract.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/dlg-extract.c b/src/dlg-extract.c
index 9cdc272..e92966b 100644
--- a/src/dlg-extract.c
+++ b/src/dlg-extract.c
@@ -23,6 +23,7 @@
#include <config.h>
#include <string.h>
#include <unistd.h>
+#include <gtk/gtk.h>
#include "file-utils.h"
#include "fr-stock.h"
#include "main.h"
@@ -30,6 +31,10 @@
#include "fr-window.h"
#include "typedefs.h"
+#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
typedef struct {
FrWindow *window;