[PATCH] Wrap earlier in horizontal icon container layout



The proposed attached patch fixes bug 313025 [1] by ensuring a margin of
8 on the right side of the icons.

[1] http://bugzilla.gnome.org/show_bug.cgi?id=313025

-- 
Christian Neumair <chris gnome-de org>

Index: libnautilus-private/nautilus-icon-container.c
===================================================================
RCS file: /cvs/gnome/nautilus/libnautilus-private/nautilus-icon-container.c,v
retrieving revision 1.396
diff -u -p -r1.396 nautilus-icon-container.c
--- libnautilus-private/nautilus-icon-container.c	1 Sep 2005 09:29:57 -0000	1.396
+++ libnautilus-private/nautilus-icon-container.c	10 Sep 2005 22:43:48 -0000
@@ -1057,11 +1057,7 @@ lay_down_icons_horizontal (NautilusIconC
 
 		/* If this icon doesn't fit, it's time to lay out the line that's queued up. */
 		
-		/* FIXME: why don't we want to guarantee a small white space to the right of
-		 * the last column just like we guarantee a small white space to the left of
-		 * the first column?
-		 */
-		if (line_start != p && line_width + icon_width > canvas_width ) {
+		if (line_start != p && line_width + icon_width + ICON_PAD_RIGHT + CONTAINER_PAD_RIGHT > canvas_width ) {
 			if (container->details->label_position == NAUTILUS_ICON_LABEL_POSITION_BESIDE) {
 				y += ICON_PAD_TOP;
 			} else {

Attachment: signature.asc
Description: This is a digitally signed message part



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