[PATCH] Rubberband selects icon captions as if zoom was always 100% (#117356)
- From: Martin Wehner <martin wehner epost de>
- To: nautilus-list gnome org
- Cc: fabio gs2 com br
- Subject: [PATCH] Rubberband selects icon captions as if zoom was always 100% (#117356)
- Date: Sat, 22 May 2004 20:36:18 +0200
Fabio,
thanks for the hint - you were right, that problem is closely related.
In this instance compute_text_rectangle() is told to assume world coords
for the computation of the text rectangle bounds, but the given rect is
a canvas coords one.
Martin
Index: libnautilus-private/nautilus-icon-canvas-item.c
===================================================================
RCS file: /cvs/gnome/nautilus/libnautilus-private/nautilus-icon-canvas-item.c,v
retrieving revision 1.182
diff -u -p -w -r1.182 nautilus-icon-canvas-item.c
--- libnautilus-private/nautilus-icon-canvas-item.c 11 Feb 2004 14:21:07 -0000 1.182
+++ libnautilus-private/nautilus-icon-canvas-item.c 22 May 2004 18:05:44 -0000
@@ -690,7 +690,7 @@ nautilus_icon_canvas_item_update_bounds
/* Update canvas and text rect cache */
get_icon_canvas_rectangle (item, &item->details->canvas_rect);
- item->details->text_rect = compute_text_rectangle (item, item->details->canvas_rect, FALSE);
+ item->details->text_rect = compute_text_rectangle (item, item->details->canvas_rect, TRUE);
/* Update emblem rect cache */
item->details->emblem_rect.x0 = 0;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]