summaryrefslogtreecommitdiff
path: root/src/eom-sidebar.c
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2015-07-23 19:01:19 +0200
committerinfirit <[email protected]>2015-08-31 22:35:16 +0200
commit7dc23854634e8177fb03d403c0f71e9c10830694 (patch)
treea2aafdb769b117a9500d200bb6b0f720d3657149 /src/eom-sidebar.c
parent317374f576896ef9a394cf4ec7c59a46c8c11693 (diff)
downloadeom-7dc23854634e8177fb03d403c0f71e9c10830694.tar.bz2
eom-7dc23854634e8177fb03d403c0f71e9c10830694.tar.xz
GTK3: Replace gtk_{v,h}box new with gtk_box_new for gtk+ >=3.2.0
Diffstat (limited to 'src/eom-sidebar.c')
-rw-r--r--src/eom-sidebar.c5
1 files changed, 5 insertions, 0 deletions
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)