Mercurial > pidgin.yaz
changeset 6324:01ce15fb27eb
[gaim-migrate @ 6823]
A few multi-field request fixes on the UI side. Labels with underscores in
them are now interpreted as accelerator keys. The separator between the
fields and buttons are now removed. Groups with a NULL title no longer
appear indented or have a nasty "(null)" title appearing. More to come.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Tue, 29 Jul 2003 05:30:16 +0000 |
parents | 5d7063e137da |
children | de67cb0dd09d |
files | src/gtkrequest.c |
diffstat | 1 files changed, 13 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/gtkrequest.c Tue Jul 29 04:42:12 2003 +0000 +++ b/src/gtkrequest.c Tue Jul 29 05:30:16 2003 +0000 @@ -483,8 +483,13 @@ group = gl->data; field_list = gaim_request_field_group_get_fields(group); - frame = gaim_gtk_make_frame(vbox, - gaim_request_field_group_get_title(group)); + if (gaim_request_field_group_get_title(group) != NULL) { + frame = gaim_gtk_make_frame(vbox, + gaim_request_field_group_get_title(group)); + } + else { + frame = vbox; + } field_count = g_list_length(field_list); @@ -524,8 +529,10 @@ if (type != GAIM_REQUEST_FIELD_BOOLEAN) { text = g_strdup_printf("%s:", - gaim_request_field_get_label(field)); - label = gtk_label_new(text); + gaim_request_field_get_label(field)); + + label = gtk_label_new(NULL); + gtk_label_set_markup_with_mnemonic(GTK_LABEL(label), text); g_free(text); gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5); @@ -668,10 +675,12 @@ g_object_unref(sg); +#if 0 /* Separator */ sep = gtk_hseparator_new(); gtk_box_pack_start(GTK_BOX(vbox), sep, FALSE, FALSE, 0); gtk_widget_show(sep); +#endif /* Button box. */ bbox = gtk_hbutton_box_new();