[mutter] Add bits missing from last commit



commit 9d36e8d8537d9ef130eaa6315a25268e40ea231d
Author: William Jon McCann <jmccann redhat com>
Date:   Sat Jul 4 16:37:26 2009 +0100

    Add bits missing from last commit
    
    Try to reconstruct the marshal list and enum type templates and
    add templates to extra dist list.

 src/Makefile.am            |    2 ++
 src/mutter-enum-types.c.in |   40 ++++++++++++++++++++++++++++++++++++++++
 src/mutter-enum-types.h.in |   26 ++++++++++++++++++++++++++
 src/mutter-marshal.list    |    1 +
 4 files changed, 69 insertions(+), 0 deletions(-)
---
diff --git a/src/Makefile.am b/src/Makefile.am
index 3c69c17..3bc356f 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -275,6 +275,8 @@ EXTRA_DIST=$(desktopfiles_files) 	\
 	$(schema_in_files)		\
 	libmutter-private.pc.in	\
 	mutter-plugins.pc.in  \
+	mutter-enum-types.h.in \
+	mutter-enum-types.c.in \
 	mutter-marshal.list
 
 BUILT_SOURCES += $(mutter_built_sources)
diff --git a/src/mutter-enum-types.c.in b/src/mutter-enum-types.c.in
new file mode 100644
index 0000000..8bbc821
--- /dev/null
+++ b/src/mutter-enum-types.c.in
@@ -0,0 +1,40 @@
+/*** BEGIN file-header ***/
+#include "mutter-enum-types.h"
+/*** END file-header ***/
+
+/*** BEGIN file-production ***/
+
+/* enumerations from "@filename@" */
+#include "@filename@"
+
+/*** END file-production ***/
+
+/*** BEGIN value-header ***/
+GType
+ enum_name@_get_type (void)
+{
+  static volatile gsize g_enum_type_id__volatile = 0;
+
+  if (g_once_init_enter (&g_enum_type_id__volatile))
+    {
+      static const G Type@Value values[] = {
+/*** END value-header ***/
+
+/*** BEGIN value-production ***/
+        { @VALUENAME@, "@VALUENAME@", "@valuenick@" },
+/*** END value-production ***/
+
+/*** BEGIN value-tail ***/
+        { 0, NULL, NULL }
+      };
+      GType g_enum_type_id;
+
+      g_enum_type_id =
+        g_ type@_register_static (g_intern_static_string ("@EnumName@"), values);
+
+      g_once_init_leave (&g_enum_type_id__volatile, g_enum_type_id);
+    }
+
+  return g_enum_type_id__volatile;
+}
+/*** END value-tail ***/
diff --git a/src/mutter-enum-types.h.in b/src/mutter-enum-types.h.in
new file mode 100644
index 0000000..ad45cf8
--- /dev/null
+++ b/src/mutter-enum-types.h.in
@@ -0,0 +1,26 @@
+/*** BEGIN file-header ***/
+#ifndef __MUTTER_ENUM_TYPES_H__
+#define __MUTTER_ENUM_TYPES_H__
+
+#include <glib-object.h>
+
+G_BEGIN_DECLS
+
+/*** END file-header ***/
+
+/*** BEGIN file-production ***/
+/* enumerations from "@filename@" */
+/*** END file-production ***/
+
+/*** BEGIN file-tail ***/
+G_END_DECLS
+
+#endif /* !__MUTTER_ENUM_TYPES_H__ */
+/*** END file-tail ***/
+
+/*** BEGIN value-header ***/
+GType @enum_name _get_type (void) G_GNUC_CONST;
+#define MUTTER_TYPE_ ENUMSHORT@ (@enum_name _get_type())
+
+/*** END value-header ***/
+
diff --git a/src/mutter-marshal.list b/src/mutter-marshal.list
new file mode 100644
index 0000000..34c75c7
--- /dev/null
+++ b/src/mutter-marshal.list
@@ -0,0 +1 @@
+VOID:INT,INT,ENUM



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]