diff options
Diffstat (limited to 'shell')
-rw-r--r-- | shell/eggfindbar.c | 4 | ||||
-rw-r--r-- | shell/ev-annotation-properties-dialog.c | 4 | ||||
-rw-r--r-- | shell/ev-convert-metadata.c | 4 | ||||
-rw-r--r-- | shell/ev-message-area.c | 5 | ||||
-rw-r--r-- | shell/ev-password-view.c | 5 | ||||
-rw-r--r-- | shell/ev-progress-message-area.c | 4 | ||||
-rw-r--r-- | shell/ev-sidebar.c | 4 | ||||
-rw-r--r-- | shell/ev-window.c | 4 |
8 files changed, 34 insertions, 0 deletions
diff --git a/shell/eggfindbar.c b/shell/eggfindbar.c index 561b6d85..4074d4f2 100644 --- a/shell/eggfindbar.c +++ b/shell/eggfindbar.c @@ -26,6 +26,10 @@ #include "eggfindbar.h" +#if GTK_CHECK_VERSION (3, 0, 0) +#define gtk_hbox_new(X,Y) gtk_box_new(GTK_ORIENTATION_HORIZONTAL,Y) +#endif + struct _EggFindBarPrivate { gchar *search_string; diff --git a/shell/ev-annotation-properties-dialog.c b/shell/ev-annotation-properties-dialog.c index 932a26ff..3d413096 100644 --- a/shell/ev-annotation-properties-dialog.c +++ b/shell/ev-annotation-properties-dialog.c @@ -24,6 +24,10 @@ #include "ev-annotation-properties-dialog.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_ANNOT_TYPE diff --git a/shell/ev-convert-metadata.c b/shell/ev-convert-metadata.c index 34ad3b7a..bb3840cd 100644 --- a/shell/ev-convert-metadata.c +++ b/shell/ev-convert-metadata.c @@ -29,6 +29,10 @@ #include <X11/Xlib.h> #define EV_METADATA_NAMESPACE "metadata::atril" +#if GTK_CHECK_VERSION (3, 0, 0) +#define gtk_vbox_new(X,Y) gtk_box_new(GTK_ORIENTATION_VERTICAL,Y) +#endif + typedef struct { xmlNodePtr cur; xmlChar *uri; diff --git a/shell/ev-message-area.c b/shell/ev-message-area.c index 355e70fa..a545f2b1 100644 --- a/shell/ev-message-area.c +++ b/shell/ev-message-area.c @@ -25,6 +25,11 @@ #include "ev-message-area.h" +#if GTK_CHECK_VERSION (3, 0, 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 + #define EV_MESSAGE_AREA_GET_PRIVATE(obj) \ (G_TYPE_INSTANCE_GET_PRIVATE ((obj), EV_TYPE_MESSAGE_AREA, EvMessageAreaPrivate)) diff --git a/shell/ev-password-view.c b/shell/ev-password-view.c index 57e4f642..b279ab8b 100644 --- a/shell/ev-password-view.c +++ b/shell/ev-password-view.c @@ -30,6 +30,11 @@ #include "ev-keyring.h" #include "ev-password-view.h" +#if GTK_CHECK_VERSION (3, 0, 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 + enum { UNLOCK, LAST_SIGNAL diff --git a/shell/ev-progress-message-area.c b/shell/ev-progress-message-area.c index 14b19699..f3f5e3ad 100644 --- a/shell/ev-progress-message-area.c +++ b/shell/ev-progress-message-area.c @@ -24,6 +24,10 @@ #include "ev-progress-message-area.h" +#if GTK_CHECK_VERSION (3, 0, 0) +#define gtk_vbox_new(X,Y) gtk_box_new(GTK_ORIENTATION_VERTICAL,Y) +#endif + #define EV_PROGRESS_MESSAGE_AREA_GET_PRIVATE(obj) \ (G_TYPE_INSTANCE_GET_PRIVATE ((obj), EV_TYPE_PROGRESS_MESSAGE_AREA, EvProgressMessageAreaPrivate)) diff --git a/shell/ev-sidebar.c b/shell/ev-sidebar.c index 311c83bd..d8d4424f 100644 --- a/shell/ev-sidebar.c +++ b/shell/ev-sidebar.c @@ -32,6 +32,10 @@ #include "ev-sidebar.h" #include "ev-sidebar-page.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, diff --git a/shell/ev-window.c b/shell/ev-window.c index 4092d77f..5e31007b 100644 --- a/shell/ev-window.c +++ b/shell/ev-window.c @@ -106,6 +106,10 @@ #include "ev-media-player-keys.h" #endif /* ENABLE_DBUS */ +#if GTK_CHECK_VERSION (3, 0, 0) +#define gtk_vbox_new(X,Y) gtk_box_new(GTK_ORIENTATION_VERTICAL,Y) +#endif + typedef enum { PAGE_MODE_DOCUMENT, PAGE_MODE_PASSWORD |