aboutsummaryrefslogtreecommitdiffstats
path: root/print/pdq/files/patch-ag
blob: f904a2fd58e08bc7b6ef7c481836a98cc32e4b6a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
--- src/xpdq_wizard.c.orig  Sat Apr  1 05:36:30 2000
+++ src/xpdq_wizard.c   Fri Aug 11 22:37:29 2000
@@ -315,6 +315,7 @@
    driver *d;
    int i, row;
    char *dname;
+   char *error;
 
    panel = gtk_vbox_new (FALSE, 0);
    gtk_container_border_width (GTK_CONTAINER (panel), 10);
@@ -348,9 +349,11 @@
    gtk_clist_set_selection_mode (GTK_CLIST(widget), GTK_SELECTION_BROWSE);
    list = first_list_element (rc->driver_list);
    if (list == NULL) {
-      xpdq_error ("This system has no drivers.  Please make sure\n"
-         "that there are drivers defined in /etc/printrc, ~/.printrc,\n"
-    "or in files included by /etc/printrc or ~/.printrc.");
+      error = malloc(256);
+      sprintf(error, "This system has no drivers.  Please make sure\n"
+         "that there are drivers defined in %s, ~/.printrc,\n"
+    "or in files included by %s or ~/.printrc.", PRINTRC_FILE, PRINTRC_FILE);
+      xpdq_error(error);
    }
    while (list != NULL) {
       d = (driver *) list->data;