bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #15710] PrinterPanel -> Preview button -> Uncaught exception when n


From: Nikolaus Waxweiler
Subject: [bug #15710] PrinterPanel -> Preview button -> Uncaught exception when no previewing app can be executed
Date: Sat, 11 Feb 2006 17:27:16 +0000
User-agent: Opera/8.51 (X11; FreeBSD i386; U; en)

URL:
  <http://savannah.gnu.org/bugs/?func=detailitem&item_id=15710>

                 Summary: PrinterPanel -> Preview button -> Uncaught
exception when no previewing app can be executed
                 Project: GNUstep
            Submitted by: madleser
            Submitted on: Sat 02/11/06 at 17:27
                Category: Gui/AppKit
                Severity: 3 - Normal
              Item Group: Bug
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open

    _______________________________________________________

Details:

When no previewing application is found, "gv" is set as the default app, but
nothing is done to check if gv is actually installed. A solution would be to
replace gnustep/libs/gui/trunk/Source/GSPrintOperation.m, line 147 ("[task
launch];") with:

          if ([task validatedLaunchPath])
            { 
              [task launch];
            }
          else
           { 
             /* XXX: Let the user specify something, check if it exists and
save it to standardUserDefaults? */
             NSRunAlertPanel(@"Error", @"Could not find a previewing
application.",
                             @"OK", NULL, NULL);
             success = NO;
           }

A possible interface-design problem with this is that when clicking "OK", the
PrintPanel disappears, so the check would have to be implemented in
NSPrintPanel.m. 
Uh.. but maybe it's not an issue. No idea.






    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?func=detailitem&item_id=15710>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]