sms: fix setting multipart specific properties

Don't make them construct-only, so that we can set them whenever needed.
This commit is contained in:
Aleksander Morgado
2012-05-06 18:53:03 +02:00
parent 8a47621a5c
commit df1f21d17f

View File

@@ -1292,7 +1292,7 @@ mm_sms_class_init (MMSmsClass *klass)
"Is multipart",
"Flag specifying if the SMS is multipart",
FALSE,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY);
G_PARAM_READWRITE);
g_object_class_install_property (object_class, PROP_IS_MULTIPART, properties[PROP_IS_MULTIPART]);
properties[PROP_MAX_PARTS] =
@@ -1300,7 +1300,7 @@ mm_sms_class_init (MMSmsClass *klass)
"Max parts",
"Maximum number of parts composing this SMS",
1,255, 1,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY);
G_PARAM_READWRITE);
g_object_class_install_property (object_class, PROP_MAX_PARTS, properties[PROP_MAX_PARTS]);
properties[PROP_MULTIPART_REFERENCE] =
@@ -1308,6 +1308,6 @@ mm_sms_class_init (MMSmsClass *klass)
"Multipart reference",
"Common reference for all parts in the multipart SMS",
0, G_MAXUINT, 0,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY);
G_PARAM_READWRITE);
g_object_class_install_property (object_class, PROP_MULTIPART_REFERENCE, properties[PROP_MULTIPART_REFERENCE]);
}