Mark g_object_get_type function as const, it's a fundamental type and can
authorJohan Dahlin <johan@gnome.org>
Thu, 21 Aug 2008 09:42:44 +0000 (09:42 +0000)
committerJohan Dahlin <johan@src.gnome.org>
Thu, 21 Aug 2008 09:42:44 +0000 (09:42 +0000)
2008-08-21  Johan Dahlin  <johan@gnome.org>

    * gobject.h:
    Mark g_object_get_type function as const, it's
    a fundamental type and can safely marked as const,
    as opposed to traditionally *_get_type functions.

svn path=/trunk/; revision=7378

gobject/ChangeLog
gobject/gobject.h

index f4670993709776a095eab1836c2ec6df8b2f2e7d..ab94edaba5b75a52a67a3072ca74ff3a73691bab 100644 (file)
@@ -1,3 +1,10 @@
+2008-08-21  Johan Dahlin  <johan@gnome.org>
+
+       * gobject.h:
+       Mark g_object_get_type function as const, it's
+       a fundamental type and can safely marked as const,
+       as opposed to traditionally *_get_type functions.
+
 2008-08-21  Johan Dahlin  <johan@gnome.org>
 
        Bug 548800 – Missing a g_object_get_type function
index 53a6aed09c88bb83f4b560e59bcb9bc342980edf..a75f03cb2b3e2b5017caf530ce2c266020554400 100644 (file)
@@ -396,7 +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);
+GType       g_object_get_type                 (void) G_GNUC_CONST;
 gpointer    g_object_new                      (GType           object_type,
                                               const gchar    *first_property_name,
                                               ...);