From 28536f23be5be6807e492b3b0ca677b14ff4257c Mon Sep 17 00:00:00 2001 From: infirit Date: Fri, 25 Jul 2014 16:32:23 +0200 Subject: Make toolbar editor expand vertically to fully use the dialog's space Editor only showed a single row of items due to the changed expand behaviour in GTK+-3 before. Based on eog commit 685ea8bd493b3832f9e245dd2da294ef9edf15c3 From Felix Riemann --- src/eom-window.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/eom-window.c') diff --git a/src/eom-window.c b/src/eom-window.c index 7cfde7b..0d9f636 100644 --- a/src/eom-window.c +++ b/src/eom-window.c @@ -2675,6 +2675,11 @@ eom_window_cmd_edit_toolbar (GtkAction *action, gpointer *user_data) gtk_container_set_border_width (GTK_CONTAINER (editor), 5); +#if GTK_CHECK_VERSION (3, 0, 0) + // Use as much vertical space as available + gtk_widget_set_vexpand (GTK_WIDGET (editor), TRUE); +#endif + gtk_box_set_spacing (GTK_BOX (EGG_TOOLBAR_EDITOR (editor)), 5); gtk_container_add (GTK_CONTAINER (gtk_dialog_get_content_area (GTK_DIALOG (dialog))), editor); -- cgit v1.2.1