From f7048ca5054ee13e34b1bf38c1b8a128d60bbc09 Mon Sep 17 00:00:00 2001 From: Phil Longstaff Date: Sat, 11 Apr 2009 13:58:12 +0000 Subject: [PATCH] Fix compilation problems for gtkhtml which uses gnome_print. My version of gtkhtml-dev doesn't include gtk_html_print() function, so I still get a compilation problem, but I think this will work for people who really have that configuration. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18044 57a11ea4-9604-0410-9ed3-97b8803252fd --- src/html/gnc-html-gtkhtml.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/html/gnc-html-gtkhtml.c b/src/html/gnc-html-gtkhtml.c index 8c517b16b9..5103b52cde 100644 --- a/src/html/gnc-html-gtkhtml.c +++ b/src/html/gnc-html-gtkhtml.c @@ -885,18 +885,20 @@ impl_gtkhtml_print( GncHtml* self ) } #else /* !GTKHTML_USES_GTKPRINT */ -void -gnc_html_print( GncHtml* html ) +static void +impl_gtkhtml_print( GncHtml* self ) { PrintSession *ps; + GncHtmlGtkhtmlPrivate* priv; + priv = GNC_HTML_GTKHTML_GET_PRIVATE(self); ps = gnc_print_session_create( FALSE ); if( ps == NULL ) { /* user cancelled */ return; } - gtk_html_print( GTK_HTML(html->html), ps->context ); + gtk_html_print( GTK_HTML(priv->html), ps->context ); gnc_print_session_done( ps ); } #endif /* GTKHTML_USES_GTKPRINT */