Fix for bug 630885

This commit is contained in:
Arx Cruz 2010-11-18 14:54:36 -02:00
parent 54a8e7079a
commit 01bf7956d6

View File

@ -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: