summaryrefslogtreecommitdiff
path: root/gtk/gtkprintbackend.h
diff options
context:
space:
mode:
authorAndre Heinecke <aheinecke@intevation.de>2014-08-19 17:55:47 +0200
committerMarek Kasik <mkasik@redhat.com>2014-09-01 22:39:51 +0200
commit382d68ff8e5701a10aa8d4f879c46c63c21e075f (patch)
treecbb059d3c0cdf71d090197170461880ce645c6d7 /gtk/gtkprintbackend.h
parentd5dae5b5dfef5d49cc8dd4e79afce31d832c7991 (diff)
downloadgtk+-382d68ff8e5701a10aa8d4f879c46c63c21e075f.tar.gz
Use secrets service for cups auth_info
When a printer requires auth_info (e.g. a printer connected over the samba protocol) it is now possible to save the credentials necessary for printing if a secrets service is available over dbus. The auth_info is then stored / loaded from the default collection of that secrets service. If no such service is available the user is not shown the option to remember the password and the behavior remains the same as before. https://bugzilla.gnome.org/show_bug.cgi?id=674264
Diffstat (limited to 'gtk/gtkprintbackend.h')
-rw-r--r--gtk/gtkprintbackend.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/gtk/gtkprintbackend.h b/gtk/gtkprintbackend.h
index 74bd291fe1..f4524e8965 100644
--- a/gtk/gtkprintbackend.h
+++ b/gtk/gtkprintbackend.h
@@ -124,12 +124,14 @@ struct _GtkPrintBackendClass
gpointer auth_info_default,
gpointer auth_info_display,
gpointer auth_info_visible,
- const gchar *prompt);
+ const gchar *prompt,
+ gboolean can_store_auth_info);
/* not a signal */
void (*set_password) (GtkPrintBackend *backend,
gchar **auth_info_required,
- gchar **auth_info);
+ gchar **auth_info,
+ gboolean store_auth_info);
/* Padding for future expansion */
void (*_gtk_reserved1) (void);
@@ -162,7 +164,8 @@ void gtk_print_backend_destroy (GtkPrintBackend *pri
GDK_AVAILABLE_IN_ALL
void gtk_print_backend_set_password (GtkPrintBackend *backend,
gchar **auth_info_required,
- gchar **auth_info);
+ gchar **auth_info,
+ gboolean can_store_auth_info);
/* Backend-only functions for GtkPrintBackend */