summaryrefslogtreecommitdiff
path: root/modules/printbackends/cups/gtkprintercups.h
diff options
context:
space:
mode:
authorJohn Palmieri <johnp@src.gnome.org>2006-07-06 17:55:32 +0000
committerJohn Palmieri <johnp@src.gnome.org>2006-07-06 17:55:32 +0000
commit828014328c583c0470f9f29efd27e81021129c10 (patch)
tree2fe936e2133e30dcd77d19b13a38b756dbd1167a /modules/printbackends/cups/gtkprintercups.h
parent0407469ce1fb7af3d73daac06e70807ae428da59 (diff)
downloadgdk-pixbuf-828014328c583c0470f9f29efd27e81021129c10.tar.gz
Get the name of the first printer in a class to use when requesting a PPD
* modules/printbackends/cups/gtkprintbackendcups.c: (cups_request_printer_list_cb): Get the name of the first printer in a class to use when requesting a PPD (cups_request_ppd_cb, cups_request_ppd): Fix the parameters of the "details-acquired" signal emittion (cups_request_ppd): get the ppd name from the cups printer * modules/printbackends/cups/gtkprintercups.c (gtk_printer_cups_get_ppd_name): New method for getting the name of the ppd we should request
Diffstat (limited to 'modules/printbackends/cups/gtkprintercups.h')
-rw-r--r--modules/printbackends/cups/gtkprintercups.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/printbackends/cups/gtkprintercups.h b/modules/printbackends/cups/gtkprintercups.h
index 510050918..d33a5ab5e 100644
--- a/modules/printbackends/cups/gtkprintercups.h
+++ b/modules/printbackends/cups/gtkprintercups.h
@@ -50,6 +50,7 @@ struct _GtkPrinterCups
ipp_pstate_t state;
gboolean reading_ppd;
+ gchar *ppd_name;
ppd_file_t *ppd_file;
};
@@ -63,7 +64,8 @@ GType gtk_printer_cups_get_type (void) G_GNUC_CONST;
void gtk_printer_cups_register_type (GTypeModule *module);
GtkPrinterCups *gtk_printer_cups_new (const char *name,
GtkPrintBackend *backend);
-ppd_file_t * gtk_printer_cups_get_ppd (GtkPrinterCups *printer);
+ppd_file_t *gtk_printer_cups_get_ppd (GtkPrinterCups *printer);
+char *gtk_printer_cups_get_ppd_name (GtkPrinterCups *printer);
G_END_DECLS