Bug 548800 – Missing a g_object_get_type function
authorJohan Dahlin <johan@gnome.org>
Thu, 21 Aug 2008 09:18:25 +0000 (09:18 +0000)
committerJohan Dahlin <johan@src.gnome.org>
Thu, 21 Aug 2008 09:18:25 +0000 (09:18 +0000)
2008-08-21  Johan Dahlin  <johan@gnome.org>

    Bug 548800 – Missing a g_object_get_type function

    * gobject.c (g_object_get_type):
    * gobject.h:
    * gobject.symbols:
    Add g_object_get_type

svn path=/trunk/; revision=7377

gobject/ChangeLog
gobject/gobject.c
gobject/gobject.h
gobject/gobject.symbols

index 5a6e5cd..f467099 100644 (file)
@@ -1,3 +1,12 @@
+2008-08-21  Johan Dahlin  <johan@gnome.org>
+
+       Bug 548800 – Missing a g_object_get_type function
+
+       * gobject.c (g_object_get_type):
+       * gobject.h:
+       * gobject.symbols:
+       Add g_object_get_type
+
 2008-08-20  Johan Dahlin  <johan@gnome.org>
 
        Bug 548689 – The type name for GParamSpec is wrong
index 5f4ba99..577de2b 100644 (file)
@@ -1022,6 +1022,12 @@ object_interface_check_properties (gpointer func_data,
   g_free (pspecs);
 }
 
+GType
+g_object_get_type (void)
+{
+    return G_TYPE_OBJECT;
+}
+
 /**
  * g_object_new:
  * @object_type: the type id of the #GObject subtype to instantiate
index f2653d3..53a6aed 100644 (file)
@@ -396,6 +396,7 @@ GParamSpec* g_object_interface_find_property    (gpointer     g_iface,
 GParamSpec**g_object_interface_list_properties  (gpointer     g_iface,
                                                 guint       *n_properties_p);
 
+GType       g_object_get_type                 (void);
 gpointer    g_object_new                      (GType           object_type,
                                               const gchar    *first_property_name,
                                               ...);
index 430e499..7a98dc3 100644 (file)
@@ -126,6 +126,7 @@ g_object_get G_GNUC_NULL_TERMINATED
 g_object_get_data
 g_object_get_property
 g_object_get_qdata
+g_object_get_type
 g_object_get_valist
 g_object_interface_find_property
 g_object_interface_install_property