summaryrefslogtreecommitdiff
path: root/gtk/gtkprintunixdialog.h
diff options
context:
space:
mode:
authorMarek Kasik <mkasik@redhat.com>2009-06-08 15:37:32 +0200
committerMarek Kasik <mkasik@redhat.com>2009-06-08 15:37:32 +0200
commita12a583c99982a4072cb3ac8ae969a9ebd5cbd69 (patch)
tree74fafbcf4791378162fb3da35070aa08a77edd90 /gtk/gtkprintunixdialog.h
parent9a4122a1302ae4d09610b3b86995095c877d8f95 (diff)
downloadgtk+-a12a583c99982a4072cb3ac8ae969a9ebd5cbd69.tar.gz
Add ability to print selection
Add a new radio button "Selection" to the print dialog. Its presence depends on calling of functions gtk_print_operation_set_support_selection() and gtk_print_dialog_unix_set_support_selection(). Sensitivity of the radio depends on calling of functions gtk_print_operation_set_has_selection() and gtk_print_dialog_unix_set_has_selection(). There are new properties GtkPrintUnixDialog::support-selection, GtkPrintUnixDialog::has-selection, GtkPrintOperation::support-selection and GtkPrintOperation::has-selection. Corresponding getters are gtk_print_dialog_unix_get_support_selection(), gtk_print_dialog_unix_get_has_selection(), gtk_print_operation_get_support_selection() and gtk_print_operation_get_has_selection(). Application has to set number of pages to which the selection will be formated in GtkPrintOperation::begin-print's callback by the gtk_print_operation_set_n_pages() function (bug #344519). There is also new property GtkPrintUnixDialog::manual-capabilities controled by gtk_print_unix_dialog_set_manual_capabilities() and gtk_print_unix_dialog_get_manual_capabilities().
Diffstat (limited to 'gtk/gtkprintunixdialog.h')
-rw-r--r--gtk/gtkprintunixdialog.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/gtk/gtkprintunixdialog.h b/gtk/gtkprintunixdialog.h
index c7a919f9dc..0d7efccfc3 100644
--- a/gtk/gtkprintunixdialog.h
+++ b/gtk/gtkprintunixdialog.h
@@ -83,6 +83,13 @@ void gtk_print_unix_dialog_add_custom_tab (GtkPrintUnixDialog
GtkWidget *tab_label);
void gtk_print_unix_dialog_set_manual_capabilities (GtkPrintUnixDialog *dialog,
GtkPrintCapabilities capabilities);
+GtkPrintCapabilities gtk_print_unix_dialog_get_manual_capabilities (GtkPrintUnixDialog *dialog);
+void gtk_print_unix_dialog_set_support_selection (GtkPrintUnixDialog *dialog,
+ gboolean support_selection);
+gboolean gtk_print_unix_dialog_get_support_selection (GtkPrintUnixDialog *dialog);
+void gtk_print_unix_dialog_set_has_selection (GtkPrintUnixDialog *dialog,
+ gboolean has_selection);
+gboolean gtk_print_unix_dialog_get_has_selection (GtkPrintUnixDialog *dialog);
G_END_DECLS