summaryrefslogtreecommitdiff
path: root/gtk/gtkprintjob.c
Commit message (Collapse)AuthorAgeFilesLines
* Clean up debug featuresMatthias Clasen2015-09-091-2/+3
| | | | | Introduce a GTK_DEBUG_CHECK() macro and use it to check for GTK_DEBUG flags everywhere. Also guard all such places by
* gtk: Don't use GObjectClass.constructorJasper St. Pierre2014-06-261-20/+7
| | | | Use the newer constructed instead, which has a fast path in GObject.
* printing: Fail nicely when /tmp is not writableMarek Kasik2014-03-171-1/+1
| | | | | | | Don't crash when /tmp is not writable when printing to file. Show that getting of printer details failed for CUPS printers. https://bugzilla.gnome.org/show_bug.cgi?id=693200
* docs: use Returns: consistentlyWilliam Jon McCann2014-02-191-7/+7
| | | | Instead of Return value:
* docs: use apostrophes in *n'tWilliam Jon McCann2014-02-071-1/+1
|
* docs: use proper quotesWilliam Jon McCann2014-02-051-1/+1
|
* gtk: Use new macros for defining private dataEmmanuele Bassi2013-07-091-7/+2
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=702996
* gtkprintjob: release the surface and backend before the output io channelCarlos Garcia Campos2013-04-141-6/+6
| | | | | | | | | | | If the GtkPrintJob is freed too early when the surface has been created but the job hasn't been sent to the printer, it's possible that the file print backend tries to write to the io chaneel when it is already closed. This produces runtime critical warnings: GLib-CRITICAL **: g_io_channel_write_chars: assertion `channel->is_writeable' failed https://bugzilla.gnome.org/show_bug.cgi?id=685420
* Change FSF AddressJavier Jardón2012-02-271-3/+1
|
* gtk: Use const instead G_CONST_RETURNJavier Jardón2011-06-101-1/+1
|
* Add some missing symbols to the docsMatthias Clasen2011-02-081-3/+2
|
* [GI] Add missing (out) and (array) annotationsPavel Holejsovsky2011-01-201-2/+5
|
* [GI] Add missing (transfer) annotationsPavel Holejsovsky2011-01-201-3/+3
|
* [GI] Annotate strings holding file paths as (type filename)Pavel Holejsovsky2011-01-181-1/+1
|
* Move GtkPrintJob docs inlineMatthias Clasen2011-01-141-0/+15
|
* Remove sealed members from GtkPrintJobMatthias Clasen2010-12-181-24/+362
| | | | Also add accessors for these members, and use them in print backends.
* Replace gtk_debug_flags with getter and setter functionsTor Lillqvist2010-09-081-1/+1
| | | | | | Preferrably should be made just into a local variable for libgtk like _gdk_debug_flags for libgdk. But for now used by gtk/tests/textbuffer.c and modules/printbackends/cups/gtkprintbackendcups.c.
* gtk/: fully remove gtkalias hacksJavier Jardón2010-07-101-5/+0
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=623845
* [annotations] Add allow-noneJohan Dahlin2010-02-191-1/+1
| | | | | | | | This commit was created using a script that searched for all docstrings containing a parameter and the string 'or %NULL'. Gdk backends and demos excluded as they are not part of a public API https://bugzilla.gnome.org/show_bug.cgi?id=610474
* Add ability to print in number-up mode for file backend and lpr backendMarek Kasik2009-05-131-0/+2
| | | | | | | | | | | 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".
* Bug 549810 – Memory leaks in printing codeChristian Dywan2008-08-291-0/+1
| | | | svn path=/trunk/; revision=21241
* Make gtk_printer_get_capabilities public, and move theChristian Persch2007-04-301-25/+0
| | | | | | | | | | | | | | | | | | 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/gtkprintjob.c: * gtk/gtkprintjob.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=17747
* Use g_unlink. (#421990, Morten Welinder)Matthias Clasen2007-04-301-1/+1
| | | | | | | | | | | 2007-04-30 Matthias Clasen <mclasen@redhat.com> * gtk/gtkprintjob.c (gtk_print_job_get_surface): Use g_unlink. (#421990, Morten Welinder) svn path=/trunk/; revision=17724
* Fix a small memory leak. (#403251, Felix Riemann)Matthias Clasen2007-04-291-0/+2
| | | | | | | | | | | 2007-04-29 Matthias Clasen <mclasen@redhat.com> * gtk/gtkprintjob.c (gtk_print_job_get_surface): Fix a small memory leak. (#403251, Felix Riemann) svn path=/trunk/; revision=17693
* Fix a typo in the docs. (#347211, Kouhei Sutou)Matthias Clasen2006-07-171-1/+1
| | | | | | | 2006-07-16 Matthias Clasen <mclasen@redhat.com> * gtk/gtkprintjob.c (gtk_print_job_send): Fix a typo in the docs. (#347211, Kouhei Sutou)
* Add a preview capabilityMatthias Clasen2006-06-301-0/+1
|
* add missing flag valuesMatthias Clasen2006-06-221-0/+2
|
* Apply a patch by John Palmieri to use buffered io using GIOChannels, cleanMatthias Clasen2006-06-211-52/+61
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Add an GError parameter.Matthias Clasen2006-06-211-5/+10
| | | | | | | | | | | | | | | | | 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.
* Add to docs. (gtk_print_job_class_init): Make track-print-status aMatthias Clasen2006-06-201-21/+40
| | | | | * gtk/gtkprintjob.c (gtk_print_job_set_source_file): Add to docs. (gtk_print_job_class_init): Make track-print-status a property.
* Add to docs.Matthias Clasen2006-06-201-1/+2
| | | | | | 2006-06-20 Matthias Clasen <mclasen@redhat.com> * gtk/gtkprintjob.c (gtk_print_job_set_source_file): Add to docs.
* Fix a warningMatthias Clasen2006-06-161-1/+2
|
* Cosmetic cleanups.Matthias Clasen2006-06-121-7/+14
| | | | | | | | | 2006-06-12 Matthias Clasen <mclasen@redhat.com> * gtk/gtkprintjob.c: * gtk/gtkprintbackend.c: * gtk/gtkpagesetupunixdialog.c: * gtk/gtkprintunixdialog.c: Cosmetic cleanups.
* Register GtkPrintCapabilitiesMatthias Clasen2006-06-111-0/+23
|
* Don't include gtkprinter-private.h here.Matthias Clasen2006-06-081-0/+1
| | | | | | | | | | | | | | | 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.
* Cosmetic cleanups.Matthias Clasen2006-05-161-7/+7
| | | | | | | * 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.
* Added gtk_print_job_set/get_track_print_statusAlexander Larsson2006-05-151-4/+57
| | | | | | | | | | | | | | | | | | | | | | | | | | 2006-05-15 Alexander Larsson <alexl@redhat.com> * gtk/gtkprintjob.[ch]: Added gtk_print_job_set/get_track_print_status * gtk/gtkprintoperation-private.h: * gtk/gtkprintoperation.[ch]: Add gtk_print_operation_set_track_print_status. * gtk/gtkprintoperation-unix.c: Implement track_print_status on unix * gtk/gtkprintoperation-win32.c: Implement track_print_status on win32 * gtk/gtk.symbols: Added symbols * modules/printbackends/cups/gtkprintbackendcups.c: Implement track_print_status for cups * tests/print-editor.c: Test track_print_status.
* More of the sameMatthias Clasen2006-05-141-1/+1
|
* Use a priv variable when accessing priv multiple times in the sameChristian Persch2006-05-021-71/+91
| | | | | | | | | | | | | | 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.
* Add docs.Matthias Clasen2006-04-251-0/+15
| | | | | | | | 2006-04-25 Matthias Clasen <mclasen@redhat.com> * gtk/gtkprintjob.c (gtk_print_job_set_source_file): Add docs. * gtk/gtkprintoperation.c: Add docs.
* Use g types, add documentation, and some stylistic fixups.Matthias Clasen2006-04-241-80/+161
| | | | | | | | | | | | 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.
* Merge the gtk-printing branch. For more detailed ChangeLog entries, seeAlexander Larsson2006-04-211-0/+472
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.