X-Git-Url: http://git.draconx.ca/gitweb/gob-dx.git/blobdiff_plain/8445442abc02fc325a9ce228759403113583818c..9b591a326d98245379213aecaf39d1f44f4ff5a7:/src/parse.y diff --git a/src/parse.y b/src/parse.y index 1831ad0..d77fb54 100644 --- a/src/parse.y +++ b/src/parse.y @@ -22,7 +22,7 @@ */ %{ -#include "config.h" +#include #include #include #include @@ -45,6 +45,7 @@ static GList *flag_vals = NULL; static GList *error_vals = NULL; static gboolean abstract = FALSE; +static gboolean dynamic = FALSE; static char *chunk_size = NULL; static char *bonobo_object_class = NULL; static int glade_xml = FALSE; @@ -613,9 +614,9 @@ property_link_and_export (Node *node) const char *setcast = ""; char *to_free = NULL; set_func = g_strdup_printf ("g_value_set_%s", prop->gtktype); - g_strdown (set_func); + gob_strdown (set_func); get_func = g_strdup_printf ("g_value_get_%s", prop->gtktype); - g_strdown (get_func); + gob_strdown (get_func); if (for_cpp) { if (strcmp (prop->gtktype, "FLAGS") == 0) { @@ -821,6 +822,7 @@ classdec: CLASS TYPETOKEN FROM TYPETOKEN classflags { "interfaces:steal", interfaces, "chunk_size:steal", chunk_size, "abstract", abstract, + "dynamic", dynamic, NULL); bonobo_object_class = NULL; glade_xml = FALSE; @@ -833,6 +835,8 @@ classflags: | '(' TOKEN ')' classflags { if(strcmp($2,"abstract") == 0) { abstract = TRUE; + } else if(strcmp($2,"dynamic") == 0) { + dynamic = TRUE; } else { yyerror(_("parse error")); YYERROR;