Commit graph

116 commits

Author SHA1 Message Date
Felipe Borges
9f9c63fe8d printers: cancel cups subscriptions asynchronously
https://bugzilla.gnome.org/show_bug.cgi?id=748336
2016-03-02 17:16:15 +01:00
Felipe Borges
1d365545cf printers: set current page async
https://bugzilla.gnome.org/show_bug.cgi?id=748336
2016-02-25 16:14:53 +01:00
Felipe Borges
0a7cfa47fb printers: do async connection test during launch of panel
https://bugzilla.gnome.org/show_bug.cgi?id=748336
2016-02-25 16:14:37 +01:00
Felipe Borges
73b07a0b52 printers: use pp_cups_get_dests_async on printers panel
Instead of using the synchronous/blocking cupsGetDests function.

https://bugzilla.gnome.org/show_bug.cgi?id=748336
2016-02-19 15:53:02 +01:00
Felipe Borges
e9413b4b6a printers: polish empty state
If you don't have any printers, the panel used to look rather bare.
There was also a "No printers available" label, which was confusing,
and the insensitive list might be hard to understand.

https://bugzilla.gnome.org/show_bug.cgi?id=690351
2015-10-22 16:40:19 +02:00
Martin Hatina
7b6b3aac39 printers: Fix possible crash after closing the panel
Disconnect on_lockdown_settings_changed and on_permission_changed signals
when printers panels is being disposed, so they won't get called after panel
no longer exists.

https://bugzilla.redhat.com/show_bug.cgi?id=1218003
https://bugzilla.gnome.org/show_bug.cgi?id=750019
2015-06-09 14:35:01 +02:00
Prince781
e01951ede8 printers: Recognize more supply types
Recognize 'inkCartridge' and 'tonerCartridge' supply types.

https://bugzilla.gnome.org/show_bug.cgi?id=743331
2015-04-14 16:29:05 +02:00
Rui Matos
1df796ac28 printers: Drop remaining deprecated API usage
https://bugzilla.gnome.org/show_bug.cgi?id=740986
2015-01-08 19:04:53 +01:00
Marek Kasik
8c67e72821 printers: Fix padding of a progress text
Set padding of the text "Setting new driver" at runtime so that
it is aligned with other fields properly.

https://bugzilla.gnome.org/show_bug.cgi?id=739737
2014-11-25 12:01:17 +01:00
Marek Kasik
38958903ee printers: Add GtkLabel with printer model name
Place a custom GtkLabel with name of printer model
into "printer-model-button". This is needed for us to be
able to align the text and keep the button filling all available
horizontal space.

https://bugzilla.gnome.org/show_bug.cgi?id=739737
2014-11-25 12:01:17 +01:00
Marek Kasik
66eb1c9164 printers: Don't use methods of deprecated GtkMisc
Use GtkWidget's methods for settings of halign, valign and margin-start
instead of GtkMisc's methods for settings of xalign, yalign and xpad.

https://bugzilla.gnome.org/show_bug.cgi?id=739737
2014-11-25 12:01:17 +01: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
Daniel Mustieles
2c5951819d Updated FSF's address 2014-01-29 11:27:38 +01: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
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
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
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
Marek Kasik
3482dd19c9 printers: Control acceptance of jobs with enable switch
Control acceptance of jobs by selected printer together
with switch which controls whether printer is enabled/disabled.

Use word "Stopped" instead of "Paused" for disabled printers.

Show state "Does not accept jobs" if printer is enabled but doesn't
accept jobs.

https://bugzilla.gnome.org/show_bug.cgi?id=678668
2013-01-09 14:25:15 +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
Jeremy Bicha
190052ff74 printers: Use the proper Unicode ellipsis (…) instead of three dots
https://bugzilla.gnome.org/show_bug.cgi?id=689497
2012-12-03 09:12:47 -05:00
Marek Kasik
45ba8e89e8 printers: Redesign of new printer dialog
This commit implements design changes from
https://live.gnome.org/Design/SystemSettings/Printers.

The new printer dialog gets informations about connected devices
from CUPS server asynchronously and separately for each backend now.

Entering an address into the entry and pressing the icon inside
the entry or enter starts to detect printers on the entered host.

Entering a text which is a substring of a name of a device or its location
filters the list to contain just devicess with the string in it (e.g. Canon
will keep devices with "Canon" in their name).

The PpNewPrinterDialog is regular object now. It emits signal "pre-response"
when dialog is closed and a printer is being added and signal "response" when
the new printer was added, addition of the new printer failed or the dialog was
cancelled.
This commit removes FirewallD support from new printer dialog. (#683229)
2012-09-04 14:09:06 +02:00
Frédéric Péters
e87c564cdb printers: remove blank class_finalize function 2012-08-21 22:10:14 +02:00
Ray Strode
b0e7a5efa8 panels: add register macro
Bastien says he doesn't like the blank class_finalize
functions in every panel and he would like a wrapper
macro to hide them.

This commit does that.
2012-08-21 14:32:33 -04:00
Marek Kasik
71db59d9a2 printers: Remove obsoleted notebook page
This commit removes the notebook page which consists
old printer options. It was replaced by separate dialog.
2012-08-09 14:23:49 +02:00
Jiri Popelka
fa5e27d320 Use CUPS-1.6 IPP API getter/setter functions.
CUPS 1.6 makes various structures private and
introduces these ippGet and ippSet functions
for all of the fields in these structures.
http://www.cups.org/str.php?L3928

We define our own accessors when
building against CUPS < 1.6. (#679759)
(modified by Marek Kasik)
2012-08-08 14:35:58 +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
439b75fcea printers: Return accidentally removed code
Return implementation of get_help_uri() which was accidentally removed.
2012-08-07 12:28:05 +02:00
Marek Kasik
a6b2db1e17 printers: Cancel async operations properly
Don't call callbacks of async functions called
from Printers panel if they were cancelled.
User data are not valid in that case (rhbz#845496).
2012-08-07 11:54:11 +02:00
Marek Kasik
c272aa5eb5 printers: Don't restrict PPD list
Don't restrict PPD list to PPDs with DeviceIDs only.
Extend dictionary of manufacturers names.
2012-08-02 11:47:39 +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
Florian Müllner
0c353fb4a8 printers: Add get_help_uri() implementation
https://bugzilla.gnome.org/show_bug.cgi?id=675471
2012-05-18 18:48:38 +02:00
Marek Kasik
30a9c7c7a7 printers: Fix crash in actualize_printers_list()
This fixes a typo in handling of printers options in actualize_printers_list()
which caused a crash when number of printers exceeded number of options (#672689).
2012-03-23 14:30:24 +01:00
Robert Ancell
7dd5ae6b94 printers: Port to GDBus 2012-03-01 09:34:11 +11:00
Marek Kasik
8fdc455b21 printers: Check length of markers-related arrays
Prevent g-c-c from crashing because of different lengths of
arrays in which are informations about markers names, levels,
types and colors (rhbz#790430).
2012-02-15 16:30:26 +01:00
Marek Kasik
7aae99aea9 Printers: Remove some warnings
Properly initialize a GValue with G_VALUE_INIT.
Remove unused code.
2012-01-24 13:34:24 +01:00
Marek Kasik
b0288811dd Printers: Show correct icon in information tab
Set correct icon in main tab of Printers panel (remote vs. local).
2012-01-24 13:15:32 +01:00
Marek Kasik
b1228913ba Printers: Actualize list of jobs at better place
Actualize list of print jobs after connection of "changed" signal
to GtkTreeSelection and after reset of sensitivity state of
job-handling buttons.
2012-01-24 12:31:54 +01:00
Marek Kasik
5e4e429cd0 Printers: Use g_error_free() instead of g_clear_error ()
Replace g_clear_error() with more appropriate g_error_free()
where suitable. (#658581)
2012-01-23 16:40:36 +01:00
Marek Kasik
07c7ffaf0c Printers: Show correct hostnames for printers
Show correct hostname for each remote printer. G-c-c gets
it from printer-uri-supported or from device-uri CUPS options now.
It also set 'printer-network' icon for remote printers to have them
easily recognizable from local printers.
2012-01-06 13:08:25 +01:00
Marek Kasik
5421c92eb6 Printers: Don't crash because of external panel switch
Don't crash when exiting from new printer dialog due to external change
of panel (e.g. clicking "Network Settings" during run of the new printer
dialog). (rhbz #760587)
2011-12-12 12:56:00 +01:00
Marek Kasik
8fdbaea0e7 Printers: Store DBus subscription id for unsubscription
Store subscription id returned by g_dbus_connection_signal_subscribe()
and unsubscribe the signal with it when not needed any more. This should
fix rhbz #752168.
2011-11-28 15:41:11 +01:00
Marek Kasik
af40a98f80 Printers: Detect disconnection of printer
Connect to CUPS' "printer-stopped" event so the panel can change state
of the printer when unplugged (rhbz #743884).
2011-11-01 13:51:18 +01:00
Marek Kasik
6029100642 Printers: Set requesting-user-name when getting job info
CUPS has changed its policy for giving informations about jobs.
This fixes problem with actualization of list of print jobs.
2011-10-26 14:17:22 +02:00
Marek Kasik
86532624eb Printers: Make +/- buttons insensitive when can not connect to CUPS
Check whether sad computer is displayed and set sensitivity accordingly.
The check doesn't try to connect to CUPS because of performance reasons.
2011-10-14 19:23:50 +02:00
Marek Kasik
710a8d5c1f Printers: check state of CUPS after start
Check whether CUPS is running and add regular check for the case
when it doesn't. Actualize printers list after CUPS' start (#659721).
2011-09-29 14:53:18 +02:00
Rodrigo Moya
82a9cdb2ed Disable remove button if no printer is selected
https://bugzilla.gnome.org/show_bug.cgi?id=659724
2011-09-21 16:49:44 +02:00
Marek Kasik
337d7535b3 Printers: Make model label and ip address label selectable
This patch add selectable property into CcEditableEntry
and uses it in Printers panel (#651545).
2011-07-15 16:08:31 +02:00
Marek Kasik
3fe26cfe50 Printers: Move check for availability of CUPS to better place
Fixes problem of not showing information about stopped CUPS and
missing printers.
2011-06-03 12:51:57 +02:00