Fix the declarations of the new functions to return GType, not void. Also
authorMatthias Clasen <maclas@gmx.de>
Tue, 6 Jul 2004 14:13:24 +0000 (14:13 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Tue, 6 Jul 2004 14:13:24 +0000 (14:13 +0000)
Tue Jul  6 00:46:43 2004  Matthias Clasen  <maclas@gmx.de>

* gtypemodule.h:
* gtypemodule.c: Fix the declarations of the new
functions to return GType, not void.
Also add missing includes.  (#145508, Morten Welinder)

gobject/ChangeLog
gobject/gtypemodule.c
gobject/gtypemodule.h

index 5d912c4e2340d87eb6d0848fc400f9b5200bb8b6..fbc3b662caf222678296570432adf42240391ca6 100644 (file)
@@ -1,3 +1,10 @@
+Tue Jul  6 00:46:43 2004  Matthias Clasen  <maclas@gmx.de>
+
+       * gtypemodule.h: 
+       * gtypemodule.c: Fix the declarations of the new 
+       functions to return GType, not void. 
+       Also add missing includes.  (#145508, Morten Welinder)
+
 Tue Jul  6 00:46:43 2004  Matthias Clasen  <maclas@gmx.de>
 
        * gtypemodule.h: 
index bb3df5b0ae804ff44d21e749308020444a8959b3..0c917c0d3ec7ba2cc69b57fd0a4a2fd85b9cf27b 100644 (file)
@@ -388,7 +388,7 @@ g_type_module_add_interface (GTypeModule          *module,
   module_interface_info->info = *interface_info;
 }
 
-void
+GType
 g_type_module_register_enum (GTypeModule      *module,
                              const gchar      *name,
                              const GEnumValue *const_static_values)
@@ -406,7 +406,7 @@ g_type_module_register_enum (GTypeModule      *module,
                                       G_TYPE_ENUM, name, &enum_type_info, 0);
 }
 
-void
+GType
 g_type_module_register_flags (GTypeModule      *module,
                              const gchar       *name,
                              const GFlagsValue *const_static_values)
index 863ea153fdc337f65a02f2857a9add5c6e147ef8..ad2c6421ba316b0b6f8e7ac600c37ac4770913b4 100644 (file)
@@ -24,6 +24,7 @@
 #define __G_TYPE_MODULE_H__
 
 #include <gobject/gobject.h>
+#include <gobject/genums.h>
 
 G_BEGIN_DECLS
 
@@ -79,10 +80,10 @@ void     g_type_module_add_interface  (GTypeModule          *module,
                                        GType                 instance_type,
                                        GType                 interface_type,
                                        const GInterfaceInfo *interface_info);
-void     g_type_module_register_enum  (GTypeModule          *module,
+GType    g_type_module_register_enum  (GTypeModule          *module,
                                        const gchar          *name,
                                        const GEnumValue     *const_static_values);
-void     g_type_module_register_flags (GTypeModule          *module,
+GType    g_type_module_register_flags (GTypeModule          *module,
                                        const gchar          *name,
                                        const GFlagsValue    *const_static_values);