diff src/request.c @ 7905:1d0bc32f8038

[gaim-migrate @ 8565] This should be sufficient for a working label field type. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Sun, 21 Dec 2003 09:04:43 +0000
parents 9b478c6e0bfa
children 5be22af4ebfc
line wrap: on
line diff
--- a/src/request.c	Sun Dec 21 08:57:56 2003 +0000
+++ b/src/request.c	Sun Dec 21 09:04:43 2003 +0000
@@ -762,6 +762,19 @@
 	return field->u.list.items;
 }
 
+GaimRequestField *
+gaim_request_field_label_new(const char *id, const char *text)
+{
+	GaimRequestField *field;
+
+	g_return_val_if_fail(id   != NULL, NULL);
+	g_return_val_if_fail(text != NULL, NULL);
+
+	field = gaim_request_field_new(id, text, GAIM_REQUEST_FIELD_LABEL);
+
+	return field;
+}
+
 /* -- */
 
 void *