diff options
author | Marek Kasik <mkasik@redhat.com> | 2009-07-10 11:28:31 +0200 |
---|---|---|
committer | Marek Kasik <mkasik@redhat.com> | 2009-07-10 11:28:31 +0200 |
commit | 0ef74c936f7a5b36a66ea828506b4b44e25a1998 (patch) | |
tree | cd3492286b53633ee7f9dd8fa692287e1119c950 /gtk/gtkprintoperation-private.h | |
parent | 6ca5430a74c86b448e96b64166d67b3268e24789 (diff) | |
download | gtk+-0ef74c936f7a5b36a66ea828506b4b44e25a1998.tar.gz |
Add paper size combo and orientation combo to print dialog
Paper size combo and orientation combo can be added by
gtk_print_operation_set_embed_page_setup_dialog() to GtkPrinUnixDialog
now. This function induce calling of
gtk_print_unix_dailog_set_embed_page_setup_dialog() after creation of
dialog. These two functions control embed-page-setup-dialog properties
in GtkPrintOperation and in GtkPrintUnixDialog.
There is also new function gtk_print_unix_dialog_get_page_setup_set()
which says whether page setup was set by user.
Selected page setup is stored as default page setup in
GtkPrintOperation.
New class is added, its name is GtkCustomPaperUnixDialog. The class
manages custom sizes. It is derived from GtkPageSetupUnixDialog's
CustomPaperDialog structure.
Page layout preview is modified, so, it shows dimensions of current
page setup (mm or inch - depends on locale). It also shows the name of
actual paper if page setup dialog is not embedded (paper size combo is
not visible).
gtk-demo is actualized to include this new feature.
Diffstat (limited to 'gtk/gtkprintoperation-private.h')
-rw-r--r-- | gtk/gtkprintoperation-private.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gtk/gtkprintoperation-private.h b/gtk/gtkprintoperation-private.h index 8c800eaea5..5e28007bee 100644 --- a/gtk/gtkprintoperation-private.h +++ b/gtk/gtkprintoperation-private.h @@ -56,6 +56,7 @@ struct _GtkPrintOperationPrivate guint is_sync : 1; guint support_selection : 1; guint has_selection : 1; + guint embed_page_setup : 1; GtkPageDrawingState page_drawing_state; |