summaryrefslogtreecommitdiff
path: root/gtk/gtkprintoperation-unix.c
Commit message (Collapse)AuthorAgeFilesLines
* gtk: Update all callersMatthias Clasen2022-12-131-2/+2
|
* gtk: Stop using gtk_show_uriMatthias Clasen2022-12-091-6/+9
| | | | | Replace all uses of gtk_show_uri with GtkFileLauncher.
* Deprecate GtkMessageDialogMatthias Clasen2022-10-291-1/+0
| | | | | | | | | It is getting replaced by GtkAlertDialog This commit only moves the header to deprecated/, and keeps the implementation in gtk/, since it will eventually be salvaged into a private, dialog-free widget.
* Drop gtkintl.hMatthias Clasen2022-09-241-1/+1
| | | | | Include gtkprivate.h for I_() and glib-i18n.h for gettext macros.
* Fix dialog-less printingMatthias Clasen2021-12-101-93/+93
| | | | | | | | | | | | | | We were sometimes ending printer enumeration prematurely, and the code was confused about the meaning of found_printer. The new setup follows these rules: - We *only* end the search prematurely if found_printer is set, which indicates that we found the right printer - We *always* call find_printer_idle exactly once, and make it return less than perfect matches like the default printer, or the first printer we found Fixes: #4439
* gtk: Clean up docs syntaxMatthias Clasen2021-05-221-10/+10
| | | | Replace leftover gtk-doc syntax (#Type) with backquotes.
* docs: Reduce redundancyMatthias Clasen2021-05-201-2/+2
| | | | | | | | Remove a boatload of "or %NULL" from nullable parameters and return values. gi-docgen generates suitable text from the annotation that we don't need to duplicate. This adds a few missing nullable annotations too.
* introspection: Stop using allow-noneMatthias Clasen2021-05-201-4/+4
| | | | | allow-none has been deprecated for a long time already. Instead use optional and nullable everywhere.
* Documentation fixesMatthias Clasen2021-05-201-1/+1
| | | | | Mostly fixing up indentation of continuation lines, and other small cleanups.
* printoperation: Static analysis fixesMatthias Clasen2021-05-031-3/+5
|
* *: Fix spelling mistakes found by codespellBjörn Daase2020-08-211-1/+1
|
* Replace "gdouble" with "double"Benjamin Otte2020-07-251-8/+8
|
* Replace "gchar" with "char"Benjamin Otte2020-07-251-23/+23
|
* Replace "gint" with "int"Benjamin Otte2020-07-251-6/+6
|
* printoperation-unix: Fix a use-after-freeMatthias Clasen2020-05-121-3/+3
| | | | | It turns out that finish_print destroys the PrintResponseData, so we can't access it afterwards.
* Remove unnecessary deprecation pragmasEmmanuele Bassi2020-05-121-8/+0
| | | | The gtk_window_present() function is not deprecated.
* Drop gtk_dialog_run() from GtkPrintOperationUnixEmmanuele Bassi2020-05-121-7/+33
| | | | We still provide a blocking API, but we should strongly reconsider it.
* Use gtk_window_destroyMatthias Clasen2020-05-111-2/+2
| | | | | Replace calls to gtk_widget_destroy on windows with gtk_window_destroy.
* gtk: Port all users to the new gtk_show_uri()Matthias Clasen2020-04-111-1/+1
| | | | We were only handling the error in one place anyway.
* Rename gtkprintbackend.h to gtkprintbackendprivate.hMatthias Clasen2019-05-261-1/+1
| | | | Follow the naming convention for private headers.
* all: Don't warn about deprecated gtk_window_present usageBastien Nocera2019-02-251-2/+6
| | | | Avoid compilation warnings about internal users of gtk_window_present().
* Move the should_use_portal helper to gdkMatthias Clasen2018-11-041-3/+3
| | | | | We want to use it there too, in the future. Update all callers.
* Add gtk_printer_get_hard_margins_for_paper_sizeAdrian Johnson2018-04-261-1/+2
| | | | | | | | 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-4/+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.
* Drop the Big GDK LockEmmanuele Bassi2018-02-031-8/+1
| | | | | | | | | | | | | | | | 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
* Remove unneeded deprecation guardsMatthias Clasen2017-12-171-2/+0
| | | | No deprecated api used in here, it seems.
* printoperation: Stop using gdk_app_launch_context_set_screenMatthias Clasen2017-10-301-7/+6
| | | | It is not necessary.
* build: Enable -Wswitch-enum and -Wswitch-defaultBenjamin Otte2017-10-061-0/+2
| | | | | | | | | | | | | | | | | | | This patch makes that work using 1 of 2 options: 1. Add all missing enums to the switch statement or 2. Cast the switch argument to a uint to avoid having to do that (mostly for GdkEventType). I even found a bug while doing that: clearing a GtkImage with a surface did not notify thae surface property. The reason for enabling this flag even though it is tedious at times is that it is very useful when adding values to an enum, because it makes GTK immediately warn about all the switch statements where this enum is relevant. And I expect changes to enums to be frequent during the GTK4 development cycle.
* Use gtk_show_uri_on_window() instead gtk_show_uri()Javier Jardón2017-08-281-1/+1
|
* gtk: Ignore gtk_show_uri() deprecation warningsBastien Nocera2017-02-161-0/+2
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=778726
* Add portal support to GtkPrintOperationMatthias Clasen2016-07-081-34/+104
| | | | | | | Make GtkPrintOperation talk to org.freedesktop.portal.Print when running in a sandbox. https://bugzilla.gnome.org/show_bug.cgi?id=768499
* gtk: Strip newlines from g_warning and g_errorMatthias Clasen2016-02-281-1/+1
| | | | g_logv adds one for us already.
* printing: Fail nicely when /tmp is not writableMarek Kasik2014-03-171-2/+3
| | | | | | | 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-1/+1
| | | | Instead of Return value:
* Don't rotate pdf landscape outputAdrian Johnson2012-09-121-4/+7
|
* gtk: Don't use GDK_THREADS_ENTER/LEAVE macros internallyMatthias Clasen2012-07-301-4/+4
| | | | | | These are just wrappers for the functions, and we want to deprecate them. Stopping to use them internally is a good first step.
* Change FSF AddressJavier Jardón2012-02-271-3/+1
|
* Use G_SOURCE_CONTINUE/REMOVEMatthias Clasen2012-01-301-1/+1
| | | | | Now that GLib provides these macros, we should use them to make the code more readable.
* [GI] Add missing (transfer) annotationsPavel Holejsovsky2011-01-201-1/+1
|
* [GI] Add missing (scope) annotationsPavel Holejsovsky2011-01-201-1/+2
|
* Remove gdk_spawn functionsMatthias Clasen2010-12-211-3/+3
| | | | | | These functions were trivial g_spawn wrappers in all backends except for X11, and they can be easily replaced by g_app_info_create_for_commandline + GdkAppLaunchContext.
* Don't use gdk_spawnMatthias Clasen2010-12-211-8/+15
| | | | Replace the sole use of gdk_spawn in GTK+ by GAppInfo.
* printing: Set new print operation settings before emitting ↵Carlos Garcia Campos2010-12-201-1/+5
| | | | | | | | | custom-widget-apply signal So that custom settings can be added from the custom-widget-apply callback. https://bugzilla.gnome.org/show_bug.cgi?id=637069
* Remove sealed members from GtkPrintJobMatthias Clasen2010-12-181-12/+10
| | | | Also add accessors for these members, and use them in print backends.
* gtk/: fully remove gtkalias hacksJavier Jardón2010-07-101-4/+1
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=623845
* Return error instead of showing an error dialog when printingMarek Kasik2010-06-071-33/+9
| | | | | | | Remove message dialogs showing an error when printing. Return GTK_PRINT_OPERATION_RESULT_ERROR and set error in such a case. Also return GTK_PRINT_OPERATION_RESULT_CANCEL when cancelled. Do it for synchronous and asynchronous cases (#549127).
* [annotations] Add allow-noneJohan Dahlin2010-02-191-2/+2
| | | | | | | | 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
* Fix declaration of gtk_print_job_set_statusMatthias Clasen2010-01-171-1/+0
| | | | The problem was reported in bug 606698.
* Fix a crash on print previewCarlos Garcia Campos2009-12-191-1/+1
| | | | | There's no printer when doing print preview so it's not possible to get its hard margins.
* [introspection] Merge in Gtk-custom.c annotationsColin Walters2009-12-161-5/+5
| | | | | | | | 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.