bugGNUstep - Bugs: bug #10916, GSCUPS fails without default...

Group
 
 

bug #10916: GSCUPS fails without default printer

Submitter:  None
Submitted:  Fri 05 Nov 2004 05:32:09 AM UTC
   
 
Category:  Gui/AppKit Severity:  3 - Normal
Item Group:  Bug Status:  Fixed
Privacy:  Public Assigned to:  alexm
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 12 Jan 2005 12:23:55 AM UTC, comment #1: 

Fixed in cvs by:

Module name: gnustep
Branch:
Changes by: Alexander Malmberg <alexm@savannah.gnu.org> 05/01/11 23:39:41

Modified files:
core/gui       : ChangeLog
core/gui/Printing/GSCUPS: GSCUPSPrintInfo.m GSCUPSPrinter.h
                          GSCUPSPrinter.m

Log message:
2005-01-12 00:41  Alexander Malmberg <alexander@malmberg.org>

  • Printing/GSCUPS/GSCUPSPrinter.h (GSCUPSDummyPrinterName): New

variable.

  • Printing/GSCUPS/GSCUPSPrinter.m (GSCUPSDummyPrinterName): New

variable.
(+printerWithName:): Warn and return a dummy printer when requested.

  • Printing/GSCUPS/GSCUPSPrintInfo.m (defaultPrinter): If there's

no default CUPS printer set, return a dummy printer.

Fixes bug #10916.

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gnustep/gnustep/core/gui/ChangeLog.diff?tr1=1.2431&tr2=1.2432&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gnustep/gnustep/core/gui/Printing/GSCUPS/GSCUPSPrintInfo.m.diff?tr1=1.1&tr2=1.2&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gnustep/gnustep/core/gui/Printing/GSCUPS/GSCUPSPrinter.h.diff?tr1=1.1&tr2=1.2&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/gnustep/gnustep/core/gui/Printing/GSCUPS/GSCUPSPrinter.m.diff?tr1=1.1&tr2=1.2&r1=text&r2=text

Alexander Malmberg <alexm>
Group Member
Fri 05 Nov 2004 05:32:09 AM UTC, original submission:  

If you don't have a default printer selected in CUPS the GSCUPS backend will blowout with a "adding nil to dictionary... blah... PrintPrinter."

I guess we need some kind of popup that says:

"Printing Disabled.\n
\n
Please select a default printer, blah, blah in gnome-cups-manager or whatever to print."

And then obviously not crash. :-)

Cheers!

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

Only logged-in users can vote.

 

Follow 3 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2005-01-12 alexm StatusNone Fixed
    Assigned toNone alexm
    Open/ClosedOpen Closed

Back to the top

Powered by Savane 3.13-f8d8.
Corresponding source code