for (l = m->gtktypes; l != NULL; l = l->next) {
if (strcmp (l->data, "BOXED") == 0) {
- error_printf (GOB_ERROR, m->line_no,
- "BOXED not allowed as "
+ error_printf (GOB_ERROR, m->line_no,
+ "BOXED not allowed as "
"a signal argument, use "
- "POINTER");
- continue;
+ "POINTER, or BOXED_*");
+ continue;
} else if (strcmp (l->data, "FLAGS") == 0) {
error_printf (GOB_ERROR, m->line_no,
"FLAGS not allowed as "
return num;
}
+int
+count_glade_widgets (Class *c)
+{
+ int num = 0;
+ GList *li;
+ for (li = c->nodes; li != NULL; li = li->next) {
+ Node *n = li->data;
+ if (n->type == VARIABLE_NODE) {
+ Variable *v = (Variable *)n;
+ if (v->glade_widget)
+ num++;
+ }
+ }
+ return num;
+}
+
gboolean
find_get_type (Class *c)
{