From b39f8218c718c55c866755fb6336389ee6ef31ef Mon Sep 17 00:00:00 2001 From: Mike Kestner Date: Wed, 19 Oct 2005 18:51:33 +0000 Subject: [PATCH] 2005-10-19 Mike Kestner * gnome/PrintContext.custom (SetFont): pass the font by handle, not ref. svn path=/trunk/gtk-sharp/; revision=51938 --- ChangeLog | 5 +++++ gnome/PrintContext.custom | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 75e05cb6a..1ef57695f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2005-10-19 Mike Kestner + + * gnome/PrintContext.custom (SetFont): pass the font by handle, not + ref. + 2005-10-19 Mike Kestner * bootstrap : bump version for 2.6.0. diff --git a/gnome/PrintContext.custom b/gnome/PrintContext.custom index ed693c953..dfbc0b914 100644 --- a/gnome/PrintContext.custom +++ b/gnome/PrintContext.custom @@ -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")]