Commit 3125825a authored by Alexander Larsson's avatar Alexander Larsson Committed by Alexander Larsson

Bug 578468 – Change of font DPI setting does not effect desktop icons

2009-04-16  Alexander Larsson  <alexl@redhat.com>

	Bug 578468 – Change of font DPI setting does not effect desktop icons

	* libnautilus-private/nautilus-icon-canvas-item.c:
	(nautilus_icon_canvas_item_invalidate_label_size):
	Invalidate pango layouts since the context could have changed
	For instance the font DPI.



svn path=/trunk/; revision=15185
parent 4323f9b4
2009-04-16 Alexander Larsson <alexl@redhat.com>
Bug 578468 – Change of font DPI setting does not effect desktop icons
* libnautilus-private/nautilus-icon-canvas-item.c:
(nautilus_icon_canvas_item_invalidate_label_size):
Invalidate pango layouts since the context could have changed
For instance the font DPI.
2009-04-16 Alexander Larsson <alexl@redhat.com>
Bug 579086 – Excessive white-space on right-hand side in icon view
......
......@@ -349,6 +349,15 @@ nautilus_icon_canvas_item_invalidate_bounds_cache (NautilusIconCanvasItem *item)
void
nautilus_icon_canvas_item_invalidate_label_size (NautilusIconCanvasItem *item)
{
if (item->details->editable_text_layout != NULL) {
pango_layout_context_changed (item->details->editable_text_layout);
}
if (item->details->additional_text_layout != NULL) {
pango_layout_context_changed (item->details->additional_text_layout);
}
if (item->details->embedded_text_layout != NULL) {
pango_layout_context_changed (item->details->embedded_text_layout);
}
nautilus_icon_canvas_item_invalidate_bounds_cache (item);
item->details->text_width = -1;
item->details->text_height = -1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment