1. 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
  2. 12 Feb, 2008 1 commit
  3. 28 Dec, 2007 1 commit
  4. 28 May, 2007 1 commit
    • Carlos Garcia Campos's avatar
      Add new capability GTK_PRINT_CAPABILITY_NUMBER_UP. · eb7f97bb
      Carlos Garcia Campos authored
      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
      eb7f97bb
  5. 26 May, 2007 3 commits
  6. 30 Apr, 2007 1 commit
    • Christian Persch's avatar
      Make gtk_printer_get_capabilities public, and move the · be87e9a8
      Christian Persch authored
      2007-04-30  Christian Persch  <chpe@gnome.org>
      
      	* docs/reference/gtk/gtk-sections.txt:
      	* gtk/gtk.symbols:
      	* gtk/gtkprinter-private.h:
      	* gtk/gtkprinter.c: (gtk_printer_get_capabilities),
      	(gtk_print_capabilities_get_type):
      	* gtk/gtkprinter.h:
      	* gtk/gtkprintunixdialog.c: (selected_printer_changed):
      	Make gtk_printer_get_capabilities public, and move the
      	GtkPrintCapabilities definition to gtkprinter.h. Bug #390437.
      
      svn path=/trunk/; revision=17746
      be87e9a8
  7. 29 Apr, 2007 1 commit
    • Matthias Clasen's avatar
      Make gtk_printer_has_details() and gtk_printer_request_details() public. · bcbbbe51
      Matthias Clasen authored
      2007-04-29  Matthias Clasen  <mclasen@redhat.com>
      
              * gtk/gtk.symbols:
              * gtk/gtkprinter-private.h:
              * gtk/gtkprinter.[hc]: Make gtk_printer_has_details() and
              gtk_printer_request_details() public.
      
              * gtk/gtkpagesetupunixdialog.c:
              * gtk/gtkprintunixdialog.c: Update callers.  (#389203,
              Christian Persch)
      
      
      
      svn path=/trunk/; revision=17690
      bcbbbe51
  8. 24 Dec, 2006 1 commit
    • Christian Persch's avatar
      Make gtk_printer_list_papers public. Bug #345587. · 4f5e5b48
      Christian Persch authored
      2006-12-24  Christian Persch  <chpe@cvs.gnome.org>
      
      	* docs/reference/gtk/gtk-sections.txt:
      	* gtk/gtk.symbols:
      	* gtk/gtkpagesetupunixdialog.c: (fill_paper_sizes_from_printer):
      	* gtk/gtkprinter-private.h:
      	* gtk/gtkprinter.c: (gtk_printer_list_papers):
      	* gtk/gtkprinter.h: Make gtk_printer_list_papers public. Bug #345587.
      4f5e5b48
  9. 30 Jun, 2006 1 commit
  10. 29 Jun, 2006 1 commit
    • Matthias Clasen's avatar
      Documentation additions and fixes. · f8f93845
      Matthias Clasen authored
      2006-06-28  Matthias Clasen  <mclasen@redhat.com>
      
              * gtk/gtkprinter.c:
              * gtk/gtkprintunixdialog.c:
              * gtk/gtkprintoperationpreview.c:
              * gtk/gtkprintcontext.c (gtk_print_context_set_cairo_context):
              * gtk/gtklabel.c (gtk_label_set_line_wrap_mode):
              * gtk/gtkentry.c (gtk_entry_new):
              * gtk/gtkprintoperation.c (gtk_print_operation_set_custom_tab_label):
              * gtk/gtkclipboard.c (gtk_clipboard_wait_for_rich_text): Documentation
              additions and fixes.
      
              * gtk/gtkaspectframe.h:
              * gtk/gtkaboutdialog.c:
              * gtk/gtkcalendar.c:
              * gtk/gtkinputdialog.c:
              * gtk/gtk.symbols: Remove unnecessary includes.
      
              * gtk/gtkprogress.[hc]:
              * gtk/gtkitemfactory.[hc]: Don't unnecessarily use GTK_COMPILATION,
              remove unnecessary includes.
      f8f93845
  11. 25 Jun, 2006 1 commit
  12. 22 Jun, 2006 1 commit
  13. 21 Jun, 2006 2 commits
    • 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
    • Matthias Clasen's avatar
      cleanup · a4290e70
      Matthias Clasen authored
      a4290e70
  14. 19 Jun, 2006 2 commits
    • Matthias Clasen's avatar
      Forgotten files · 7969d88c
      Matthias Clasen authored
      7969d88c
    • Matthias Clasen's avatar
      Add a capabilities argument to the printer_get_options method and to the · 7a44ce33
      Matthias Clasen authored
      2006-06-19  Matthias Clasen  <mclasen@redhat.com>
      
      	* gtk/gtkprinter-private.h:
      	* gtk/gtkprinter.c (_gtk_printer_get_options):
      	* gtk/gtkprintbackend.h: Add a capabilities argument to the
      	printer_get_options method and to the _gtk_printer_get_options
      	function
      
      	* modules/printbackends/lpr/gtkprintbackendlpr.c
      	(lpr_printer_get_options):
      	* modules/printbackends/pdf/gtkprintbackendpdf.c
      	(pdf_printer_get_options):
      	* modules/printbackends/cups/gtkprintbackendcups.c
      	(cups_printer_get_options):
      	* gtk/gtkprintunixdialog.c (selected_printer_changed): Adjust
      	callers and implementations.
      7a44ce33
  15. 16 Jun, 2006 1 commit
    • Matthias Clasen's avatar
      Add a GtkPrintSettings parameter to the printer_create_cairo_surface · 956bcb43
      Matthias Clasen authored
      2006-06-16  Matthias Clasen  <mclasen@redhat.com>
      
      	* gtk/gtkprintbackend.h: Add a GtkPrintSettings parameter to the
      	printer_create_cairo_surface method.
      
      	* modules/printbackends/pdf/gtkprintbackendpdf.c:
      	* modules/printbackends/cups/gtkprintbackendcups.c:
      	* modules/printbackends/lpr/gtkprintbackendlpr.c:
      	* gtk/gtkprinter.c (_gtk_printer_create_cairo_surface):
      	* gtk/gtkprinter-private.h:
      	* gtk/gtkprintjob.c (gtk_print_job_get_surface): Adapt all users.
      956bcb43
  16. 12 Jun, 2006 1 commit
    • Matthias Clasen's avatar
      Use gtk_printer_accepts_ps here. · 809c8d56
      Matthias Clasen authored
      2006-06-12  Matthias Clasen  <mclasen@redhat.com>
      
      	* gtk/gtkprintunixdialog.c (is_printer_active): Use
      	gtk_printer_accepts_ps here.
      
      	* modules/printbackends/pdf/gtkprintbackendpdf.c (gtk_print_backend_pdf_init):
      	Mark the virtual "Print to PDF" printer as not accepting PS.
      
      	* gtk/gtk.symbols:
      	* gtk/gtkprinter.h:
      	* gtk/gtkprinter.c: Add two new properties accepts-pdf and
      	accepts-ps (with getters) to allow learning supported formats.
      809c8d56
  17. 24 May, 2006 1 commit
    • Alexander Larsson's avatar
      Add gtk_print_unix_dialog_set_manual_capabilities that controls what · 70376f28
      Alexander Larsson authored
      2006-05-24  Alexander Larsson  <alexl@redhat.com>
      
      	* gtk/gtk.symbols:
      	* gtk/gtkprintunixdialog.[ch]:
      	Add gtk_print_unix_dialog_set_manual_capabilities that controls
      	what widgets to enable in the dialog depending on the apps
      	capabilities.
      
      	* gtk/gtkprintbackend.[ch]:
      	* gtk/gtkprinter-private.h:
      	* gtk/gtkprinter.c:
      	* gtk/gtkprintjob.h:
      	Add printer_get_capabilities to backend.
      	Move some fallback calls to the printbackend base class.
      
      	* gtk/gtkprintoperation-unix.c:
      	Set manual capabilities
      
      	* modules/printbackends/cups/gtkprintbackendcups.c:
      	Implement get_capabilities
      
      	* modules/printbackends/lpr/gtkprintbackendlpr.c:
      	* modules/printbackends/pdf/gtkprintbackendpdf.c:
      	Move some methods to baseclass.
      70376f28
  18. 22 May, 2006 1 commit
    • Matthias Clasen's avatar
      Don't return values from void functions. · 2606a4eb
      Matthias Clasen authored
      2006-05-22  Matthias Clasen  <mclasen@redhat.com>
      
      	* gtk/gtkprinter.c (_gtk_printer_prepare_for_print)
      	(_gtk_printer_get_settings_from_options)
      	(_gtk_printer_request_details): Don't return values from void
      	functions.
      
      	* gtk/gtkrecentchooserutils.c (delegate_unselect_uri): Don't
      	return a value from a void function.
      
      	* gtk/gtkfilesystem.c (gtk_file_system_cancel_operation): Don't
      	return a value from a void function.  Also, don't put
      	semicolons behind G_DEFINE_TYPE. (#342543)
      2606a4eb
  19. 16 May, 2006 1 commit
    • Matthias Clasen's avatar
      Cosmetic cleanups. · dfbaef6b
      Matthias Clasen authored
      
      	* gtk/gtkprinter.c (gtk_printer_class_init):
      	* gtk/gtkprintjob.c (gtk_print_job_class_init):
      	* gtk/gtkprintoperation.c (gtk_print_operation_class_init):
      	Cosmetic cleanups.
      dfbaef6b
  20. 14 May, 2006 1 commit
  21. 04 May, 2006 1 commit
    • Alexander Larsson's avatar
      Added new symbols · c36d8f3c
      Alexander Larsson authored
      2006-05-04  Alexander Larsson  <alexl@redhat.com>
      
      	* gtk/gtk.symbols:
      	Added new symbols
      
      	* gtk/gtkpagesetupunixdialog.c:
      	* gtk/gtkprintunixdialog.c:
      	Destroy backends when finalizing dialogs.
      	Fix printer leak in selected_printer_changed.
      
      	* gtk/gtkprintbackend.[ch]:
      	Convert from interface to baseclass.
      	Move printer hashtable here so that the baseclass can handle
      	the slightly complicated ownership model.
      	Add gtk_print_backend_destroy which runs the dispose method,
      	causing the ref-cycles between the backend and its printers
      	to be broken.
      	Add gtk_print_backend_unref_at_idle().
      
      	* gtk/gtkprinter.[ch]:
      	GtkPrinter objects now ref their backend so that its always
      	availible, since its needed for the printer object to work.
      	This causes a reference-cycle that is broken using
      	gtk_print_backend_destroy.
      	Add gtk_printer_compare.
      
      	* gtk/gtkprintoperation-private.h:
      	* gtk/gtkprintoperation-unix.c:
      	* gtk/gtkprintoperation.c:
      	Implement !show_dialog for unix.
      	Make sure the print data is fully spooled before returning
      	from a sync run_dialog.
      
      
      	* modules/printbackends/cups/gtkcupsutils.[ch]:
      	Add gtk_cups_request_ipp_add_strings
      
      	* modules/printbackends/cups/gtkprintbackendcups.c:
      	* modules/printbackends/cups/gtkprintercups.c:
      	* modules/printbackends/lpr/gtkprintbackendlpr.c:
      	* modules/printbackends/pdf/gtkprintbackendpdf.c:
      	Convert backends to derive instead of implementing interface.
      	Move common code into baseclass.
      	CUPS:
      	  Remove the printer polling in dispose, not finalize.
      	  In the cups watch, remove the backend at idle instead of
      	  immediately, since the unref can cause the module to be unloaded.
      	  Limit the number of printer attributes requested
      	  Get printer uri in initial printer listing so that we can use
      	  the printer object immediately.
      
      	* tests/Makefile.am:
      	* tests/testnouiprint.c:
      	Add testcase for !show_dialog.
      c36d8f3c
  22. 02 May, 2006 2 commits
    • Matthias Clasen's avatar
      broken pipe · 99677a97
      Matthias Clasen authored
      99677a97
    • Christian Persch's avatar
      Use a priv variable when accessing priv multiple times in the same · 061f2528
      Christian Persch authored
      2006-05-02  Christian Persch  <chpe@cvs.gnome.org>
      
      	* gtk/gtkpagesetupunixdialog.c:
      	* gtk/gtkprintcontext.c:
      	* gtk/gtkprinter.c:
      	* gtk/gtkprinteroptionwidget.c:
      	* gtk/gtkprintjob.c:
      	* gtk/gtkprintoperation-unix.c:
      	* gtk/gtkprintoperation.c:
      	* gtk/gtkprintunixdialog.c: Use a priv variable when accessing priv
      	  multiple times in the same function. Bug #340288.
      061f2528
  23. 24 Apr, 2006 3 commits
    • Alexander Larsson's avatar
      Don't ref the backend since the backend owns the printer. · 7261cff2
      Alexander Larsson authored
      2006-04-24  Alexander Larsson  <alexl@redhat.com>
      
      	* gtk/gtkprinter.c:
      	Don't ref the backend since the backend owns the printer.
      7261cff2
    • Matthias Clasen's avatar
      Match parameter names with the headers. · 0d10969b
      Matthias Clasen authored
      2006-04-24  Matthias Clasen  <mclasen@redhat.com>
      
      	* gtk/gtkclipboard.h:
      	* gtk/gtkprinter.c:
      	* gtk/gtkprintsettings.h:
      	* gtk/gtkprintsettings.c: Match parameter names with the headers.
      
      	* gtk/gtkprintoperation-unix.c (gtk_print_run_page_setup_dialog):
      	Add docs.
      
      	* gtk/gtktextbufferrichtext.c (gtk_text_buffer_deserialize):
      	* gtk/gtkstatusicon.c (gtk_status_icon_get_storage_type):
      	* gtk/gtktreeview.c (gtk_tree_view_set_search_position_func):
      	* gtk/gtktreeview.c (gtk_tree_view_get_headers_clickable):
      	* gtk/gtkcellrendererspin.c (gtk_cell_renderer_spin_new):
      	* gtk/gtkmenu.c (gtk_menu_get_for_attach_widget): Fix the docs.
      0d10969b
    • Matthias Clasen's avatar
      Use g types, add documentation, and some stylistic fixups. · 8cf2909e
      Matthias Clasen authored
      2006-04-23  Matthias Clasen  <mclasen@redhat.com>
      
      	* gtk/gtkprinter-private.h:
      	* gtk/gtkprintbackend.h:
      	* gtk/gtkprinter.[hc]:
      	* gtk/gtkprintjob.[hc]: Use g types, add documentation, and some
      	stylistic fixups.
      
      	* gtk/gtkaboutdialog.c (activate_url): Avoid a compiler warning.
      8cf2909e
  24. 21 Apr, 2006 1 commit
    • Alexander Larsson's avatar
      Merge the gtk-printing branch. For more detailed ChangeLog entries, see · 27f746fb
      Alexander Larsson authored
      2006-04-21  Alexander Larsson  <alexl@redhat.com>
      
              Merge the gtk-printing branch.
      	For more detailed ChangeLog entries, see the branch.
      
      	* .cvsignore:
      	* Makefile.am:
      	* configure.in:
      	* docs/tools/widgets.c:
      	* gtk+-unix-print-2.0.pc.in:
      	* gtk/Makefile.am:
      	* gtk/gen-paper-names.c:
      	* gtk/gtk.h:
      	* gtk/gtk.symbols:
      	* gtk/gtkenums.h:
      	* gtk/gtkiconfactory.c:
      	* gtk/gtkmarshalers.list:
      	* gtk/gtkpagesetup.[ch]:
      	* gtk/gtkpagesetupunixdialog.[ch]:
      	* gtk/gtkpapersize.[ch]:
      	* gtk/gtkprint-win32.[ch]:
      	* gtk/gtkprintbackend.[ch]:
      	* gtk/gtkprintcontext.[ch]:
      	* gtk/gtkprinter-private.h:
      	* gtk/gtkprinter.[ch]:
      	* gtk/gtkprinteroption.[ch]:
      	* gtk/gtkprinteroptionset.[ch]:
      	* gtk/gtkprinteroptionwidget.[ch]:
      	* gtk/gtkprintjob.[ch]:
      	* gtk/gtkprintoperation-private.h:
      	* gtk/gtkprintoperation-unix.c:
      	* gtk/gtkprintoperation-win32.c:
      	* gtk/gtkprintoperation.[ch]:
      	* gtk/gtkprintsettings.[ch]:
      	* gtk/gtkprintunixdialog.[ch]:
      	* gtk/paper_names.c:
      	* gtk/paper_names_offsets.c:
      	Platform independent printing API and implementations
      	for unix and windows.
      
      	* gtk/gtkstock.h:
      	* gtk/stock-icons/24/gtk-orientation-landscape.png:
      	* gtk/stock-icons/24/gtk-orientation-portrait.png:
      	* gtk/stock-icons/24/gtk-orientation-reverse-landscape.png:
      	Add stock icons for page orientation.
      
      	* modules/Makefile.am:
      	* modules/printbackends/Makefile.am:
      	* modules/printbackends/cups/Makefile.am:
      	* modules/printbackends/cups/gtkcupsutils.[ch]:
      	* modules/printbackends/cups/gtkprintbackendcups.[ch]:
      	* modules/printbackends/cups/gtkprintercups.[ch]:
      
      	Cups printing backend for unix.
      
      	* modules/printbackends/lpr/Makefile.am:
      	* modules/printbackends/lpr/gtkprintbackendlpr.[ch]:
      	lpr printing backend for unix.
      
      	* modules/printbackends/pdf/Makefile.am:
      	* modules/printbackends/pdf/gtkprintbackendpdf.[ch]:
      	print-to-pdf printing backend for unix.
      
      	* tests/.cvsignore:
      	* tests/Makefile.am:
      	* tests/print-editor.c:
      	Test application for printing.
      
      	* gdk/gdk.symbols:
      	* gdk/win32/gdkevents-win32.c:
      	* gdk/win32/gdkwin32.h:
      	Add gdk_win32_set_modal_dialog_libgtk_only so that we can pump the
      	mainloop while displaying a win32 common dialog.
      
      	* gdk/directfb/Makefile.am:
      	Whitespace cleanup.
      27f746fb