summaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2014-01-22 23:23:13 +0100
committerStefano Karapetsas <[email protected]>2014-01-22 23:23:13 +0100
commit28bc8921c748c954027007ec9dfa1e9970c0ad08 (patch)
tree05e42713d92ea72d8c052fce5a517d2ee3366dce /shell
parent5bba3723566489763aafaad3669c77f60a23d2e0 (diff)
downloadatril-28bc8921c748c954027007ec9dfa1e9970c0ad08.tar.bz2
atril-28bc8921c748c954027007ec9dfa1e9970c0ad08.tar.xz
Make the toolbar editor fill its window with GTK3
https://github.com/mate-desktop/atril/issues/58 https://git.gnome.org/browse/evince/commit/shell?h=gnome-3-0&id=018fd207e39c8eea5abdd17973914e6f3936ffdd
Diffstat (limited to 'shell')
-rw-r--r--shell/ev-window.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/shell/ev-window.c b/shell/ev-window.c
index ad9feacc..cf40ae7d 100644
--- a/shell/ev-window.c
+++ b/shell/ev-window.c
@@ -4169,7 +4169,11 @@ ev_window_cmd_edit_toolbar (GtkAction *action, EvWindow *ev_window)
gtk_container_set_border_width (GTK_CONTAINER (editor), 5);
gtk_box_set_spacing (GTK_BOX (EGG_TOOLBAR_EDITOR (editor)), 5);
+#if GTK_CHECK_VERSION (3, 0, 0)
+ gtk_box_pack_start (GTK_BOX (content_area), editor, TRUE, TRUE, 0);
+#else
gtk_container_add (GTK_CONTAINER (content_area), editor);
+#endif
egg_editable_toolbar_set_edit_mode (toolbar, TRUE);