Add SVG support to GtkPrintBackendFile

This add support for printing to SVG 1.2 files (#357655).
This commit is contained in:
Marek Kasik
2009-08-03 11:25:19 +02:00
parent f29b9e2daf
commit 39b960216c
2 changed files with 52 additions and 8 deletions

View File

@ -174,6 +174,8 @@ do_printing (GtkWidget *do_widget)
dir = g_get_home_dir ();
if (g_strcmp0 (gtk_print_settings_get (settings, GTK_PRINT_SETTINGS_OUTPUT_FILE_FORMAT), "ps") == 0)
ext = ".ps";
else if (g_strcmp0 (gtk_print_settings_get (settings, GTK_PRINT_SETTINGS_OUTPUT_FILE_FORMAT), "svg") == 0)
ext = ".svg";
else
ext = ".pdf";