diff --git a/po/cs.po b/po/cs.po index c181e8d..e42ccbe 100644 --- a/po/cs.po +++ b/po/cs.po @@ -4,7 +4,7 @@ msgid "" msgstr "" "Project-Id-Version: zathura\n" -"Report-Msgid-Bugs-To: \n" +"Report-Msgid-Bugs-To: http://bugs.pwmt.org\n" "POT-Creation-Date: 2012-12-06 21:00+0100\n" "PO-Revision-Date: 2012-06-19 23:59+0200\n" "Last-Translator: Martin Pelikan \n" diff --git a/po/de.po b/po/de.po index 2fbf3f2..7a1c79e 100644 --- a/po/de.po +++ b/po/de.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: zathura\n" -"Report-Msgid-Bugs-To: \n" +"Report-Msgid-Bugs-To: http://bugs.pwmt.org\n" "POT-Creation-Date: 2012-12-06 21:00+0100\n" "PO-Revision-Date: 2012-08-05 16:08+0100\n" "Last-Translator: Sebastian Ramacher \n" diff --git a/po/eo.po b/po/eo.po index 3c8fa17..17d214d 100644 --- a/po/eo.po +++ b/po/eo.po @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: zathura\n" -"Report-Msgid-Bugs-To: \n" +"Report-Msgid-Bugs-To: http://bugs.pwmt.org\n" "POT-Creation-Date: 2012-12-06 21:00+0100\n" "PO-Revision-Date: 2012-08-09 13:21+0000\n" "Last-Translator: norbux \n" diff --git a/po/es.po b/po/es.po index 1bdcbab..1ee2337 100644 --- a/po/es.po +++ b/po/es.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: zathura\n" -"Report-Msgid-Bugs-To: \n" +"Report-Msgid-Bugs-To: http://bugs.pwmt.org\n" "POT-Creation-Date: 2012-12-06 21:00+0100\n" "PO-Revision-Date: 2012-04-03 15:25+0000\n" "Last-Translator: Moritz Lipp \n" diff --git a/po/es_CL.po b/po/es_CL.po index f03d46d..6756f3d 100644 --- a/po/es_CL.po +++ b/po/es_CL.po @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: zathura\n" -"Report-Msgid-Bugs-To: \n" +"Report-Msgid-Bugs-To: http://bugs.pwmt.org\n" "POT-Creation-Date: 2012-12-06 21:00+0100\n" "PO-Revision-Date: 2012-04-03 15:26+0000\n" "Last-Translator: watsh1ken \n" diff --git a/po/et.po b/po/et.po index 64fd190..4379843 100644 --- a/po/et.po +++ b/po/et.po @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: zathura\n" -"Report-Msgid-Bugs-To: \n" +"Report-Msgid-Bugs-To: http://bugs.pwmt.org\n" "POT-Creation-Date: 2012-12-06 21:00+0100\n" "PO-Revision-Date: 2012-04-03 15:25+0000\n" "Last-Translator: Rivo Zängov \n" diff --git a/po/fr.po b/po/fr.po index ee0b777..4f1dbe3 100644 --- a/po/fr.po +++ b/po/fr.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: zathura\n" -"Report-Msgid-Bugs-To: \n" +"Report-Msgid-Bugs-To: http://bugs.pwmt.org\n" "POT-Creation-Date: 2012-12-06 21:00+0100\n" "PO-Revision-Date: 2012-12-06 11:48+0100\n" "Last-Translator: Benoît Knecht \n" diff --git a/po/it.po b/po/it.po index 0e9b5ce..862f180 100644 --- a/po/it.po +++ b/po/it.po @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: zathura\n" -"Report-Msgid-Bugs-To: \n" +"Report-Msgid-Bugs-To: http://bugs.pwmt.org\n" "POT-Creation-Date: 2012-12-06 21:00+0100\n" "PO-Revision-Date: 2012-06-20 14:58+0000\n" "Last-Translator: Sebastian Ramacher \n" diff --git a/po/pl.po b/po/pl.po index 9422f92..fcbcce6 100644 --- a/po/pl.po +++ b/po/pl.po @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: zathura\n" -"Report-Msgid-Bugs-To: \n" +"Report-Msgid-Bugs-To: http://bugs.pwmt.org\n" "POT-Creation-Date: 2012-12-06 21:00+0100\n" "PO-Revision-Date: 2012-04-03 16:07+0000\n" "Last-Translator: p \n" diff --git a/po/ru.po b/po/ru.po index 82e63b8..70328c0 100644 --- a/po/ru.po +++ b/po/ru.po @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: zathura\n" -"Report-Msgid-Bugs-To: \n" +"Report-Msgid-Bugs-To: http://bugs.pwmt.org\n" "POT-Creation-Date: 2012-12-06 21:00+0100\n" "PO-Revision-Date: 2012-06-20 14:58+0000\n" "Last-Translator: Sebastian Ramacher \n" diff --git a/po/ta_IN.po b/po/ta_IN.po index 9070b49..3ea5226 100644 --- a/po/ta_IN.po +++ b/po/ta_IN.po @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: zathura\n" -"Report-Msgid-Bugs-To: \n" +"Report-Msgid-Bugs-To: http://bugs.pwmt.org\n" "POT-Creation-Date: 2012-12-06 21:00+0100\n" "PO-Revision-Date: 2012-04-03 15:25+0000\n" "Last-Translator: mankand007 \n" diff --git a/po/tr.po b/po/tr.po index 7aa1524..45963ba 100644 --- a/po/tr.po +++ b/po/tr.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: zathura\n" -"Report-Msgid-Bugs-To: \n" +"Report-Msgid-Bugs-To: http://bugs.pwmt.org\n" "POT-Creation-Date: 2012-12-06 21:00+0100\n" "PO-Revision-Date: 2012-05-01 20:38+0000\n" "Last-Translator: hsngrms \n" diff --git a/po/uk_UA.po b/po/uk_UA.po index 2b78821..e158eb6 100644 --- a/po/uk_UA.po +++ b/po/uk_UA.po @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: zathura\n" -"Report-Msgid-Bugs-To: \n" +"Report-Msgid-Bugs-To: http://bugs.pwmt.org\n" "POT-Creation-Date: 2012-12-06 21:00+0100\n" "PO-Revision-Date: 2012-06-20 14:58+0000\n" "Last-Translator: Sebastian Ramacher \n" diff --git a/print.c b/print.c index b2d5b2b..b32e5b3 100644 --- a/print.c +++ b/print.c @@ -92,13 +92,13 @@ cb_print_draw_page(GtkPrintOperation* print_operation, GtkPrintContext* return; } - /* update statusbar */ + /* Update statusbar. */ char* tmp = g_strdup_printf("Printing %d...", page_number); girara_statusbar_item_set_text(zathura->ui.session, zathura->ui.statusbar.file, tmp); g_free(tmp); - /* render page */ + /* Get the page and cairo handle. */ cairo_t* cairo = gtk_print_context_get_cairo_context(context); zathura_page_t* page = zathura_document_get_page(zathura->document, page_number); if (cairo == NULL || page == NULL) { @@ -106,7 +106,8 @@ cb_print_draw_page(GtkPrintOperation* print_operation, GtkPrintContext* return; } - /* try to render the page with out a temporary surface */ + /* Try to render the page without a temporary surface. This only works with + * plugins that support rendering to any surface. */ girara_debug("printing page %d ...", page_number); render_lock(zathura->sync.render_thread); int err = zathura_page_render(page, cairo, true); @@ -115,8 +116,7 @@ cb_print_draw_page(GtkPrintOperation* print_operation, GtkPrintContext* return; } - /* we need a temporary cairo object since the cairo object from the print - * context doesn't have a width or height */ + /* Try to render the page on a temporary image surface. */ const gdouble width = gtk_print_context_get_width(context); const gdouble height = gtk_print_context_get_height(context); @@ -135,14 +135,14 @@ cb_print_draw_page(GtkPrintOperation* print_operation, GtkPrintContext* return; } - /* white background */ + /* Draw a white background. */ cairo_save(temp_cairo); cairo_set_source_rgb(temp_cairo, 1, 1, 1); cairo_rectangle(temp_cairo, 0, 0, page_width, page_height); cairo_fill(temp_cairo); cairo_restore(temp_cairo); - /* render the page to the temporary surface */ + /* Render the page to the temporary surface */ girara_debug("printing page %d ...", page_number); render_lock(zathura->sync.render_thread); err = zathura_page_render(page, temp_cairo, true); @@ -154,11 +154,11 @@ cb_print_draw_page(GtkPrintOperation* print_operation, GtkPrintContext* return; } - /* rescale */ + /* Rescale the page and keep the aspect ratio */ const gdouble scale = MIN(width / page_width, height / page_height); cairo_scale(cairo, scale, scale); - /* copy temporary surface */ + /* Blit temporary surface to original cairo object. */ cairo_set_source_surface(cairo, surface, 0.0, 0.0); cairo_paint(cairo); cairo_destroy(temp_cairo);