# HG changeset patch # User Sadrul Habib Chowdhury # Date 1247639719 0 # Node ID 710cbace0076ce42df439b0eca80bb740948e677 # Parent b20d8387577176c2ba6fca8d85f64cb102a4f564 Do not show hidden request fields. diff -r b20d83875771 -r 710cbace0076 finch/gntrequest.c --- a/finch/gntrequest.c Wed Jul 15 06:13:23 2009 +0000 +++ b/finch/gntrequest.c Wed Jul 15 06:35:19 2009 +0000 @@ -317,6 +317,8 @@ { PurpleRequestField *field = fields->data; PurpleRequestFieldType type = purple_request_field_get_type(field); + if (!purple_request_field_is_visible(field)) + continue; if (type == PURPLE_REQUEST_FIELD_BOOLEAN) { GntWidget *check = FINCH_GET_DATA(field); @@ -598,11 +600,13 @@ for (; fields ; fields = fields->next) { - /* XXX: Break each of the fields into a separate function? */ PurpleRequestField *field = fields->data; PurpleRequestFieldType type = purple_request_field_get_type(field); const char *label = purple_request_field_get_label(field); + if (!purple_request_field_is_visible(field)) + continue; + hbox = gnt_hbox_new(TRUE); /* hrm */ gnt_box_add_widget(GNT_BOX(box), hbox);