[PATCH] Handle lack of highlight frame better



Proposed patch attached.

-- 
Christian Neumair <chris gnome-de org>
Index: libnautilus-private/nautilus-icon-canvas-item.c
===================================================================
RCS file: /cvs/gnome/nautilus/libnautilus-private/nautilus-icon-canvas-item.c,v
retrieving revision 1.193
diff -u -p -r1.193 nautilus-icon-canvas-item.c
--- libnautilus-private/nautilus-icon-canvas-item.c	28 Oct 2005 12:41:19 -0000	1.193
+++ libnautilus-private/nautilus-icon-canvas-item.c	1 Nov 2005 17:31:24 -0000
@@ -898,9 +898,11 @@ draw_frame (NautilusIconCanvasItem *item
 		eel_gdk_pixbuf_fill_rectangle_with_color (selection_pixbuf,
 							  eel_gdk_pixbuf_whole_pixbuf,
 							  0xffffffff);
-		clear_rounded_corners (selection_pixbuf,
-				       container->details->highlight_frame,
-				       5);
+		if (container->details->highlight_frame != NULL) {
+			clear_rounded_corners (selection_pixbuf,
+					       container->details->highlight_frame,
+					       5);
+		}
 		multiply_pixbuf_rgba (selection_pixbuf,
 				      color);
 		if (create_mask) {

Attachment: signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil



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