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
This commit is contained in:
Phil Longstaff 2009-04-11 13:58:12 +00:00
parent d426c0b7da
commit f7048ca505

View File

@ -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 */