[gtk/matthiasc/for-master: 4/4] widget-factory: Make the print dialog more functional
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/matthiasc/for-master: 4/4] widget-factory: Make the print dialog more functional
- Date: Sat, 13 Jun 2020 13:01:36 +0000 (UTC)
commit 818b7c44be97424d232c65b8417f6c0c2ff7512a
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Jun 13 08:59:21 2020 -0400
widget-factory: Make the print dialog more functional
Allow opening the papersize dialog.
demos/widget-factory/widget-factory.c | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/demos/widget-factory/widget-factory.c b/demos/widget-factory/widget-factory.c
index bcfe73ceab..abc5fd12ba 100644
--- a/demos/widget-factory/widget-factory.c
+++ b/demos/widget-factory/widget-factory.c
@@ -408,6 +408,8 @@ activate_print (GSimpleAction *action,
g_signal_connect (op, "draw-page", G_CALLBACK (print_operation_page), window);
g_signal_connect (op, "done", G_CALLBACK (print_operation_done), NULL);
+ gtk_print_operation_set_embed_page_setup (op, TRUE);
+
res = gtk_print_operation_run (op, GTK_PRINT_OPERATION_ACTION_PRINT_DIALOG, window, NULL);
if (res == GTK_PRINT_OPERATION_RESULT_IN_PROGRESS)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]