mirror of
https://github.com/Gnucash/gnucash.git
synced 2026-09-03 20:53:02 -05:00
Fix printing to eliminate the warning messages.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6938 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
@@ -1,3 +1,19 @@
|
||||
2002-05-31 David Hampton <hampton@employees.org>
|
||||
|
||||
* src/gnome/reconcile-list.c: Fix the direction of the sort
|
||||
arrows.
|
||||
|
||||
* src/gnome-utils/dialog-options.c: Preferences dialogs will now
|
||||
switch over from a tabbed notebook to a list/notebook pair if
|
||||
there are more than four pages. Put radio buttons in a horizontal
|
||||
box instead of a vertical one.
|
||||
|
||||
* src/gnome-utils/gnc-html.c:
|
||||
* src/gnome-utils/gw-gnome-utils-spec.scm:
|
||||
* src/gnome-utils/print-session.[ch]:
|
||||
* src/scm/printing/print-check.scm: Eliminate warning messages
|
||||
while printing.
|
||||
|
||||
2002-05-27 Derek Atkins <derek@ihtfp.com>
|
||||
|
||||
* src/app-utils/option-util.c: Add a function to reset all the gui
|
||||
|
||||
@@ -1231,11 +1231,11 @@ gnc_html_export(gnc_html * html, const char *filepath) {
|
||||
|
||||
void
|
||||
gnc_html_print(gnc_html * html) {
|
||||
PrintSession * ps = gnc_print_session_create();
|
||||
PrintSession * ps = gnc_print_session_create(FALSE);
|
||||
|
||||
gtk_html_print(GTK_HTML(html->html),
|
||||
GNOME_PRINT_CONTEXT(ps->meta));
|
||||
gnc_print_session_done(ps);
|
||||
gnc_print_session_done(ps, FALSE);
|
||||
gnc_print_session_print(ps);
|
||||
}
|
||||
|
||||
|
||||
@@ -105,7 +105,7 @@
|
||||
'gnc:print-session-create
|
||||
'<gnc:PrintSession*>
|
||||
"gnc_print_session_create"
|
||||
'()
|
||||
'((<gw:bool> yes_is_default))
|
||||
"Start a new print session.")
|
||||
|
||||
(gw:wrap-function
|
||||
@@ -137,7 +137,8 @@
|
||||
'gnc:print-session-done
|
||||
'<gw:void>
|
||||
"gnc_print_session_done"
|
||||
'((<gnc:PrintSession*> p))
|
||||
'((<gnc:PrintSession*> p)
|
||||
(<gw:bool> yes_is_default))
|
||||
"Let the print context know you're finished with it.")
|
||||
|
||||
(gw:wrap-function
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
|
||||
|
||||
PrintSession *
|
||||
gnc_print_session_create() {
|
||||
gnc_print_session_create(gboolean hand_built_pages) {
|
||||
PrintSession * ps = g_new0(PrintSession, 1);
|
||||
|
||||
/* this is about the most basic we can get */
|
||||
@@ -42,11 +42,13 @@ gnc_print_session_create() {
|
||||
ps->meta = gnome_print_meta_new();
|
||||
ps->default_font = gnome_font_new("Courier", 12);
|
||||
|
||||
gnome_print_setrgbcolor(GNOME_PRINT_CONTEXT(ps->meta),
|
||||
0.0, 0.0, 0.0);
|
||||
gnome_print_setfont(GNOME_PRINT_CONTEXT(ps->meta),
|
||||
GNOME_FONT(ps->default_font));
|
||||
|
||||
if (hand_built_pages) {
|
||||
gnome_print_beginpage(GNOME_PRINT_CONTEXT(ps->meta), "");
|
||||
gnome_print_setrgbcolor(GNOME_PRINT_CONTEXT(ps->meta),
|
||||
0.0, 0.0, 0.0);
|
||||
gnome_print_setfont(GNOME_PRINT_CONTEXT(ps->meta),
|
||||
GNOME_FONT(ps->default_font));
|
||||
}
|
||||
return ps;
|
||||
}
|
||||
|
||||
@@ -72,8 +74,10 @@ gnc_print_session_text(PrintSession * ps, const char * text) {
|
||||
|
||||
|
||||
void
|
||||
gnc_print_session_done(PrintSession * ps) {
|
||||
gnome_print_showpage(GNOME_PRINT_CONTEXT(ps->meta));
|
||||
gnc_print_session_done(PrintSession * ps, gboolean hand_built_pages) {
|
||||
if (hand_built_pages) {
|
||||
gnome_print_showpage(GNOME_PRINT_CONTEXT(ps->meta));
|
||||
}
|
||||
gnome_print_context_close(GNOME_PRINT_CONTEXT(ps->meta));
|
||||
|
||||
}
|
||||
|
||||
@@ -80,12 +80,12 @@ PrintDialog * gnc_ui_print_dialog_create(PrintSession * ps);
|
||||
void gnc_ui_print_dialog_destroy(PrintDialog * pcd);
|
||||
|
||||
/* printsession stuff */
|
||||
PrintSession * gnc_print_session_create(void);
|
||||
PrintSession * gnc_print_session_create(gboolean);
|
||||
void gnc_print_session_destroy(PrintSession * ps);
|
||||
|
||||
void gnc_print_session_moveto(PrintSession * ps, double x, double y);
|
||||
void gnc_print_session_text(PrintSession * ps, const char * text);
|
||||
void gnc_print_session_done(PrintSession * ps);
|
||||
void gnc_print_session_done(PrintSession * ps, gboolean);
|
||||
|
||||
void gnc_print_session_preview(PrintSession * ps);
|
||||
void gnc_print_session_print(PrintSession * ps);
|
||||
|
||||
@@ -78,7 +78,7 @@
|
||||
(frac-part (inexact->exact
|
||||
(truncate
|
||||
(+ (/ .5 100) (* 100 (- amount int-part))))))
|
||||
(ps (gnc:print-session-create))
|
||||
(ps (gnc:print-session-create #t))
|
||||
(format #f)
|
||||
(offset #f)
|
||||
(date-string ""))
|
||||
@@ -131,8 +131,8 @@
|
||||
(gnc:print-session-moveto ps (cadr words-pos)
|
||||
(+ offset (caddr words-pos)))
|
||||
(gnc:print-session-text ps (number-to-words amount 100)))
|
||||
|
||||
(gnc:print-session-done ps)
|
||||
|
||||
(gnc:print-session-done ps #t)
|
||||
(gnc:print-session-print ps)))
|
||||
|
||||
(gnc:print-check-dialog-create print-check-callback))
|
||||
|
||||
Reference in New Issue
Block a user