1. 10 Jul, 2009 1 commit
    • Marek Kasik's avatar
      Add paper size combo and orientation combo to print dialog · 0ef74c93
      Marek Kasik authored
      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.
      0ef74c93
  2. 08 Jun, 2009 1 commit
    • Marek Kasik's avatar
      Add ability to print selection · a12a583c
      Marek Kasik authored
      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().
      a12a583c
  3. 13 May, 2009 1 commit
    • Marek Kasik's avatar
      Add ability to print in number-up mode for file backend and lpr backend · 91190ce2
      Marek Kasik authored
      GtkPrintOperation is now able to render multiple pages per sheet by its
      own. The most important changes are in these functions:
        * increment_page_sequence
        * prepare_data
        * common_render_page
        * print_pages_idle
      Patch also changes set of choices for 2 pages per sheet mode when
      landscape orientation is used to "Top to bottom" and "Bottom to top".
      91190ce2
  4. 21 Apr, 2009 1 commit
  5. 10 Apr, 2009 2 commits
  6. 16 Oct, 2008 1 commit
  7. 01 Jul, 2008 2 commits
    • Cody Russell's avatar
      Revert name change · 57223c9a
      Cody Russell authored
      svn path=/trunk/; revision=20724
      57223c9a
    • Matthias Clasen's avatar
      Handle failure to create temp file by returning NULL. · a7abdcf8
      Matthias Clasen authored
              * gtk/gtkprintoperation-unix.c
              (_gtk_print_operation_platform_backend_create_preview_surface):
              Handle failure to create temp file by returning NULL.
      
              * gtk/gtkprintoperation.c (gtk_print_operation_preview_handler):
              Return FALSE if surface creation fails.
      
              (print_pages): If the preiew signal is not handled, show an
              error dialog.
      
      
      svn path=/trunk/; revision=20715
      a7abdcf8
  8. 30 Jun, 2008 1 commit
    • Cody Russell's avatar
      Practically everything changed. · fce9c8b7
      Cody Russell authored
      2008-06-30  Cody Russell  <bratsche@gnome.org>
      
              * Practically everything changed.
      
              Change	all references	of GIMP	Toolkit	(and variations	of it)
              to GTK+	Toolkit, showing no mercy at all to our	beloved
      	ancestry. (#540529)
      
      
      svn path=/trunk/; revision=20709
      fce9c8b7
  9. 16 Jun, 2008 1 commit
  10. 21 May, 2008 1 commit
    • Matthias Clasen's avatar
      RH bug 204621 - "GtkPrint" asks for "Letter" size paper when "A4" size · 59ae44d0
      Matthias Clasen authored
              was chosen
      
              Patch by Marek Kasik.
      
              * gtk/gtk.symbols:
              * gtk/gtkprinter.[hc]: Add gtk_printer_get_default_page_size.
      
              * gtk/gtkprintbackend.[hc]: Add fallback implementation.
      
              * modules/printbackends/file/gtkprintbackendfile.c:
              * modules/printbackends/cups/gtkprintbackendcups.c: Implement
              get_default_page_size.
      
              * gtk/gtkpagesetupunixdialog.c: When selecting a different printer,
              select its default paper size.
      
              * gtk/gtkprintunixdialog.c: If no explicit page setup has been set,
              use the printer default.
      
              * gtk/gtkprintoperation-unix.c: Don't create an empty page setup
              if we don't have a default page setup.
      
      svn path=/trunk/; revision=20120
      59ae44d0
  11. 25 May, 2007 1 commit
  12. 29 Apr, 2007 3 commits
  13. 22 Mar, 2007 1 commit
  14. 10 Mar, 2007 1 commit
  15. 31 Dec, 2006 1 commit
    • Matthias Clasen's avatar
      Move a few settings to gtksettings.c to make sure they show up in the · 7979cd6a
      Matthias Clasen authored
      2006-12-30  Matthias Clasen  <mclasen@redhat.com>
      
              * gtk/gtkprintoperation-unix.c:
              * gtk/gtkprintbackend.c:
              * gtk/gtkfilechooserdefault.c:
              * gtk/gtksettings.c: Move a few settings to gtksettings.c
              to make sure they show up in the docs.  (#365364, Christian
              Persch)
      
      
      
      svn path=/trunk/; revision=16992
      7979cd6a
  16. 22 Dec, 2006 1 commit
  17. 10 Sep, 2006 1 commit
  18. 31 Aug, 2006 1 commit
  19. 10 Jul, 2006 1 commit
  20. 30 Jun, 2006 1 commit
  21. 21 Jun, 2006 1 commit
    • Matthias Clasen's avatar
      Apply a patch by John Palmieri to use buffered io using GIOChannels, clean · be8f3c72
      Matthias Clasen authored
      2006-06-21  Matthias Clasen  <mclasen@redhat.com>
      
      	Apply a patch by John Palmieri to use buffered io using
      	GIOChannels, clean up error handling and support Cups 1.2
      	api in the printing code.
      
      	* acconfig.h:
      	* configure.in: Detect Cups 1.2
      
      	* gtk/gtkdebug.h:
      	* gtk/gtkmain.c: Add a printing debug key.
      
      	* gtk/gtkprintbackend.[hc]: Remove the GError parameter from
      	gtk_print_backend_print_stream, and take a  GIOChannel instead
      	of an fd.
      
      	* gtk/gtkprinter-private.h:
      	* gtk/gtkprinter.c: Replace the fd parameter of
      	_gtk_printer_create_cairo_surface by a GIOChannel.
      
      	* gtk/gtkprintjob.[hc]: Remove the GError parameter from
      	gtk_print_job_send and make it return void.
      
      	* gtk/gtkprintoperation-unix.c:
      	* gtk/gtkprintjob.c: Adjust callers, add some debugging support.
      
      	* modules/printbackends/Makefile.am: Fix DIST_SUBDIRS.
      
      	* modules/printbackends/cups/Makefile.am:
      	* modules/printbackends/lpr/Makefile.am: Add debug CFLAGS.
      
      	* modules/printbackends/cups/gtkcupsutils.[hc]:
      	* modules/printbackends/cups/gtkprintbackendcups.c:
      	* modules/printbackends/file/gtkprintbackendfile.c:
      	* modules/printbackends/lpr/gtkprintbackendfile.c: Adapt to
      	the GIOChannel and GError changes, add debug output
      be8f3c72
  22. 19 Jun, 2006 1 commit
  23. 16 Jun, 2006 5 commits
  24. 11 Jun, 2006 1 commit
  25. 08 Jun, 2006 4 commits
    • Matthias Clasen's avatar
      Don't include gtkprinter-private.h here. · 480803d5
      Matthias Clasen authored
      2006-06-08  Matthias Clasen  <mclasen@redhat.com>
      
      	* gtk/gtkprintbackend.h: Don't include gtkprinter-private.h here.
      
      	* gtk/gtkprintunixdialog.c:
      	* gtk/gtkprintoperation-unix.c:
      	* gtk/gtkprintjob.c:
      	* gtk/gtkprintbackend.c: Instead include it here.
      
      	* gtk/gtk.symbols:
      	* gtk/gtkprintoperation.h:
      	* gtk/gtkprintoperation.c: Rename pdf_target to export_filename.
      480803d5
    • Matthias Clasen's avatar
      Get rid of GTK_PRINT_OPERATION_RESULT_PREVIEW. · 49e88d89
      Matthias Clasen authored
      2006-06-08  Matthias Clasen  <mclasen@redhat.com>
      
      	* gtk/gtkprintoperation.h (GtkPrintOperationResult): Get
      	rid of GTK_PRINT_OPERATION_RESULT_PREVIEW.
      
      	* gtk/gtkprintoperation-unix.c:
      	* gtk/gtkprintoperation.c: Update all users.
      49e88d89
    • Alexander Larsson's avatar
      Fix up unix fallout from previous change. · fd3b835e
      Alexander Larsson authored
      2006-06-08  Alexander Larsson  <alexl@redhat.com>
      
      	* gtk/gtkprintoperation-unix.c (finish_print):
      	Fix up unix fallout from previous change.
      fd3b835e
    • Alexander Larsson's avatar
      Update windows to build with new APIs and first cut at preview work. · 79041f07
      Alexander Larsson authored
      2006-06-08  Alexander Larsson  <alexl@redhat.com>
      
      	* gtk/gtkprintoperation-win32.c:
      	Update windows to build with new APIs and first cut
      	at preview work.
      
      	* gtk/gtkprintoperation-private.h:
      	* gtk/gtkprintoperation-unix.c:
      	* gtk/gtkprintoperation.c
      	Various updates needed when making the preview work on win32.
      
      	* tests/print-editor.c:
      	Print, don't preview.
      79041f07
  26. 07 Jun, 2006 1 commit
    • Alexander Larsson's avatar
      Clean up APIs: Make async a setting instead of separate calls. Combine · 9bea3859
      Alexander Larsson authored
      2006-06-07  Alexander Larsson  <alexl@redhat.com>
      
      	* gtk/gtk.symbols:
      	* gtk/gtkprintoperation-private.h:
      	* gtk/gtkprintoperation-unix.c:
      	* gtk/gtkprintoperation.[ch]:
      	Clean up APIs:
      	Make async a setting instead of separate calls.
      	Combine settings like show_dialog, show_preview and pdf_target into
      	an action enum that you pass to gtk_print_dialog_run().
      
      	* tests/print-editor.c:
      	* tests/testnouiprint.c:
      	* tests/testprint.c:
      	* demos/gtk-demo/printing.c:
      	Update to new APIs
      9bea3859
  27. 03 Jun, 2006 2 commits
  28. 02 Jun, 2006 1 commit
    • Alexander Larsson's avatar
      Add gtkprintoperationpreview.[ch] Set default preview command. Hardcoded · fad69ba0
      Alexander Larsson authored
      2006-06-02  Alexander Larsson  <alexl@redhat.com>
      
      	* gtk/Makefile.am:
      	Add gtkprintoperationpreview.[ch]
      	Set default preview command. Hardcoded for now.
      
      	* gtk/gtkmarshalers.list:
      	Add BOOLEAN:OBJECT,OBJECT,OBJECT
      
      	* gtk/gtkprintbackend.c:
      	Add preview command property.
      
      	* gtk/gtkprintcontext.[ch]:
      	Make less dependent on PrintOperation for output settings
      	Externally set cairo_t and dpi. Resettable.
      	Create fontmap without metrics hinting (so that print preview
      	text layout doesn't depend on zoom level).
      
      	* gtk/gtkprintoperation-private.h:
      	* gtk/gtkprintoperation-unix.c:
      	* gtk/gtkprintoperation.[ch]:
      	Initial work on print preview API and default implementation
      	using an external preview app.
      
      	* gtk/gtkprintoperation-win32.c:
      	Some needed updates. Not done, needs more work.
      
      	* gtk/gtkprintoperationpreview.[ch]:
      	New interface used in print preview api.
      
      	* gtk/gtkprintunixdialog.c:
      	Add print preview dialog.
      
      	* tests/print-editor.c:
      	Test using an custom print preview widget.
      fad69ba0