summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohan Dahlin <johan@gnome.org>2008-08-21 09:42:44 +0000
committerJohan Dahlin <johan@src.gnome.org>2008-08-21 09:42:44 +0000
commita12f4b7be7c37624953765e94f01e9bf34a8fea2 (patch)
treefb3740f4956b340f287377f7382c5d973db996bf
parent306db46123fef00d616201828bb1c3d6a43baeba (diff)
Mark g_object_get_type function as const, it's a fundamental type and can
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
-rw-r--r--gobject/ChangeLog7
-rw-r--r--gobject/gobject.h2
2 files changed, 8 insertions, 1 deletions
diff --git a/gobject/ChangeLog b/gobject/ChangeLog
index f46709937..ab94edaba 100644
--- a/gobject/ChangeLog
+++ b/gobject/ChangeLog
@@ -1,5 +1,12 @@
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
* gobject.c (g_object_get_type):
diff --git a/gobject/gobject.h b/gobject/gobject.h
index 53a6aed09..a75f03cb2 100644
--- a/gobject/gobject.h
+++ b/gobject/gobject.h
@@ -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,
...);