X-Git-Url: http://git.draconx.ca/gitweb/gob-dx.git/blobdiff_plain/308dc7bdfb924370cfd205f656eb0e83191d01a9..4d534c82fb65897999ade6867534ab952a9bc019:/src/checks.c diff --git a/src/checks.c b/src/checks.c index ab6b8b3..cccdedb 100644 --- a/src/checks.c +++ b/src/checks.c @@ -335,11 +335,11 @@ check_signal_args (Class *c) 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 " @@ -676,6 +676,22 @@ count_initializers (Class *c) 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) {