Commit graph

12 commits

Author SHA1 Message Date
Robert Ancell
b2c5056031 printers: Use g_autoptr 2020-09-22 21:23:04 +00:00
Robert Ancell
e9b9966e7d printers: Use g_autoptr with strings 2019-02-05 10:26:15 +13:00
Robert Ancell
47cd15d911 printers: Use self variable to match coding style 2019-01-30 11:33:28 +13:00
Robert Ancell
4042cb5d33 printers: Replace GObject boilerplace with G_DECLARE_TYPE 2019-01-30 11:33:28 +13:00
Mario Sanchez Prada
b742936970 printers: Expose the newly added 'Clean' maintenance command to users
Add an extra button "Clean Print Heads" that will be shown when the relevant
maintenance command is available for a printer, to bring this feature back.

Additionally, this commit adds a 'parameters' attribute to PpMaintenanceCommand,
which is needed as the "Clean" command requires to at least be passed "all" as
its single parameter: https://www.cups.org/doc/spec-command.html#Clean

https://bugzilla.gnome.org/show_bug.cgi?id=764620
2017-03-23 13:30:22 +00:00
Mario Sanchez Prada
bbe6b6309d Migrate the remaining bits of PpMaintenanceCommand to GTask
They were still using the deprecated GSimpleAsyncResult and throwing
a lot of warnings when building.

https://bugzilla.gnome.org/show_bug.cgi?id=766861
2016-08-02 12:42:37 -06:00
Mario Sanchez Prada
c41bbfa7d0 printers: Check all supported CUPS commands, not just the first one
Use an array of strings to store every supported command and check
the desired command against the elements in that list, instead of
simply checking the first one.

https://bugzilla.gnome.org/show_bug.cgi?id=766861
2016-08-02 12:42:21 -06:00
Mario Sanchez Prada
4b91972f2c printers: Added new async API to check availability of maintenance commands
This cleans the code up a bit so that we can extract part of the logic
from _pp_maintenance_command_execute_thread() before getting into fixing
the problem in the logic checking whether a CUPS command is available.

Besides, it will be useful to have this logic extracted as it will be used
later on from pp-printer-entry.c to know whether the "Clean" command is
available, in order to show a menu item "Clean Print Heads" (bug 764620).

https://bugzilla.gnome.org/show_bug.cgi?id=766861
2016-08-02 12:42:21 -06:00
Daniel Mustieles
2c5951819d Updated FSF's address 2014-01-29 11:27:38 +01:00
Marek Kasik
1eb906515f printers: Use GPLv2+ for files created by Marek Kasik
This commit is related to the bug #683420.
2012-09-11 15:02:26 +02:00
Stefano Facchini
49797e8ae2 printers: Add missing definition of HAVE_CUPS_1_6
Commit 1532d7ef forgot to actually define HAVE_CUPS_1_6
when building against CUPS 1.6

https://bugzilla.gnome.org/show_bug.cgi?id=683441
2012-09-05 18:47:59 +01:00
Marek Kasik
1532d7ef1a printers: Add PpMaintenanceCommand object for execution of commands
PpMaintenanceCommand object contains asynchronous method which executes
given CUPS maintenance command (e.g. "AutoConfigure"). (#683229)
2012-09-04 14:09:05 +02:00