diff options
author | Stefano Karapetsas <[email protected]> | 2014-01-22 23:23:13 +0100 |
---|---|---|
committer | Stefano Karapetsas <[email protected]> | 2014-01-22 23:23:13 +0100 |
commit | 28bc8921c748c954027007ec9dfa1e9970c0ad08 (patch) | |
tree | 05e42713d92ea72d8c052fce5a517d2ee3366dce /shell/ev-window.c | |
parent | 5bba3723566489763aafaad3669c77f60a23d2e0 (diff) | |
download | atril-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/ev-window.c')
-rw-r--r-- | shell/ev-window.c | 4 |
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); |