summaryrefslogtreecommitdiff
path: root/src/eom-sidebar.c
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2015-09-01 20:06:15 +0200
committerinfirit <[email protected]>2015-09-06 13:08:31 +0200
commit0ea8ddb0d7f34a22da6467fb4688b321735c601d (patch)
tree1ce4aefcdfe761c2f813ab315539e68ce71d07c3 /src/eom-sidebar.c
parent35e40d42b54aab81f37323e4f7830318f9db6bf1 (diff)
downloadeom-0ea8ddb0d7f34a22da6467fb4688b321735c601d.tar.bz2
eom-0ea8ddb0d7f34a22da6467fb4688b321735c601d.tar.xz
Gtk3: Remove deprecated GtkVBox/GtkHBox usage
The GtkHBox and GtkVBox have been deprecated by now. Also be consistent with the other properties declarations and use PROP_0 instead of PROP = 1. taken from: https://git.gnome.org/browse/eog/commit/?id=81cb068
Diffstat (limited to 'src/eom-sidebar.c')
-rw-r--r--src/eom-sidebar.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/eom-sidebar.c b/src/eom-sidebar.c
index 0b031f2..b6eaa8d 100644
--- a/src/eom-sidebar.c
+++ b/src/eom-sidebar.c
@@ -64,7 +64,11 @@ struct _EomSidebarPrivate {
GtkTreeModel *page_model;
};
+#if GTK_CHECK_VERSION (3, 2, 0)
+G_DEFINE_TYPE (EomSidebar, eom_sidebar, GTK_TYPE_BOX)
+#else
G_DEFINE_TYPE (EomSidebar, eom_sidebar, GTK_TYPE_VBOX)
+#endif
#define EOM_SIDEBAR_GET_PRIVATE(object) \
(G_TYPE_INSTANCE_GET_PRIVATE ((object), EOM_TYPE_SIDEBAR, EomSidebarPrivate))
@@ -399,6 +403,11 @@ eom_sidebar_init (EomSidebar *eom_sidebar)
GtkWidget *arrow;
GtkWidget *image;
+#if GTK_CHECK_VERSION (3, 2, 0)
+ gtk_orientable_set_orientation (GTK_ORIENTABLE (eom_sidebar),
+ GTK_ORIENTATION_VERTICAL);
+#endif
+
eom_sidebar->priv = EOM_SIDEBAR_GET_PRIVATE (eom_sidebar);
/* data model */