X-Git-Url: http://git.draconx.ca/gitweb/gob-dx.git/blobdiff_plain/4f0369e24277442e70d0edaab02b022bc7a2b6f5..a8ea1a669f332b0ed29c6271896476f59f357533:/src/checks.c diff --git a/src/checks.c b/src/checks.c index ab6b8b3..63f44cc 100644 --- a/src/checks.c +++ b/src/checks.c @@ -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) {