summaryrefslogtreecommitdiff
path: root/gtk/gtk_print.c
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2009-02-17 15:08:22 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2009-02-17 15:08:22 +0000
commitf41d666fe17ef2bf4a1a4161283049d2817a4087 (patch)
tree3c4f9d8d169406cd0b4561efc6bd0df05cdeefac /gtk/gtk_print.c
parent79b4cee9d3bff266e0272204eff15ebe506f6661 (diff)
downloadnetsurf-f41d666fe17ef2bf4a1a4161283049d2817a4087.tar.gz
netsurf-f41d666fe17ef2bf4a1a4161283049d2817a4087.tar.bz2
Squash warnings from GTK.
Rework export_pdf and print menu handlers to not leak memory, actually check return values, and stop processing in those cases. Many pedantic whitespace changes. Remove 3 spurious labels from the tab notebook in netsurf.glade. Make PDF export menu entry sensitive by default. Make Print preview menu entry insensitive, as it's unsupported. svn path=/trunk/netsurf/; revision=6543
Diffstat (limited to 'gtk/gtk_print.c')
-rw-r--r--gtk/gtk_print.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/gtk/gtk_print.c b/gtk/gtk_print.c
index 4ac8956f5..0ce951f56 100644
--- a/gtk/gtk_print.c
+++ b/gtk/gtk_print.c
@@ -509,7 +509,6 @@ void gtk_print_signal_begin_print (GtkPrintOperation *operation,
LOG(("Begin print"));
-
settings = user_data;
settings->margins[MARGINTOP] = 0;
@@ -521,10 +520,11 @@ void gtk_print_signal_begin_print (GtkPrintOperation *operation,
settings->scale = 0.7;/*at 0.7 the pages look the best*/
settings->font_func = &nsfont;
- print_set_up(content_to_print, &gtk_printer, settings, &height_to_print);
+ print_set_up(content_to_print, &gtk_printer,
+ settings, &height_to_print);
- LOG(("page_width: %f ;page_height: %f; content height: %lf",settings->page_width,
- settings->page_height, height_to_print));
+ LOG(("page_width: %f ;page_height: %f; content height: %lf",
+ settings->page_width, settings->page_height, height_to_print));
height_on_page = settings->page_height;
height_on_page = height_on_page - settings->margins[MARGINTOP]
@@ -537,7 +537,7 @@ void gtk_print_signal_begin_print (GtkPrintOperation *operation,
gtk_print_operation_set_n_pages(operation, page_number);
}
-
+
/** Handle the draw_page signal from the GtkPrintOperation.
* This function changes only the cairo context to print on.
*/