mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 10:50:10 +00:00
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
This commit is contained in:
parent
d77156952d
commit
67d8ed9ed3
@ -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);
|
page_setup = gtk_print_context_get_page_setup (op->priv->print_context);
|
||||||
gtk_page_setup_to_key_file (page_setup, key_file, NULL);
|
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);
|
data = g_key_file_to_data (key_file, &data_len, &error);
|
||||||
if (!data)
|
if (!data)
|
||||||
goto out;
|
goto out;
|
||||||
|
Loading…
Reference in New Issue
Block a user