Bug 743884 - Printer list not updated when device disconnected
Summary: Printer list not updated when device disconnected
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: control-center
Version: 16
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Marek Kašík
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-10-06 11:42 UTC by Tim Waugh
Modified: 2011-11-18 16:19 UTC (History)
3 users (show)

Fixed In Version: control-center-3.2.2-1.fc16.x86_64
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-11-18 16:19:22 UTC
Type: ---


Attachments (Terms of Use)

Description Tim Waugh 2011-10-06 11:42:02 UTC
Description of problem:
With the Printers settings window open, disconnecting a connected printer does not show any effect even though the CUPS queue has been paused.

Reloading it by clicking All Settings and then Printers shows it correctly: the list item is shown "greyed" and the on-off widget is set to OFF.

Reconnecting the printer does correctly update the window.

Version-Release number of selected component (if applicable):
control-center-3.2.0-1.fc16.x86_64

How reproducible:
100%

Steps to Reproduce:
1.Plug in printer
2.System Settings -> Printers
3.Disconnect printer
  
Actual results:
No change shown in the window

Expected results:
New printer state should be shown.

Comment 1 Marek Kašík 2011-11-01 13:21:04 UTC
Hi,

I've just committed a fix for this into upstream's git. It will be available in gnome-control-center-3.2.2 release (which should be available at 16th of November).
The problem here was that the panel was not connected to CUPS' event "printer-stopped". But it have been connected to "printer-state-changed" and this is strange because the printer changes state when unplugged but CUPS doesn't emit "printer-state-changed" for that, just the "printer-stopped".

Isn't this a bug in CUPS?

Regards

Marek

Comment 2 Tim Waugh 2011-11-04 11:49:15 UTC
Thanks.

> Isn't this a bug in CUPS?

No, this seems to be according to how RFC 3995 says it should work (ref. 5.3.3.5.1).

Comment 3 Tim Waugh 2011-11-18 16:19:22 UTC
Fix verified.  Thanks!

control-center-3.2.2-1.fc16.x86_64


Note You need to log in before you can comment on or make changes to this bug.