nautilus r15185 - in trunk: . libnautilus-private



Author: alexl
Date: Thu Apr 16 12:56:02 2009
New Revision: 15185
URL: http://svn.gnome.org/viewvc/nautilus?rev=15185&view=rev

Log:
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.




Modified:
   trunk/ChangeLog
   trunk/libnautilus-private/nautilus-icon-canvas-item.c

Modified: trunk/libnautilus-private/nautilus-icon-canvas-item.c
==============================================================================
--- trunk/libnautilus-private/nautilus-icon-canvas-item.c	(original)
+++ trunk/libnautilus-private/nautilus-icon-canvas-item.c	Thu Apr 16 12:56:02 2009
@@ -349,6 +349,15 @@
 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;



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