[Rawstudio-commit] r3244 - trunk/src

Anders Brander anders at brander.dk
Thu Feb 25 08:58:38 CET 2010


Author: abrander
Date: 2010-02-25 08:58:38 +0100 (Thu, 25 Feb 2010)
New Revision: 3244

Modified:
   trunk/src/rs-store.c
Log:
Don't set size request in icon box as this is handled by usual size negotiation (Patch by Lucas Rocha).

Modified: trunk/src/rs-store.c
===================================================================
--- trunk/src/rs-store.c	2010-02-25 07:11:53 UTC (rev 3243)
+++ trunk/src/rs-store.c	2010-02-25 07:58:38 UTC (rev 3244)
@@ -233,6 +233,10 @@
 		/* New Icon view */
 		store->iconview[n] = gtk_icon_view_new();
 
+		/* Pack everything up nicely, we need the space for what matters */
+		gtk_icon_view_set_margin(GTK_ICON_VIEW(store->iconview[n]), 1);
+		gtk_icon_view_set_row_spacing(GTK_ICON_VIEW(store->iconview[n]), 0);
+
 		/* New cell-renderer for thumbnails */
 		cell_renderer = eog_pixbuf_cell_renderer_new();
 
@@ -1456,15 +1460,9 @@
 	for (i=0;i<NUM_VIEWS;i++)
 	{
 		if (show_filenames)
-		{
 			gtk_icon_view_set_text_column (GTK_ICON_VIEW (store->iconview[i]), TEXT_COLUMN);
-			gtk_widget_set_size_request (store->iconview[i], -1, 160);
-		}
 		else
-		{
 			gtk_icon_view_set_text_column (GTK_ICON_VIEW (store->iconview[i]), -1);
-			gtk_widget_set_size_request (store->iconview[i], -1, 130);
-		}
 	}
 
 	return;




More information about the Rawstudio-commit mailing list