Mercurial > pidgin.yaz
changeset 5813:b116f3a73256
[gaim-migrate @ 6243]
The fields are aligned now.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Sun, 08 Jun 2003 09:33:12 +0000 |
parents | ad28c689dc8e |
children | fb9209877f37 |
files | src/gtkrequest.c |
diffstat | 1 files changed, 7 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/gtkrequest.c Sun Jun 08 09:19:55 2003 +0000 +++ b/src/gtkrequest.c Sun Jun 08 09:33:12 2003 +0000 @@ -340,6 +340,7 @@ GtkWidget *frame; GtkWidget *label; GtkWidget *table; + GtkSizeGroup *sg; GList *gl, *fl; GaimRequestFieldGroup *group; GaimRequestField *field; @@ -366,6 +367,8 @@ gtk_container_add(GTK_CONTAINER(win), vbox); gtk_widget_show(vbox); + sg = gtk_size_group_new(GTK_SIZE_GROUP_HORIZONTAL); + if (primary != NULL || secondary != NULL) { label_text = g_strdup_printf("<span weight=\"bold\" size=\"larger\">" "%s</span>\n\n%s", @@ -439,6 +442,8 @@ gtk_misc_set_alignment(GTK_MISC(label), 0, 0.5); + gtk_size_group_add_widget(sg, label); + gtk_table_attach_defaults(GTK_TABLE(table), label, col_offset, col_offset + 1, row_num, row_num + 1); @@ -554,6 +559,8 @@ } } + g_object_unref(sg); + gtk_widget_show(win); return data;