Mercurial > pidgin
changeset 7048:3f9e106dfeef
[gaim-migrate @ 7611]
Added support for masked and non-editable string fields in the UI.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Tue, 30 Sep 2003 02:34:29 +0000 |
parents | 7d1909655fd0 |
children | 167a92baeae6 |
files | src/gtkrequest.c src/request.c |
diffstat | 2 files changed, 10 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/gtkrequest.c Tue Sep 30 02:26:32 2003 +0000 +++ b/src/gtkrequest.c Tue Sep 30 02:34:29 2003 +0000 @@ -634,6 +634,9 @@ gtk_text_buffer_set_text(buffer, value, -1); } + gtk_text_view_set_editable(GTK_TEXT_VIEW(widget), + gaim_request_field_string_is_editable(field)); + g_signal_connect(G_OBJECT(textview), "focus-out-event", G_CALLBACK(field_string_focus_out_cb), field); @@ -644,6 +647,12 @@ if (value != NULL) gtk_entry_set_text(GTK_ENTRY(widget), value); + gtk_entry_set_visibility(GTK_ENTRY(widget), + !gaim_request_field_string_is_masked(field)); + + gtk_editable_set_editable(GTK_EDITABLE(widget), + gaim_request_field_string_is_editable(field)); + g_signal_connect(G_OBJECT(widget), "focus-out-event", G_CALLBACK(field_string_focus_out_cb), field);
--- a/src/request.c Tue Sep 30 02:26:32 2003 +0000 +++ b/src/request.c Tue Sep 30 02:34:29 2003 +0000 @@ -337,6 +337,7 @@ field = gaim_request_field_new(id, text, GAIM_REQUEST_FIELD_STRING); field->u.string.multiline = multiline; + field->u.string.editable = TRUE; gaim_request_field_string_set_default_value(field, default_value);