tomboy r2084 - in trunk: . Tomboy/Addins/PrintNotes



Author: sharm
Date: Fri Aug 15 15:28:34 2008
New Revision: 2084
URL: http://svn.gnome.org/viewvc/tomboy?rev=2084&view=rev

Log:
* Tomboy/Addins/PrintNotes/PrintNotesNoteAddin.cs: Use
  Pango.Units.FromPixels instead of FromDouble, which appears to be
  new in gtk-sharp 2.12.

Modified:
   trunk/ChangeLog
   trunk/Tomboy/Addins/PrintNotes/PrintNotesNoteAddin.cs

Modified: trunk/Tomboy/Addins/PrintNotes/PrintNotesNoteAddin.cs
==============================================================================
--- trunk/Tomboy/Addins/PrintNotes/PrintNotesNoteAddin.cs	(original)
+++ trunk/Tomboy/Addins/PrintNotes/PrintNotesNoteAddin.cs	Fri Aug 15 15:28:34 2008
@@ -61,7 +61,7 @@
 				                                  font_size);
 			layout.FontDescription = desc;
 			
-			layout.Width = Pango.Units.FromDouble (context.Width);
+			layout.Width = Pango.Units.FromPixels ((int)context.Width);
 			
 			Gtk.TextIter start_iter, end_iter;
 			Buffer.GetBounds (out start_iter, out end_iter);



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