summaryrefslogtreecommitdiff
path: root/gobject/tests/gproperty-example-derived.c
diff options
context:
space:
mode:
Diffstat (limited to 'gobject/tests/gproperty-example-derived.c')
-rw-r--r--gobject/tests/gproperty-example-derived.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/gobject/tests/gproperty-example-derived.c b/gobject/tests/gproperty-example-derived.c
index bdde06eaf..813c9093e 100644
--- a/gobject/tests/gproperty-example-derived.c
+++ b/gobject/tests/gproperty-example-derived.c
@@ -207,7 +207,8 @@ test_file_mp3_class_init (TestFileMp3Class *klass)
g_type_class_add_private (klass, sizeof (TestFileMp3Private));
test_file_mp3_properties[PROP_ALBUM] =
- g_string_property_new ("album", G_PROPERTY_READWRITE,
+ g_string_property_new ("album",
+ G_PROPERTY_READWRITE | G_PROPERTY_COPY_SET,
G_STRUCT_OFFSET (TestFileMp3Private, album),
NULL, NULL);
g_property_set_default (G_PROPERTY (test_file_mp3_properties[PROP_ALBUM]),
@@ -215,7 +216,8 @@ test_file_mp3_class_init (TestFileMp3Class *klass)
"Unknown Album");
test_file_mp3_properties[PROP_ARTIST] =
- g_string_property_new ("artist", G_PROPERTY_READWRITE,
+ g_string_property_new ("artist",
+ G_PROPERTY_READWRITE | G_PROPERTY_COPY_SET,
G_STRUCT_OFFSET (TestFileMp3Private, artist),
NULL, NULL);
g_property_set_default (G_PROPERTY (test_file_mp3_properties[PROP_ARTIST]),
@@ -223,7 +225,8 @@ test_file_mp3_class_init (TestFileMp3Class *klass)
"Unknown Author");
test_file_mp3_properties[PROP_TITLE] =
- g_string_property_new ("title", G_PROPERTY_READWRITE,
+ g_string_property_new ("title",
+ G_PROPERTY_READWRITE | G_PROPERTY_COPY_SET,
G_STRUCT_OFFSET (TestFileMp3Private, title),
NULL, NULL);
g_property_set_default (G_PROPERTY (test_file_mp3_properties[PROP_TITLE]),