summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cut-n-paste/toolbar-editor/egg-editable-toolbar.c5
-rw-r--r--cut-n-paste/toolbar-editor/egg-toolbar-editor.c5
-rw-r--r--src/eom-close-confirmation-dialog.c5
-rw-r--r--src/eom-error-message-area.c5
-rw-r--r--src/eom-file-chooser.c5
-rw-r--r--src/eom-print-image-setup.c5
-rw-r--r--src/eom-sidebar.c5
-rw-r--r--src/eom-statusbar.c5
-rw-r--r--src/eom-window.c5
9 files changed, 45 insertions, 0 deletions
diff --git a/cut-n-paste/toolbar-editor/egg-editable-toolbar.c b/cut-n-paste/toolbar-editor/egg-editable-toolbar.c
index b8ea050..ced3971 100644
--- a/cut-n-paste/toolbar-editor/egg-editable-toolbar.c
+++ b/cut-n-paste/toolbar-editor/egg-editable-toolbar.c
@@ -35,6 +35,11 @@ static GdkPixbuf * new_separator_pixbuf (void);
#define EGG_ITEM_NAME "egg-item-name"
#define STOCK_DRAG_MODE "stock_drag-mode"
+#if GTK_CHECK_VERSION (3, 2, 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
+
static const GtkTargetEntry dest_drag_types[] = {
{EGG_TOOLBAR_ITEM_TYPE, GTK_TARGET_SAME_APP, 0},
};
diff --git a/cut-n-paste/toolbar-editor/egg-toolbar-editor.c b/cut-n-paste/toolbar-editor/egg-toolbar-editor.c
index 5e9f297..d9854b7 100644
--- a/cut-n-paste/toolbar-editor/egg-toolbar-editor.c
+++ b/cut-n-paste/toolbar-editor/egg-toolbar-editor.c
@@ -28,6 +28,11 @@
#include <gtk/gtk.h>
#include <glib/gi18n.h>
+#if GTK_CHECK_VERSION (3, 2, 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
+
static const GtkTargetEntry dest_drag_types[] = {
{EGG_TOOLBAR_ITEM_TYPE, GTK_TARGET_SAME_APP, 0},
};
diff --git a/src/eom-close-confirmation-dialog.c b/src/eom-close-confirmation-dialog.c
index 5966de1..119ff44 100644
--- a/src/eom-close-confirmation-dialog.c
+++ b/src/eom-close-confirmation-dialog.c
@@ -33,6 +33,11 @@
#include "eom-close-confirmation-dialog.h"
#include <eom-window.h>
+#if GTK_CHECK_VERSION (3, 2, 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
+
/* Properties */
enum
{
diff --git a/src/eom-error-message-area.c b/src/eom-error-message-area.c
index 3a4a2f4..9ea49a3 100644
--- a/src/eom-error-message-area.c
+++ b/src/eom-error-message-area.c
@@ -34,6 +34,11 @@
#include <glib-object.h>
#include <gtk/gtk.h>
+#if GTK_CHECK_VERSION (3, 2, 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
+
static void
set_message_area_text_and_icon (GtkInfoBar *message_area,
const gchar *icon_stock_id,
diff --git a/src/eom-file-chooser.c b/src/eom-file-chooser.c
index 6eaf30e..62e7ea9 100644
--- a/src/eom-file-chooser.c
+++ b/src/eom-file-chooser.c
@@ -45,6 +45,11 @@ static char *last_dir[] = { NULL, NULL, NULL, NULL };
EOM_TYPE_FILE_CHOOSER, \
EomFileChooserPrivate))
+#if GTK_CHECK_VERSION (3, 2, 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
+
struct _EomFileChooserPrivate
{
MateDesktopThumbnailFactory *thumb_factory;
diff --git a/src/eom-print-image-setup.c b/src/eom-print-image-setup.c
index 6aab307..6aa965b 100644
--- a/src/eom-print-image-setup.c
+++ b/src/eom-print-image-setup.c
@@ -51,6 +51,11 @@
#define EOM_PRINT_IMAGE_SETUP_GET_PRIVATE(object) \
(G_TYPE_INSTANCE_GET_PRIVATE ((object), EOM_TYPE_PRINT_IMAGE_SETUP, EomPrintImageSetupPrivate))
+#if GTK_CHECK_VERSION (3, 2, 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
+
G_DEFINE_TYPE (EomPrintImageSetup, eom_print_image_setup, GTK_TYPE_TABLE);
struct _EomPrintImageSetupPrivate {
diff --git a/src/eom-sidebar.c b/src/eom-sidebar.c
index d8a479c..85a1b2f 100644
--- a/src/eom-sidebar.c
+++ b/src/eom-sidebar.c
@@ -69,6 +69,11 @@ G_DEFINE_TYPE (EomSidebar, eom_sidebar, GTK_TYPE_VBOX)
#define EOM_SIDEBAR_GET_PRIVATE(object) \
(G_TYPE_INSTANCE_GET_PRIVATE ((object), EOM_TYPE_SIDEBAR, EomSidebarPrivate))
+#if GTK_CHECK_VERSION (3, 2, 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
+
static void
#if GTK_CHECK_VERSION(3, 0, 0)
eom_sidebar_destroy (GtkWidget *object)
diff --git a/src/eom-statusbar.c b/src/eom-statusbar.c
index e825e97..4c01536 100644
--- a/src/eom-statusbar.c
+++ b/src/eom-statusbar.c
@@ -33,6 +33,11 @@
#define EOM_STATUSBAR_GET_PRIVATE(object) \
(G_TYPE_INSTANCE_GET_PRIVATE ((object), EOM_TYPE_STATUSBAR, EomStatusbarPrivate))
+#if GTK_CHECK_VERSION (3, 2, 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
+
G_DEFINE_TYPE (EomStatusbar, eom_statusbar, GTK_TYPE_STATUSBAR)
struct _EomStatusbarPrivate
diff --git a/src/eom-window.c b/src/eom-window.c
index 210ba40..4ab5d57 100644
--- a/src/eom-window.c
+++ b/src/eom-window.c
@@ -103,6 +103,11 @@ G_DEFINE_TYPE (EomWindow, eom_window, GTK_TYPE_WINDOW);
#define is_rtl (gtk_widget_get_default_direction () == GTK_TEXT_DIR_RTL)
+#if GTK_CHECK_VERSION (3, 2, 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
+
typedef enum {
EOM_WINDOW_STATUS_UNKNOWN,
EOM_WINDOW_STATUS_INIT,