summaryrefslogtreecommitdiff
path: root/gtk/gtkprintbackend.h
diff options
context:
space:
mode:
authorMatthias Clasen <matthiasc@src.gnome.org>2008-07-15 17:34:34 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2008-07-15 17:34:34 +0000
commit1eb96eadfc3349534617082f3bb5dd8be2f3a99a (patch)
tree403051291907f22e24287d20189bd7ed8eb68002 /gtk/gtkprintbackend.h
parent1ea43444be78b1c281dd888ff86eca838ec3c7c2 (diff)
downloadgtk+-1eb96eadfc3349534617082f3bb5dd8be2f3a99a.tar.gz
Bug 384940 – handle rejecting jobs and authentication meaningfully
Patch by Marek Kasik, icons by Mike Langlie: * gtk/gtk.symbols: * gtk/gtkprintbackend.h: * gtk/gtkprinter.[hc]: Add new paused and accepting-jobs properties and getters/setters. * gtk/gtkstock.h: * gtk/gtkiconfactory.c: * gtk/Makefile.am: * gtk/stock-icons/{16,24}/gtk-print-paused.{png,svg}: New icon. * modules/printbackends/cups/gtkprintbackendcups.c: * gtk/gtkprintunixdialog.c: Handle paused and job-rejecting printers. svn path=/trunk/; revision=20838
Diffstat (limited to 'gtk/gtkprintbackend.h')
-rw-r--r--gtk/gtkprintbackend.h50
1 files changed, 26 insertions, 24 deletions
diff --git a/gtk/gtkprintbackend.h b/gtk/gtkprintbackend.h
index a33f6d80fe..389ef00a53 100644
--- a/gtk/gtkprintbackend.h
+++ b/gtk/gtkprintbackend.h
@@ -149,30 +149,32 @@ void gtk_print_backend_set_list_done (GtkPrintBackend *bac
/* Backend-only functions for GtkPrinter */
-GtkPrinter *gtk_printer_new (const char *name,
- GtkPrintBackend *backend,
- gboolean is_virtual);
-gboolean gtk_printer_is_new (GtkPrinter *printer);
-void gtk_printer_set_is_new (GtkPrinter *printer,
- gboolean val);
-void gtk_printer_set_is_active (GtkPrinter *printer,
- gboolean val);
-void gtk_printer_set_has_details (GtkPrinter *printer,
- gboolean val);
-void gtk_printer_set_is_default (GtkPrinter *printer,
- gboolean val);
-void gtk_printer_set_icon_name (GtkPrinter *printer,
- const gchar *icon);
-gboolean gtk_printer_set_job_count (GtkPrinter *printer,
- gint count);
-gboolean gtk_printer_set_location (GtkPrinter *printer,
- const gchar *location);
-gboolean gtk_printer_set_description (GtkPrinter *printer,
- const gchar *description);
-gboolean gtk_printer_set_state_message (GtkPrinter *printer,
- const gchar *message);
-void gtk_printer_set_is_active (GtkPrinter *printer,
- gboolean active);
+GtkPrinter *gtk_printer_new (const char *name,
+ GtkPrintBackend *backend,
+ gboolean is_virtual);
+gboolean gtk_printer_is_new (GtkPrinter *printer);
+void gtk_printer_set_is_new (GtkPrinter *printer,
+ gboolean val);
+void gtk_printer_set_is_active (GtkPrinter *printer,
+ gboolean val);
+gboolean gtk_printer_set_is_paused (GtkPrinter *printer,
+ gboolean val);
+gboolean gtk_printer_set_is_accepting_jobs (GtkPrinter *printer,
+ gboolean val);
+void gtk_printer_set_has_details (GtkPrinter *printer,
+ gboolean val);
+void gtk_printer_set_is_default (GtkPrinter *printer,
+ gboolean val);
+void gtk_printer_set_icon_name (GtkPrinter *printer,
+ const gchar *icon);
+gboolean gtk_printer_set_job_count (GtkPrinter *printer,
+ gint count);
+gboolean gtk_printer_set_location (GtkPrinter *printer,
+ const gchar *location);
+gboolean gtk_printer_set_description (GtkPrinter *printer,
+ const gchar *description);
+gboolean gtk_printer_set_state_message (GtkPrinter *printer,
+ const gchar *message);
G_END_DECLS