Commit graph

35 commits

Author SHA1 Message Date
Bastien Nocera
8a7d987ab0 build: libsmbclient is not optional
As the printers panel is not optional either.
2017-02-08 19:36:57 +01:00
Bastien Nocera
3f0510cac8 build: Better libm checks
Use AC_CHECK_LIBM instead of AC_CHECK_LIB(m,...
and use $(LIBM) instead of hardcoding "-lm" in Makefiles.
2017-02-08 19:21:53 +01:00
Felipe Borges
bd10fb5284 printers: Drop PpAuthenticationDialog
This dialog is no longer necessary since the authentication form
is now handled in the PpNewPrinterDialog itself.

https://bugzilla.gnome.org/show_bug.cgi?id=760783
2017-01-18 15:21:38 +01:00
Martin Hatina
a95bdb91bb printers: Introduce PpPrinter class
Introduce new class that represents printer.

https://bugzilla.gnome.org/show_bug.cgi?id=761539
2016-06-21 13:21:47 +02:00
Bastien Nocera
e48b3cc061 printers: Port tests to GTest 2016-06-10 17:10:35 +02:00
Felipe Borges
8baaa81a39 printers: redesign the Printer Jobs Dialog
Update the Printer Jobs Dialog to match the current designs at
https://wiki.gnome.org/Design/SystemSettings/Printers

https://bugzilla.gnome.org/show_bug.cgi?id=755626
2016-01-21 15:08:05 +01:00
Marek Kasik
7b21b22eef printers: Make PpPrintDevice a regular class
Create class PpPrintDevice with properties taken
from the original PpPrintDevice structure.

https://bugzilla.gnome.org/show_bug.cgi?id=749830
2015-07-30 16:28:06 +02:00
Michael Catanzaro
7b33be9d14 printers: Fix multiple definitions of libprinters_la_CPPFLAGS
CUPS_CPPFLAGS is in AM_CPPFLAGS, so we can just remove the first
definition (which I guess has been ignored).
2014-09-05 22:50:17 -05:00
Marek Kasik
4b64a64124 printers: Add test for canonicalize_device_name()
Add a test which tests function canonicalize_device_name() which
canonicalize name of printer model so it doesn't contain
unwanted strings/characters.
Test data are in canonicalization-test.txt file.

https://bugzilla.gnome.org/show_bug.cgi?id=695564
2014-07-31 11:44:17 +02:00
Marek Kasik
88fa618aca printers: Add function shift_string_left() and its test
shift_string_left() shifts given string by 1 character to the left.
test-shift.c tests whether function shift_string_left() works correctly.

https://bugzilla.gnome.org/show_bug.cgi?id=695564
2014-07-31 11:44:17 +02:00
Christophe Fergeau
08c9ecdffc printers: Use AM_CPPFLAGS rather than INCLUDES
This is deprecated in newer automake versions, and this causes warnings
with automake 1.14:
panels/printers/Makefile.am:3: warning: 'INCLUDES' is the old name for
AM_CPPFLAGS' (or '*_CPPFLAGS')

https://bugzilla.gnome.org/show_bug.cgi?id=732189
2014-06-25 12:46:42 +02:00
Marek Kasik
8586d99a88 printers: Don't show CUPS deprecation warnings
Hide CUPS deprecation warnings by definition of
_PPD_DEPRECATED="".

https://bugzilla.gnome.org/show_bug.cgi?id=696766
2013-05-15 13:11:26 +02:00
Bastien Nocera
ed896b8060 printers: Use CUPS CFLAGS when compiling 2013-02-18 09:43:15 +01:00
Jeremy Bicha
05e60169ea build: Disable printers panel is libsmbclient.pc isn't found
https://bugzilla.gnome.org/show_bug.cgi?id=693923
2013-02-18 09:42:58 +01:00
Marek Kasik
41924f8c75 printers: Add class for searching for samba printers
Add class PpSamba which contains asynchronous function
for searching for samba-shared printers. It can search
for printers on local network or on a specific host if
needed.

https://bugzilla.gnome.org/show_bug.cgi?id=683229
2013-02-15 18:23:53 +01:00
Marek Kasik
8f2d51cb5e printers: Add authentication dialog for samba printers
Add new class PpAuthenticationDialog which shows dialog
requesting username and password. The dialog has 3 parameters.
The first one is a text which will be shown to the user and
the second is username by which username entry will be prefilled.
The last parameter is parent window so thedialog is properly
decorated and positioned.

https://bugzilla.gnome.org/show_bug.cgi?id=683229
2013-02-15 18:23:49 +01:00
Colin Walters
b8e93fb333 printers: Fix build with srcdir != builddir 2013-01-07 12:30:32 +01:00
Cosimo Cecchi
3064425711 printers: use a GResource for GtkBuilder UI definition
https://bugzilla.gnome.org/show_bug.cgi?id=691132
2013-01-07 10:57:15 +01:00
Bastien Nocera
3686cf7eb8 shell: Make all control-center plugins static
This makes loading faster, with less I/O, avoids unnecessary
code duplication (around 1k lines shaved), and ensures that
all the panels link and work appropriately.

By the same token, it will stop external panels from being
created, and loaded.

https://bugzilla.gnome.org/show_bug.cgi?id=690036
2012-12-11 17:07:39 +01:00
Marek Kasik
dea424dbee printers: Add PpNewPrinter object for installation of new printer
PpNewPrinter contains asynchronous method for installation of
new printer. The new printer is specified by given parameters (e.g. name,
device-id, device-uri, ppd-name, info, location, ...). (#683229)
2012-09-04 14:09:05 +02: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
Marek Kasik
142d2c65b4 printers: Add PpHost object for listing print devices
This commit adds PpHost object which represents a remote
host from which we want to get printers. It contains
asynchronous method for enumerating printers list from the host
using CUPS' SNMP backend and method for enumerating printers list
directly from the remote CUPS server running on the host. (#683229)
2012-09-04 14:09:05 +02:00
Marek Kasik
5a2794a7fe printers: Add PpCups object for getting destinations
PpCups object represents local CUPS server. It contains
asynchronous method for getting printers installed on
the server. It is an asynchronous version of cupsGetDests().
(#683229)
2012-09-04 14:09:05 +02:00
Marek Kasik
c6d8b9c825 printers: Place jobs to separate dialog
This commit places list of jobs to separate dialog. The dialog
is updated through calling of pp_jobs_dialog_update()
from "Printers" panel because the panel is already subscribed
to cups notifications.
2012-08-07 14:09:33 +02:00
Marek Kasik
7ae3027b47 printer: Add "Options" dialog
Add Options dialog which allows users to set more options than current dialog.
The dialog reads printer's PPD file and add its options to the dialog together
with some preselected IPP options (#678637).
All operations in the dialog are asynchronous.
During implementation of this, the option for setting allowed users was removed
because this is not suitable for this panel (the option is intended for
administrators).
2012-07-16 15:26:33 +02:00
Marek Kasik
dd7479caea printers: Allow users to change printer's PPD file
This commit adds popup window which when activated allows
user to select PPD from local database of installed PPDs,
select directly PPD from filesystem or select one from 3
recommended PPDs (#678637).
The popup is activated by clicking on model field (the panel
has to be unlocked). It starts to search for the best PPDs
available immediately after its popup.
All operations are asynchronous.
2012-07-16 13:53:40 +02:00
Bastien Nocera
6665b60422 panels: Update for Shell API changes 2011-11-07 18:03:14 +00:00
Marek Kasik
8f4895559a Printers: Allow editing of printer name and location
Use CcEditableEntry for editing name and location of local printers
(#649511).
2011-05-27 13:38:15 +02:00
Marek Kasik
3fb4d4af27 printers: Add dialog for adding new printers
The dialog is able to add printers discovered by cupsGetDevices().
It can also add printers from a remote CUPS server by typing
its address and selecting printer we want to add (#640734).
2011-03-07 17:09:00 +01:00
Bastien Nocera
3336eb9d88 lib: Add a lock button
Instead of using a copy/pasted version, until GTK+ includes
such a button itself.
2011-02-23 14:59:21 +00:00
Thomas Wood
e2f944a66a configure: Group pkg-config checks based on how they are used
Group the pkg-config checks so that pkg-config can remove duplicated CFLAGS
and LIBS.

https://bugzilla.gnome.org/show_bug.cgi?id=636593
2011-02-19 16:46:26 +00:00
Emilio Pozuelo Monfort
55cfef36a6 printers: Link the printer panel with $(GNOMECC_CAPPLETS_LIBS)
https://bugzilla.gnome.org/show_bug.cgi?id=641972
2011-02-14 12:49:35 +01:00
Marek Kasik
6d27be8f78 printers: Add unlock button (#640733)
Add unlock button from the User Accounts panel to the Printer panel.
2011-02-02 16:59:50 +01:00
Bastien Nocera
d2ceab7be1 panels: Add capplet names
So that debug logs are useful, for those panels.
2011-01-19 15:43:18 +00:00
Marek Kasik
8c4511b52e Initial implementation of Printers panel
Created by Marek Kasik, modified by Jon McCann.
It has been implemented according to design at:
http://live.gnome.org/Design/SystemSettings/Printers
(not fully implemented yet)
2011-01-18 12:54:22 +01:00