2005-10-19 Mike Kestner <mkestner@novell.com>

* gnome/PrintContext.custom (SetFont): pass the font by handle, not
	ref.

svn path=/trunk/gtk-sharp/; revision=51938
This commit is contained in:
Mike Kestner 2005-10-19 18:51:33 +00:00
parent 770576a792
commit b39f8218c7
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2005-10-19 Mike Kestner <mkestner@novell.com>
* gnome/PrintContext.custom (SetFont): pass the font by handle, not
ref.
2005-10-19 Mike Kestner <mkestner@novell.com>
* bootstrap : bump version for 2.6.0.

View File

@ -150,10 +150,10 @@
}*/
[DllImport("gnomeprint-2-2")]
static extern int gnome_print_setfont (IntPtr raw, ref Font font);
static extern int gnome_print_setfont (IntPtr raw, IntPtr font);
public PrintReturnCode SetFont (Font font) {
return (PrintReturnCode)gnome_print_setfont (Handle, ref font);
return (PrintReturnCode)gnome_print_setfont (Handle, font == null ? IntPtr.Zero : font.Handle);
}
[DllImport("gnomeprint-2-2")]