]> git.draconx.ca Git - gob-dx.git/blobdiff - src/parse.y
Release 0.93.3
[gob-dx.git] / src / parse.y
index 192e4c41c693545d48e4efb318e46cfff6ce8ab5..0161aea5095fd9d5281eda665eba1b11ff6217cc 100644 (file)
@@ -137,11 +137,22 @@ push_function(int scope, int method, char *oid, char *id,
           g_list_length(gtktypes) != g_list_length(funcargs) &&
           !(g_list_length(funcargs) == 1 &&
             g_list_length(gtktypes) == 2 &&
-            strcmp(gtktypes->next->data,"NONE")==0)) {
+            strcmp(gtktypes->next->data, "NONE")==0)) {
                print_error(TRUE, _("The number of GTK arguments and "
                                    "function arguments for a signal "
                                    "don't seem to match"), line_no);
        }
+       if(g_list_length(gtktypes) > 2) {
+               GList *li;
+               for(li = gtktypes->next; li; li = li->next) {
+                       if(strcmp(li->data, "NONE")==0) {
+                               print_error(FALSE,
+                                           _("NONE can only appear in an "
+                                             "argument list by itself"),
+                                           line_no);
+                       }
+               }
+       }
        if(cbuf) {
                char *p;
                c_cbuf = p = cbuf->str;