]> Pileus Git - ~andy/gtk/commitdiff
same change as in pango, so that flags types are registered as flags
authorJames Henstridge <james@daa.com.au>
Thu, 20 Sep 2001 15:41:20 +0000 (15:41 +0000)
committerJames Henstridge <jamesh@src.gnome.org>
Thu, 20 Sep 2001 15:41:20 +0000 (15:41 +0000)
2001-09-20  James Henstridge  <james@daa.com.au>

* Makefile.am (gdk-pixbuf-enum-types.c): same change as in pango,
so that flags types are registered as flags rather than enums (not
that there are any flags here at the moment).

gdk-pixbuf/ChangeLog
gdk-pixbuf/Makefile.am

index 06a662fa4ebc450b0f29d84b9650d32a48179048..d4cae50b5553448f580a902ca6738c7be35bd440 100644 (file)
@@ -1,3 +1,9 @@
+2001-09-20  James Henstridge  <james@daa.com.au>
+
+       * Makefile.am (gdk-pixbuf-enum-types.c): same change as in pango,
+       so that flags types are registered as flags rather than enums (not
+       that there are any flags here at the moment).
+
 Wed Sep 19 00:28:24 2001  Owen Taylor  <otaylor@redhat.com>
 
        * Makefile.am (gdk_pixbuf_headers): Don't include
index 93ff7588a31d08e1cbbf370b0fc405079d458a4f..f4515cd7d259297c9dd55326ce9a1143c61909f2 100644 (file)
@@ -270,9 +270,9 @@ $(srcdir)/gdk-pixbuf-enum-types.c: @REBUILD@ $(gdk_pixbuf_headers) Makefile
        cd $(srcdir) && glib-mkenums \
                --fhead "#include <gdk-pixbuf/gdk-pixbuf.h>" \
                --fprod "\n/* enumerations from \"@filename@\" */" \
-               --vhead "GType\n@enum_name@_get_type (void)\n{\n  static GType etype = 0;\n  if (etype == 0) {\n    static const GEnumValue values[] = {"       \
+               --vhead "GType\n@enum_name@_get_type (void)\n{\n  static GType etype = 0;\n  if (etype == 0) {\n    static const G@Type@Value values[] = {"       \
                --vprod "      { @VALUENAME@, \"@VALUENAME@\", \"@valuenick@\" }," \
-               --vtail "      { 0, NULL, NULL }\n    };\n    etype = g_enum_register_static (\"@EnumName@\", values);\n  }\n  return etype;\n}\n" \
+               --vtail "      { 0, NULL, NULL }\n    };\n    etype = g_@type@_register_static (\"@EnumName@\", values);\n  }\n  return etype;\n}\n" \
                  $(gdk_pixbuf_headers) > gdk-pixbuf-enum-types.c
 
 #