summaryrefslogtreecommitdiff
path: root/gtk/gtkprintunixdialog.c
diff options
context:
space:
mode:
authorCarlos Garcia Campos <carlosgc@gnome.org>2007-05-28 10:41:09 +0000
committerCarlos Garcia Campos <carlosgc@src.gnome.org>2007-05-28 10:41:09 +0000
commiteb7f97bb9bda3daf3b09f3035f10f6719749e69f (patch)
tree2a5306e0dd380c6349174dd910f41cdc2c8cd527 /gtk/gtkprintunixdialog.c
parente95f511143dc2c29ab13be04ed366047e1a4545d (diff)
downloadgtk+-eb7f97bb9bda3daf3b09f3035f10f6719749e69f.tar.gz
Add new capability GTK_PRINT_CAPABILITY_NUMBER_UP.
2007-05-28 Carlos Garcia Campos <carlosgc@gnome.org> * gtk/gtkprinter.[ch]: Add new capability GTK_PRINT_CAPABILITY_NUMBER_UP. * docs/reference/gtk/tmpl/gtkprintunixdialog.sgml: * gtk/gtkprintunixdialog.c: (update_dialog_from_capabilities): * modules/printbackends/file/gtkprintbackendfile.c: (file_printer_get_options), (file_printer_get_settings_from_options): * modules/printbackends/cups/gtkprintbackendcups.c: (cups_printer_get_capabilities): Add a new print capability to specify whether print dialog will offer printing multiple pages per sheet. (#398414) svn path=/trunk/; revision=17963
Diffstat (limited to 'gtk/gtkprintunixdialog.c')
-rw-r--r--gtk/gtkprintunixdialog.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk/gtkprintunixdialog.c b/gtk/gtkprintunixdialog.c
index 8606d8a8dd..114c6cf419 100644
--- a/gtk/gtkprintunixdialog.c
+++ b/gtk/gtkprintunixdialog.c
@@ -1058,6 +1058,8 @@ update_dialog_from_capabilities (GtkPrintUnixDialog *dialog)
caps & GTK_PRINT_CAPABILITY_REVERSE);
gtk_widget_set_sensitive (priv->scale_spin,
caps & GTK_PRINT_CAPABILITY_SCALE);
+ gtk_widget_set_sensitive (GTK_WIDGET (priv->pages_per_sheet),
+ caps & GTK_PRINT_CAPABILITY_NUMBER_UP);
if (caps & GTK_PRINT_CAPABILITY_PREVIEW)
gtk_widget_show (priv->preview_button);