summaryrefslogtreecommitdiff
path: root/gtk/gtkprintoperation-unix.c
diff options
context:
space:
mode:
authorCarlos Garcia Campos <carlosgc@gnome.org>2009-04-07 19:02:48 +0200
committerCarlos Garcia Campos <carlosgc@gnome.org>2009-04-10 11:53:11 +0200
commit67d8ed9ed331faf9de20555b158cbba8cb4ff2da (patch)
tree27c2389529142b1119e1f9dc770d9ad2f25358f5 /gtk/gtkprintoperation-unix.c
parentd77156952dd117a11d80b1f1a8ee7dd7ec09b126 (diff)
downloadgtk+-67d8ed9ed331faf9de20555b158cbba8cb4ff2da.tar.gz
Send the print job title to the previewer
The previewer should know the print job title too, it could be included in the print settings file. Fixes bug #561345
Diffstat (limited to 'gtk/gtkprintoperation-unix.c')
-rw-r--r--gtk/gtkprintoperation-unix.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk/gtkprintoperation-unix.c b/gtk/gtkprintoperation-unix.c
index 875c5c0e25..6ec4ebdd8c 100644
--- a/gtk/gtkprintoperation-unix.c
+++ b/gtk/gtkprintoperation-unix.c
@@ -216,6 +216,8 @@ _gtk_print_operation_platform_backend_launch_preview (GtkPrintOperation *op,
page_setup = gtk_print_context_get_page_setup (op->priv->print_context);
gtk_page_setup_to_key_file (page_setup, key_file, NULL);
+ g_key_file_set_string (key_file, "Print Job", "title", op->priv->job_name);
+
data = g_key_file_to_data (key_file, &data_len, &error);
if (!data)
goto out;