[eog] Make toolbar editor expand vertically to fully use the dialog's space



commit 685ea8bd493b3832f9e245dd2da294ef9edf15c3
Author: Felix Riemann <friemann gnome org>
Date:   Thu Dec 2 15:30:07 2010 +0100

    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.

 src/eog-window.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/eog-window.c b/src/eog-window.c
index dc46954..d144605 100644
--- a/src/eog-window.c
+++ b/src/eog-window.c
@@ -2476,6 +2476,8 @@ eog_window_cmd_edit_toolbar (GtkAction *action, gpointer *user_data)
 	gtk_container_set_border_width (GTK_CONTAINER (editor), 5);
 
 	gtk_box_set_spacing (GTK_BOX (EGG_TOOLBAR_EDITOR (editor)), 5);
+	// Use as much vertical space as available
+	gtk_widget_set_vexpand (GTK_WIDGET (editor), TRUE);
 
 	gtk_container_add (GTK_CONTAINER (gtk_dialog_get_content_area (GTK_DIALOG (dialog))), editor);
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]