diff options
author | Arx Cruz <arxcruz@src.gnome.org> | 2010-11-18 14:54:36 -0200 |
---|---|---|
committer | Arx Cruz <arxcruz@src.gnome.org> | 2010-11-18 14:54:36 -0200 |
commit | 01bf7956d6bba165326c99ea42f498687119b618 (patch) | |
tree | 86811afc867c0ae6f5f51ab620e62fb8e3847b6f /src/password.c | |
parent | 54a8e7079a65d8dd7aea344ece6a8dbc38b3e048 (diff) | |
download | zenity-01bf7956d6bba165326c99ea42f498687119b618.tar.gz |
Fix for bug 630885
Diffstat (limited to 'src/password.c')
-rw-r--r-- | src/password.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/password.c b/src/password.c index 3d9311a..2de1a76 100644 --- a/src/password.c +++ b/src/password.c @@ -155,7 +155,10 @@ zenity_password_dialog_response (GtkWidget *widget, int response, gpointer data) switch (response) { case GTK_RESPONSE_OK: zen_data->exit_code = zenity_util_return_exit_code (ZENITY_OK); - g_print ("%s\n", gtk_entry_get_text (GTK_ENTRY(password_data->entry_password))); + if (password_data->username) + g_print("%s|%s\n", gtk_entry_get_text (GTK_ENTRY(password_data->entry_username)), gtk_entry_get_text (GTK_ENTRY(password_data->entry_password))); + else + g_print ("%s\n", gtk_entry_get_text (GTK_ENTRY(password_data->entry_password))); break; case GTK_RESPONSE_CANCEL: |