diff options
author | Stefano Karapetsas <[email protected]> | 2012-12-14 08:03:06 -0800 |
---|---|---|
committer | Stefano Karapetsas <[email protected]> | 2012-12-14 08:03:06 -0800 |
commit | 633888e6d08db32937799634da238ad2d8e575a2 (patch) | |
tree | 8748cb9f9fb57738a14422972f7af9c740cd7589 /capplets/about-me/mate-about-me-password.c | |
parent | 6540605b4e786e2ce75d2dd89aa3c66e961265b8 (diff) | |
parent | 37b7b37e16c6f8067ff213b9436027b362c476a8 (diff) | |
download | mate-control-center-633888e6d08db32937799634da238ad2d8e575a2.tar.bz2 mate-control-center-633888e6d08db32937799634da238ad2d8e575a2.tar.xz |
Merge pull request #26 from sbalneav/master
Get about-me functional.
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; |