summaryrefslogtreecommitdiff
path: root/gtk/gtkprinter.c
Commit message (Collapse)AuthorAgeFilesLines
* Clean up lots of GTK+ -> GTKMatthias Clasen2020-09-121-2/+0
| | | | | | Replace most remaining uses of GTK+ in the docs and user-visible strings by GTK. Also remove some leftover "Was added in 3.x" sentences from the docs.
* Replace "gdouble" with "double"Benjamin Otte2020-07-251-10/+10
|
* Replace "gchar" with "char"Benjamin Otte2020-07-251-15/+15
|
* Replace "gint" with "int"Benjamin Otte2020-07-251-4/+4
|
* printer: Fix the default value of icon-nameMatthias Clasen2020-05-311-2/+2
| | | | | Just set this to "printer", so we don't have to fix it up in the print dialog.
* gtk: rely on default marshallersChristian Hergert2019-05-301-1/+1
| | | | | | | | | | Similar to previous removals of g_cclosure_marshal_VOID__VOID we can remove other marshallers for which are a simple G_TYPE_NONE with single parameter. In those cases, GLib will setup both a c_marshaller and va_marshaller for us. Before this commit, we would not get a va_marshaller because the c_marshaller is set. Related to GNOME/Initiatives#10
* Rename gtkprintbackend.h to gtkprintbackendprivate.hMatthias Clasen2019-05-261-1/+1
| | | | Follow the naming convention for private headers.
* printer: Drop the priv pointerMatthias Clasen2019-05-261-62/+105
|
* Rename gtkprinter-private.hMatthias Clasen2019-05-261-1/+1
| | | | | Name this header gtkprinterprivate.h, following our convention for private headers.
* Add gtk_printer_get_hard_margins_for_paper_sizeAdrian Johnson2018-04-261-0/+31
| | | | | | | | 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-53/+1
| | | | | | | 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.
* Drop the Big GDK LockEmmanuele Bassi2018-02-031-3/+0
| | | | | | | | | | | | | | | | GDK has a lock to mark critical sections inside the backends. Additionally, code that would re-enter into the GTK main loop was supposed to hold the lock. Back in the Good Old Days™ this was guaranteed to kind of work only on the X11 backend, and would cause a neat explosion on any other GDK backend. During GTK+ 3.x we deprecated the API to enter and leave the critical sections, and now we can remove all the internal uses of the lock, since external API that uses GTK+ 4.x won't be able to hold the GDK lock. https://bugzilla.gnome.org/show_bug.cgi?id=793124
* printing: Don't hang in gtk_enumerate_printers()Marek Kasik2017-03-231-3/+11
| | | | | | Stop enumerating printers when all backends were removed. https://bugzilla.gnome.org/show_bug.cgi?id=686838
* printing: Make GtkPrinter have a useful icon by defaultMatthias Clasen2014-10-041-1/+1
| | | | | | It causes complication elsewhere if gtk_printer_get_icon_name() returns NULL initially. So make the icon name default to "printer".
* docs: use Returns: consistentlyWilliam Jon McCann2014-02-191-21/+21
| | | | Instead of Return value:
* Docs: Remove all entities and turn off sgml modeMatthias Clasen2014-02-091-3/+3
| | | | | With all element markup gone, it is time to turn off sgml mode, and get rid of entities as well.
* docs: use apostrophe in *'reWilliam Jon McCann2014-02-071-1/+1
|
* docs: use proper apostropheWilliam Jon McCann2014-02-071-6/+6
| | | | https://wiki.gnome.org/Design/OS/Typography
* gtk: Use new macros for defining private dataEmmanuele Bassi2013-07-091-6/+2
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=702996
* gtk: Don't use GDK_THREADS_ENTER/LEAVE macros internallyMatthias Clasen2012-07-301-2/+2
| | | | | | These are just wrappers for the functions, and we want to deprecate them. Stopping to use them internally is a good first step.
* printing: Make sure destroy function is always called by gtk_enumerate_printersCarlos Garcia Campos2012-03-151-12/+14
| | | | | | | | | | | When GtkPrinterFunc always returns FALSE, for example when looking for a non existent printer, if print list is done for all backends or print backend status is UNAVAILABLE, gtk_enumerate_printers() finishes with an empty backend list and destroy function is never called. We need to check the backend list again after calling list_printers_init for all backends and finish the enumeration if it's empty. https://bugzilla.gnome.org/show_bug.cgi?id=672125
* Change FSF AddressJavier Jardón2012-02-271-3/+1
|
* gtk: Use const instead G_CONST_RETURNJavier Jardón2011-06-101-5/+5
|
* [GI] Add missing (out) and (array) annotationsPavel Holejsovsky2011-01-201-4/+4
|
* [GI] Add missing (transfer) annotationsPavel Holejsovsky2011-01-201-1/+1
|
* Set file GtkPrinter accepts_pdf/ps based on selected formatAdrian Johnson2011-01-031-0/+18
|
* Set "accepts-pdf" property to true only if supported by the print backendAdrian Johnson2011-01-031-2/+2
|
* gtkprinter: unseal private pointerJavier Jardón2010-07-131-4/+3
|
* gtk/: fully remove gtkalias hacksJavier Jardón2010-07-101-6/+0
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=623845
* Move documentation to inline comments: GtkPrinterJavier Jardón2010-05-161-0/+19
|
* Use g_strcmp0() instead custom safe_strcmp()Javier Jardón2010-01-081-15/+3
| | | | | Reported by Rafal Luzynski in https://bugzilla.gnome.org/show_bug.cgi?id=606415
* [introspection] Merge in Gtk-custom.c annotationsColin Walters2009-12-161-2/+2
| | | | | | | | The Gtk-custom.c file in gir-repository contained a number of introspection annotations. Merge those into the GTK source files. Some documentation was moved from the tmpl/ files to accomodate the addition of annotations.
* Fix Since tag in gtk_printer_get_default_page_size() docCarlos Garcia Campos2009-12-051-1/+1
|
* Allow getting the printer's hard marginsChristian Persch2009-12-011-10/+28
| | | | Adds a way to get the unprintable area of the printer. Bug #468989.
* Bug 346903 – gtk_enumerate_printers needs events to completeMatthias Clasen2008-09-171-1/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Bug 551386 – gtk_printer_set_is_default() always sets TRUEMarek Kasik2008-09-091-1/+1
| | | | | | | | | | 2008-09-09 Marek Kasik <mkasik@redhat.com> Bug 551386 – gtk_printer_set_is_default() always sets TRUE * gtk/gtkprinter.c: sets the is_default parameter to the value given by caller svn path=/trunk/; revision=21325
* Bug 535158 – can't rearrange the order of multi pages per sideMarek Kasik2008-08-211-0/+1
| | | | | | | | | | | | | | | | | 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-8/+124
| | | | | | | | | | | | | | | | | | | | 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
* RH bug 204621 - "GtkPrint" asks for "Letter" size paper when "A4" sizeMatthias Clasen2008-05-211-0/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Use g_value_set_static_string() where appropriate. (#515042, ChristianMatthias Clasen2008-02-121-4/+4
| | | | | | | | | | | | 2008-02-12 Matthias Clasen <mclasen@redhat.com> * gtk/gtkfilesystemmodel.c: * gtk/gtkprinter.c: * gtk/gtkwidget.c: Use g_value_set_static_string() where appropriate. (#515042, Christian Persch) svn path=/trunk/; revision=19527
* More default property value fixesMatthias Clasen2007-12-281-4/+4
| | | | svn path=/trunk/; revision=19277
* Add new capability GTK_PRINT_CAPABILITY_NUMBER_UP.Carlos Garcia Campos2007-05-281-0/+1
| | | | | | | | | | | | | | | 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
* Document new apiMatthias Clasen2007-05-261-1/+1
| | | | svn path=/trunk/; revision=17932
* Fix typo to get the build working.Richard Hult2007-05-261-1/+1
| | | | | | | | | 2007-05-26 Richard Hult <richard@imendio.com> * gtk/gtkprinter.c: (gtk_printer_set_location): Fix typo to get the build working. svn path=/trunk/; revision=17926
* More of the sameMatthias Clasen2007-05-261-9/+9
| | | | svn path=/trunk/; revision=17925
* Make gtk_printer_get_capabilities public, and move theChristian Persch2007-04-301-2/+47
| | | | | | | | | | | | | | | | 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-4/+31
| | | | | | | | | | | | | | | | | 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-2/+15
| | | | | | | | | | | 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.
* Always call the destroy notifyMatthias Clasen2006-06-301-0/+6
|
* Documentation additions and fixes.Matthias Clasen2006-06-291-1/+36
| | | | | | | | | | | | | | | | | | | | | | | | 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.