[libpeas] Small introspection and extension-c properties cleanup
- From: Steve Frécinaux <sfre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libpeas] Small introspection and extension-c properties cleanup
- Date: Mon, 7 Mar 2011 17:21:07 +0000 (UTC)
commit 0c8fc7a5c068df1673a459ac1ff399b2cf827e65
Author: Garrett Regier <alias301 gmail com>
Date: Mon Mar 7 08:04:34 2011 -0800
Small introspection and extension-c properties cleanup
G_PARAM_CONSTRUCT is pointless in a write-only property.
.../introspection/introspection-properties.c | 2 +-
.../plugins/extension-c/properties-plugin.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/tests/libpeas/introspection/introspection-properties.c b/tests/libpeas/introspection/introspection-properties.c
index f6f3dda..d739e1d 100644
--- a/tests/libpeas/introspection/introspection-properties.c
+++ b/tests/libpeas/introspection/introspection-properties.c
@@ -43,7 +43,7 @@ introspection_properties_default_init (IntrospectionPropertiesInterface *iface)
{
DEFINE_PROP ("construct-only", G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY);
DEFINE_PROP ("read-only", G_PARAM_READABLE);
- DEFINE_PROP ("write-only", G_PARAM_WRITABLE | G_PARAM_CONSTRUCT);
+ DEFINE_PROP ("write-only", G_PARAM_WRITABLE);
DEFINE_PROP ("readwrite", G_PARAM_READWRITE | G_PARAM_CONSTRUCT);
initialized = TRUE;
diff --git a/tests/libpeas/plugins/extension-c/properties-plugin.c b/tests/libpeas/plugins/extension-c/properties-plugin.c
index 469b1d6..0e663ee 100644
--- a/tests/libpeas/plugins/extension-c/properties-plugin.c
+++ b/tests/libpeas/plugins/extension-c/properties-plugin.c
@@ -82,7 +82,7 @@ testing_properties_plugin_set_property (GObject *object,
break;
case PROP_WRITE_ONLY:
- /* Don't bother actually doing anythin */
+ /* Don't bother actually doing anything */
break;
case PROP_READWRITE:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]