mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-20 11:48:30 -06:00
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:
parent
d426c0b7da
commit
f7048ca505
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user