Commit graph

242 commits

Author SHA1 Message Date
Marek Kasik
8331c88bcd printers: Export name of selected PPD from PPD dialog
Add pp_ppd_selection_dialog_get_ppd_display_name() function
which returns human-readable name of selected PPD.

https://bugzilla.gnome.org/show_bug.cgi?id=695564
2014-07-31 11:44:16 +02:00
Marek Kasik
375c5b0086 printers: Separate canonicalization of device name
Move code for canonicalization of device names to
a separate function for reusability.

https://bugzilla.gnome.org/show_bug.cgi?id=695564
2014-07-31 11:44:16 +02:00
Marek Kasik
190d27b8aa printers: Merge TDevice into PpPrintDevice
PpPrintDevice has grown quite a lot since its introduction.
It contains almost all members of TDevice now.
Merging members of TDevice into PpPrintDevice saves us some work
and allows us to process TDevice's data out of pp-new-printer-dialog.c.

https://bugzilla.gnome.org/show_bug.cgi?id=695564
2014-07-31 11:44:16 +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
d32408c051 printers: Ellipsize long names and locations
Ellipsize long names of printers and long location strings
in the printers panel.

https://bugzilla.gnome.org/show_bug.cgi?id=661667
2014-04-30 11:32:42 +02:00
Marek Kasik
d057e16a7f printers: Don't fail when adding Samba printers with spaces
Escape characters in URIs composed for SMB shares since their names
can contain characters which are not allowed in URIs.

https://bugzilla.gnome.org/show_bug.cgi?id=699942
2014-03-28 11:12:01 +01:00
Marek Kasik
3bd0ba44ae printers: Define missing constant
Define HTTP_URI_STATUS_OK if compiling against CUPS 1.6 or lower.
(HTTP_URI_OK was renamed to HTTP_URI_STATUS_OK in CUPS 1.7.)

https://bugzilla.gnome.org/show_bug.cgi?id=725662
2014-03-04 16:47:11 +01:00
Marek Kasik
64ff0dd25a printers: Show connection type of found devices
Parse URIs of devices found by the new printer dialog and
show types of their connections for local printers or
locations for network printers or addresses for network
printers.

https://bugzilla.gnome.org/show_bug.cgi?id=693183
2014-02-28 11:07:51 +01:00
Marek Kasik
352f01bb11 printers: Don't set color for selected text
Show description of selected device in default color
in new printer dialog.

https://bugzilla.gnome.org/show_bug.cgi?id=693183
2014-02-28 11:07:48 +01:00
Marek Kasik
fc0a68430f printers: Set hostname for devices with no hostname
Guess hostname of found device if it was not provided before.

CUPS browses its printers as "PrinterName @ ComputerName" or
"PrinterInfo @ ComputerName" through DNS-SD. Get the last part
of that string and set it as hostname.

HPLIP printers have URIs of form
hp:/net/PrinterModel?ip=IPAddress&port=Port or
hp:/net/PrinterModel?ip=IPAddress.

URIs of other protocols are parsed by httpSeparateURI().

https://bugzilla.gnome.org/show_bug.cgi?id=693183
2014-02-26 12:09:36 +01:00
Marek Kasik
bd1f779608 printers: Delay searching for remote printers
Start to search for remote printers on given hostname after
500ms of user's inactivity instead of GtkSearchEntry's default
150ms (the search is very expensive operation).
Keep filtering devices list after the default 150ms and
search immediately if user activates the search entry.

https://bugzilla.gnome.org/show_bug.cgi?id=694154
2014-02-13 15:50:38 +01:00
Marek Kasik
25f9517656 printers: Don't react to icon-press when searching for new printers
There is no activatable icon in the new printer dialog.

https://bugzilla.gnome.org/show_bug.cgi?id=694154
2014-02-13 15:50:38 +01:00
Marek Kasik
e2e0c505eb printers: Don't show tooltip on clear icon when searching for printers
The clear icon doesn't do what its tooltip says.

https://bugzilla.gnome.org/show_bug.cgi?id=694154
2014-02-13 15:50:38 +01:00
Marek Kasik
22a558ef80 printers: Don't wait for activation to start search
Connect to "search-changed" signal of GtkSearchEntry instead of
"activate" signal when searching for new printers. Cancel previous
searches and start new ones as needed.

https://bugzilla.gnome.org/show_bug.cgi?id=694154
2014-02-13 15:50:37 +01:00
Marek Kasik
ad9c640f5c printers: Use "Default printer" instead of "Default"
Use "Default printer" in the main panel to clarify
what the check button represents.

https://bugzilla.gnome.org/show_bug.cgi?id=706896
2014-02-12 16:18:40 +01:00
Marek Kasik
6d5d28e7d4 printers: Vertically center text for no devices
Move the text "No printers detected." to its own GtkLabel
which is vertically and horizontally centerd and show it
instead of GtkTreeView when no devices were found.

https://bugzilla.gnome.org/show_bug.cgi?id=706897
2014-02-12 16:13:04 +01:00
Marek Kasik
1ed138e957 printers: Remove a memory leak
TDevice and PpPrintDevice structures have "host_name" member which
should be freed too.
2014-01-30 14:21:28 +01:00
Daniel Mustieles
2c5951819d Updated FSF's address 2014-01-29 11:27:38 +01:00
Marek Kasik
69fc7e9fdc printers: Show correct time of print job
g_date_time_new_local() expects month in range 1..12
but localtime() returns month in range 0..11.
g_date_time_new_local() also expects absolute value
for year but localtime() returns number of years since 1900.

Adding 1 to month and 1900 to year fixes this.
2014-01-15 16:59:31 +01:00
Yosef Or Boczko
84c792c7f4 printers: Use margin-start/end instead of margin-left/right
https://bugzilla.gnome.org/show_bug.cgi?id=712661
2013-11-19 22:28:28 +02:00
Jasper St. Pierre
dd52ac9417 Add NoDisplay to all gnome-control-center panel .desktop files
These aren't apps -- they're simply launchers for gnome-control-center.
They should not be shown as apps in the UI at all.

https://bugzilla.gnome.org/show_bug.cgi?id=712246
2013-11-15 08:44:53 -05:00
Rui Matos
b17bd4ea7e printers: Don't leak a couple of dialogs
https://bugzilla.gnome.org/show_bug.cgi?id=708286
2013-10-01 10:05:03 +02:00
Marek Kasik
fa5ed6cd41 printers: Show authenticated Samba servers in the list of new devices
When a Samba server which needs authentication is discovered, add
it to the list of new devices and allow user to authenticate against it
by pressing new "Authenticate" button.
Show only printers available on such a server when authenticated and
remove the server from the list.

https://bugzilla.gnome.org/show_bug.cgi?id=698532
2013-09-03 22:09:40 +02:00
Marek Kasik
03d463379f printers: Simplify freeing of lists of found printers
Create a dedicated function for freeing of PpDevicesList.

https://bugzilla.gnome.org/show_bug.cgi?id=698532
2013-09-03 22:09:39 +02:00
Marek Kasik
da28022da6 printers: Handle cancelling of authentication dialog
Add given Samba server to the list of found devices
if authentication dialog was cancelled.

https://bugzilla.gnome.org/show_bug.cgi?id=698532
2013-09-03 22:09:39 +02:00
Marek Kasik
22f508a7e1 printers: Authenticate Samba servers only when enabled
Add parameter which enables showing of authentication dialog
for Samba servers which need authentication.
Add samba server to the internal list of found devices if it needs
authentication and the authentication is disabled.

https://bugzilla.gnome.org/show_bug.cgi?id=698532
2013-09-03 22:09:39 +02:00
Marek Kasik
edcd8b1c13 printers: Enable use of emblems for printer icons
Use GIcon instead of icon names in PpNewPrinterDialog.

https://bugzilla.gnome.org/show_bug.cgi?id=698532
2013-09-03 22:09:39 +02:00
Marek Kasik
be6523b66c printers: Propagate cancellation of authentication dialog
Return "response_id" of PpAuthenticationDialog in its "response" signal.

https://bugzilla.gnome.org/show_bug.cgi?id=698532
2013-09-03 22:09:39 +02:00
Marek Kasik
203cb82a67 printers: Mark string translatable
Mark string "Enter address of a printer or a text to filter results"
as translatable.

https://bugzilla.gnome.org/show_bug.cgi?id=707083
2013-08-30 10:03:17 +02:00
Yosef Or Boczko
d49a097b3e printer: drop GtkStock
https://bugzilla.gnome.org/show_bug.cgi?id=704178
2013-07-19 15:57:53 +03:00
Thomas Wood
537e3336aa printers: prevent the "Options" dialog box from being resizable
https://bugzilla.gnome.org/show_bug.cgi?id=702487
2013-06-18 17:38:38 +01:00
Marek Kasik
bba624e9d3 printers: Don't move to beginning of list of new devices
Don't reset position of tree view containing new devices when
an actualization of the tree view is required.

https://bugzilla.gnome.org/show_bug.cgi?id=693185
2013-05-21 16:24:19 +02:00
Marek Kasik
8e1bfc521e printers: Replace deprecated function
Use gtk_container_add() instead of deprecated
gtk_scrolled_window_add_with_viewport().

https://bugzilla.gnome.org/show_bug.cgi?id=696766
2013-05-15 13:11:27 +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
Marek Kasik
72d63e49d1 printers: Don't crash without system-config-printer
Fix error handling in addition of new printer.

https://bugzilla.gnome.org/show_bug.cgi?id=698642
2013-04-24 15:52:42 +02:00
Marek Kasik
323c09e0b2 printers: Preserve width when setting default printer
Allocate fixed space for cell renderer showing icon of default
printer.

https://bugzilla.gnome.org/show_bug.cgi?id=690443
2013-04-23 13:38:48 +02:00
Marek Kasik
8cd8d8bdd2 printers: Show all printer devices
Get devices also from backends which are not hard-coded
in pp-utils.c. This is achieved by searching on all
backends with excluding hard-coded ones in the last search.

https://bugzilla.gnome.org/show_bug.cgi?id=693182
2013-03-14 15:15:36 +01:00
Marek Kasik
76d18ec85d printers: Don't crash after changing an option
Use GCancellable when setting a new value of an option.
This prevents Printers panel from crash caused by
calling of option widget's callback on finalized widget.

https://bugzilla.gnome.org/show_bug.cgi?id=694874
2013-03-04 12:05:18 +01:00
Marek Kasik
1cadc214ef printers: Don't ask for samba password if not needed
Ask for samba password only if returned directory is NULL
and errno is set to EACCES.

https://bugzilla.gnome.org/show_bug.cgi?id=694150
2013-02-19 14:35:06 +01:00
Marek Kasik
f4d1808b8c printers: Improve look of driver selection dialog
Add 10 pixels of padding between list of manufacturers
and list of drivers.

https://bugzilla.gnome.org/show_bug.cgi?id=690448
2013-02-19 14:35:00 +01:00
Allan Day
11bb915c0e printers: Update panel comments
Very few of the panel comments provide information that is very
useful. Update them to supplement the panel descriptions - this
will make the search results more helpful.

https://bugzilla.gnome.org/show_bug.cgi?id=694110
2013-02-19 10:41:43 +01: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
39071d5b56 printers: Show printer name only in the title of options dialog
The name of the printer is sufficient information to describe the contents of
the dialog. "Options" isn't necessary.

https://bugzilla.gnome.org/show_bug.cgi?id=690424
2013-02-15 18:33:46 +01:00
Marek Kasik
d33f14b70a printers: Move dialog names to their titles
https://bugzilla.gnome.org/show_bug.cgi?id=690447
2013-02-15 18:33:38 +01:00
Marek Kasik
d7f31fc41c printers: Search for samba printers in new printer dialog
Search for samba printers on local network or on specified
host. The new printer dialog asks for password for a samba
server if it is needed for listing printers on it. User is
asked for selection of driver from local database during
addition of new samba printer.

https://bugzilla.gnome.org/show_bug.cgi?id=683229
2013-02-15 18:23:56 +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
Marek Kasik
27aa41f5c1 printers: Visual improvements of driver selection dialog
Make the dialog bigger (600x400). Add padding between list of manufacturers
and the list of drivers. Add padding to manufacturers and drivers lists.
Change Manufacturers and Drivers to singular. Trigger resizing of treeview
when list has changed so it has optimal width.

https://bugzilla.gnome.org/show_bug.cgi?id=690448
2013-02-15 16:07:39 +01:00
Marek Kasik
22d8f1be60 printers: Have nicer icon for default printer
Change icon of default printer from emblem-default-symbolic
to object-select-symbolic. Make it follow the state of the cell
in which it is placed.

https://bugzilla.gnome.org/show_bug.cgi?id=690444
2013-01-16 12:44:21 +01:00