summaryrefslogtreecommitdiff
path: root/tests/refcount
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 /tests/refcount
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 'tests/refcount')
-rw-r--r--tests/refcount/objects.c2
-rw-r--r--tests/refcount/objects2.c2
-rw-r--r--tests/refcount/properties.c2
-rw-r--r--tests/refcount/properties2.c2
-rw-r--r--tests/refcount/signals.c2
5 files changed, 5 insertions, 5 deletions
diff --git a/tests/refcount/objects.c b/tests/refcount/objects.c
index 3724c0e9d..1c40c6474 100644
--- a/tests/refcount/objects.c
+++ b/tests/refcount/objects.c
@@ -37,7 +37,7 @@ my_test_get_type (void)
static GType test_type = 0;
if (!test_type) {
- static const GTypeInfo test_info = {
+ const GTypeInfo test_info = {
sizeof (GTestClass),
NULL,
NULL,
diff --git a/tests/refcount/objects2.c b/tests/refcount/objects2.c
index 39f580f8c..b57863d4b 100644
--- a/tests/refcount/objects2.c
+++ b/tests/refcount/objects2.c
@@ -36,7 +36,7 @@ my_test_get_type (void)
static GType test_type = 0;
if (!test_type) {
- static const GTypeInfo test_info = {
+ const GTypeInfo test_info = {
sizeof (GTestClass),
NULL,
NULL,
diff --git a/tests/refcount/properties.c b/tests/refcount/properties.c
index 87bb8b5f9..a69e3ecc3 100644
--- a/tests/refcount/properties.c
+++ b/tests/refcount/properties.c
@@ -54,7 +54,7 @@ my_test_get_type (void)
static GType test_type = 0;
if (!test_type) {
- static const GTypeInfo test_info = {
+ const GTypeInfo test_info = {
sizeof (GTestClass),
NULL,
NULL,
diff --git a/tests/refcount/properties2.c b/tests/refcount/properties2.c
index 862bd2f57..90ea42bf5 100644
--- a/tests/refcount/properties2.c
+++ b/tests/refcount/properties2.c
@@ -51,7 +51,7 @@ my_test_get_type (void)
static GType test_type = 0;
if (!test_type) {
- static const GTypeInfo test_info = {
+ const GTypeInfo test_info = {
sizeof (GTestClass),
NULL,
NULL,
diff --git a/tests/refcount/signals.c b/tests/refcount/signals.c
index 2877995f2..90bae419b 100644
--- a/tests/refcount/signals.c
+++ b/tests/refcount/signals.c
@@ -68,7 +68,7 @@ my_test_get_type (void)
static GType test_type = 0;
if (!test_type) {
- static const GTypeInfo test_info = {
+ const GTypeInfo test_info = {
sizeof (GTestClass),
NULL,
NULL,