diff options
author | Scott Balneaves <[email protected]> | 2012-12-12 19:21:20 -0600 |
---|---|---|
committer | Scott Balneaves <[email protected]> | 2012-12-12 19:21:20 -0600 |
commit | 61b61c3fb75dee78f362558764149e18df75c96a (patch) | |
tree | cce2a85914a7c3e97d19dcb1fc5b240bb70d48f5 /capplets/about-me/mate-about-me-password.c | |
parent | 6540605b4e786e2ce75d2dd89aa3c66e961265b8 (diff) | |
download | mate-control-center-61b61c3fb75dee78f362558764149e18df75c96a.tar.bz2 mate-control-center-61b61c3fb75dee78f362558764149e18df75c96a.tar.xz |
First cut at fixing about-me
Diffstat (limited to 'capplets/about-me/mate-about-me-password.c')
-rw-r--r-- | capplets/about-me/mate-about-me-password.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/capplets/about-me/mate-about-me-password.c b/capplets/about-me/mate-about-me-password.c index 80f8e4ca..87bf084c 100644 --- a/capplets/about-me/mate-about-me-password.c +++ b/capplets/about-me/mate-about-me-password.c @@ -210,6 +210,7 @@ spawn_passwd (PasswordDialog *pdialog, GError **error) g_set_error (error, PASSDLG_ERROR, PASSDLG_ERROR_BACKEND, + "%s", strerror (errno)); /* Clean up */ @@ -427,7 +428,7 @@ io_watch_stdout (GIOChannel *source, GIOCondition condition, PasswordDialog *pdi GError *error = NULL; gchar *msg = NULL; /* Status error message */ - GtkBuilder *dialog; + GtkBuilder *dialog = NULL; gboolean reinit = FALSE; @@ -722,13 +723,13 @@ passdlg_error_dialog (GtkWindow *parent, const gchar *title, dialog = gtk_message_dialog_new (parent, GTK_DIALOG_MODAL, GTK_MESSAGE_ERROR, GTK_BUTTONS_OK, - msg); + "%s", msg); if (title) gtk_window_set_title (GTK_WINDOW (dialog), title); if (details) gtk_message_dialog_format_secondary_text (GTK_MESSAGE_DIALOG (dialog), - details); + "%s", details); gtk_dialog_run (GTK_DIALOG (dialog)); gtk_widget_destroy (dialog); } @@ -872,7 +873,7 @@ passdlg_authenticate (GtkButton *button, PasswordDialog *pdialog) static guint passdlg_validate_passwords (PasswordDialog *pdialog) { - GtkBuilder *dialog; + GtkBuilder *dialog = NULL; const gchar *new_password, *retyped_password; glong nlen, rlen; |