summaryrefslogtreecommitdiff
path: root/gtk/gtkprinter.h
Commit message (Collapse)AuthorAgeFilesLines
* printer: Make privateMatthias Clasen2019-05-261-35/+2
| | | | | We want to subclass this in print backends, but we don't want to allow out-of-tree subclassing.
* gtkprinter: Make gtk_printer_get_hard_margins_for_paper_size() publicKjell Ahlstedt2018-07-041-0/+1
| | | | | | | The declaration in gtkprinter.h shall be preceded by GDK_AVAILABLE_IN_ALL, or else the function can't be used in application programs. Closes #1140
* Remove a lot of Since annotationsMatthias Clasen2018-06-251-2/+2
| | | | | 4.0 will represent a clean epoch. We don't want to have lots of noise in the docs about 2.x or 3.x.
* Add gtk_printer_get_hard_margins_for_paper_sizeAdrian Johnson2018-04-261-0/+6
| | | | | | | | to retreive paper size specific hard margins and use this to set the hard margins in the print context. (modified by Marek Kasik <mkasik@redhat.com>) https://bugzilla.gnome.org/show_bug.cgi?id=686109
* The big versioning cleanupMatthias Clasen2018-02-061-2/+0
| | | | | | | Remove all the old 2.x and 3.x version annotations. GTK+ 4 is a new start, and from the perspective of a GTK+ 4 developer all these APIs have been around since the beginning.
* Add annotations to gtk headersMatthias Clasen2013-05-051-0/+25
| | | | Add annotations to all exported functions in GTK+ headers.
* Move single-include guards inside include guardsMatthias Clasen2012-12-281-3/+3
| | | | | | gcc has optimizations for include guards that only work if they are outermost in the the header. https://bugzilla.gnome.org/show_bug.cgi?id=689810
* Change FSF AddressJavier Jardón2012-02-271-3/+1
|
* gtk: Use const instead G_CONST_RETURNJavier Jardón2011-06-101-5/+5
|
* Move documentation to inline comments: GtkPrintUnixDialogJavier Jardón2011-04-181-0/+22
|
* [GI] Mark callbacks' context parameter with (closure) annotation.Pavel Holejsovsky2011-01-181-1/+1
|
* Fix gtk-doc markup: /* <private> */ should be /*< private >*/Javier Jardón2010-10-301-1/+1
|
* Add padding to class structsMatthias Clasen2010-10-191-0/+1
|
* gtkprinter: unseal private pointerJavier Jardón2010-07-131-1/+2
|
* Move documentation to inline comments: GtkPrinterJavier Jardón2010-05-161-0/+13
|
* Remove all traces of GDK_PIXBUF/GTK_DISABLE_SINGLE_INCLUDESMichael Natterer2010-05-031-1/+1
| | | | ...and disallow inclusion of individual files unconditionally.
* Allow getting the printer's hard marginsChristian Persch2009-12-011-0/+5
| | | | Adds a way to get the unprintable area of the printer. Bug #468989.
* Bug 535158 – can't rearrange the order of multi pages per sideMarek Kasik2008-08-211-9/+10
| | | | | | | | | | | | | | | | | 2008-08-21 Marek Kasik <mkasik@redhat.com> Bug 535158 – can't rearrange the order of multi pages per side * gtk/gtkprinter.c * gtk/gtkprinter.h * gtk/gtkprintunixdialog.c * gtk/gtkprintsettings.c * gtk/gtkprintsettings.h * gtk/gtkenums.h * modules/printbackends/cups/gtkprintbackendcups.c: Allow user to specify layout of pages per sheet in number-up mode svn path=/trunk/; revision=21175
* Bug 384940 – handle rejecting jobs and authentication meaningfullyMatthias Clasen2008-07-151-0/+2
| | | | | | | | | | | | | | | | | | | | 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
* the GSEAL branch added two includes for no reason.Michael Natterer2008-06-201-2/+0
| | | | | | | | | | 2008-06-20 Michael Natterer <mitch@imendio.com> * gtk/gtkprinter.h: the GSEAL branch added two includes for no reason. svn path=/trunk/; revision=20640
* Fix the build by including gdkconfig.h in gtkprinter.h.Tim Janik2008-06-201-0/+2
| | | | svn path=/trunk/; revision=20603
* Seal priv pointer in GtkPrinter.Tim Janik2008-06-201-1/+1
| | | | svn path=/trunk/; revision=20571
* gtk/Makefile.am add a single-include header for the unix print stuff.Michael Natterer2008-05-291-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* fix formatting of details_acquired() signal.Michael Natterer2008-05-281-3/+4
| | | | | | | | | 2008-05-28 Michael Natterer <mitch@imendio.com> * gtk/gtkprinter.h: fix formatting of details_acquired() signal. svn path=/trunk/; revision=20224
* define __GTK_H_INSIDE__ around including all other headers.Michael Natterer2008-05-281-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* RH bug 204621 - "GtkPrint" asks for "Letter" size paper when "A4" sizeMatthias Clasen2008-05-211-22/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Add new capability GTK_PRINT_CAPABILITY_NUMBER_UP.Carlos Garcia Campos2007-05-281-1/+2
| | | | | | | | | | | | | | | 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
* Also move gtk_print_capabilities_get_type() to the new location. BugChristian Persch2007-05-011-6/+10
| | | | | | | | | | 2007-05-01 Christian Persch <chpe@gnome.org> * gtk/gtkprinter.h: * gtk/gtkprintjob.h: Also move gtk_print_capabilities_get_type() to the new location. Bug #390437. svn path=/trunk/; revision=17751
* Make gtk_printer_get_capabilities public, and move theChristian Persch2007-04-301-0/+16
| | | | | | | | | | | | | | | | 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
* Make gtk_printer_has_details() and gtk_printer_request_details() public.Matthias Clasen2007-04-291-1/+2
| | | | | | | | | | | | | | | | | 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
* Make gtk_printer_list_papers public. Bug #345587.Christian Persch2006-12-241-1/+2
| | | | | | | | | | | 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.
* Forgotten filesMatthias Clasen2006-06-191-0/+8
|
* Use gtk_printer_accepts_ps here.Matthias Clasen2006-06-121-0/+2
| | | | | | | | | | | | | | | 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.
* Added new symbolsAlexander Larsson2006-05-041-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* broken pipeMatthias Clasen2006-05-021-1/+1
|
* Don't declare GtkPrintJob here. Instead include gtkprintjob.h.Matthias Clasen2006-04-241-2/+0
| | | | | | | 2006-04-24 Matthias Clasen <mclasen@redhat.com> * gtk/gtkprinter.h: Don't declare GtkPrintJob here. * gtk/gtkprinter-private.h: Instead include gtkprintjob.h.
* Use g types, add documentation, and some stylistic fixups.Matthias Clasen2006-04-241-6/+6
| | | | | | | | | | | | 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/+86
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.