"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "shell/ev-password-view.c" between
evince-40.1.tar.xz and evince-40.2.tar.xz

About: Evince is a document viewer for multiple document formats. It currently supports PDF, Postscript, DjVu, TIFF, DVI, XPS, SyncTex and optionally some Comics formats (requires poppler and ghostview; GNOME).

ev-password-view.c  (evince-40.1.tar.xz):ev-password-view.c  (evince-40.2.tar.xz)
skipping to change at line 40 skipping to change at line 40
#include "ev-keyring.h" #include "ev-keyring.h"
#include "ev-password-view.h" #include "ev-password-view.h"
/* Define a maximum width in case there is a file with a very long name */ /* Define a maximum width in case there is a file with a very long name */
#define MAX_WIDHT_LABEL 64 #define MAX_WIDHT_LABEL 64
/* Define a maximum width for password entry */ /* Define a maximum width for password entry */
#define MAX_WIDHT_PASSWORD_ENTRY 32 #define MAX_WIDHT_PASSWORD_ENTRY 32
enum { enum {
UNLOCK, UNLOCK,
CANCELLED,
LAST_SIGNAL LAST_SIGNAL
}; };
typedef struct { typedef struct {
GtkWindow *parent_window; GtkWindow *parent_window;
GtkWidget *password_entry; GtkWidget *password_entry;
gchar *password; gchar *password;
GPasswordSave password_save; GPasswordSave password_save;
char *filename; char *filename;
skipping to change at line 92 skipping to change at line 93
password_view_signals[UNLOCK] = password_view_signals[UNLOCK] =
g_signal_new ("unlock", g_signal_new ("unlock",
G_TYPE_FROM_CLASS (g_object_class), G_TYPE_FROM_CLASS (g_object_class),
G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION, G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
G_STRUCT_OFFSET (EvPasswordViewClass, unlock), G_STRUCT_OFFSET (EvPasswordViewClass, unlock),
NULL, NULL, NULL, NULL,
g_cclosure_marshal_VOID__VOID, g_cclosure_marshal_VOID__VOID,
G_TYPE_NONE, 0); G_TYPE_NONE, 0);
password_view_signals[CANCELLED] =
g_signal_new ("cancelled",
G_TYPE_FROM_CLASS (g_object_class),
G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
G_STRUCT_OFFSET (EvPasswordViewClass, cancelled),
NULL, NULL,
g_cclosure_marshal_VOID__VOID,
G_TYPE_NONE, 0);
g_object_class->finalize = ev_password_view_finalize; g_object_class->finalize = ev_password_view_finalize;
} }
static void static void
ev_password_view_clicked_cb (GtkWidget *button, ev_password_view_clicked_cb (GtkWidget *button,
EvPasswordView *password_view) EvPasswordView *password_view)
{ {
ev_password_view_ask_password (password_view); ev_password_view_ask_password (password_view);
} }
skipping to change at line 184 skipping to change at line 194
priv = ev_password_view_get_instance_private (password_view); priv = ev_password_view_get_instance_private (password_view);
gtk_widget_set_sensitive (GTK_WIDGET (password_view), TRUE); gtk_widget_set_sensitive (GTK_WIDGET (password_view), TRUE);
if (response_id == GTK_RESPONSE_OK) { if (response_id == GTK_RESPONSE_OK) {
g_free (priv->password); g_free (priv->password);
priv->password = priv->password =
g_strdup (gtk_entry_get_text (GTK_ENTRY (priv->password_e ntry))); g_strdup (gtk_entry_get_text (GTK_ENTRY (priv->password_e ntry)));
g_signal_emit (password_view, password_view_signals[UNLOCK], 0); g_signal_emit (password_view, password_view_signals[UNLOCK], 0);
} else if (response_id == GTK_RESPONSE_CANCEL ||
response_id == GTK_RESPONSE_CLOSE ||
response_id == GTK_RESPONSE_DELETE_EVENT) {
g_signal_emit (password_view, password_view_signals[CANCELLED], 0
);
} }
gtk_widget_destroy (GTK_WIDGET (dialog)); gtk_widget_destroy (GTK_WIDGET (dialog));
} }
static void static void
ev_password_dialog_remember_button_toggled (GtkToggleButton *button, ev_password_dialog_remember_button_toggled (GtkToggleButton *button,
EvPasswordView *password_view) EvPasswordView *password_view)
{ {
EvPasswordViewPrivate *priv; EvPasswordViewPrivate *priv;
 End of changes. 3 change blocks. 
0 lines changed or deleted 15 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)