diff options
author | infirit <[email protected]> | 2014-11-20 19:26:59 +0100 |
---|---|---|
committer | infirit <[email protected]> | 2014-11-20 19:40:56 +0100 |
commit | 0ecd00c6f86b4558e978c07221baebe64039525b (patch) | |
tree | da35027c96ed8f36f0d4148015552edf7e980641 /src/gtk-utils.c | |
parent | 09fe261d9d0e6bbb9c44d073e6211c5eed37b2c0 (diff) | |
download | engrampa-0ecd00c6f86b4558e978c07221baebe64039525b.tar.bz2 engrampa-0ecd00c6f86b4558e978c07221baebe64039525b.tar.xz |
Gtk3: Silence the GtkBox and GtkPaned deprecation warnings
Diffstat (limited to 'src/gtk-utils.c')
-rw-r--r-- | src/gtk-utils.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gtk-utils.c b/src/gtk-utils.c index fbcf967..3e1594e 100644 --- a/src/gtk-utils.c +++ b/src/gtk-utils.c @@ -22,10 +22,15 @@ #include <config.h> #include <string.h> +#include <gtk/gtk.h> #include "gtk-utils.h" #define LOAD_BUFFER_SIZE 65536 +#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 void count_selected (GtkTreeModel *model, |