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 | |
parent | Fix for bug 412493 (diff) | |
download | zenity-01bf7956d6bba165326c99ea42f498687119b618.tar.gz zenity-01bf7956d6bba165326c99ea42f498687119b618.tar.bz2 zenity-01bf7956d6bba165326c99ea42f498687119b618.zip |
Fix for bug 630885
Diffstat (limited to 'src')
-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 3d9311ab..2de1a76b 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: |