summaryrefslogtreecommitdiff
path: root/shell/ev-sidebar-annotations.c
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2016-06-22 16:13:54 +0200
committerraveit65 <[email protected]>2016-06-22 16:13:54 +0200
commitd4e9df8989ef35e8c8ccaa4ce3b067ca25de71c2 (patch)
treec2018fecf565e4fb5289f59a4ef1cd6494cab372 /shell/ev-sidebar-annotations.c
parent2c9942121667f5ec79b2aa1cfe706bac2ab06201 (diff)
downloadatril-d4e9df8989ef35e8c8ccaa4ce3b067ca25de71c2.tar.bz2
atril-d4e9df8989ef35e8c8ccaa4ce3b067ca25de71c2.tar.xz
Do not use deprecated GTK_TYPE_VBOX definitions
Diffstat (limited to 'shell/ev-sidebar-annotations.c')
-rw-r--r--shell/ev-sidebar-annotations.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/shell/ev-sidebar-annotations.c b/shell/ev-sidebar-annotations.c
index 0213beba..bba131b8 100644
--- a/shell/ev-sidebar-annotations.c
+++ b/shell/ev-sidebar-annotations.c
@@ -67,7 +67,7 @@ static guint signals[N_SIGNALS] = { 0 };
G_DEFINE_TYPE_EXTENDED (EvSidebarAnnotations,
ev_sidebar_annotations,
- GTK_TYPE_VBOX,
+ GTK_TYPE_BOX,
0,
G_IMPLEMENT_INTERFACE (EV_TYPE_SIDEBAR_PAGE,
ev_sidebar_annotations_page_iface_init))
@@ -128,6 +128,10 @@ ev_sidebar_annotations_add_annots_list (EvSidebarAnnotations *ev_annots)
GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (swindow),
GTK_SHADOW_IN);
+#if GTK_CHECK_VERSION (3, 0, 0)
+ // Use as much vertical space as available
+ gtk_widget_set_vexpand (GTK_WIDGET (swindow), TRUE);
+#endif
/* Create tree view */
loading_model = ev_sidebar_annotations_create_simple_model (_("Loading…"));
@@ -236,6 +240,7 @@ ev_sidebar_annotations_init (EvSidebarAnnotations *ev_annots)
gtk_notebook_set_show_border (GTK_NOTEBOOK (ev_annots->priv->notebook), FALSE);
ev_sidebar_annotations_add_annots_list (ev_annots);
ev_sidebar_annotations_add_annots_palette (ev_annots);
+ gtk_orientable_set_orientation (GTK_ORIENTABLE (ev_annots), GTK_ORIENTATION_VERTICAL);
gtk_container_add (GTK_CONTAINER (ev_annots), ev_annots->priv->notebook);
gtk_widget_show (ev_annots->priv->notebook);
}