summaryrefslogtreecommitdiff
path: root/libnautilus-private/nautilus-icon-canvas-item.h
diff options
context:
space:
mode:
authorAndy Hertzfeld <andy@src.gnome.org>2001-01-11 21:53:58 +0000
committerAndy Hertzfeld <andy@src.gnome.org>2001-01-11 21:53:58 +0000
commitdfaeb7a0c3a6c67a0bab54f57ff686563ba0e339 (patch)
treedf7716a9657cab6eac447396c9513b5794088ba6 /libnautilus-private/nautilus-icon-canvas-item.h
parent89567594485c3ae83131bc22bbf41aaa4fae3d64 (diff)
downloadnautilus-dfaeb7a0c3a6c67a0bab54f57ff686563ba0e339.tar.gz
fixed bug 5338, switching to and from "tighter layout" messes up icon
fixed bug 5338, switching to and from "tighter layout" messes up icon labels, by adding a call to invalidate an item's cached label size, and making the icon canvas invalidate the items when appropriate. This also fixes a similar problem when the anti-aliased mode changes. * libnautilus-extensions/nautilus-icon-canvas-item.c: (nautilus_icon_canvas_item_initialize), (nautilus_icon_canvas_item_invalidate_label_size), (nautilus_icon_canvas_item_set_arg): renamed internal invalidation routine to make it externally accessible * libnautilus-extensions/nautilus-icon-canvas-item.h: added nautilus_icon_canvas_item_invalidate_label_size * libnautilus-extensions/nautilus-icon-container.c: (invalidate_label_sizes), (nautilus_icon_container_set_anti_aliased_mode), (nautilus_icon_container_set_tighter_layout): added an invalidate_label_sizes routine and called it when tighter layout or the anti-aliased mode changes.
Diffstat (limited to 'libnautilus-private/nautilus-icon-canvas-item.h')
-rw-r--r--libnautilus-private/nautilus-icon-canvas-item.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libnautilus-private/nautilus-icon-canvas-item.h b/libnautilus-private/nautilus-icon-canvas-item.h
index 8de5c8f23..5d196e368 100644
--- a/libnautilus-private/nautilus-icon-canvas-item.h
+++ b/libnautilus-private/nautilus-icon-canvas-item.h
@@ -86,6 +86,7 @@ gboolean nautilus_icon_canvas_item_hit_test_rectangle (NautilusIconCanv
const ArtDRect *world_rectangle);
gboolean nautilus_icon_canvas_item_hit_test_stretch_handles (NautilusIconCanvasItem *item,
const ArtPoint *world_point);
+void nautilus_icon_canvas_item_invalidate_label_size (NautilusIconCanvasItem *item);
void nautilus_icon_canvas_item_get_icon_rectangle (NautilusIconCanvasItem *item,
ArtDRect *world_rectangle);
void nautilus_icon_canvas_item_update_bounds (NautilusIconCanvasItem *item);