summaryrefslogtreecommitdiff
path: root/gobject
diff options
context:
space:
mode:
Diffstat (limited to 'gobject')
-rw-r--r--gobject/gbinding.c20
-rw-r--r--gobject/gbindinggroup.c4
-rw-r--r--gobject/gobject.c6
-rw-r--r--gobject/gsignalgroup.c8
4 files changed, 11 insertions, 27 deletions
diff --git a/gobject/gbinding.c b/gobject/gbinding.c
index 204dc44db..133676592 100644
--- a/gobject/gbinding.c
+++ b/gobject/gbinding.c
@@ -889,9 +889,7 @@ g_binding_class_init (GBindingClass *klass)
* Since: 2.26
*/
g_object_class_install_property (gobject_class, PROP_SOURCE,
- g_param_spec_object ("source",
- P_("Source"),
- P_("The source of the binding"),
+ g_param_spec_object ("source", NULL, NULL,
G_TYPE_OBJECT,
G_PARAM_CONSTRUCT_ONLY |
G_PARAM_READWRITE |
@@ -904,9 +902,7 @@ g_binding_class_init (GBindingClass *klass)
* Since: 2.26
*/
g_object_class_install_property (gobject_class, PROP_TARGET,
- g_param_spec_object ("target",
- P_("Target"),
- P_("The target of the binding"),
+ g_param_spec_object ("target", NULL, NULL,
G_TYPE_OBJECT,
G_PARAM_CONSTRUCT_ONLY |
G_PARAM_READWRITE |
@@ -923,9 +919,7 @@ g_binding_class_init (GBindingClass *klass)
* Since: 2.26
*/
g_object_class_install_property (gobject_class, PROP_SOURCE_PROPERTY,
- g_param_spec_string ("source-property",
- P_("Source Property"),
- P_("The property on the source to bind"),
+ g_param_spec_string ("source-property", NULL, NULL,
NULL,
G_PARAM_CONSTRUCT_ONLY |
G_PARAM_READWRITE |
@@ -942,9 +936,7 @@ g_binding_class_init (GBindingClass *klass)
* Since: 2.26
*/
g_object_class_install_property (gobject_class, PROP_TARGET_PROPERTY,
- g_param_spec_string ("target-property",
- P_("Target Property"),
- P_("The property on the target to bind"),
+ g_param_spec_string ("target-property", NULL, NULL,
NULL,
G_PARAM_CONSTRUCT_ONLY |
G_PARAM_READWRITE |
@@ -957,9 +949,7 @@ g_binding_class_init (GBindingClass *klass)
* Since: 2.26
*/
g_object_class_install_property (gobject_class, PROP_FLAGS,
- g_param_spec_flags ("flags",
- P_("Flags"),
- P_("The binding flags"),
+ g_param_spec_flags ("flags", NULL, NULL,
G_TYPE_BINDING_FLAGS,
G_BINDING_DEFAULT,
G_PARAM_CONSTRUCT_ONLY |
diff --git a/gobject/gbindinggroup.c b/gobject/gbindinggroup.c
index e5c8980bf..fa3e996b7 100644
--- a/gobject/gbindinggroup.c
+++ b/gobject/gbindinggroup.c
@@ -348,9 +348,7 @@ g_binding_group_class_init (GBindingGroupClass *klass)
* Since: 2.72
*/
properties[PROP_SOURCE] =
- g_param_spec_object ("source",
- "Source",
- "The source GObject used for binding properties.",
+ g_param_spec_object ("source", NULL, NULL,
G_TYPE_OBJECT,
(G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY | G_PARAM_STATIC_STRINGS));
diff --git a/gobject/gobject.c b/gobject/gobject.c
index a61754b9f..1dec5062d 100644
--- a/gobject/gobject.c
+++ b/gobject/gobject.c
@@ -820,13 +820,13 @@ find_pspec (GObjectClass *class,
* GObjectClass *gobject_class = G_OBJECT_CLASS (klass);
*
* obj_properties[PROP_FOO] =
- * g_param_spec_int ("foo", "Foo", "Foo",
+ * g_param_spec_int ("foo", NULL, NULL,
* -1, G_MAXINT,
* 0,
* G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS);
*
* obj_properties[PROP_BAR] =
- * g_param_spec_string ("bar", "Bar", "Bar",
+ * g_param_spec_string ("bar", NULL, NULL,
* NULL,
* G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS);
*
@@ -1629,7 +1629,7 @@ g_object_notify (GObject *object,
* static void
* my_object_class_init (MyObjectClass *klass)
* {
- * properties[PROP_FOO] = g_param_spec_int ("foo", "Foo", "The foo",
+ * properties[PROP_FOO] = g_param_spec_int ("foo", NULL, NULL,
* 0, 100,
* 50,
* G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS);
diff --git a/gobject/gsignalgroup.c b/gobject/gsignalgroup.c
index e773fc040..c0dfd32bc 100644
--- a/gobject/gsignalgroup.c
+++ b/gobject/gsignalgroup.c
@@ -611,9 +611,7 @@ g_signal_group_class_init (GSignalGroupClass *klass)
* Since: 2.72
*/
properties[PROP_TARGET] =
- g_param_spec_object ("target",
- "Target",
- "The target instance used when connecting signals.",
+ g_param_spec_object ("target", NULL, NULL,
G_TYPE_OBJECT,
(G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY | G_PARAM_STATIC_STRINGS));
@@ -625,9 +623,7 @@ g_signal_group_class_init (GSignalGroupClass *klass)
* Since: 2.72
*/
properties[PROP_TARGET_TYPE] =
- g_param_spec_gtype ("target-type",
- "Target Type",
- "The GType of the target property.",
+ g_param_spec_gtype ("target-type", NULL, NULL,
G_TYPE_OBJECT,
(G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS));