summaryrefslogtreecommitdiff
path: root/gobject/gvaluetypes.c
diff options
context:
space:
mode:
authorNicola Fontana <ntd@entidi.it>2011-11-29 22:02:00 -0500
committerMatthias Clasen <mclasen@redhat.com>2011-11-29 22:03:25 -0500
commitf24d8247b3a20cc62b4be50a0515acffd7e7d277 (patch)
treea15d9b8de0b3c963bd5e352fbd0e08ffdd51843d /gobject/gvaluetypes.c
parent1f33446e1fae721cc6c8f260afe2ebfa42dd51c8 (diff)
downloadglib-f24d8247b3a20cc62b4be50a0515acffd7e7d277.tar.gz
Do not use static GTypeInfo and GInterfaceInfo
Either g_type_register_static_simple (used by G_DEFINE_TYPE_EXTENDED) and G_IMPLEMENT_INTERFACE use automatic variables for GTypeInfo and GInterfaceInfo structs, while tutorials and source code often use static variables. This commit consistently adopts the former method. https://bugzilla.gnome.org/show_bug.cgi?id=600161
Diffstat (limited to 'gobject/gvaluetypes.c')
-rw-r--r--gobject/gvaluetypes.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gobject/gvaluetypes.c b/gobject/gvaluetypes.c
index 3afb30035..563699027 100644
--- a/gobject/gvaluetypes.c
+++ b/gobject/gvaluetypes.c
@@ -1424,7 +1424,7 @@ g_strdup_value_contents (const GValue *value)
GType
g_pointer_type_register_static (const gchar *name)
{
- static const GTypeInfo type_info = {
+ const GTypeInfo type_info = {
0, /* class_size */
NULL, /* base_init */
NULL, /* base_finalize */