From dc3a49f93a0798b5c0c8d2fd6283f39294945045 Mon Sep 17 00:00:00 2001 From: Carlos Garcia Campos Date: Mon, 01 Dec 2008 11:16:43 +0000 Subject: Removed 2008-12-01 Carlos Garcia Campos * configure.ac: * shell/Makefile.am: * shell/ev-keyring.[ch]: * shell/ev-password.[ch]: Removed * shell/ev-password-view.[ch]: (ev_password_view_finalize), (ev_password_view_class_init), (ev_password_view_clicked_cb), (ev_password_view_init), (ev_password_view_set_uri), (ev_password_dialog_got_response), (ev_password_dialog_remember_button_toggled), (ev_password_dialog_entry_changed_cb), (ev_password_dialog_entry_activated_cb), (ev_password_view_ask_password), (ev_password_view_get_password), (ev_password_view_get_password_save_flags), (ev_password_view_new): * shell/ev-window.c: (ev_window_password_view_unlock), (ev_window_load_job_cb), (ev_window_close_dialogs), (ev_window_init): Rework the password view. When the password is in the keyring it's used automatically without showing the password dialog and it's only stored in the keyring when we are sure it's correct. The password dialog has been reworked too, in order to make it more hig compliant and consistent with the GTK+ dialog used in gtkmountoperation. Fixes bug #562496. svn path=/trunk/; revision=3281 --- (limited to 'shell/ev-password-view.h') diff --git a/shell/ev-password-view.h b/shell/ev-password-view.h index d59d62b..7f2670b 100644 --- a/shell/ev-password-view.h +++ b/shell/ev-password-view.h @@ -21,6 +21,7 @@ #define __EV_PASSWORD_VIEW_H__ #include +#include G_BEGIN_DECLS @@ -34,6 +35,7 @@ typedef struct _EvPasswordViewPrivate EvPasswordViewPrivate; struct _EvPasswordView { GtkViewport parent_instance; + EvPasswordViewPrivate *priv; }; @@ -44,11 +46,13 @@ struct _EvPasswordViewClass { void (*unlock) (EvPasswordView *self); }; -GType ev_password_view_get_type (void) G_GNUC_CONST; -GtkWidget *ev_password_view_new (void); -void ev_password_view_set_file_name (EvPasswordView *password_view, - const char *file_name); - +GType ev_password_view_get_type (void) G_GNUC_CONST; +GtkWidget *ev_password_view_new (GtkWindow *parent); +void ev_password_view_set_uri (EvPasswordView *password_view, + const char *uri); +void ev_password_view_ask_password (EvPasswordView *password_view); +const gchar *ev_password_view_get_password (EvPasswordView *password_view); +GPasswordSave ev_password_view_get_password_save_flags (EvPasswordView *password_view); G_END_DECLS -- cgit v0.9.1