Commit 0c518a81 authored by Carlos Garcia Campos's avatar Carlos Garcia Campos
Browse files

printing: Set new print operation settings before emitting custom-widget-apply signal

So that custom settings can be added from the custom-widget-apply
parent 9552152d
......@@ -633,7 +633,11 @@ handle_print_response (GtkWidget *dialog,
settings = gtk_print_unix_dialog_get_settings (GTK_PRINT_UNIX_DIALOG (pd));
page_setup = gtk_print_unix_dialog_get_page_setup (GTK_PRINT_UNIX_DIALOG (pd));
page_setup_set = gtk_print_unix_dialog_get_page_setup_set (GTK_PRINT_UNIX_DIALOG (pd));
/* Set new print settings now so that custom-widget options
* can be added to the settings in the callback
gtk_print_operation_set_print_settings (rdata->op, settings);
g_signal_emit_by_name (rdata->op, "custom-widget-apply", rdata->op->priv->custom_widget);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment