Mercurial > pidgin
comparison src/gtkrequest.c @ 11986:bfbb1798535e
[gaim-migrate @ 14279]
Switch to using the unicode character 0x25cf instead of an asterisk as
our password masking character.
In the words of the great Christian Hammond, "By the way, isn't it
about time we replace the asterisk in masked entries with that unicode
character for the round filled circle ("?")? The asterisk is so 1980s."
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Sat, 05 Nov 2005 23:42:35 +0000 |
parents | 8cb75ba77f9d |
children | 29dc8fc0dd6c |
comparison
equal
deleted
inserted
replaced
11985:41d84ac57cb6 | 11986:bfbb1798535e |
---|---|
411 | 411 |
412 if (default_value != NULL) | 412 if (default_value != NULL) |
413 gtk_entry_set_text(GTK_ENTRY(entry), default_value); | 413 gtk_entry_set_text(GTK_ENTRY(entry), default_value); |
414 | 414 |
415 if (masked) | 415 if (masked) |
416 { | |
416 gtk_entry_set_visibility(GTK_ENTRY(entry), FALSE); | 417 gtk_entry_set_visibility(GTK_ENTRY(entry), FALSE); |
418 gtk_entry_set_invisible_char(GTK_ENTRY(entry), GAIM_INVISIBLE_CHAR); | |
419 } | |
417 } | 420 } |
418 } | 421 } |
419 | 422 |
420 gaim_set_accessible_label (entry, label); | 423 gaim_set_accessible_label (entry, label); |
421 data->u.input.entry = entry; | 424 data->u.input.entry = entry; |
1111 setup_entry_field(widget, field); | 1114 setup_entry_field(widget, field); |
1112 | 1115 |
1113 if (value != NULL) | 1116 if (value != NULL) |
1114 gtk_entry_set_text(GTK_ENTRY(widget), value); | 1117 gtk_entry_set_text(GTK_ENTRY(widget), value); |
1115 | 1118 |
1116 gtk_entry_set_visibility(GTK_ENTRY(widget), | 1119 if (gaim_request_field_string_is_masked(field)) |
1117 !gaim_request_field_string_is_masked(field)); | 1120 { |
1121 gtk_entry_set_visibility(GTK_ENTRY(widget), FALSE); | |
1122 gtk_entry_set_invisible_char(GTK_ENTRY(widget), GAIM_INVISIBLE_CHAR); | |
1123 } | |
1118 | 1124 |
1119 gtk_editable_set_editable(GTK_EDITABLE(widget), | 1125 gtk_editable_set_editable(GTK_EDITABLE(widget), |
1120 gaim_request_field_string_is_editable(field)); | 1126 gaim_request_field_string_is_editable(field)); |
1121 | 1127 |
1122 g_signal_connect(G_OBJECT(widget), "focus-out-event", | 1128 g_signal_connect(G_OBJECT(widget), "focus-out-event", |