[eog] EogCloseConfirmationDialog: Fix size request for the image list



commit 46fb71380a565e43b2e216d906f8d77a336b9333
Author: Felix Riemann <friemann gnome org>
Date:   Fri Jul 6 23:52:41 2012 +0200

    EogCloseConfirmationDialog: Fix size request for the image list
    
    Change the size request of the encasing ScrolledWindow instead of the
    TreeView itself. Otherwise the list would hardly show one row.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=679505

 src/eog-close-confirmation-dialog.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/eog-close-confirmation-dialog.c b/src/eog-close-confirmation-dialog.c
index 8edbd02..a824e67 100644
--- a/src/eog-close-confirmation-dialog.c
+++ b/src/eog-close-confirmation-dialog.c
@@ -550,7 +550,6 @@ create_treeview (EogCloseConfirmationDialogPrivate *priv)
 	GtkTreeViewColumn *column;
 
 	treeview = gtk_tree_view_new ();
-	gtk_widget_set_size_request (treeview, 260, 120);
 	gtk_tree_view_set_headers_visible (GTK_TREE_VIEW (treeview), FALSE);
 	gtk_tree_view_set_enable_search (GTK_TREE_VIEW (treeview), FALSE);
 
@@ -673,6 +672,7 @@ build_multiple_imgs_dialog (EogCloseConfirmationDialog *dlg)
 
 	treeview = create_treeview (priv);
 	gtk_container_add (GTK_CONTAINER (scrolledwindow), treeview);
+	gtk_widget_set_size_request (scrolledwindow, 260, 120);
 
 	/* Secondary label */
 	secondary_label = gtk_label_new (_("If you don't save, "



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