summaryrefslogtreecommitdiff
path: root/demos/gtk-demo/printing.c
diff options
context:
space:
mode:
authorMarek Kasik <mkasik@redhat.com>2009-08-03 11:25:19 +0200
committerMarek Kasik <mkasik@redhat.com>2009-08-03 11:25:19 +0200
commit39b960216c91dba2af2730e0e49893af155b0bfc (patch)
tree76fe84e6d72db5c216497c99fcdd6c7524c1dc85 /demos/gtk-demo/printing.c
parentf29b9e2dafc458f88837e4484b729ed10b92dbb5 (diff)
downloadgtk+-39b960216c91dba2af2730e0e49893af155b0bfc.tar.gz
Add SVG support to GtkPrintBackendFile
This add support for printing to SVG 1.2 files (#357655).
Diffstat (limited to 'demos/gtk-demo/printing.c')
-rw-r--r--demos/gtk-demo/printing.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/demos/gtk-demo/printing.c b/demos/gtk-demo/printing.c
index 07c7ab2838..124eed905f 100644
--- a/demos/gtk-demo/printing.c
+++ b/demos/gtk-demo/printing.c
@@ -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";