r18044 - gnucash/trunk/src/html - Fix compilation problems for gtkhtml which uses gnome_print. My version of gtkhtml-dev
Phil Longstaff
plongstaff at code.gnucash.org
Sat Apr 11 09:58:13 EDT 2009
Author: plongstaff
Date: 2009-04-11 09:58:12 -0400 (Sat, 11 Apr 2009)
New Revision: 18044
Trac: http://svn.gnucash.org/trac/changeset/18044
Modified:
gnucash/trunk/src/html/gnc-html-gtkhtml.c
Log:
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.
Modified: gnucash/trunk/src/html/gnc-html-gtkhtml.c
===================================================================
--- gnucash/trunk/src/html/gnc-html-gtkhtml.c 2009-04-11 08:21:17 UTC (rev 18043)
+++ gnucash/trunk/src/html/gnc-html-gtkhtml.c 2009-04-11 13:58:12 UTC (rev 18044)
@@ -885,18 +885,20 @@
}
#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 */
More information about the gnucash-changes
mailing list