Make print dialog work when 'BrowseShortNames Off' is specified in cups

2006-11-25  Matthias Clasen  <mclasen@redhat.com>

        * modules/printbackends/cups/gtkprintbackendcups.c: Make
        print dialog work when 'BrowseShortNames Off' is specified
        in cups configuration. Patch by Tim Waugh.
This commit is contained in:
Matthias Clasen 2006-11-25 05:12:48 +00:00 committed by Matthias Clasen
parent 9c96044c00
commit 7ad533044a
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2006-11-25 Matthias Clasen <mclasen@redhat.com>
* modules/printbackends/cups/gtkprintbackendcups.c: Make
print dialog work when 'BrowseShortNames Off' is specified
in cups configuration. Patch by Tim Waugh.
2006-11-24 Michael Natterer <mitch@imendio.com>
* gtk/gtktreeview.c (gtk_tree_view_move_cursor_up_down): if we

View File

@ -1077,11 +1077,11 @@ cups_request_printer_list_cb (GtkPrintBackendCups *cups_backend,
resource);
#endif
if (member_uris && !strncmp (resource, "/printers/", 10))
if (!strncmp (resource, "/printers/", 10))
{
cups_printer->ppd_name = g_strdup (resource + 10);
GTK_NOTE (PRINTING,
g_print ("CUPS Backend: Setting ppd name '%s' for printer class '%s'\n", cups_printer->ppd_name, printer_name));
g_print ("CUPS Backend: Setting ppd name '%s' for printer/class '%s'\n", cups_printer->ppd_name, printer_name));
}
gethostname (uri, sizeof(uri));