summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorinfirit <[email protected]>2014-07-25 16:32:23 +0200
committerinfirit <[email protected]>2014-07-25 16:38:12 +0200
commit28536f23be5be6807e492b3b0ca677b14ff4257c (patch)
tree32aae826c7ef1a11d2079a24d3d0ec17c3cadde1 /src
parent041b050488e3fa0d1dda442c19375c217dc8886a (diff)
downloadeom-28536f23be5be6807e492b3b0ca677b14ff4257c.tar.bz2
eom-28536f23be5be6807e492b3b0ca677b14ff4257c.tar.xz
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 <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/eom-window.c5
1 files changed, 5 insertions, 0 deletions
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);