1. 03 Jan, 2011 2 commits
  2. 01 Dec, 2009 1 commit
  3. 24 Sep, 2009 1 commit
    • Marek Kašík's avatar
      Add support for 'auth-info' attribute to the CUPS backend · a3e07662
      Marek Kašík authored
      Check for 'auth-info-required' attribute from printer attributes to
      find out whether an authentization of user is needed.
      Change password dialog of print backend to be able to require informations
      requested thru 'auth-info-required' (#566522).
      a3e07662
  4. 21 Apr, 2009 1 commit
    • Marek Kašík's avatar
      Adds authentication support of CUPS backend · 2c5ae21c
      Marek Kašík authored
      Adds authentication support of CUPS backend against CUPS server.
      Print dialog is now capable to ask user for password and pass it
      to the CUPS server. It is also possible to authenticate user
      through Kerberos (GSS-API) (#384940).
      2c5ae21c
  5. 17 Sep, 2008 1 commit
    • Matthias Clasen's avatar
      Bug 346903 – gtk_enumerate_printers needs events to complete · 8ec27f77
      Matthias Clasen authored
      2008-09-17  Matthias Clasen  <mclasen@redhat.com>
      
              Bug 346903 – gtk_enumerate_printers needs events to complete
      
              * gtk/gtkprintbackend.h:
              * gtk/gtkprintbackend.c: Add a GtkPrintBackend::status property.
      
              * modules/printbackends/cups/gtkcupsutils.h:
              * modules/printbackends/cups/gtkcupsutils.c: Turn the connection
              test into a tristate available/unavailable/in progress.
      
              * modules/printbackends/cups/gtkprintbackendcups.c: Use a single
              connection test instance for getting the default printer and for
              getting the printer list. Set the GtkPrintBackend::status property
              according to the result of the connection test. Use the printer-type
              attribute to find the default printer, if cups supports it.
      
              * gtk/gtkprinter.c: When enumerating printers, give up when
              the backend status is 'unavailable'.
      
              * gtk/gtkprintunixdialog.c (printer_status_cb): Select the printer
              when it is the default and nothing else has been selected yet.
      
      
      svn path=/trunk/; revision=21417
      8ec27f77
  6. 15 Jul, 2008 1 commit
    • Matthias Clasen's avatar
      Bug 384940 – handle rejecting jobs and authentication meaningfully · 1eb96ead
      Matthias Clasen authored
              Patch by Marek Kasik, icons by Mike Langlie:
              * gtk/gtk.symbols:
              * gtk/gtkprintbackend.h:
              * gtk/gtkprinter.[hc]: Add new paused and accepting-jobs properties
              and getters/setters.
      
              * gtk/gtkstock.h:
              * gtk/gtkiconfactory.c:
              * gtk/Makefile.am:
              * gtk/stock-icons/{16,24}/gtk-print-paused.{png,svg}: New icon.
      
              * modules/printbackends/cups/gtkprintbackendcups.c:
              * gtk/gtkprintunixdialog.c: Handle paused and job-rejecting
              printers.
      
      
      svn path=/trunk/; revision=20838
      1eb96ead
  7. 01 Jul, 2008 1 commit
  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. 29 May, 2008 1 commit
    • Michael Natterer's avatar
      gtk/Makefile.am add a single-include header for the unix print stuff. · c8e67f3c
      Michael Natterer authored
      2008-05-29  Michael Natterer  <mitch@imendio.org>
      
      	* gtk/Makefile.am
      	* gtk/gtkunixprint.h: add a single-include header for the unix
      	print stuff.
      
      	* gtk/gtkpagesetupunixdialog.h
      	* gtk/gtkprinter.h
      	* gtk/gtkprintjob.h
      	* gtk/gtkprintunixdialog.h: add single-include guards that #error
      	out if GTK_DISABLE_SINGLE_INCLUDES is defined and any of these
      	files is included individually.
      
      	* gtk/gtkprintbackend.h
      	* gtk/gtkprinter-private.h
      	* modules/printbackends/cups/gtkprintbackendcups.c
      	* modules/printbackends/cups/gtkprintercups.h
      	* modules/printbackends/lpr/gtkprintbackendlpr.c
      	* tests/buildertest.c
      	* tests/defaultvaluetest.c
      	* docs/tools/widgets.c: include <gtk/gtkunixprint.h> instead of
      	individual files.
      
      
      svn path=/trunk/; revision=20230
      c8e67f3c
  10. 28 May, 2008 1 commit
    • Michael Natterer's avatar
      define __GTK_H_INSIDE__ around including all other headers. · eff99c28
      Michael Natterer authored
      2008-05-28  Michael Natterer  <mitch@imendio.com>
      
      	* gtk/gtk.h: define __GTK_H_INSIDE__ around including all other
      	headers.
      
      	* gtk/gtktypebuiltins.h.template
      	* gtk/gtkversion.h.in
      	* gtk/gtk*.h: add single-include guards that #error out if
      	GTK_DISABLE_SINGLE_INCLUDES is defined and any of these files is
      	included individually.
      
      	* gtk/gtkprintbackend.h
      	* gtk/gtkprinter-private.h
      	* gtk/gtktextlayout.h
      	* gtk/gtktexttagprivate.h
      	* gtk/gtktexttypes.h
      	* gtk/gtktreedatalist.h: include <gtk/gtk.h> instead of individual
      	headers in these private or semi-private headers.
      
      	* gtk/gtkimmodule.h: also here because it's not in gtk.h.
      
      	* gtk/gtkpagesetupunixdialog.h
      	* gtk/gtkprinter.h
      	* gtk/gtkprintjob.h
      	* gtk/gtkprintunixdialog.h: likewise in the gtkunixprint headers.
      
      	* gtk/gtkclist.h
      	* gtk/gtkcombo.h
      	* gtk/gtkctree.h
      	* gtk/gtkfilesel.h
      	* gtk/gtkitemfactory.h
      	* gtk/gtklist.h
      	* gtk/gtklistitem.h
      	* gtk/gtkoldeditable.h
      	* gtk/gtkoptionmenu.h
      	* gtk/gtkpixmap.h
      	* gtk/gtkpreview.h
      	* gtk/gtksignal.h
      	* gtk/gtktipsquery.h: whenever possible, include only <gtk/gtk.h>
      	instead of individual headers in these deprecated headers. They
      	don't get included at all when GTK_DISABLE_DEPRECATED is defined,
      	so if an app needs them anyway, it must undef GTK_DISABLE_DEPRECATED
      	and include them individually, which should continue to work.
      
      	* gtk/gtkclist.c: include "gtkctree.h" because of the change
      	above.
      
      
      svn path=/trunk/; revision=20221
      eff99c28
  11. 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
  12. 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
      Add an GError parameter. · bc1dbd58
      Matthias Clasen authored
      2006-06-21  Matthias Clasen  <mclasen@redhat.com>
      
      	* gtk/gtkprintbackend.h:
      	* gtk/gtkprintbackend.c (gtk_print_backend_print_stream): Add an
      	GError parameter.
      
      	* modules/printbackends/file/gtkprintbackendfile.c
      	(gtk_print_backend_file_print_stream):
      	* modules/printbackends/lpr/gtkprintbackendlpr.c
      	(gtk_print_backend_lpr_print_stream):
      	* modules/printbackends/cups/gtkprintbackendcups.c
      	(gtk_print_backend_cups_print_stream):
      	* gtk/gtkprintjob.c (gtk_print_job_send): Update all callers and
      	implementations.
      bc1dbd58
  13. 19 Jun, 2006 1 commit
    • 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
  14. 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
  15. 08 Jun, 2006 1 commit
    • 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
  16. 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
  17. 15 May, 2006 1 commit
    • Alexander Larsson's avatar
      Never unload print backends. Remove gtk_print_backend_unref_at_idle. · 5e0dc703
      Alexander Larsson authored
      2006-05-15  Alexander Larsson  <alexl@redhat.com>
      
      	* gtk/gtk.symbols:
      	* gtk/gtkprintbackend.[ch]: (_gtk_print_backend_create):
      	Never unload print backends.
      	Remove gtk_print_backend_unref_at_idle.
      
      	* modules/printbackends/cups/gtkprintbackendcups.c:
      	(cups_dispatch_watch_finalize):
      	Don't use the unref_at_idle hack since that caused
      	deadlocks. Instead we never unload print backends, which
      	is not really a big problem.
      5e0dc703
  18. 05 May, 2006 1 commit
  19. 04 May, 2006 2 commits
    • 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
    • Matthias Clasen's avatar
      Make symbol list mstch reality. · 89b5cb64
      Matthias Clasen authored
      2006-05-04  Matthias Clasen  <mclasen@redhat.com>
      
      	* gtk/gtk.symbols:
      	* gtk/gtkfilesystem.c:
      	* gtk/gtkfilesystemunix.c:
      	* gtk/gtkprintbackend.h:
      	* gtk/gtkrecentchooserdefault.c:
      	* gtk/gtkrecentchooserdefault.h:
      	* gtk/paper_names_offsets.c: Make symbol list mstch reality.
      
      	* gtk/Makefile.am: Fix a typo.
      
      	* gdk/x11/Makefile.am (EXTRA_DIST): Add gdksettings.c
      89b5cb64
  20. 24 Apr, 2006 1 commit
    • 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
  21. 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