]> git.draconx.ca Git - gob-dx.git/blobdiff - src/checks.c
Release 2.0.13
[gob-dx.git] / src / checks.c
index ab6b8b3098660dc1477f24a0b4458520f4a9dd95..cccdedba562a4d80537724b79749d8d8aada9326 100644 (file)
@@ -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)
 {