diff options
author | Carlos Garcia Campos <carlosgc@gnome.org> | 2010-12-12 12:54:47 +0100 |
---|---|---|
committer | Carlos Garcia Campos <carlosgc@gnome.org> | 2010-12-20 21:10:53 +0100 |
commit | 0c518a81b8a2c401405652b46ae46dafa66c0ca4 (patch) | |
tree | 3c96ea039cae5e864a5b0a9178836f54d3286445 /gtk/gtkprintoperation-unix.c | |
parent | 9552152dd9c4c51fcb2847fdd15e118dd3c363f1 (diff) | |
download | gtk+-0c518a81b8a2c401405652b46ae46dafa66c0ca4.tar.gz |
printing: Set new print operation settings before emitting custom-widget-apply signal
So that custom settings can be added from the custom-widget-apply
callback.
https://bugzilla.gnome.org/show_bug.cgi?id=637069
Diffstat (limited to 'gtk/gtkprintoperation-unix.c')
-rw-r--r-- | gtk/gtkprintoperation-unix.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gtk/gtkprintoperation-unix.c b/gtk/gtkprintoperation-unix.c index 5eb770ec3c..3b620e1649 100644 --- a/gtk/gtkprintoperation-unix.c +++ b/gtk/gtkprintoperation-unix.c @@ -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); } |