Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Marius
zathura
Commits
98510e74
Commit
98510e74
authored
Dec 07, 2012
by
Sebastian Ramacher
Browse files
Try printing to the cairo object first
parent
e6f77735
Changes
14
Hide whitespace changes
Inline
Side-by-side
po/cs.po
View file @
98510e74
...
...
@@ -4,8 +4,8 @@
msgid ""
msgstr ""
"Project-Id-Version: zathura\n"
"Report-Msgid-Bugs-To:
http://bugs.pwmt.org
\n"
"POT-Creation-Date: 2012-1
1-21 23:42
+0100\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2012-1
2-06 21:00
+0100\n"
"PO-Revision-Date: 2012-06-19 23:59+0200\n"
"Last-Translator: Martin Pelikan <pelikan@storkhole.cz>\n"
"Language-Team: pwmt.org <mail@pwmt.org>\n"
...
...
@@ -26,8 +26,8 @@ msgstr "Neplatný index: %s"
#: ../commands.c:35 ../commands.c:70 ../commands.c:97 ../commands.c:139
#: ../commands.c:253 ../commands.c:283 ../commands.c:309 ../commands.c:401
#: ../commands.c:522 ../shortcuts.c:456 ../shortcuts.c:10
2
0
#: ../shortcuts.c:10
4
9
#: ../commands.c:522 ../shortcuts.c:456 ../shortcuts.c:10
3
0
#: ../shortcuts.c:10
5
9
msgid "No document opened."
msgstr "Není otevřený žádný dokument."
...
...
@@ -412,7 +412,7 @@ msgstr "Zkopíruj obrázek"
msgid "Save image as"
msgstr "Ulož obrázek jako"
#: ../shortcuts.c:9
2
3
#: ../shortcuts.c:9
3
3
msgid "This document does not contain any index"
msgstr "Tenhle dokument neobsahuje žádné indexy"
...
...
po/de.po
View file @
98510e74
...
...
@@ -5,8 +5,8 @@
msgid ""
msgstr ""
"Project-Id-Version: zathura\n"
"Report-Msgid-Bugs-To:
http://bugs.pwmt.org
\n"
"POT-Creation-Date: 2012-1
1-21 23:42
+0100\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2012-1
2-06 21:00
+0100\n"
"PO-Revision-Date: 2012-08-05 16:08+0100\n"
"Last-Translator: Sebastian Ramacher <sebastian+dev@ramacher.at>\n"
"Language-Team: pwmt.org <mail@pwmt.org>\n"
...
...
@@ -28,8 +28,8 @@ msgstr "Ungültiger Index '%s' angegeben."
#: ../commands.c:35 ../commands.c:70 ../commands.c:97 ../commands.c:139
#: ../commands.c:253 ../commands.c:283 ../commands.c:309 ../commands.c:401
#: ../commands.c:522 ../shortcuts.c:456 ../shortcuts.c:10
2
0
#: ../shortcuts.c:10
4
9
#: ../commands.c:522 ../shortcuts.c:456 ../shortcuts.c:10
3
0
#: ../shortcuts.c:10
5
9
msgid "No document opened."
msgstr "Kein Dokument geöffnet."
...
...
@@ -417,7 +417,7 @@ msgstr "Bild kopieren"
msgid "Save image as"
msgstr "Bild speichern als"
#: ../shortcuts.c:9
2
3
#: ../shortcuts.c:9
3
3
msgid "This document does not contain any index"
msgstr "Dieses Dokument beinhaltet kein Inhaltsverzeichnis."
...
...
po/eo.po
View file @
98510e74
...
...
@@ -6,8 +6,8 @@
msgid ""
msgstr ""
"Project-Id-Version: zathura\n"
"Report-Msgid-Bugs-To:
http://bugs.pwmt.org
\n"
"POT-Creation-Date: 2012-1
1-21 23:42
+0100\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2012-1
2-06 21:00
+0100\n"
"PO-Revision-Date: 2012-08-09 13:21+0000\n"
"Last-Translator: norbux <manelsales@ono.com>\n"
"Language-Team: Esperanto (http://www.transifex.com/projects/p/zathura/"
...
...
@@ -30,8 +30,8 @@ msgstr "Nevalida indekso '%s' uzata."
#: ../commands.c:35 ../commands.c:70 ../commands.c:97 ../commands.c:139
#: ../commands.c:253 ../commands.c:283 ../commands.c:309 ../commands.c:401
#: ../commands.c:522 ../shortcuts.c:456 ../shortcuts.c:10
2
0
#: ../shortcuts.c:10
4
9
#: ../commands.c:522 ../shortcuts.c:456 ../shortcuts.c:10
3
0
#: ../shortcuts.c:10
5
9
msgid "No document opened."
msgstr "Neniu dokumento malfermita."
...
...
@@ -416,7 +416,7 @@ msgstr "Kopiu bildon"
msgid "Save image as"
msgstr "Savi bildojn kiel"
#: ../shortcuts.c:9
2
3
#: ../shortcuts.c:9
3
3
msgid "This document does not contain any index"
msgstr "Ĉi-tiu dokumento enhavas neniam indekson."
...
...
po/es.po
View file @
98510e74
...
...
@@ -5,8 +5,8 @@
msgid ""
msgstr ""
"Project-Id-Version: zathura\n"
"Report-Msgid-Bugs-To:
http://bugs.pwmt.org
\n"
"POT-Creation-Date: 2012-1
1-21 23:42
+0100\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2012-1
2-06 21:00
+0100\n"
"PO-Revision-Date: 2012-04-03 15:25+0000\n"
"Last-Translator: Moritz Lipp <mlq@pwmt.org>\n"
"Language-Team: Spanish (Castilian) (http://www.transifex.net/projects/p/"
...
...
@@ -29,8 +29,8 @@ msgstr "Índice invalido: '%s'."
#: ../commands.c:35 ../commands.c:70 ../commands.c:97 ../commands.c:139
#: ../commands.c:253 ../commands.c:283 ../commands.c:309 ../commands.c:401
#: ../commands.c:522 ../shortcuts.c:456 ../shortcuts.c:10
2
0
#: ../shortcuts.c:10
4
9
#: ../commands.c:522 ../shortcuts.c:456 ../shortcuts.c:10
3
0
#: ../shortcuts.c:10
5
9
msgid "No document opened."
msgstr "Ningún documento abierto."
...
...
@@ -417,7 +417,7 @@ msgstr "Copiar imagen"
msgid "Save image as"
msgstr "Salvar imagen como"
#: ../shortcuts.c:9
2
3
#: ../shortcuts.c:9
3
3
msgid "This document does not contain any index"
msgstr "Este documento no contiene ningún índice"
...
...
po/es_CL.po
View file @
98510e74
...
...
@@ -6,8 +6,8 @@
msgid ""
msgstr ""
"Project-Id-Version: zathura\n"
"Report-Msgid-Bugs-To:
http://bugs.pwmt.org
\n"
"POT-Creation-Date: 2012-1
1-21 23:42
+0100\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2012-1
2-06 21:00
+0100\n"
"PO-Revision-Date: 2012-04-03 15:26+0000\n"
"Last-Translator: watsh1ken <wat.sh1ken@gmail.com>\n"
"Language-Team: Spanish (Chile) (http://www.transifex.net/projects/p/zathura/"
...
...
@@ -30,8 +30,8 @@ msgstr "Índice invalido: '%s'."
#: ../commands.c:35 ../commands.c:70 ../commands.c:97 ../commands.c:139
#: ../commands.c:253 ../commands.c:283 ../commands.c:309 ../commands.c:401
#: ../commands.c:522 ../shortcuts.c:456 ../shortcuts.c:10
2
0
#: ../shortcuts.c:10
4
9
#: ../commands.c:522 ../shortcuts.c:456 ../shortcuts.c:10
3
0
#: ../shortcuts.c:10
5
9
msgid "No document opened."
msgstr "Ningún documento abierto."
...
...
@@ -417,7 +417,7 @@ msgstr "Copiar imagen"
msgid "Save image as"
msgstr ""
#: ../shortcuts.c:9
2
3
#: ../shortcuts.c:9
3
3
msgid "This document does not contain any index"
msgstr "Este document no contiene índice"
...
...
po/et.po
View file @
98510e74
...
...
@@ -6,8 +6,8 @@
msgid ""
msgstr ""
"Project-Id-Version: zathura\n"
"Report-Msgid-Bugs-To:
http://bugs.pwmt.org
\n"
"POT-Creation-Date: 2012-1
1-21 23:42
+0100\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2012-1
2-06 21:00
+0100\n"
"PO-Revision-Date: 2012-04-03 15:25+0000\n"
"Last-Translator: Rivo Zängov <eraser@eraser.ee>\n"
"Language-Team: Estonian (http://www.transifex.net/projects/p/zathura/"
...
...
@@ -30,8 +30,8 @@ msgstr ""
#: ../commands.c:35 ../commands.c:70 ../commands.c:97 ../commands.c:139
#: ../commands.c:253 ../commands.c:283 ../commands.c:309 ../commands.c:401
#: ../commands.c:522 ../shortcuts.c:456 ../shortcuts.c:10
2
0
#: ../shortcuts.c:10
4
9
#: ../commands.c:522 ../shortcuts.c:456 ../shortcuts.c:10
3
0
#: ../shortcuts.c:10
5
9
msgid "No document opened."
msgstr ""
...
...
@@ -416,7 +416,7 @@ msgstr "Kopeeri pilt"
msgid "Save image as"
msgstr ""
#: ../shortcuts.c:9
2
3
#: ../shortcuts.c:9
3
3
msgid "This document does not contain any index"
msgstr ""
...
...
po/fr.po
View file @
98510e74
...
...
@@ -8,8 +8,8 @@
msgid ""
msgstr ""
"Project-Id-Version: zathura\n"
"Report-Msgid-Bugs-To:
http://bugs.pwmt.org
\n"
"POT-Creation-Date: 2012-1
1-21 23:42
+0100\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2012-1
2-06 21:00
+0100\n"
"PO-Revision-Date: 2012-12-06 11:48+0100\n"
"Last-Translator: Benoît Knecht <benoit.knecht@gmail.com>\n"
"Language-Team: French (http://www.transifex.com/projects/p/zathura/language/"
...
...
@@ -32,8 +32,8 @@ msgstr "Index invalide : '%s'"
#: ../commands.c:35 ../commands.c:70 ../commands.c:97 ../commands.c:139
#: ../commands.c:253 ../commands.c:283 ../commands.c:309 ../commands.c:401
#: ../commands.c:522 ../shortcuts.c:456 ../shortcuts.c:10
2
0
#: ../shortcuts.c:10
4
9
#: ../commands.c:522 ../shortcuts.c:456 ../shortcuts.c:10
3
0
#: ../shortcuts.c:10
5
9
msgid "No document opened."
msgstr "Aucun document ouvert."
...
...
@@ -219,8 +219,8 @@ msgstr "Recoloriser les pages"
#: ../config.c:172
msgid "When recoloring keep original hue and adjust lightness only"
msgstr ""
"Lors de la recoloration garder la teinte d'origine et ajuster "
"
seulement la
luminosité"
"Lors de la recoloration garder la teinte d'origine et ajuster
seulement la
"
"luminosité"
#: ../config.c:174
msgid "Wrap scrolling"
...
...
@@ -420,7 +420,7 @@ msgstr "Copier l'image"
msgid "Save image as"
msgstr "Enregistrer l'image sous"
#: ../shortcuts.c:9
2
3
#: ../shortcuts.c:9
3
3
msgid "This document does not contain any index"
msgstr "Ce document ne contient pas d'index"
...
...
po/it.po
View file @
98510e74
...
...
@@ -6,8 +6,8 @@
msgid ""
msgstr ""
"Project-Id-Version: zathura\n"
"Report-Msgid-Bugs-To:
http://bugs.pwmt.org
\n"
"POT-Creation-Date: 2012-1
1-21 23:42
+0100\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2012-1
2-06 21:00
+0100\n"
"PO-Revision-Date: 2012-06-20 14:58+0000\n"
"Last-Translator: Sebastian Ramacher <sebastian+dev@ramacher.at>\n"
"Language-Team: Italian (http://www.transifex.com/projects/p/zathura/language/"
...
...
@@ -30,8 +30,8 @@ msgstr "Indice inserito '%s' non valido."
#: ../commands.c:35 ../commands.c:70 ../commands.c:97 ../commands.c:139
#: ../commands.c:253 ../commands.c:283 ../commands.c:309 ../commands.c:401
#: ../commands.c:522 ../shortcuts.c:456 ../shortcuts.c:10
2
0
#: ../shortcuts.c:10
4
9
#: ../commands.c:522 ../shortcuts.c:456 ../shortcuts.c:10
3
0
#: ../shortcuts.c:10
5
9
msgid "No document opened."
msgstr "Nessun documento aperto."
...
...
@@ -416,7 +416,7 @@ msgstr "Copia immagine"
msgid "Save image as"
msgstr ""
#: ../shortcuts.c:9
2
3
#: ../shortcuts.c:9
3
3
msgid "This document does not contain any index"
msgstr "Questo documento non contiene l' indice"
...
...
po/pl.po
View file @
98510e74
...
...
@@ -6,8 +6,8 @@
msgid ""
msgstr ""
"Project-Id-Version: zathura\n"
"Report-Msgid-Bugs-To:
http://bugs.pwmt.org
\n"
"POT-Creation-Date: 2012-1
1-21 23:42
+0100\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2012-1
2-06 21:00
+0100\n"
"PO-Revision-Date: 2012-04-03 16:07+0000\n"
"Last-Translator: p <poczciwiec@gmail.com>\n"
"Language-Team: Polish (http://www.transifex.net/projects/p/zathura/language/"
...
...
@@ -31,8 +31,8 @@ msgstr "Nieprawidłowy indeks: %s"
#: ../commands.c:35 ../commands.c:70 ../commands.c:97 ../commands.c:139
#: ../commands.c:253 ../commands.c:283 ../commands.c:309 ../commands.c:401
#: ../commands.c:522 ../shortcuts.c:456 ../shortcuts.c:10
2
0
#: ../shortcuts.c:10
4
9
#: ../commands.c:522 ../shortcuts.c:456 ../shortcuts.c:10
3
0
#: ../shortcuts.c:10
5
9
msgid "No document opened."
msgstr "Nie otwarto żadnego pliku"
...
...
@@ -417,7 +417,7 @@ msgstr "Skopiuj obrazek"
msgid "Save image as"
msgstr "Zapisz obrazek jako"
#: ../shortcuts.c:9
2
3
#: ../shortcuts.c:9
3
3
msgid "This document does not contain any index"
msgstr "Dokument nie zawiera indeksu"
...
...
po/ru.po
View file @
98510e74
...
...
@@ -6,8 +6,8 @@
msgid ""
msgstr ""
"Project-Id-Version: zathura\n"
"Report-Msgid-Bugs-To:
http://bugs.pwmt.org
\n"
"POT-Creation-Date: 2012-1
1-21 23:42
+0100\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2012-1
2-06 21:00
+0100\n"
"PO-Revision-Date: 2012-06-20 14:58+0000\n"
"Last-Translator: Sebastian Ramacher <sebastian+dev@ramacher.at>\n"
"Language-Team: Russian (http://www.transifex.com/projects/p/zathura/language/"
...
...
@@ -31,8 +31,8 @@ msgstr "Получен неверный индекс %s"
#: ../commands.c:35 ../commands.c:70 ../commands.c:97 ../commands.c:139
#: ../commands.c:253 ../commands.c:283 ../commands.c:309 ../commands.c:401
#: ../commands.c:522 ../shortcuts.c:456 ../shortcuts.c:10
2
0
#: ../shortcuts.c:10
4
9
#: ../commands.c:522 ../shortcuts.c:456 ../shortcuts.c:10
3
0
#: ../shortcuts.c:10
5
9
msgid "No document opened."
msgstr "Документ не открыт"
...
...
@@ -417,7 +417,7 @@ msgstr "Скопировать изображение"
msgid "Save image as"
msgstr ""
#: ../shortcuts.c:9
2
3
#: ../shortcuts.c:9
3
3
msgid "This document does not contain any index"
msgstr "В документе нету индекса"
...
...
po/ta_IN.po
View file @
98510e74
...
...
@@ -6,8 +6,8 @@
msgid ""
msgstr ""
"Project-Id-Version: zathura\n"
"Report-Msgid-Bugs-To:
http://bugs.pwmt.org
\n"
"POT-Creation-Date: 2012-1
1-21 23:42
+0100\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2012-1
2-06 21:00
+0100\n"
"PO-Revision-Date: 2012-04-03 15:25+0000\n"
"Last-Translator: mankand007 <mankand007@gmail.com>\n"
"Language-Team: Tamil (India) (http://www.transifex.net/projects/p/zathura/"
...
...
@@ -30,8 +30,8 @@ msgstr "கொடுக்கப்பட்ட index '%s' தவறு"
#: ../commands.c:35 ../commands.c:70 ../commands.c:97 ../commands.c:139
#: ../commands.c:253 ../commands.c:283 ../commands.c:309 ../commands.c:401
#: ../commands.c:522 ../shortcuts.c:456 ../shortcuts.c:10
2
0
#: ../shortcuts.c:10
4
9
#: ../commands.c:522 ../shortcuts.c:456 ../shortcuts.c:10
3
0
#: ../shortcuts.c:10
5
9
msgid "No document opened."
msgstr "எந்தக் ஆவணமும் திறக்கப்படவில்லை"
...
...
@@ -416,7 +416,7 @@ msgstr "படத்தை ஒரு பிரதியெடு"
msgid "Save image as"
msgstr ""
#: ../shortcuts.c:9
2
3
#: ../shortcuts.c:9
3
3
msgid "This document does not contain any index"
msgstr "இந்த ஆவணத்தில் எந்த index-ம் இல்லை"
...
...
po/tr.po
View file @
98510e74
...
...
@@ -7,8 +7,8 @@
msgid ""
msgstr ""
"Project-Id-Version: zathura\n"
"Report-Msgid-Bugs-To:
http://bugs.pwmt.org
\n"
"POT-Creation-Date: 2012-1
1-21 23:42
+0100\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2012-1
2-06 21:00
+0100\n"
"PO-Revision-Date: 2012-05-01 20:38+0000\n"
"Last-Translator: hsngrms <dead-bodies-everywhere@hotmail.com>\n"
"Language-Team: Turkish (http://www.transifex.net/projects/p/zathura/language/"
...
...
@@ -31,8 +31,8 @@ msgstr "Hatalı dizin '%s'"
#: ../commands.c:35 ../commands.c:70 ../commands.c:97 ../commands.c:139
#: ../commands.c:253 ../commands.c:283 ../commands.c:309 ../commands.c:401
#: ../commands.c:522 ../shortcuts.c:456 ../shortcuts.c:10
2
0
#: ../shortcuts.c:10
4
9
#: ../commands.c:522 ../shortcuts.c:456 ../shortcuts.c:10
3
0
#: ../shortcuts.c:10
5
9
msgid "No document opened."
msgstr "Açık belge yok."
...
...
@@ -417,7 +417,7 @@ msgstr "Resim kopyala"
msgid "Save image as"
msgstr ""
#: ../shortcuts.c:9
2
3
#: ../shortcuts.c:9
3
3
msgid "This document does not contain any index"
msgstr "Bu belge fihrist içermiyor"
...
...
po/uk_UA.po
View file @
98510e74
...
...
@@ -6,8 +6,8 @@
msgid ""
msgstr ""
"Project-Id-Version: zathura\n"
"Report-Msgid-Bugs-To:
http://bugs.pwmt.org
\n"
"POT-Creation-Date: 2012-1
1-21 23:42
+0100\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2012-1
2-06 21:00
+0100\n"
"PO-Revision-Date: 2012-06-20 14:58+0000\n"
"Last-Translator: Sebastian Ramacher <sebastian+dev@ramacher.at>\n"
"Language-Team: Ukrainian (Ukraine) (http://www.transifex.com/projects/p/"
...
...
@@ -31,8 +31,8 @@ msgstr "Вказано невірний індекс: %s"
#: ../commands.c:35 ../commands.c:70 ../commands.c:97 ../commands.c:139
#: ../commands.c:253 ../commands.c:283 ../commands.c:309 ../commands.c:401
#: ../commands.c:522 ../shortcuts.c:456 ../shortcuts.c:10
2
0
#: ../shortcuts.c:10
4
9
#: ../commands.c:522 ../shortcuts.c:456 ../shortcuts.c:10
3
0
#: ../shortcuts.c:10
5
9
msgid "No document opened."
msgstr "Документ не відкрито."
...
...
@@ -417,7 +417,7 @@ msgstr "Копіювати картинку"
msgid "Save image as"
msgstr ""
#: ../shortcuts.c:9
2
3
#: ../shortcuts.c:9
3
3
msgid "This document does not contain any index"
msgstr "Індекс відсутній в цьому документі"
...
...
print.c
View file @
98510e74
...
...
@@ -106,6 +106,15 @@ cb_print_draw_page(GtkPrintOperation* print_operation, GtkPrintContext*
return
;
}
/* try to render the page with out a temporary surface */
girara_debug
(
"printing page %d ..."
,
page_number
);
render_lock
(
zathura
->
sync
.
render_thread
);
int
err
=
zathura_page_render
(
page
,
cairo
,
true
);
render_unlock
(
zathura
->
sync
.
render_thread
);
if
(
err
==
ZATHURA_ERROR_OK
)
{
return
;
}
/* we need a temporary cairo object since the cairo object from the print
* context doesn't have a width or height */
const
gdouble
width
=
gtk_print_context_get_width
(
context
);
...
...
@@ -136,8 +145,14 @@ cb_print_draw_page(GtkPrintOperation* print_operation, GtkPrintContext*
/* render the page to the temporary surface */
girara_debug
(
"printing page %d ..."
,
page_number
);
render_lock
(
zathura
->
sync
.
render_thread
);
zathura_page_render
(
page
,
temp_cairo
,
true
);
err
=
zathura_page_render
(
page
,
temp_cairo
,
true
);
render_unlock
(
zathura
->
sync
.
render_thread
);
if
(
err
!=
ZATHURA_ERROR_OK
)
{
cairo_destroy
(
temp_cairo
);
cairo_surface_destroy
(
surface
);
gtk_print_operation_cancel
(
print_operation
);
return
;
}
/* rescale */
const
gdouble
scale
=
MIN
(
width
/
page_width
,
height
/
page_height
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment