From a0292d6425b8413fe465285c78a670e6f09d72ec Mon Sep 17 00:00:00 2001 From: raveit65 Date: Wed, 22 Jun 2016 11:49:11 +0200 Subject: GTK+-3: do not use deprecated gtk_{h/v}box_new --- libview/ev-annotation-window.c | 2 ++ libview/ev-loading-window.c | 4 ++++ libview/ev-view-presentation.c | 1 + 3 files changed, 7 insertions(+) (limited to 'libview') diff --git a/libview/ev-annotation-window.c b/libview/ev-annotation-window.c index 643341fa..69278b3e 100644 --- a/libview/ev-annotation-window.c +++ b/libview/ev-annotation-window.c @@ -31,6 +31,8 @@ #if GTK_CHECK_VERSION (3, 0, 0) #define gdk_cursor_unref g_object_unref #define gtk_widget_render_icon(A,B,C,D) gtk_widget_render_icon_pixbuf(A,B,C) +#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 enum { diff --git a/libview/ev-loading-window.c b/libview/ev-loading-window.c index feade155..ff675ff1 100644 --- a/libview/ev-loading-window.c +++ b/libview/ev-loading-window.c @@ -24,6 +24,10 @@ #include #include "ev-loading-window.h" +#if GTK_CHECK_VERSION (3, 0, 0) +#define gtk_hbox_new(X,Y) gtk_box_new(GTK_ORIENTATION_HORIZONTAL,Y) +#endif + enum { PROP_0, PROP_PARENT diff --git a/libview/ev-view-presentation.c b/libview/ev-view-presentation.c index 3e47b30c..01a49aac 100644 --- a/libview/ev-view-presentation.c +++ b/libview/ev-view-presentation.c @@ -34,6 +34,7 @@ #if GTK_CHECK_VERSION (3, 0, 0) #define gdk_cursor_unref g_object_unref +#define gtk_hbox_new(X,Y) gtk_box_new(GTK_ORIENTATION_HORIZONTAL,Y) #endif enum { -- cgit v1.2.1