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
This commit is contained in:

committed by
Carlos Garcia Campos

parent
e95f511143
commit
eb7f97bb9b
@ -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);
|
||||
|
Reference in New Issue
Block a user