]> Pileus Git - ~andy/gtk/commitdiff
printing: Set new print operation settings before emitting custom-widget-apply signal
authorCarlos Garcia Campos <carlosgc@gnome.org>
Sun, 12 Dec 2010 11:54:47 +0000 (12:54 +0100)
committerCarlos Garcia Campos <carlosgc@gnome.org>
Mon, 20 Dec 2010 20:10:53 +0000 (21:10 +0100)
So that custom settings can be added from the custom-widget-apply
callback.

https://bugzilla.gnome.org/show_bug.cgi?id=637069

gtk/gtkprintoperation-unix.c

index 5eb770ec3c528f670b99f8b66cdc6210801606ee..3b620e16497c663be55437c48ce893e851b812ec 100644 (file)
@@ -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);
     }