From 28bc8921c748c954027007ec9dfa1e9970c0ad08 Mon Sep 17 00:00:00 2001 From: Stefano Karapetsas Date: Wed, 22 Jan 2014 23:23:13 +0100 Subject: 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 --- shell/ev-window.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'shell/ev-window.c') 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); -- cgit v1.2.1