From f3aebf0c157dc7ddf250b7d22f5d9f338f1317e2 Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Wed, 29 Nov 2023 13:23:09 +0000 Subject: [PATCH 1/3] gio: Add various missing property documentation comments Previously these properties would have been documented using the strings from the pspec, but those will be removed in the following commit. Re-add the documentation using those strings, but as gi-docgen documentation comments. Signed-off-by: Philip Withnall Helps: #2991 --- gio/gapplication.c | 49 +++++++++++++++++++++++++++ gio/gapplicationcommandline.c | 29 ++++++++++++++++ gio/gbufferedinputstream.c | 5 +++ gio/gbufferedoutputstream.c | 10 ++++++ gio/gcharsetconverter.c | 23 +++++++++++++ gio/gconverterinputstream.c | 5 +++ gio/gconverteroutputstream.c | 5 +++ gio/gemblem.c | 14 ++++++++ gio/gemblemedicon.c | 7 ++++ gio/gfileenumerator.c | 5 +++ gio/gfilemonitor.c | 10 ++++++ gio/gfilterinputstream.c | 10 ++++++ gio/gfilteroutputstream.c | 10 ++++++ gio/ginetaddress.c | 14 ++++++++ gio/ginetaddressmask.c | 23 +++++++++++++ gio/ginetsocketaddress.c | 16 ++++++++- gio/giostream.c | 22 ++++++++++++ gio/gnetworkaddress.c | 22 ++++++++++++ gio/gnetworkservice.c | 31 +++++++++++++++++ gio/gproxyaddress.c | 35 +++++++++++++++++++ gio/gproxyaddressenumerator.c | 10 ++++++ gio/gsimpleiostream.c | 4 +++ gio/gsocket.c | 63 +++++++++++++++++++++++++++++++++++ gio/gsocketaddress.c | 7 ++++ gio/gsocketclient.c | 49 +++++++++++++++++++++++++++ gio/gsocketconnection.c | 7 ++++ gio/gsocketlistener.c | 8 +++++ gio/gsubprocess.c | 15 +++++++++ gio/gsubprocesslauncher.c | 7 ++++ gio/gtcpconnection.c | 7 ++++ gio/gtcpwrapperconnection.c | 7 ++++ gio/gthreadedsocketservice.c | 7 ++++ gio/gtlspassword.c | 21 ++++++++++++ gio/gunixfdmessage.c | 7 ++++ gio/gunixsocketaddress.c | 24 +++++++++++++ gio/gzlibcompressor.c | 16 +++++++++ gio/gzlibdecompressor.c | 7 ++++ 37 files changed, 610 insertions(+), 1 deletion(-) diff --git a/gio/gapplication.c b/gio/gapplication.c index 602b265f1..49a701233 100644 --- a/gio/gapplication.c +++ b/gio/gapplication.c @@ -1484,6 +1484,13 @@ g_application_class_init (GApplicationClass *class) class->dbus_unregister = g_application_real_dbus_unregister; class->name_lost = g_application_real_name_lost; + /** + * GApplication:application-id: + * + * The unique identifier for the application. + * + * Since: 2.28 + */ g_object_class_install_property (object_class, PROP_APPLICATION_ID, g_param_spec_string ("application-id", P_("Application identifier"), @@ -1491,6 +1498,13 @@ g_application_class_init (GApplicationClass *class) NULL, G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS)); + /** + * GApplication:flags: + * + * Flags specifying the behaviour of the application. + * + * Since: 2.28 + */ g_object_class_install_property (object_class, PROP_FLAGS, g_param_spec_flags ("flags", P_("Application flags"), @@ -1498,24 +1512,52 @@ g_application_class_init (GApplicationClass *class) G_TYPE_APPLICATION_FLAGS, G_APPLICATION_DEFAULT_FLAGS, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * GApplication:resource-base-path: + * + * The base resource path for the application. + * + * Since: 2.28 + */ g_object_class_install_property (object_class, PROP_RESOURCE_BASE_PATH, g_param_spec_string ("resource-base-path", P_("Resource base path"), P_("The base resource path for the application"), NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * GApplication:is-registered: + * + * Whether [method@Gio.Application.register] has been called. + * + * Since: 2.28 + */ g_object_class_install_property (object_class, PROP_IS_REGISTERED, g_param_spec_boolean ("is-registered", P_("Is registered"), P_("If g_application_register() has been called"), FALSE, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); + /** + * GApplication:is-remote: + * + * Whether this application instance is remote. + * + * Since: 2.28 + */ g_object_class_install_property (object_class, PROP_IS_REMOTE, g_param_spec_boolean ("is-remote", P_("Is remote"), P_("If this application instance is remote"), FALSE, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); + /** + * GApplication:inactivity-timeout: + * + * Time (in milliseconds) to stay alive after becoming idle. + * + * Since: 2.28 + */ g_object_class_install_property (object_class, PROP_INACTIVITY_TIMEOUT, g_param_spec_uint ("inactivity-timeout", P_("Inactivity timeout"), @@ -1523,6 +1565,13 @@ g_application_class_init (GApplicationClass *class) 0, G_MAXUINT, 0, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * GApplication:action-group: + * + * The group of actions that the application exports. + * + * Since: 2.28 + */ g_object_class_install_property (object_class, PROP_ACTION_GROUP, g_param_spec_object ("action-group", P_("Action group"), diff --git a/gio/gapplicationcommandline.c b/gio/gapplicationcommandline.c index 75ad912f7..b64a65d07 100644 --- a/gio/gapplicationcommandline.c +++ b/gio/gapplicationcommandline.c @@ -438,6 +438,14 @@ g_application_command_line_class_init (GApplicationCommandLineClass *class) class->done = g_application_command_line_real_done; + /** + * GApplicationCommandLine:arguments: + * + * The commandline that caused this [signal@Gio.Application::command-line] + * signal emission. + * + * Since: 2.28 + */ g_object_class_install_property (object_class, PROP_ARGUMENTS, g_param_spec_variant ("arguments", P_("Commandline arguments"), @@ -446,6 +454,13 @@ g_application_command_line_class_init (GApplicationCommandLineClass *class) G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS)); + /** + * GApplicationCommandLine:options: + * + * The options sent along with the commandline. + * + * Since: 2.28 + */ g_object_class_install_property (object_class, PROP_OPTIONS, g_param_spec_variant ("options", P_("Options"), @@ -453,6 +468,13 @@ g_application_command_line_class_init (GApplicationCommandLineClass *class) G_VARIANT_TYPE_VARDICT, NULL, G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS)); + /** + * GApplicationCommandLine:platform-data: + * + * Platform-specific data for the commandline. + * + * Since: 2.28 + */ g_object_class_install_property (object_class, PROP_PLATFORM_DATA, g_param_spec_variant ("platform-data", P_("Platform data"), @@ -461,6 +483,13 @@ g_application_command_line_class_init (GApplicationCommandLineClass *class) G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS)); + /** + * GApplicationCommandLine:is-remote: + * + * Whether this is a remote commandline. + * + * Since: 2.28 + */ g_object_class_install_property (object_class, PROP_IS_REMOTE, g_param_spec_boolean ("is-remote", P_("Is remote"), diff --git a/gio/gbufferedinputstream.c b/gio/gbufferedinputstream.c index 799cc71cb..e4536e8ae 100644 --- a/gio/gbufferedinputstream.c +++ b/gio/gbufferedinputstream.c @@ -157,6 +157,11 @@ g_buffered_input_stream_class_init (GBufferedInputStreamClass *klass) bstream_class->fill_async = g_buffered_input_stream_real_fill_async; bstream_class->fill_finish = g_buffered_input_stream_real_fill_finish; + /** + * GBufferedInputStream:buffer-size: + * + * The size of the backend buffer, in bytes. + */ g_object_class_install_property (object_class, PROP_BUFSIZE, g_param_spec_uint ("buffer-size", diff --git a/gio/gbufferedoutputstream.c b/gio/gbufferedoutputstream.c index 728677f20..a8b92503d 100644 --- a/gio/gbufferedoutputstream.c +++ b/gio/gbufferedoutputstream.c @@ -145,6 +145,11 @@ g_buffered_output_stream_class_init (GBufferedOutputStreamClass *klass) ostream_class->close_async = g_buffered_output_stream_close_async; ostream_class->close_finish = g_buffered_output_stream_close_finish; + /** + * GBufferedOutputStream:buffer-size: + * + * The size of the backend buffer, in bytes. + */ g_object_class_install_property (object_class, PROP_BUFSIZE, g_param_spec_uint ("buffer-size", @@ -156,6 +161,11 @@ g_buffered_output_stream_class_init (GBufferedOutputStreamClass *klass) G_PARAM_READWRITE|G_PARAM_CONSTRUCT| G_PARAM_STATIC_NAME|G_PARAM_STATIC_NICK|G_PARAM_STATIC_BLURB)); + /** + * GBufferedOutputStream:auto-grow: + * + * Whether the buffer should automatically grow. + */ g_object_class_install_property (object_class, PROP_AUTO_GROW, g_param_spec_boolean ("auto-grow", diff --git a/gio/gcharsetconverter.c b/gio/gcharsetconverter.c index ce9c1368a..3b46f8845 100644 --- a/gio/gcharsetconverter.c +++ b/gio/gcharsetconverter.c @@ -152,6 +152,13 @@ g_charset_converter_class_init (GCharsetConverterClass *klass) gobject_class->get_property = g_charset_converter_get_property; gobject_class->set_property = g_charset_converter_set_property; + /** + * GCharsetConverter:to-charset: + * + * The character encoding to convert to. + * + * Since: 2.24 + */ g_object_class_install_property (gobject_class, PROP_TO_CHARSET, g_param_spec_string ("to-charset", @@ -160,6 +167,14 @@ g_charset_converter_class_init (GCharsetConverterClass *klass) NULL, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS)); + + /** + * GCharsetConverter:from-charset: + * + * The character encoding to convert from. + * + * Since: 2.24 + */ g_object_class_install_property (gobject_class, PROP_FROM_CHARSET, g_param_spec_string ("from-charset", @@ -168,6 +183,14 @@ g_charset_converter_class_init (GCharsetConverterClass *klass) NULL, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS)); + + /** + * GCharsetConverter:use-fallback: + * + * Use fallback (of form `\`) for invalid bytes. + * + * Since: 2.24 + */ g_object_class_install_property (gobject_class, PROP_USE_FALLBACK, g_param_spec_boolean ("use-fallback", diff --git a/gio/gconverterinputstream.c b/gio/gconverterinputstream.c index 6d49640da..4a13c11a7 100644 --- a/gio/gconverterinputstream.c +++ b/gio/gconverterinputstream.c @@ -113,6 +113,11 @@ g_converter_input_stream_class_init (GConverterInputStreamClass *klass) istream_class = G_INPUT_STREAM_CLASS (klass); istream_class->read_fn = g_converter_input_stream_read; + /** + * GConverterInputStream:converter: + * + * The converter object. + */ g_object_class_install_property (object_class, PROP_CONVERTER, g_param_spec_object ("converter", diff --git a/gio/gconverteroutputstream.c b/gio/gconverteroutputstream.c index 4bf888621..7a5cd56f2 100644 --- a/gio/gconverteroutputstream.c +++ b/gio/gconverteroutputstream.c @@ -129,6 +129,11 @@ g_converter_output_stream_class_init (GConverterOutputStreamClass *klass) istream_class->write_fn = g_converter_output_stream_write; istream_class->flush = g_converter_output_stream_flush; + /** + * GConverterOutputStream:converter: + * + * The converter object. + */ g_object_class_install_property (object_class, PROP_CONVERTER, g_param_spec_object ("converter", diff --git a/gio/gemblem.c b/gio/gemblem.c index bf40bc6bc..c8cab2825 100644 --- a/gio/gemblem.c +++ b/gio/gemblem.c @@ -134,6 +134,13 @@ g_emblem_class_init (GEmblemClass *klass) gobject_class->set_property = g_emblem_set_property; gobject_class->get_property = g_emblem_get_property; + /** + * GEmblem:origin: + * + * The origin the emblem is derived from. + * + * Since: 2.18 + */ g_object_class_install_property (gobject_class, PROP_ORIGIN, g_param_spec_enum ("origin", @@ -143,6 +150,13 @@ g_emblem_class_init (GEmblemClass *klass) G_EMBLEM_ORIGIN_UNKNOWN, G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * GEmblem:icon: + * + * The actual icon of the emblem. + * + * Since: 2.18 + */ g_object_class_install_property (gobject_class, PROP_ICON, g_param_spec_object ("icon", diff --git a/gio/gemblemedicon.c b/gio/gemblemedicon.c index 0fccbc208..b7ab8f9b4 100644 --- a/gio/gemblemedicon.c +++ b/gio/gemblemedicon.c @@ -123,6 +123,13 @@ g_emblemed_icon_class_init (GEmblemedIconClass *klass) gobject_class->set_property = g_emblemed_icon_set_property; gobject_class->get_property = g_emblemed_icon_get_property; + /** + * GEmblemedIcon:gicon: + * + * The [iface@Gio.Icon] to attach emblems to. + * + * Since: 2.18 + */ properties[PROP_GICON] = g_param_spec_object ("gicon", P_("The base GIcon"), diff --git a/gio/gfileenumerator.c b/gio/gfileenumerator.c index abd54aaf0..1fa6283c8 100644 --- a/gio/gfileenumerator.c +++ b/gio/gfileenumerator.c @@ -157,6 +157,11 @@ g_file_enumerator_class_init (GFileEnumeratorClass *klass) klass->close_async = g_file_enumerator_real_close_async; klass->close_finish = g_file_enumerator_real_close_finish; + /** + * GFileEnumerator:container: + * + * The container that is being enumerated. + */ g_object_class_install_property (gobject_class, PROP_CONTAINER, g_param_spec_object ("container", P_("Container"), diff --git a/gio/gfilemonitor.c b/gio/gfilemonitor.c index 1fc1c0296..8451a550d 100644 --- a/gio/gfilemonitor.c +++ b/gio/gfilemonitor.c @@ -188,6 +188,11 @@ g_file_monitor_class_init (GFileMonitorClass *klass) G_TYPE_FROM_CLASS (klass), _g_cclosure_marshal_VOID__OBJECT_OBJECT_ENUMv); + /** + * GFileMonitor:rate-limit: + * + * The limit of the monitor to watch for changes, in milliseconds. + */ g_object_class_install_property (object_class, PROP_RATE_LIMIT, g_param_spec_int ("rate-limit", P_("Rate limit"), @@ -195,6 +200,11 @@ g_file_monitor_class_init (GFileMonitorClass *klass) 0, G_MAXINT, DEFAULT_RATE_LIMIT_MSECS, G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY | G_PARAM_STATIC_STRINGS)); + /** + * GFileMonitor:cancelled: + * + * Whether the monitor has been cancelled. + */ g_object_class_install_property (object_class, PROP_CANCELLED, g_param_spec_boolean ("cancelled", P_("Cancelled"), diff --git a/gio/gfilterinputstream.c b/gio/gfilterinputstream.c index f70319ec7..8af308517 100644 --- a/gio/gfilterinputstream.c +++ b/gio/gfilterinputstream.c @@ -89,6 +89,11 @@ g_filter_input_stream_class_init (GFilterInputStreamClass *klass) istream_class->skip = g_filter_input_stream_skip; istream_class->close_fn = g_filter_input_stream_close; + /** + * GFilterInputStream:base-stream: + * + * The underlying base stream on which the I/O ops will be done. + */ g_object_class_install_property (object_class, PROP_BASE_STREAM, g_param_spec_object ("base-stream", @@ -98,6 +103,11 @@ g_filter_input_stream_class_init (GFilterInputStreamClass *klass) G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_NAME|G_PARAM_STATIC_NICK|G_PARAM_STATIC_BLURB)); + /** + * GFilterInputStream:close-base-stream: + * + * Whether the base stream should be closed when the filter stream is closed. + */ g_object_class_install_property (object_class, PROP_CLOSE_BASE, g_param_spec_boolean ("close-base-stream", diff --git a/gio/gfilteroutputstream.c b/gio/gfilteroutputstream.c index 7da6c7f16..7f839afcc 100644 --- a/gio/gfilteroutputstream.c +++ b/gio/gfilteroutputstream.c @@ -88,6 +88,11 @@ g_filter_output_stream_class_init (GFilterOutputStreamClass *klass) ostream_class->flush = g_filter_output_stream_flush; ostream_class->close_fn = g_filter_output_stream_close; + /** + * GFilterOutputStream:close-base-stream: + * + * The underlying base stream on which the I/O ops will be done. + */ g_object_class_install_property (object_class, PROP_BASE_STREAM, g_param_spec_object ("base-stream", @@ -97,6 +102,11 @@ g_filter_output_stream_class_init (GFilterOutputStreamClass *klass) G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_NAME|G_PARAM_STATIC_NICK|G_PARAM_STATIC_BLURB)); + /** + * GFilterOutputStream:close-base-stream: + * + * Whether the base stream should be closed when the filter stream is closed. + */ g_object_class_install_property (object_class, PROP_CLOSE_BASE, g_param_spec_boolean ("close-base-stream", diff --git a/gio/ginetaddress.c b/gio/ginetaddress.c index 9d22f1b07..6f844a1ae 100644 --- a/gio/ginetaddress.c +++ b/gio/ginetaddress.c @@ -185,6 +185,13 @@ g_inet_address_class_init (GInetAddressClass *klass) gobject_class->set_property = g_inet_address_set_property; gobject_class->get_property = g_inet_address_get_property; + /** + * GInetAddress:family: + * + * The address family (IPv4 or IPv6). + * + * Since: 2.22 + */ g_object_class_install_property (gobject_class, PROP_FAMILY, g_param_spec_enum ("family", P_("Address family"), @@ -195,6 +202,13 @@ g_inet_address_class_init (GInetAddressClass *klass) G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS)); + /** + * GInetAddress:bytes: + * + * The raw address data. + * + * Since: 2.22 + */ g_object_class_install_property (gobject_class, PROP_BYTES, g_param_spec_pointer ("bytes", P_("Bytes"), diff --git a/gio/ginetaddressmask.c b/gio/ginetaddressmask.c index 5831104c2..38a741906 100644 --- a/gio/ginetaddressmask.c +++ b/gio/ginetaddressmask.c @@ -135,6 +135,13 @@ g_inet_address_mask_class_init (GInetAddressMaskClass *klass) gobject_class->get_property = g_inet_address_mask_get_property; gobject_class->dispose = g_inet_address_mask_dispose; + /** + * GInetAddressMask:family: + * + * The address family (IPv4 or IPv6). + * + * Since: 2.32 + */ g_object_class_install_property (gobject_class, PROP_FAMILY, g_param_spec_enum ("family", P_("Address family"), @@ -143,6 +150,14 @@ g_inet_address_mask_class_init (GInetAddressMaskClass *klass) G_SOCKET_FAMILY_INVALID, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); + + /** + * GInetAddressMask:address: + * + * The base address. + * + * Since: 2.32 + */ g_object_class_install_property (gobject_class, PROP_ADDRESS, g_param_spec_object ("address", P_("Address"), @@ -150,6 +165,14 @@ g_inet_address_mask_class_init (GInetAddressMaskClass *klass) G_TYPE_INET_ADDRESS, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + + /** + * GInetAddressMask:length: + * + * The prefix length, in bytes. + * + * Since: 2.32 + */ g_object_class_install_property (gobject_class, PROP_LENGTH, g_param_spec_uint ("length", P_("Length"), diff --git a/gio/ginetsocketaddress.c b/gio/ginetsocketaddress.c index 3f0b7bf90..7597b1c7d 100644 --- a/gio/ginetsocketaddress.c +++ b/gio/ginetsocketaddress.c @@ -247,6 +247,13 @@ g_inet_socket_address_class_init (GInetSocketAddressClass *klass) gsocketaddress_class->to_native = g_inet_socket_address_to_native; gsocketaddress_class->get_native_size = g_inet_socket_address_get_native_size; + /** + * GInetSocketAddress:address: + * + * The address. + * + * Since: 2.22 + */ g_object_class_install_property (gobject_class, PROP_ADDRESS, g_param_spec_object ("address", P_("Address"), @@ -256,6 +263,13 @@ g_inet_socket_address_class_init (GInetSocketAddressClass *klass) G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * GInetSocketAddress:port: + * + * The port. + * + * Since: 2.22 + */ g_object_class_install_property (gobject_class, PROP_PORT, g_param_spec_uint ("port", P_("Port"), @@ -286,7 +300,7 @@ g_inet_socket_address_class_init (GInetSocketAddressClass *klass) G_PARAM_STATIC_STRINGS)); /** - * GInetSocketAddress:scope_id: + * GInetSocketAddress:scope-id: * * The `sin6_scope_id` field, for IPv6 addresses. * diff --git a/gio/giostream.c b/gio/giostream.c index ec0006f46..f0f17f93f 100644 --- a/gio/giostream.c +++ b/gio/giostream.c @@ -171,6 +171,13 @@ g_io_stream_class_init (GIOStreamClass *klass) klass->close_async = g_io_stream_real_close_async; klass->close_finish = g_io_stream_real_close_finish; + /** + * GIOStream:closed: + * + * Whether the stream is closed. + * + * Since: 2.22 + */ g_object_class_install_property (gobject_class, PROP_CLOSED, g_param_spec_boolean ("closed", P_("Closed"), @@ -178,12 +185,27 @@ g_io_stream_class_init (GIOStreamClass *klass) FALSE, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); + /** + * GIOStream:input-stream: + * + * The [class@Gio.InputStream] to read from. + * + * Since: 2.22 + */ g_object_class_install_property (gobject_class, PROP_INPUT_STREAM, g_param_spec_object ("input-stream", P_("Input stream"), P_("The GInputStream to read from"), G_TYPE_INPUT_STREAM, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); + + /** + * GIOStream:output-stream: + * + * The [class@Gio.OutputStream] to write to. + * + * Since: 2.22 + */ g_object_class_install_property (gobject_class, PROP_OUTPUT_STREAM, g_param_spec_object ("output-stream", P_("Output stream"), diff --git a/gio/gnetworkaddress.c b/gio/gnetworkaddress.c index f898af00b..fcbe9ae08 100644 --- a/gio/gnetworkaddress.c +++ b/gio/gnetworkaddress.c @@ -116,6 +116,13 @@ g_network_address_class_init (GNetworkAddressClass *klass) gobject_class->get_property = g_network_address_get_property; gobject_class->finalize = g_network_address_finalize; + /** + * GNetworkAddress:hostname: + * + * Hostname to resolve. + * + * Since: 2.22 + */ g_object_class_install_property (gobject_class, PROP_HOSTNAME, g_param_spec_string ("hostname", P_("Hostname"), @@ -124,6 +131,14 @@ g_network_address_class_init (GNetworkAddressClass *klass) G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS)); + + /** + * GNetworkAddress:port: + * + * Network port. + * + * Since: 2.22 + */ g_object_class_install_property (gobject_class, PROP_PORT, g_param_spec_uint ("port", P_("Port"), @@ -133,6 +148,13 @@ g_network_address_class_init (GNetworkAddressClass *klass) G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS)); + /** + * GNetworkAddress:scheme: + * + * URI scheme. + * + * Since: 2.22 + */ g_object_class_install_property (gobject_class, PROP_SCHEME, g_param_spec_string ("scheme", P_("Scheme"), diff --git a/gio/gnetworkservice.c b/gio/gnetworkservice.c index cca17f0af..1e67eca40 100644 --- a/gio/gnetworkservice.c +++ b/gio/gnetworkservice.c @@ -114,6 +114,13 @@ g_network_service_class_init (GNetworkServiceClass *klass) gobject_class->get_property = g_network_service_get_property; gobject_class->finalize = g_network_service_finalize; + /** + * GNetworkService:service: + * + * Service name, for example `ldap`. + * + * Since: 2.22 + */ g_object_class_install_property (gobject_class, PROP_SERVICE, g_param_spec_string ("service", P_("Service"), @@ -122,6 +129,14 @@ g_network_service_class_init (GNetworkServiceClass *klass) G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS)); + + /** + * GNetworkService:protocol: + * + * Network protocol, for example `tcp`. + * + * Since: 2.22 + */ g_object_class_install_property (gobject_class, PROP_PROTOCOL, g_param_spec_string ("protocol", P_("Protocol"), @@ -130,6 +145,14 @@ g_network_service_class_init (GNetworkServiceClass *klass) G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS)); + + /** + * GNetworkService:domain: + * + * Network domain, for example `example.com`. + * + * Since: 2.22 + */ g_object_class_install_property (gobject_class, PROP_DOMAIN, g_param_spec_string ("domain", P_("Domain"), @@ -138,6 +161,14 @@ g_network_service_class_init (GNetworkServiceClass *klass) G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS)); + + /** + * GNetworkService:scheme: + * + * Network scheme (default is to use service). + * + * Since: 2.22 + */ g_object_class_install_property (gobject_class, PROP_DOMAIN, g_param_spec_string ("scheme", P_("Scheme"), diff --git a/gio/gproxyaddress.c b/gio/gproxyaddress.c index f600c91e2..81d9755ff 100644 --- a/gio/gproxyaddress.c +++ b/gio/gproxyaddress.c @@ -186,6 +186,13 @@ g_proxy_address_class_init (GProxyAddressClass *klass) gobject_class->set_property = g_proxy_address_set_property; gobject_class->get_property = g_proxy_address_get_property; + /** + * GProxyAddress:protocol: + * + * The proxy protocol. + * + * Since: 2.26 + */ g_object_class_install_property (gobject_class, PROP_PROTOCOL, g_param_spec_string ("protocol", @@ -196,6 +203,13 @@ g_proxy_address_class_init (GProxyAddressClass *klass) G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS)); + /** + * GProxyAddress:username: + * + * The proxy username. + * + * Since: 2.26 + */ g_object_class_install_property (gobject_class, PROP_USERNAME, g_param_spec_string ("username", @@ -206,6 +220,13 @@ g_proxy_address_class_init (GProxyAddressClass *klass) G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS)); + /** + * GProxyAddress:password: + * + * The proxy password. + * + * Since: 2.26 + */ g_object_class_install_property (gobject_class, PROP_PASSWORD, g_param_spec_string ("password", @@ -234,6 +255,13 @@ g_proxy_address_class_init (GProxyAddressClass *klass) G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS)); + /** + * GProxyAddress:destination-hostname: + * + * The proxy destination hostname. + * + * Since: 2.26 + */ g_object_class_install_property (gobject_class, PROP_DESTINATION_HOSTNAME, g_param_spec_string ("destination-hostname", @@ -244,6 +272,13 @@ g_proxy_address_class_init (GProxyAddressClass *klass) G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS)); + /** + * GProxyAddress:destination-port: + * + * The proxy destination port. + * + * Since: 2.26 + */ g_object_class_install_property (gobject_class, PROP_DESTINATION_PORT, g_param_spec_uint ("destination-port", diff --git a/gio/gproxyaddressenumerator.c b/gio/gproxyaddressenumerator.c index bf9215b8f..ecffcd076 100644 --- a/gio/gproxyaddressenumerator.c +++ b/gio/gproxyaddressenumerator.c @@ -750,6 +750,11 @@ g_proxy_address_enumerator_class_init (GProxyAddressEnumeratorClass *proxy_enume enumerator_class->next_async = g_proxy_address_enumerator_next_async; enumerator_class->next_finish = g_proxy_address_enumerator_next_finish; + /** + * GProxyAddressEnumerator:uri: + * + * The destination URI. Use `none://` for a generic socket. + */ g_object_class_install_property (object_class, PROP_URI, g_param_spec_string ("uri", @@ -778,6 +783,11 @@ g_proxy_address_enumerator_class_init (GProxyAddressEnumeratorClass *proxy_enume G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS)); + /** + * GProxyAddressEnumerator:connectable: + * + * The connectable being enumerated. + */ g_object_class_install_property (object_class, PROP_CONNECTABLE, g_param_spec_object ("connectable", diff --git a/gio/gsimpleiostream.c b/gio/gsimpleiostream.c index 8e04f679e..6e5cec067 100644 --- a/gio/gsimpleiostream.c +++ b/gio/gsimpleiostream.c @@ -159,6 +159,8 @@ g_simple_io_stream_class_init (GSimpleIOStreamClass *class) /** * GSimpleIOStream:input-stream: * + * The [class@Gio.InputStream] to read from. + * * Since: 2.44 */ g_object_class_install_property (gobject_class, PROP_INPUT_STREAM, @@ -173,6 +175,8 @@ g_simple_io_stream_class_init (GSimpleIOStreamClass *class) /** * GSimpleIOStream:output-stream: * + * The [class@Gio.OutputStream] to write to. + * * Since: 2.44 */ g_object_class_install_property (gobject_class, PROP_OUTPUT_STREAM, diff --git a/gio/gsocket.c b/gio/gsocket.c index ee833a1a3..dc8896647 100644 --- a/gio/gsocket.c +++ b/gio/gsocket.c @@ -952,6 +952,13 @@ g_socket_class_init (GSocketClass *klass) gobject_class->set_property = g_socket_set_property; gobject_class->get_property = g_socket_get_property; + /** + * GSocket:family: + * + * The socket’s address family. + * + * Since: 2.22 + */ g_object_class_install_property (gobject_class, PROP_FAMILY, g_param_spec_enum ("family", P_("Socket family"), @@ -962,6 +969,13 @@ g_socket_class_init (GSocketClass *klass) G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * GSocket:type: + * + * The socket’s type. + * + * Since: 2.22 + */ g_object_class_install_property (gobject_class, PROP_TYPE, g_param_spec_enum ("type", P_("Socket type"), @@ -972,6 +986,13 @@ g_socket_class_init (GSocketClass *klass) G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * GSocket:protocol: + * + * The ID of the protocol to use, or `-1` for unknown. + * + * Since: 2.22 + */ g_object_class_install_property (gobject_class, PROP_PROTOCOL, g_param_spec_enum ("protocol", P_("Socket protocol"), @@ -982,6 +1003,13 @@ g_socket_class_init (GSocketClass *klass) G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * GSocket:fd: + * + * The socket’s file descriptor. + * + * Since: 2.22 + */ g_object_class_install_property (gobject_class, PROP_FD, g_param_spec_int ("fd", P_("File descriptor"), @@ -993,6 +1021,13 @@ g_socket_class_init (GSocketClass *klass) G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * GSocket:blocking: + * + * Whether I/O on this socket is blocking. + * + * Since: 2.22 + */ g_object_class_install_property (gobject_class, PROP_BLOCKING, g_param_spec_boolean ("blocking", P_("blocking"), @@ -1001,6 +1036,13 @@ g_socket_class_init (GSocketClass *klass) G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * GSocket:listen-backlog: + * + * The number of outstanding connections in the listen queue. + * + * Since: 2.22 + */ g_object_class_install_property (gobject_class, PROP_LISTEN_BACKLOG, g_param_spec_int ("listen-backlog", P_("Listen backlog"), @@ -1011,6 +1053,13 @@ g_socket_class_init (GSocketClass *klass) G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * GSocket:keepalive: + * + * Whether to keep the connection alive by sending periodic pings. + * + * Since: 2.22 + */ g_object_class_install_property (gobject_class, PROP_KEEPALIVE, g_param_spec_boolean ("keepalive", P_("Keep connection alive"), @@ -1019,6 +1068,13 @@ g_socket_class_init (GSocketClass *klass) G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * GSocket:local-address: + * + * The local address the socket is bound to. + * + * Since: 2.22 + */ g_object_class_install_property (gobject_class, PROP_LOCAL_ADDRESS, g_param_spec_object ("local-address", P_("Local address"), @@ -1027,6 +1083,13 @@ g_socket_class_init (GSocketClass *klass) G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); + /** + * GSocket:remote-address: + * + * The remote address the socket is connected to. + * + * Since: 2.22 + */ g_object_class_install_property (gobject_class, PROP_REMOTE_ADDRESS, g_param_spec_object ("remote-address", P_("Remote address"), diff --git a/gio/gsocketaddress.c b/gio/gsocketaddress.c index d89fdc9d5..a98521655 100644 --- a/gio/gsocketaddress.c +++ b/gio/gsocketaddress.c @@ -109,6 +109,13 @@ g_socket_address_class_init (GSocketAddressClass *klass) gobject_class->get_property = g_socket_address_get_property; + /** + * GSocketAddress:family: + * + * The family of the socket address. + * + * Since: 2.22 + */ g_object_class_install_property (gobject_class, PROP_FAMILY, g_param_spec_enum ("family", P_("Address family"), diff --git a/gio/gsocketclient.c b/gio/gsocketclient.c index bfd3d9f60..f58070bd6 100644 --- a/gio/gsocketclient.c +++ b/gio/gsocketclient.c @@ -866,6 +866,13 @@ g_socket_client_class_init (GSocketClientClass *class) G_TYPE_FROM_CLASS (class), _g_cclosure_marshal_VOID__ENUM_OBJECT_OBJECTv); + /** + * GSocketClient:family: + * + * The address family to use for socket construction. + * + * Since: 2.22 + */ g_object_class_install_property (gobject_class, PROP_FAMILY, g_param_spec_enum ("family", P_("Socket family"), @@ -876,6 +883,13 @@ g_socket_client_class_init (GSocketClientClass *class) G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * GSocketClient:type: + * + * The type to use for socket construction. + * + * Since: 2.22 + */ g_object_class_install_property (gobject_class, PROP_TYPE, g_param_spec_enum ("type", P_("Socket type"), @@ -886,6 +900,13 @@ g_socket_client_class_init (GSocketClientClass *class) G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * GSocketClient:protocol: + * + * The protocol to use for socket construction, or `0` for default. + * + * Since: 2.22 + */ g_object_class_install_property (gobject_class, PROP_PROTOCOL, g_param_spec_enum ("protocol", P_("Socket protocol"), @@ -896,6 +917,13 @@ g_socket_client_class_init (GSocketClientClass *class) G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * GSocketClient:local-address: + * + * The local address constructed sockets will be bound to. + * + * Since: 2.22 + */ g_object_class_install_property (gobject_class, PROP_LOCAL_ADDRESS, g_param_spec_object ("local-address", P_("Local address"), @@ -905,6 +933,13 @@ g_socket_client_class_init (GSocketClientClass *class) G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * GSocketClient:timeout: + * + * The I/O timeout for sockets, in seconds, or `0` for none. + * + * Since: 2.22 + */ g_object_class_install_property (gobject_class, PROP_TIMEOUT, g_param_spec_uint ("timeout", P_("Socket timeout"), @@ -914,6 +949,13 @@ g_socket_client_class_init (GSocketClientClass *class) G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * GSocketClient:enable-proxy: + * + * Enable proxy support. + * + * Since: 2.22 + */ g_object_class_install_property (gobject_class, PROP_ENABLE_PROXY, g_param_spec_boolean ("enable-proxy", P_("Enable proxy"), @@ -923,6 +965,13 @@ g_socket_client_class_init (GSocketClientClass *class) G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * GSocketClient:tls: + * + * Whether to create TLS connections. + * + * Since: 2.22 + */ g_object_class_install_property (gobject_class, PROP_TLS, g_param_spec_boolean ("tls", P_("TLS"), diff --git a/gio/gsocketconnection.c b/gio/gsocketconnection.c index 372899644..798b148f9 100644 --- a/gio/gsocketconnection.c +++ b/gio/gsocketconnection.c @@ -445,6 +445,13 @@ g_socket_connection_class_init (GSocketConnectionClass *klass) stream_class->close_async = g_socket_connection_close_async; stream_class->close_finish = g_socket_connection_close_finish; + /** + * GSocketConnection:socket: + * + * The underlying [class@Gio.Socket]. + * + * Since: 2.22 + */ g_object_class_install_property (gobject_class, PROP_SOCKET, g_param_spec_object ("socket", diff --git a/gio/gsocketlistener.c b/gio/gsocketlistener.c index 842140b75..165130837 100644 --- a/gio/gsocketlistener.c +++ b/gio/gsocketlistener.c @@ -154,6 +154,14 @@ g_socket_listener_class_init (GSocketListenerClass *klass) gobject_class->finalize = g_socket_listener_finalize; gobject_class->set_property = g_socket_listener_set_property; gobject_class->get_property = g_socket_listener_get_property; + + /** + * GSocketListener:listen-backlog: + * + * The number of outstanding connections in the listen queue. + * + * Since: 2.22 + */ g_object_class_install_property (gobject_class, PROP_LISTEN_BACKLOG, g_param_spec_int ("listen-backlog", P_("Listen backlog"), diff --git a/gio/gsubprocess.c b/gio/gsubprocess.c index 27236b2e0..70de2da00 100644 --- a/gio/gsubprocess.c +++ b/gio/gsubprocess.c @@ -496,10 +496,25 @@ g_subprocess_class_init (GSubprocessClass *class) gobject_class->finalize = g_subprocess_finalize; gobject_class->set_property = g_subprocess_set_property; + /** + * GSubprocess:flags: + * + * Subprocess flags. + * + * Since: 2.40 + */ g_object_class_install_property (gobject_class, PROP_FLAGS, g_param_spec_flags ("flags", P_("Flags"), P_("Subprocess flags"), G_TYPE_SUBPROCESS_FLAGS, 0, G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS)); + + /** + * GSubprocess:argv: + * + * Argument vector. + * + * Since: 2.40 + */ g_object_class_install_property (gobject_class, PROP_ARGV, g_param_spec_boxed ("argv", P_("Arguments"), P_("Argument vector"), G_TYPE_STRV, G_PARAM_WRITABLE | diff --git a/gio/gsubprocesslauncher.c b/gio/gsubprocesslauncher.c index cb64e870f..62f3aff67 100644 --- a/gio/gsubprocesslauncher.c +++ b/gio/gsubprocesslauncher.c @@ -176,6 +176,13 @@ g_subprocess_launcher_class_init (GSubprocessLauncherClass *class) gobject_class->set_property = g_subprocess_launcher_set_property; gobject_class->dispose = g_subprocess_launcher_dispose; + /** + * GSubprocessLauncher:flags: + * + * [flags@Gio.SubprocessFlags] for launched processes. + * + * Since: 2.40 + */ g_object_class_install_property (gobject_class, 1, g_param_spec_flags ("flags", "Flags", "GSubprocessFlags for launched processes", G_TYPE_SUBPROCESS_FLAGS, 0, G_PARAM_WRITABLE | diff --git a/gio/gtcpconnection.c b/gio/gtcpconnection.c index c89cf98e2..57b7b42b3 100644 --- a/gio/gtcpconnection.c +++ b/gio/gtcpconnection.c @@ -128,6 +128,13 @@ g_tcp_connection_class_init (GTcpConnectionClass *class) stream_class->close_fn = g_tcp_connection_close; stream_class->close_async = g_tcp_connection_close_async; + /** + * GTcpConnection:graceful-disconnect: + * + * Whether [method@Gio.IOStream.close] does a graceful disconnect. + * + * Since: 2.22 + */ g_object_class_install_property (gobject_class, PROP_GRACEFUL_DISCONNECT, g_param_spec_boolean ("graceful-disconnect", P_("Graceful Disconnect"), diff --git a/gio/gtcpwrapperconnection.c b/gio/gtcpwrapperconnection.c index 151c71307..985b032e0 100644 --- a/gio/gtcpwrapperconnection.c +++ b/gio/gtcpwrapperconnection.c @@ -131,6 +131,13 @@ g_tcp_wrapper_connection_class_init (GTcpWrapperConnectionClass *klass) stream_class->get_input_stream = g_tcp_wrapper_connection_get_input_stream; stream_class->get_output_stream = g_tcp_wrapper_connection_get_output_stream; + /** + * GTcpWrapperConnection:base-io-stream: + * + * The wrapped [class@Gio.IOStream]. + * + * Since: 2.28 + */ g_object_class_install_property (gobject_class, PROP_BASE_IO_STREAM, g_param_spec_object ("base-io-stream", diff --git a/gio/gthreadedsocketservice.c b/gio/gthreadedsocketservice.c index 3bb26da27..8f9117dd2 100644 --- a/gio/gthreadedsocketservice.c +++ b/gio/gthreadedsocketservice.c @@ -247,6 +247,13 @@ g_threaded_socket_service_class_init (GThreadedSocketServiceClass *class) G_TYPE_FROM_CLASS (class), _g_cclosure_marshal_BOOLEAN__OBJECT_OBJECTv); + /** + * GThreadedSocketService:max-threads: + * + * The maximum number of threads handling clients for this service. + * + * Since: 2.22 + */ g_object_class_install_property (gobject_class, PROP_MAX_THREADS, g_param_spec_int ("max-threads", P_("Max threads"), diff --git a/gio/gtlspassword.c b/gio/gtlspassword.c index f64a658ff..321a390d1 100644 --- a/gio/gtlspassword.c +++ b/gio/gtlspassword.c @@ -187,6 +187,13 @@ g_tls_password_class_init (GTlsPasswordClass *klass) gobject_class->set_property = g_tls_password_set_property; gobject_class->finalize = g_tls_password_finalize; + /** + * GTlsPassword:flags: + * + * Flags about the password. + * + * Since: 2.30 + */ g_object_class_install_property (gobject_class, PROP_FLAGS, g_param_spec_flags ("flags", P_("Flags"), @@ -196,6 +203,13 @@ g_tls_password_class_init (GTlsPasswordClass *klass) G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * GTlsPassword:description: + * + * Description of what the password is for. + * + * Since: 2.30 + */ g_object_class_install_property (gobject_class, PROP_DESCRIPTION, g_param_spec_string ("description", P_("Description"), @@ -204,6 +218,13 @@ g_tls_password_class_init (GTlsPasswordClass *klass) G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); + /** + * GTlsPassword:warning: + * + * Warning about the password. + * + * Since: 2.30 + */ g_object_class_install_property (gobject_class, PROP_WARNING, g_param_spec_string ("warning", P_("Warning"), diff --git a/gio/gunixfdmessage.c b/gio/gunixfdmessage.c index 2d81c630c..42d05b693 100644 --- a/gio/gunixfdmessage.c +++ b/gio/gunixfdmessage.c @@ -213,6 +213,13 @@ g_unix_fd_message_class_init (GUnixFDMessageClass *class) object_class->set_property = g_unix_fd_message_set_property; object_class->get_property = g_unix_fd_message_get_property; + /** + * GUnixFDMessage:fd-list: + * + * The [class@Gio.UnixFDList] object to send with the message. + * + * Since: 2.22 + */ g_object_class_install_property (object_class, 1, g_param_spec_object ("fd-list", "file descriptor list", "The GUnixFDList object to send with the message", diff --git a/gio/gunixsocketaddress.c b/gio/gunixsocketaddress.c index 3640f1f90..3f0762ebf 100644 --- a/gio/gunixsocketaddress.c +++ b/gio/gunixsocketaddress.c @@ -267,6 +267,13 @@ g_unix_socket_address_class_init (GUnixSocketAddressClass *klass) gsocketaddress_class->to_native = g_unix_socket_address_to_native; gsocketaddress_class->get_native_size = g_unix_socket_address_get_native_size; + /** + * GUnixSocketAddress:path: + * + * Unix socket path. + * + * Since: 2.22 + */ g_object_class_install_property (gobject_class, PROP_PATH, g_param_spec_string ("path", @@ -276,6 +283,14 @@ g_unix_socket_address_class_init (GUnixSocketAddressClass *klass) G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS)); + + /** + * GUnixSocketAddress:path-as-array: + * + * Unix socket path, as a byte array. + * + * Since: 2.22 + */ g_object_class_install_property (gobject_class, PROP_PATH_AS_ARRAY, g_param_spec_boxed ("path-as-array", P_("Path array"), @@ -284,6 +299,7 @@ g_unix_socket_address_class_init (GUnixSocketAddressClass *klass) G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS)); + /** * GUnixSocketAddress:abstract: * @@ -301,6 +317,14 @@ g_unix_socket_address_class_init (GUnixSocketAddressClass *klass) G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS)); + + /** + * GUnixSocketAddress:address-type: + * + * The type of Unix socket address. + * + * Since: 2.22 + */ g_object_class_install_property (gobject_class, PROP_ADDRESS_TYPE, g_param_spec_enum ("address-type", P_("Address type"), diff --git a/gio/gzlibcompressor.c b/gio/gzlibcompressor.c index 80084b135..d522f6157 100644 --- a/gio/gzlibcompressor.c +++ b/gio/gzlibcompressor.c @@ -221,6 +221,13 @@ g_zlib_compressor_class_init (GZlibCompressorClass *klass) gobject_class->get_property = g_zlib_compressor_get_property; gobject_class->set_property = g_zlib_compressor_set_property; + /** + * GZlibCompressor:format: + * + * The format of the compressed data. + * + * Since: 2.24 + */ g_object_class_install_property (gobject_class, PROP_FORMAT, g_param_spec_enum ("format", @@ -230,6 +237,15 @@ g_zlib_compressor_class_init (GZlibCompressorClass *klass) G_ZLIB_COMPRESSOR_FORMAT_ZLIB, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS)); + + /** + * GZlibCompressor:level: + * + * The level of compression from `0` (no compression) to `9` (most + * compression). `-1` for the default level. + * + * Since: 2.24 + */ g_object_class_install_property (gobject_class, PROP_LEVEL, g_param_spec_int ("level", diff --git a/gio/gzlibdecompressor.c b/gio/gzlibdecompressor.c index 1e24a74dc..306fd7bda 100644 --- a/gio/gzlibdecompressor.c +++ b/gio/gzlibdecompressor.c @@ -215,6 +215,13 @@ g_zlib_decompressor_class_init (GZlibDecompressorClass *klass) gobject_class->get_property = g_zlib_decompressor_get_property; gobject_class->set_property = g_zlib_decompressor_set_property; + /** + * GZlibDecompressor:format: + * + * The format of the compressed data. + * + * Since: 2.24 + */ g_object_class_install_property (gobject_class, PROP_FORMAT, g_param_spec_enum ("format", From 0d268c48250c0158c5202526f6b9f7debee8daf1 Mon Sep 17 00:00:00 2001 From: Sophie Herold Date: Fri, 28 Apr 2023 01:59:26 +0200 Subject: [PATCH 2/3] Remove all nicks and blurbs from param specs Nicks and blurbs don't have any practical use for gio/gobject libraries. Leaving tests untouched since this features is still used by other libraries. Closes #2991 --- gio/gaction.c | 20 +++--------- gio/gapplication.c | 32 +++++------------- gio/gapplicationcommandline.c | 16 +++------ gio/gbufferedinputstream.c | 4 +-- gio/gbufferedoutputstream.c | 8 ++--- gio/gbytesicon.c | 4 +-- gio/gcharsetconverter.c | 12 ++----- gio/gconverterinputstream.c | 4 +-- gio/gconverteroutputstream.c | 4 +-- gio/gdatainputstream.c | 8 ++--- gio/gdataoutputstream.c | 4 +-- gio/gdbusauth.c | 4 +-- gio/gdbusauthmechanism.c | 8 ++--- gio/gdbusconnection.c | 36 +++++--------------- gio/gdbusdaemon.c | 4 +-- gio/gdbusinterfaceskeleton.c | 4 +-- gio/gdbusmessage.c | 4 +-- gio/gdbusobjectmanagerclient.c | 36 +++++--------------- gio/gdbusobjectmanagerserver.c | 8 ++--- gio/gdbusobjectproxy.c | 8 ++--- gio/gdbusobjectskeleton.c | 4 +-- gio/gdbusproxy.c | 36 +++++--------------- gio/gdbusserver.c | 24 ++++---------- gio/gdebugcontroller.c | 4 +-- gio/gdebugcontrollerdbus.c | 3 +- gio/gdesktopappinfo.c | 2 +- gio/gdtlsclientconnection.c | 12 ++----- gio/gdtlsconnection.c | 48 +++++++-------------------- gio/gdtlsserverconnection.c | 4 +-- gio/gemblem.c | 8 ++--- gio/gemblemedicon.c | 4 +-- gio/gfileenumerator.c | 3 +- gio/gfileicon.c | 4 +-- gio/gfilemonitor.c | 8 ++--- gio/gfilterinputstream.c | 8 ++--- gio/gfilteroutputstream.c | 8 ++--- gio/ginetaddress.c | 48 +++++++-------------------- gio/ginetaddressmask.c | 12 ++----- gio/ginetsocketaddress.c | 16 +++------ gio/giostream.c | 12 ++----- gio/gkeyfilesettingsbackend.c | 16 +++------ gio/glistmodel.c | 4 +-- gio/gliststore.c | 4 +-- gio/gmemoryoutputstream.c | 20 +++--------- gio/gmountoperation.c | 36 +++++--------------- gio/gnetworkaddress.c | 12 ++----- gio/gnetworkmonitor.c | 12 ++----- gio/gnetworkservice.c | 16 +++------ gio/gpermission.c | 12 ++----- gio/gpowerprofilemonitor.c | 4 +-- gio/gpropertyaction.c | 32 +++++------------- gio/gproxyaddress.c | 28 ++++------------ gio/gproxyaddressenumerator.c | 16 +++------ gio/gresolver.c | 4 +-- gio/gsettings.c | 28 ++++------------ gio/gsimpleaction.c | 20 +++--------- gio/gsimpleiostream.c | 8 ++--- gio/gsimpleproxyresolver.c | 8 ++--- gio/gsocket.c | 56 ++++++++----------------------- gio/gsocketaddress.c | 4 +-- gio/gsocketclient.c | 36 +++++--------------- gio/gsocketconnection.c | 4 +-- gio/gsocketinputstream.c | 4 +-- gio/gsocketlistener.c | 4 +-- gio/gsocketoutputstream.c | 4 +-- gio/gsocketservice.c | 4 +-- gio/gsubprocess.c | 4 +-- gio/gsubprocesslauncher.c | 2 +- gio/gtask.c | 4 +-- gio/gtcpconnection.c | 4 +-- gio/gtcpwrapperconnection.c | 4 +-- gio/gtestdbus.c | 4 +-- gio/gthemedicon.c | 12 ++----- gio/gthreadedsocketservice.c | 4 +-- gio/gtlscertificate.c | 60 +++++++++------------------------- gio/gtlsclientconnection.c | 16 +++------ gio/gtlsconnection.c | 52 ++++++++--------------------- gio/gtlsfiledatabase.c | 4 +-- gio/gtlspassword.c | 12 ++----- gio/gtlsserverconnection.c | 4 +-- gio/gunixcredentialsmessage.c | 4 +-- gio/gunixfdmessage.c | 3 +- gio/gunixinputstream.c | 8 ++--- gio/gunixoutputstream.c | 8 ++--- gio/gunixsocketaddress.c | 16 +++------ gio/gwin32inputstream.c | 8 ++--- gio/gwin32outputstream.c | 8 ++--- gio/gwin32registrykey.c | 8 ++--- gio/gzlibcompressor.c | 12 ++----- gio/gzlibdecompressor.c | 8 ++--- gobject/gbinding.c | 20 +++--------- gobject/gbindinggroup.c | 4 +-- gobject/gobject.c | 6 ++-- gobject/gsignalgroup.c | 8 ++--- 94 files changed, 306 insertions(+), 893 deletions(-) diff --git a/gio/gaction.c b/gio/gaction.c index 9bd2c27ab..33e0ff7a9 100644 --- a/gio/gaction.c +++ b/gio/gaction.c @@ -90,9 +90,7 @@ g_action_default_init (GActionInterface *iface) * Since: 2.28 **/ g_object_interface_install_property (iface, - g_param_spec_string ("name", - P_("Action Name"), - P_("The name used to invoke the action"), + g_param_spec_string ("name", NULL, NULL, NULL, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); @@ -107,9 +105,7 @@ g_action_default_init (GActionInterface *iface) * Since: 2.28 **/ g_object_interface_install_property (iface, - g_param_spec_boxed ("parameter-type", - P_("Parameter Type"), - P_("The type of GVariant passed to activate()"), + g_param_spec_boxed ("parameter-type", NULL, NULL, G_TYPE_VARIANT_TYPE, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); @@ -125,9 +121,7 @@ g_action_default_init (GActionInterface *iface) * Since: 2.28 **/ g_object_interface_install_property (iface, - g_param_spec_boolean ("enabled", - P_("Enabled"), - P_("If the action can be activated"), + g_param_spec_boolean ("enabled", NULL, NULL, TRUE, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); @@ -141,9 +135,7 @@ g_action_default_init (GActionInterface *iface) * Since: 2.28 **/ g_object_interface_install_property (iface, - g_param_spec_boxed ("state-type", - P_("State Type"), - P_("The type of the state kept by the action"), + g_param_spec_boxed ("state-type", NULL, NULL, G_TYPE_VARIANT_TYPE, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); @@ -156,9 +148,7 @@ g_action_default_init (GActionInterface *iface) * Since: 2.28 **/ g_object_interface_install_property (iface, - g_param_spec_variant ("state", - P_("State"), - P_("The state the action is in"), + g_param_spec_variant ("state", NULL, NULL, G_VARIANT_TYPE_ANY, NULL, G_PARAM_READABLE | diff --git a/gio/gapplication.c b/gio/gapplication.c index 49a701233..fe5df5d5d 100644 --- a/gio/gapplication.c +++ b/gio/gapplication.c @@ -1492,9 +1492,7 @@ g_application_class_init (GApplicationClass *class) * Since: 2.28 */ g_object_class_install_property (object_class, PROP_APPLICATION_ID, - g_param_spec_string ("application-id", - P_("Application identifier"), - P_("The unique identifier for the application"), + g_param_spec_string ("application-id", NULL, NULL, NULL, G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS)); @@ -1506,9 +1504,7 @@ g_application_class_init (GApplicationClass *class) * Since: 2.28 */ g_object_class_install_property (object_class, PROP_FLAGS, - g_param_spec_flags ("flags", - P_("Application flags"), - P_("Flags specifying the behaviour of the application"), + g_param_spec_flags ("flags", NULL, NULL, G_TYPE_APPLICATION_FLAGS, G_APPLICATION_DEFAULT_FLAGS, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); @@ -1520,9 +1516,7 @@ g_application_class_init (GApplicationClass *class) * Since: 2.28 */ g_object_class_install_property (object_class, PROP_RESOURCE_BASE_PATH, - g_param_spec_string ("resource-base-path", - P_("Resource base path"), - P_("The base resource path for the application"), + g_param_spec_string ("resource-base-path", NULL, NULL, NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); /** @@ -1533,9 +1527,7 @@ g_application_class_init (GApplicationClass *class) * Since: 2.28 */ g_object_class_install_property (object_class, PROP_IS_REGISTERED, - g_param_spec_boolean ("is-registered", - P_("Is registered"), - P_("If g_application_register() has been called"), + g_param_spec_boolean ("is-registered", NULL, NULL, FALSE, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); /** @@ -1546,9 +1538,7 @@ g_application_class_init (GApplicationClass *class) * Since: 2.28 */ g_object_class_install_property (object_class, PROP_IS_REMOTE, - g_param_spec_boolean ("is-remote", - P_("Is remote"), - P_("If this application instance is remote"), + g_param_spec_boolean ("is-remote", NULL, NULL, FALSE, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); /** @@ -1559,9 +1549,7 @@ g_application_class_init (GApplicationClass *class) * Since: 2.28 */ g_object_class_install_property (object_class, PROP_INACTIVITY_TIMEOUT, - g_param_spec_uint ("inactivity-timeout", - P_("Inactivity timeout"), - P_("Time (ms) to stay alive after becoming idle"), + g_param_spec_uint ("inactivity-timeout", NULL, NULL, 0, G_MAXUINT, 0, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); @@ -1573,9 +1561,7 @@ g_application_class_init (GApplicationClass *class) * Since: 2.28 */ g_object_class_install_property (object_class, PROP_ACTION_GROUP, - g_param_spec_object ("action-group", - P_("Action group"), - P_("The group of actions that the application exports"), + g_param_spec_object ("action-group", NULL, NULL, G_TYPE_ACTION_GROUP, G_PARAM_DEPRECATED | G_PARAM_WRITABLE | G_PARAM_STATIC_STRINGS)); @@ -1588,9 +1574,7 @@ g_application_class_init (GApplicationClass *class) * Since: 2.44 */ g_object_class_install_property (object_class, PROP_IS_BUSY, - g_param_spec_boolean ("is-busy", - P_("Is busy"), - P_("If this application is currently marked busy"), + g_param_spec_boolean ("is-busy", NULL, NULL, FALSE, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); /** diff --git a/gio/gapplicationcommandline.c b/gio/gapplicationcommandline.c index b64a65d07..5945e4e8d 100644 --- a/gio/gapplicationcommandline.c +++ b/gio/gapplicationcommandline.c @@ -447,9 +447,7 @@ g_application_command_line_class_init (GApplicationCommandLineClass *class) * Since: 2.28 */ g_object_class_install_property (object_class, PROP_ARGUMENTS, - g_param_spec_variant ("arguments", - P_("Commandline arguments"), - P_("The commandline that caused this ::command-line signal emission"), + g_param_spec_variant ("arguments", NULL, NULL, G_VARIANT_TYPE_BYTESTRING_ARRAY, NULL, G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS)); @@ -462,9 +460,7 @@ g_application_command_line_class_init (GApplicationCommandLineClass *class) * Since: 2.28 */ g_object_class_install_property (object_class, PROP_OPTIONS, - g_param_spec_variant ("options", - P_("Options"), - P_("The options sent along with the commandline"), + g_param_spec_variant ("options", NULL, NULL, G_VARIANT_TYPE_VARDICT, NULL, G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS)); @@ -476,9 +472,7 @@ g_application_command_line_class_init (GApplicationCommandLineClass *class) * Since: 2.28 */ g_object_class_install_property (object_class, PROP_PLATFORM_DATA, - g_param_spec_variant ("platform-data", - P_("Platform data"), - P_("Platform-specific data for the commandline"), + g_param_spec_variant ("platform-data", NULL, NULL, G_VARIANT_TYPE ("a{sv}"), NULL, G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS)); @@ -491,9 +485,7 @@ g_application_command_line_class_init (GApplicationCommandLineClass *class) * Since: 2.28 */ g_object_class_install_property (object_class, PROP_IS_REMOTE, - g_param_spec_boolean ("is-remote", - P_("Is remote"), - P_("TRUE if this is a remote commandline"), + g_param_spec_boolean ("is-remote", NULL, NULL, FALSE, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); } diff --git a/gio/gbufferedinputstream.c b/gio/gbufferedinputstream.c index e4536e8ae..64cb293ef 100644 --- a/gio/gbufferedinputstream.c +++ b/gio/gbufferedinputstream.c @@ -164,9 +164,7 @@ g_buffered_input_stream_class_init (GBufferedInputStreamClass *klass) */ g_object_class_install_property (object_class, PROP_BUFSIZE, - g_param_spec_uint ("buffer-size", - P_("Buffer Size"), - P_("The size of the backend buffer"), + g_param_spec_uint ("buffer-size", NULL, NULL, 1, G_MAXUINT, DEFAULT_BUFFER_SIZE, diff --git a/gio/gbufferedoutputstream.c b/gio/gbufferedoutputstream.c index a8b92503d..f82b10f11 100644 --- a/gio/gbufferedoutputstream.c +++ b/gio/gbufferedoutputstream.c @@ -152,9 +152,7 @@ g_buffered_output_stream_class_init (GBufferedOutputStreamClass *klass) */ g_object_class_install_property (object_class, PROP_BUFSIZE, - g_param_spec_uint ("buffer-size", - P_("Buffer Size"), - P_("The size of the backend buffer"), + g_param_spec_uint ("buffer-size", NULL, NULL, 1, G_MAXUINT, DEFAULT_BUFFER_SIZE, @@ -168,9 +166,7 @@ g_buffered_output_stream_class_init (GBufferedOutputStreamClass *klass) */ g_object_class_install_property (object_class, PROP_AUTO_GROW, - g_param_spec_boolean ("auto-grow", - P_("Auto-grow"), - P_("Whether the buffer should automatically grow"), + g_param_spec_boolean ("auto-grow", NULL, NULL, FALSE, G_PARAM_READWRITE| G_PARAM_STATIC_NAME|G_PARAM_STATIC_NICK|G_PARAM_STATIC_BLURB)); diff --git a/gio/gbytesicon.c b/gio/gbytesicon.c index 3e5c50314..37c242afb 100644 --- a/gio/gbytesicon.c +++ b/gio/gbytesicon.c @@ -127,9 +127,7 @@ g_bytes_icon_class_init (GBytesIconClass *klass) * The bytes containing the icon. */ g_object_class_install_property (gobject_class, PROP_BYTES, - g_param_spec_boxed ("bytes", - P_("bytes"), - P_("The bytes containing the icon"), + g_param_spec_boxed ("bytes", NULL, NULL, G_TYPE_BYTES, G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); } diff --git a/gio/gcharsetconverter.c b/gio/gcharsetconverter.c index 3b46f8845..c9437e1bd 100644 --- a/gio/gcharsetconverter.c +++ b/gio/gcharsetconverter.c @@ -161,9 +161,7 @@ g_charset_converter_class_init (GCharsetConverterClass *klass) */ g_object_class_install_property (gobject_class, PROP_TO_CHARSET, - g_param_spec_string ("to-charset", - P_("To Charset"), - P_("The character encoding to convert to"), + g_param_spec_string ("to-charset", NULL, NULL, NULL, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS)); @@ -177,9 +175,7 @@ g_charset_converter_class_init (GCharsetConverterClass *klass) */ g_object_class_install_property (gobject_class, PROP_FROM_CHARSET, - g_param_spec_string ("from-charset", - P_("From Charset"), - P_("The character encoding to convert from"), + g_param_spec_string ("from-charset", NULL, NULL, NULL, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS)); @@ -193,9 +189,7 @@ g_charset_converter_class_init (GCharsetConverterClass *klass) */ g_object_class_install_property (gobject_class, PROP_USE_FALLBACK, - g_param_spec_boolean ("use-fallback", - P_("Fallback enabled"), - P_("Use fallback (of form \\) for invalid bytes"), + g_param_spec_boolean ("use-fallback", NULL, NULL, FALSE, G_PARAM_READWRITE | G_PARAM_CONSTRUCT | diff --git a/gio/gconverterinputstream.c b/gio/gconverterinputstream.c index 4a13c11a7..c74ec29f3 100644 --- a/gio/gconverterinputstream.c +++ b/gio/gconverterinputstream.c @@ -120,9 +120,7 @@ g_converter_input_stream_class_init (GConverterInputStreamClass *klass) */ g_object_class_install_property (object_class, PROP_CONVERTER, - g_param_spec_object ("converter", - P_("Converter"), - P_("The converter object"), + g_param_spec_object ("converter", NULL, NULL, G_TYPE_CONVERTER, G_PARAM_READWRITE| G_PARAM_CONSTRUCT_ONLY| diff --git a/gio/gconverteroutputstream.c b/gio/gconverteroutputstream.c index 7a5cd56f2..1877b0e4e 100644 --- a/gio/gconverteroutputstream.c +++ b/gio/gconverteroutputstream.c @@ -136,9 +136,7 @@ g_converter_output_stream_class_init (GConverterOutputStreamClass *klass) */ g_object_class_install_property (object_class, PROP_CONVERTER, - g_param_spec_object ("converter", - P_("Converter"), - P_("The converter object"), + g_param_spec_object ("converter", NULL, NULL, G_TYPE_CONVERTER, G_PARAM_READWRITE| G_PARAM_CONSTRUCT_ONLY| diff --git a/gio/gdatainputstream.c b/gio/gdatainputstream.c index c97c929a0..e2921e408 100644 --- a/gio/gdatainputstream.c +++ b/gio/gdatainputstream.c @@ -82,9 +82,7 @@ g_data_input_stream_class_init (GDataInputStreamClass *klass) */ g_object_class_install_property (object_class, PROP_BYTE_ORDER, - g_param_spec_enum ("byte-order", - P_("Byte order"), - P_("The byte order"), + g_param_spec_enum ("byte-order", NULL, NULL, G_TYPE_DATA_STREAM_BYTE_ORDER, G_DATA_STREAM_BYTE_ORDER_BIG_ENDIAN, G_PARAM_READWRITE|G_PARAM_STATIC_NAME|G_PARAM_STATIC_BLURB)); @@ -97,9 +95,7 @@ g_data_input_stream_class_init (GDataInputStreamClass *klass) */ g_object_class_install_property (object_class, PROP_NEWLINE_TYPE, - g_param_spec_enum ("newline-type", - P_("Newline type"), - P_("The accepted types of line ending"), + g_param_spec_enum ("newline-type", NULL, NULL, G_TYPE_DATA_STREAM_NEWLINE_TYPE, G_DATA_STREAM_NEWLINE_TYPE_LF, G_PARAM_READWRITE|G_PARAM_STATIC_NAME|G_PARAM_STATIC_BLURB)); diff --git a/gio/gdataoutputstream.c b/gio/gdataoutputstream.c index 269f5d0a8..f183f9626 100644 --- a/gio/gdataoutputstream.c +++ b/gio/gdataoutputstream.c @@ -94,9 +94,7 @@ g_data_output_stream_class_init (GDataOutputStreamClass *klass) */ g_object_class_install_property (object_class, PROP_BYTE_ORDER, - g_param_spec_enum ("byte-order", - P_("Byte order"), - P_("The byte order"), + g_param_spec_enum ("byte-order", NULL, NULL, G_TYPE_DATA_STREAM_BYTE_ORDER, G_DATA_STREAM_BYTE_ORDER_BIG_ENDIAN, G_PARAM_READWRITE|G_PARAM_STATIC_NAME|G_PARAM_STATIC_BLURB)); diff --git a/gio/gdbusauth.c b/gio/gdbusauth.c index b52a06e7f..9e31c8318 100644 --- a/gio/gdbusauth.c +++ b/gio/gdbusauth.c @@ -172,9 +172,7 @@ _g_dbus_auth_class_init (GDBusAuthClass *klass) g_object_class_install_property (gobject_class, PROP_STREAM, - g_param_spec_object ("stream", - P_("IO Stream"), - P_("The underlying GIOStream used for I/O"), + g_param_spec_object ("stream", NULL, NULL, G_TYPE_IO_STREAM, G_PARAM_READABLE | G_PARAM_WRITABLE | diff --git a/gio/gdbusauthmechanism.c b/gio/gdbusauthmechanism.c index 6e494dbd9..be1b1dca0 100644 --- a/gio/gdbusauthmechanism.c +++ b/gio/gdbusauthmechanism.c @@ -122,9 +122,7 @@ _g_dbus_auth_mechanism_class_init (GDBusAuthMechanismClass *klass) g_object_class_install_property (gobject_class, PROP_STREAM, - g_param_spec_object ("stream", - P_("IO Stream"), - P_("The underlying GIOStream used for I/O"), + g_param_spec_object ("stream", NULL, NULL, G_TYPE_IO_STREAM, G_PARAM_READABLE | G_PARAM_WRITABLE | @@ -144,9 +142,7 @@ _g_dbus_auth_mechanism_class_init (GDBusAuthMechanismClass *klass) */ g_object_class_install_property (gobject_class, PROP_CREDENTIALS, - g_param_spec_object ("credentials", - P_("Credentials"), - P_("The credentials of the remote peer"), + g_param_spec_object ("credentials", NULL, NULL, G_TYPE_CREDENTIALS, G_PARAM_READABLE | G_PARAM_WRITABLE | diff --git a/gio/gdbusconnection.c b/gio/gdbusconnection.c index 3e17a5d21..85190e919 100644 --- a/gio/gdbusconnection.c +++ b/gio/gdbusconnection.c @@ -815,9 +815,7 @@ g_dbus_connection_class_init (GDBusConnectionClass *klass) */ g_object_class_install_property (gobject_class, PROP_STREAM, - g_param_spec_object ("stream", - P_("IO Stream"), - P_("The underlying streams used for I/O"), + g_param_spec_object ("stream", NULL, NULL, G_TYPE_IO_STREAM, G_PARAM_READABLE | G_PARAM_WRITABLE | @@ -836,9 +834,7 @@ g_dbus_connection_class_init (GDBusConnectionClass *klass) */ g_object_class_install_property (gobject_class, PROP_ADDRESS, - g_param_spec_string ("address", - P_("Address"), - P_("D-Bus address specifying potential socket endpoints"), + g_param_spec_string ("address", NULL, NULL, NULL, G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY | @@ -855,9 +851,7 @@ g_dbus_connection_class_init (GDBusConnectionClass *klass) */ g_object_class_install_property (gobject_class, PROP_FLAGS, - g_param_spec_flags ("flags", - P_("Flags"), - P_("Flags"), + g_param_spec_flags ("flags", NULL, NULL, G_TYPE_DBUS_CONNECTION_FLAGS, G_DBUS_CONNECTION_FLAGS_NONE, G_PARAM_READABLE | @@ -897,9 +891,7 @@ g_dbus_connection_class_init (GDBusConnectionClass *klass) */ g_object_class_install_property (gobject_class, PROP_GUID, - g_param_spec_string ("guid", - P_("GUID"), - P_("GUID of the server peer"), + g_param_spec_string ("guid", NULL, NULL, NULL, G_PARAM_READABLE | G_PARAM_WRITABLE | @@ -918,9 +910,7 @@ g_dbus_connection_class_init (GDBusConnectionClass *klass) */ g_object_class_install_property (gobject_class, PROP_UNIQUE_NAME, - g_param_spec_string ("unique-name", - P_("unique-name"), - P_("Unique name of bus connection"), + g_param_spec_string ("unique-name", NULL, NULL, NULL, G_PARAM_READABLE | G_PARAM_STATIC_NAME | @@ -936,9 +926,7 @@ g_dbus_connection_class_init (GDBusConnectionClass *klass) */ g_object_class_install_property (gobject_class, PROP_CLOSED, - g_param_spec_boolean ("closed", - P_("Closed"), - P_("Whether the connection is closed"), + g_param_spec_boolean ("closed", NULL, NULL, FALSE, G_PARAM_READABLE | G_PARAM_STATIC_NAME | @@ -959,9 +947,7 @@ g_dbus_connection_class_init (GDBusConnectionClass *klass) */ g_object_class_install_property (gobject_class, PROP_EXIT_ON_CLOSE, - g_param_spec_boolean ("exit-on-close", - P_("Exit on close"), - P_("Whether the process is terminated when the connection is closed"), + g_param_spec_boolean ("exit-on-close", NULL, NULL, FALSE, G_PARAM_READABLE | G_PARAM_WRITABLE | @@ -979,9 +965,7 @@ g_dbus_connection_class_init (GDBusConnectionClass *klass) */ g_object_class_install_property (gobject_class, PROP_CAPABILITY_FLAGS, - g_param_spec_flags ("capabilities", - P_("Capabilities"), - P_("Capabilities"), + g_param_spec_flags ("capabilities", NULL, NULL, G_TYPE_DBUS_CAPABILITY_FLAGS, G_DBUS_CAPABILITY_FLAGS_NONE, G_PARAM_READABLE | @@ -998,9 +982,7 @@ g_dbus_connection_class_init (GDBusConnectionClass *klass) */ g_object_class_install_property (gobject_class, PROP_AUTHENTICATION_OBSERVER, - g_param_spec_object ("authentication-observer", - P_("Authentication Observer"), - P_("Object used to assist in the authentication process"), + g_param_spec_object ("authentication-observer", NULL, NULL, G_TYPE_DBUS_AUTH_OBSERVER, G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY | diff --git a/gio/gdbusdaemon.c b/gio/gdbusdaemon.c index 70009f970..3474b7091 100644 --- a/gio/gdbusdaemon.c +++ b/gio/gdbusdaemon.c @@ -1692,9 +1692,7 @@ g_dbus_daemon_class_init (GDBusDaemonClass *klass) g_object_class_install_property (gobject_class, PROP_ADDRESS, - g_param_spec_string ("address", - "Bus Address", - "The address the bus should use", + g_param_spec_string ("address", NULL, NULL, NULL, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | diff --git a/gio/gdbusinterfaceskeleton.c b/gio/gdbusinterfaceskeleton.c index 3053f233d..5f9be9c5c 100644 --- a/gio/gdbusinterfaceskeleton.c +++ b/gio/gdbusinterfaceskeleton.c @@ -192,9 +192,7 @@ g_dbus_interface_skeleton_class_init (GDBusInterfaceSkeletonClass *klass) */ g_object_class_install_property (gobject_class, PROP_G_FLAGS, - g_param_spec_flags ("g-flags", - "g-flags", - "Flags for the interface skeleton", + g_param_spec_flags ("g-flags", NULL, NULL, G_TYPE_DBUS_INTERFACE_SKELETON_FLAGS, G_DBUS_INTERFACE_SKELETON_FLAGS_NONE, G_PARAM_READABLE | diff --git a/gio/gdbusmessage.c b/gio/gdbusmessage.c index fa6077f86..fb434f684 100644 --- a/gio/gdbusmessage.c +++ b/gio/gdbusmessage.c @@ -569,9 +569,7 @@ g_dbus_message_class_init (GDBusMessageClass *klass) */ g_object_class_install_property (gobject_class, PROP_LOCKED, - g_param_spec_boolean ("locked", - P_("Locked"), - P_("Whether the message is locked"), + g_param_spec_boolean ("locked", NULL, NULL, FALSE, G_PARAM_READABLE | G_PARAM_STATIC_NAME | diff --git a/gio/gdbusobjectmanagerclient.c b/gio/gdbusobjectmanagerclient.c index ea6ec9093..cb35d0669 100644 --- a/gio/gdbusobjectmanagerclient.c +++ b/gio/gdbusobjectmanagerclient.c @@ -363,9 +363,7 @@ g_dbus_object_manager_client_class_init (GDBusObjectManagerClientClass *klass) */ g_object_class_install_property (gobject_class, PROP_CONNECTION, - g_param_spec_object ("connection", - "Connection", - "The connection to use", + g_param_spec_object ("connection", NULL, NULL, G_TYPE_DBUS_CONNECTION, G_PARAM_READABLE | G_PARAM_WRITABLE | @@ -384,9 +382,7 @@ g_dbus_object_manager_client_class_init (GDBusObjectManagerClientClass *klass) */ g_object_class_install_property (gobject_class, PROP_BUS_TYPE, - g_param_spec_enum ("bus-type", - "Bus Type", - "The bus to connect to, if any", + g_param_spec_enum ("bus-type", NULL, NULL, G_TYPE_BUS_TYPE, G_BUS_TYPE_NONE, G_PARAM_WRITABLE | @@ -404,9 +400,7 @@ g_dbus_object_manager_client_class_init (GDBusObjectManagerClientClass *klass) */ g_object_class_install_property (gobject_class, PROP_FLAGS, - g_param_spec_flags ("flags", - "Flags", - "Flags for the proxy manager", + g_param_spec_flags ("flags", NULL, NULL, G_TYPE_DBUS_OBJECT_MANAGER_CLIENT_FLAGS, G_DBUS_OBJECT_MANAGER_CLIENT_FLAGS_NONE, G_PARAM_READABLE | @@ -425,9 +419,7 @@ g_dbus_object_manager_client_class_init (GDBusObjectManagerClientClass *klass) */ g_object_class_install_property (gobject_class, PROP_OBJECT_PATH, - g_param_spec_string ("object-path", - "Object Path", - "The object path of the control object", + g_param_spec_string ("object-path", NULL, NULL, NULL, G_PARAM_READABLE | G_PARAM_WRITABLE | @@ -443,9 +435,7 @@ g_dbus_object_manager_client_class_init (GDBusObjectManagerClientClass *klass) */ g_object_class_install_property (gobject_class, PROP_NAME, - g_param_spec_string ("name", - "Name", - "Name that the manager is for", + g_param_spec_string ("name", NULL, NULL, NULL, G_PARAM_READABLE | G_PARAM_WRITABLE | @@ -463,9 +453,7 @@ g_dbus_object_manager_client_class_init (GDBusObjectManagerClientClass *klass) */ g_object_class_install_property (gobject_class, PROP_NAME_OWNER, - g_param_spec_string ("name-owner", - "Name Owner", - "The owner of the name we are watching", + g_param_spec_string ("name-owner", NULL, NULL, NULL, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); @@ -480,9 +468,7 @@ g_dbus_object_manager_client_class_init (GDBusObjectManagerClientClass *klass) */ g_object_class_install_property (gobject_class, PROP_GET_PROXY_TYPE_FUNC, - g_param_spec_pointer ("get-proxy-type-func", - "GDBusProxyTypeFunc Function Pointer", - "The GDBusProxyTypeFunc pointer to use", + g_param_spec_pointer ("get-proxy-type-func", NULL, NULL, G_PARAM_READABLE | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY | @@ -497,9 +483,7 @@ g_dbus_object_manager_client_class_init (GDBusObjectManagerClientClass *klass) */ g_object_class_install_property (gobject_class, PROP_GET_PROXY_TYPE_USER_DATA, - g_param_spec_pointer ("get-proxy-type-user-data", - "GDBusProxyTypeFunc User Data", - "The GDBusProxyTypeFunc user_data", + g_param_spec_pointer ("get-proxy-type-user-data", NULL, NULL, G_PARAM_READABLE | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY | @@ -514,9 +498,7 @@ g_dbus_object_manager_client_class_init (GDBusObjectManagerClientClass *klass) */ g_object_class_install_property (gobject_class, PROP_GET_PROXY_TYPE_DESTROY_NOTIFY, - g_param_spec_pointer ("get-proxy-type-destroy-notify", - "GDBusProxyTypeFunc user data free function", - "The GDBusProxyTypeFunc user data free function", + g_param_spec_pointer ("get-proxy-type-destroy-notify", NULL, NULL, G_PARAM_READABLE | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY | diff --git a/gio/gdbusobjectmanagerserver.c b/gio/gdbusobjectmanagerserver.c index c48296cb1..bbc390fec 100644 --- a/gio/gdbusobjectmanagerserver.c +++ b/gio/gdbusobjectmanagerserver.c @@ -209,9 +209,7 @@ g_dbus_object_manager_server_class_init (GDBusObjectManagerServerClass *klass) */ g_object_class_install_property (gobject_class, PROP_CONNECTION, - g_param_spec_object ("connection", - "Connection", - "The connection to export objects on", + g_param_spec_object ("connection", NULL, NULL, G_TYPE_DBUS_CONNECTION, G_PARAM_READABLE | G_PARAM_WRITABLE | @@ -226,9 +224,7 @@ g_dbus_object_manager_server_class_init (GDBusObjectManagerServerClass *klass) */ g_object_class_install_property (gobject_class, PROP_OBJECT_PATH, - g_param_spec_string ("object-path", - "Object Path", - "The object path to register the manager object at", + g_param_spec_string ("object-path", NULL, NULL, NULL, G_PARAM_READABLE | G_PARAM_WRITABLE | diff --git a/gio/gdbusobjectproxy.c b/gio/gdbusobjectproxy.c index 46c3282a3..dcdfe5b29 100644 --- a/gio/gdbusobjectproxy.c +++ b/gio/gdbusobjectproxy.c @@ -152,9 +152,7 @@ g_dbus_object_proxy_class_init (GDBusObjectProxyClass *klass) */ g_object_class_install_property (gobject_class, PROP_G_OBJECT_PATH, - g_param_spec_string ("g-object-path", - "Object Path", - "The object path of the proxy", + g_param_spec_string ("g-object-path", NULL, NULL, NULL, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | @@ -169,9 +167,7 @@ g_dbus_object_proxy_class_init (GDBusObjectProxyClass *klass) */ g_object_class_install_property (gobject_class, PROP_G_CONNECTION, - g_param_spec_object ("g-connection", - "Connection", - "The connection of the proxy", + g_param_spec_object ("g-connection", NULL, NULL, G_TYPE_DBUS_CONNECTION, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | diff --git a/gio/gdbusobjectskeleton.c b/gio/gdbusobjectskeleton.c index 88783f216..f1376757c 100644 --- a/gio/gdbusobjectskeleton.c +++ b/gio/gdbusobjectskeleton.c @@ -157,9 +157,7 @@ g_dbus_object_skeleton_class_init (GDBusObjectSkeletonClass *klass) */ g_object_class_install_property (gobject_class, PROP_G_OBJECT_PATH, - g_param_spec_string ("g-object-path", - "Object Path", - "The object path where the object is exported", + g_param_spec_string ("g-object-path", NULL, NULL, NULL, G_PARAM_READABLE | G_PARAM_WRITABLE | diff --git a/gio/gdbusproxy.c b/gio/gdbusproxy.c index a2537804d..5d9a637c3 100644 --- a/gio/gdbusproxy.c +++ b/gio/gdbusproxy.c @@ -369,9 +369,7 @@ g_dbus_proxy_class_init (GDBusProxyClass *klass) */ g_object_class_install_property (gobject_class, PROP_G_INTERFACE_INFO, - g_param_spec_boxed ("g-interface-info", - P_("Interface Information"), - P_("Interface Information"), + g_param_spec_boxed ("g-interface-info", NULL, NULL, G_TYPE_DBUS_INTERFACE_INFO, G_PARAM_READABLE | G_PARAM_WRITABLE | @@ -388,9 +386,7 @@ g_dbus_proxy_class_init (GDBusProxyClass *klass) */ g_object_class_install_property (gobject_class, PROP_G_CONNECTION, - g_param_spec_object ("g-connection", - P_("g-connection"), - P_("The connection the proxy is for"), + g_param_spec_object ("g-connection", NULL, NULL, G_TYPE_DBUS_CONNECTION, G_PARAM_READABLE | G_PARAM_WRITABLE | @@ -411,9 +407,7 @@ g_dbus_proxy_class_init (GDBusProxyClass *klass) */ g_object_class_install_property (gobject_class, PROP_G_BUS_TYPE, - g_param_spec_enum ("g-bus-type", - P_("Bus Type"), - P_("The bus to connect to, if any"), + g_param_spec_enum ("g-bus-type", NULL, NULL, G_TYPE_BUS_TYPE, G_BUS_TYPE_NONE, G_PARAM_WRITABLE | @@ -431,9 +425,7 @@ g_dbus_proxy_class_init (GDBusProxyClass *klass) */ g_object_class_install_property (gobject_class, PROP_G_FLAGS, - g_param_spec_flags ("g-flags", - P_("g-flags"), - P_("Flags for the proxy"), + g_param_spec_flags ("g-flags", NULL, NULL, G_TYPE_DBUS_PROXY_FLAGS, G_DBUS_PROXY_FLAGS_NONE, G_PARAM_READABLE | @@ -452,9 +444,7 @@ g_dbus_proxy_class_init (GDBusProxyClass *klass) */ g_object_class_install_property (gobject_class, PROP_G_NAME, - g_param_spec_string ("g-name", - P_("g-name"), - P_("The well-known or unique name that the proxy is for"), + g_param_spec_string ("g-name", NULL, NULL, NULL, G_PARAM_READABLE | G_PARAM_WRITABLE | @@ -474,9 +464,7 @@ g_dbus_proxy_class_init (GDBusProxyClass *klass) */ g_object_class_install_property (gobject_class, PROP_G_NAME_OWNER, - g_param_spec_string ("g-name-owner", - P_("g-name-owner"), - P_("The unique name for the owner"), + g_param_spec_string ("g-name-owner", NULL, NULL, NULL, G_PARAM_READABLE | G_PARAM_STATIC_NAME | @@ -492,9 +480,7 @@ g_dbus_proxy_class_init (GDBusProxyClass *klass) */ g_object_class_install_property (gobject_class, PROP_G_OBJECT_PATH, - g_param_spec_string ("g-object-path", - P_("g-object-path"), - P_("The object path the proxy is for"), + g_param_spec_string ("g-object-path", NULL, NULL, NULL, G_PARAM_READABLE | G_PARAM_WRITABLE | @@ -512,9 +498,7 @@ g_dbus_proxy_class_init (GDBusProxyClass *klass) */ g_object_class_install_property (gobject_class, PROP_G_INTERFACE_NAME, - g_param_spec_string ("g-interface-name", - P_("g-interface-name"), - P_("The D-Bus interface name the proxy is for"), + g_param_spec_string ("g-interface-name", NULL, NULL, NULL, G_PARAM_READABLE | G_PARAM_WRITABLE | @@ -539,9 +523,7 @@ g_dbus_proxy_class_init (GDBusProxyClass *klass) */ g_object_class_install_property (gobject_class, PROP_G_DEFAULT_TIMEOUT, - g_param_spec_int ("g-default-timeout", - P_("Default Timeout"), - P_("Timeout for remote method invocation"), + g_param_spec_int ("g-default-timeout", NULL, NULL, -1, G_MAXINT, -1, diff --git a/gio/gdbusserver.c b/gio/gdbusserver.c index fa769bebb..4e23e52e4 100644 --- a/gio/gdbusserver.c +++ b/gio/gdbusserver.c @@ -298,9 +298,7 @@ g_dbus_server_class_init (GDBusServerClass *klass) */ g_object_class_install_property (gobject_class, PROP_FLAGS, - g_param_spec_flags ("flags", - P_("Flags"), - P_("Flags for the server"), + g_param_spec_flags ("flags", NULL, NULL, G_TYPE_DBUS_SERVER_FLAGS, G_DBUS_SERVER_FLAGS_NONE, G_PARAM_READABLE | @@ -321,9 +319,7 @@ g_dbus_server_class_init (GDBusServerClass *klass) */ g_object_class_install_property (gobject_class, PROP_GUID, - g_param_spec_string ("guid", - P_("GUID"), - P_("The guid of the server"), + g_param_spec_string ("guid", NULL, NULL, NULL, G_PARAM_READABLE | G_PARAM_WRITABLE | @@ -341,9 +337,7 @@ g_dbus_server_class_init (GDBusServerClass *klass) */ g_object_class_install_property (gobject_class, PROP_ADDRESS, - g_param_spec_string ("address", - P_("Address"), - P_("The address to listen on"), + g_param_spec_string ("address", NULL, NULL, NULL, G_PARAM_READABLE | G_PARAM_WRITABLE | @@ -361,9 +355,7 @@ g_dbus_server_class_init (GDBusServerClass *klass) */ g_object_class_install_property (gobject_class, PROP_CLIENT_ADDRESS, - g_param_spec_string ("client-address", - P_("Client Address"), - P_("The address clients can use"), + g_param_spec_string ("client-address", NULL, NULL, NULL, G_PARAM_READABLE | G_PARAM_STATIC_NAME | @@ -379,9 +371,7 @@ g_dbus_server_class_init (GDBusServerClass *klass) */ g_object_class_install_property (gobject_class, PROP_ACTIVE, - g_param_spec_boolean ("active", - P_("Active"), - P_("Whether the server is currently active"), + g_param_spec_boolean ("active", NULL, NULL, FALSE, G_PARAM_READABLE | G_PARAM_STATIC_NAME | @@ -397,9 +387,7 @@ g_dbus_server_class_init (GDBusServerClass *klass) */ g_object_class_install_property (gobject_class, PROP_AUTHENTICATION_OBSERVER, - g_param_spec_object ("authentication-observer", - P_("Authentication Observer"), - P_("Object used to assist in the authentication process"), + g_param_spec_object ("authentication-observer", NULL, NULL, G_TYPE_DBUS_AUTH_OBSERVER, G_PARAM_READABLE | G_PARAM_WRITABLE | diff --git a/gio/gdebugcontroller.c b/gio/gdebugcontroller.c index 0b1e92932..ab72f0948 100644 --- a/gio/gdebugcontroller.c +++ b/gio/gdebugcontroller.c @@ -66,9 +66,7 @@ g_debug_controller_default_init (GDebugControllerInterface *iface) * Since: 2.72 */ g_object_interface_install_property (iface, - g_param_spec_boolean ("debug-enabled", - "Debug Enabled", - "Whether to expose debug output", + g_param_spec_boolean ("debug-enabled", NULL, NULL, FALSE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | diff --git a/gio/gdebugcontrollerdbus.c b/gio/gdebugcontrollerdbus.c index 79173cec0..03dd1be98 100644 --- a/gio/gdebugcontrollerdbus.c +++ b/gio/gdebugcontrollerdbus.c @@ -561,8 +561,7 @@ g_debug_controller_dbus_class_init (GDebugControllerDBusClass *klass) * Since: 2.72 */ props[PROP_CONNECTION] = - g_param_spec_object ("connection", "D-Bus Connection", - "The D-Bus connection to expose the debugging interface on.", + g_param_spec_object ("connection", NULL, NULL, G_TYPE_DBUS_CONNECTION, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | diff --git a/gio/gdesktopappinfo.c b/gio/gdesktopappinfo.c index 4a76b3e51..bde0793fd 100644 --- a/gio/gdesktopappinfo.c +++ b/gio/gdesktopappinfo.c @@ -1781,7 +1781,7 @@ g_desktop_app_info_class_init (GDesktopAppInfoClass *klass) */ g_object_class_install_property (gobject_class, PROP_FILENAME, - g_param_spec_string ("filename", "Filename", "", NULL, + g_param_spec_string ("filename", NULL, NULL, NULL, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY)); } diff --git a/gio/gdtlsclientconnection.c b/gio/gdtlsclientconnection.c index a70eeea5d..d19105a98 100644 --- a/gio/gdtlsclientconnection.c +++ b/gio/gdtlsclientconnection.c @@ -70,9 +70,7 @@ g_dtls_client_connection_default_init (GDtlsClientConnectionInterface *iface) * Deprecated: 2.74: Do not attempt to ignore validation errors. */ g_object_interface_install_property (iface, - g_param_spec_flags ("validation-flags", - P_("Validation flags"), - P_("What certificate validation to perform"), + g_param_spec_flags ("validation-flags", NULL, NULL, G_TYPE_TLS_CERTIFICATE_FLAGS, G_TLS_CERTIFICATE_VALIDATE_ALL, G_PARAM_READWRITE | @@ -100,9 +98,7 @@ g_dtls_client_connection_default_init (GDtlsClientConnectionInterface *iface) * Since: 2.48 */ g_object_interface_install_property (iface, - g_param_spec_object ("server-identity", - P_("Server identity"), - P_("GSocketConnectable identifying the server"), + g_param_spec_object ("server-identity", NULL, NULL, G_TYPE_SOCKET_CONNECTABLE, G_PARAM_READWRITE | G_PARAM_CONSTRUCT | @@ -122,9 +118,7 @@ g_dtls_client_connection_default_init (GDtlsClientConnectionInterface *iface) * Since: 2.48 */ g_object_interface_install_property (iface, - g_param_spec_pointer ("accepted-cas", - P_("Accepted CAs"), - P_("Distinguished names of the CAs the server accepts certificates from"), + g_param_spec_pointer ("accepted-cas", NULL, NULL, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); } diff --git a/gio/gdtlsconnection.c b/gio/gdtlsconnection.c index f3d13dead..bca4d66fd 100644 --- a/gio/gdtlsconnection.c +++ b/gio/gdtlsconnection.c @@ -96,9 +96,7 @@ g_dtls_connection_default_init (GDtlsConnectionInterface *iface) * Since: 2.48 */ g_object_interface_install_property (iface, - g_param_spec_object ("base-socket", - P_("Base Socket"), - P_("The GDatagramBased that the connection wraps"), + g_param_spec_object ("base-socket", NULL, NULL, G_TYPE_DATAGRAM_BASED, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | @@ -126,9 +124,7 @@ g_dtls_connection_default_init (GDtlsConnectionInterface *iface) * Since: 2.48 */ g_object_interface_install_property (iface, - g_param_spec_object ("database", - P_("Database"), - P_("Certificate database to use for looking up or verifying certificates"), + g_param_spec_object ("database", NULL, NULL, G_TYPE_TLS_DATABASE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); @@ -142,9 +138,7 @@ g_dtls_connection_default_init (GDtlsConnectionInterface *iface) * Since: 2.48 */ g_object_interface_install_property (iface, - g_param_spec_object ("interaction", - P_("Interaction"), - P_("Optional object for user interaction"), + g_param_spec_object ("interaction", NULL, NULL, G_TYPE_TLS_INTERACTION, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); @@ -157,9 +151,7 @@ g_dtls_connection_default_init (GDtlsConnectionInterface *iface) * Since: 2.48 */ g_object_interface_install_property (iface, - g_param_spec_boolean ("require-close-notify", - P_("Require close notify"), - P_("Whether to require proper TLS close notification"), + g_param_spec_boolean ("require-close-notify", NULL, NULL, TRUE, G_PARAM_READWRITE | G_PARAM_CONSTRUCT | @@ -175,9 +167,7 @@ g_dtls_connection_default_init (GDtlsConnectionInterface *iface) * Deprecated: 2.60: The rehandshake mode is ignored. */ g_object_interface_install_property (iface, - g_param_spec_enum ("rehandshake-mode", - P_("Rehandshake mode"), - P_("When to allow rehandshaking"), + g_param_spec_enum ("rehandshake-mode", NULL, NULL, G_TYPE_TLS_REHANDSHAKE_MODE, G_TLS_REHANDSHAKE_NEVER, G_PARAM_READWRITE | @@ -193,9 +183,7 @@ g_dtls_connection_default_init (GDtlsConnectionInterface *iface) * Since: 2.48 */ g_object_interface_install_property (iface, - g_param_spec_object ("certificate", - P_("Certificate"), - P_("The connection’s certificate"), + g_param_spec_object ("certificate", NULL, NULL, G_TYPE_TLS_CERTIFICATE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); @@ -212,9 +200,7 @@ g_dtls_connection_default_init (GDtlsConnectionInterface *iface) * Since: 2.48 */ g_object_interface_install_property (iface, - g_param_spec_object ("peer-certificate", - P_("Peer Certificate"), - P_("The connection’s peer’s certificate"), + g_param_spec_object ("peer-certificate", NULL, NULL, G_TYPE_TLS_CERTIFICATE, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); @@ -239,9 +225,7 @@ g_dtls_connection_default_init (GDtlsConnectionInterface *iface) * Since: 2.48 */ g_object_interface_install_property (iface, - g_param_spec_flags ("peer-certificate-errors", - P_("Peer Certificate Errors"), - P_("Errors found with the peer’s certificate"), + g_param_spec_flags ("peer-certificate-errors", NULL, NULL, G_TYPE_TLS_CERTIFICATE_FLAGS, 0, G_PARAM_READABLE | @@ -256,9 +240,7 @@ g_dtls_connection_default_init (GDtlsConnectionInterface *iface) * Since: 2.60 */ g_object_interface_install_property (iface, - g_param_spec_boxed ("advertised-protocols", - P_("Advertised Protocols"), - P_("Application-layer protocols available on this connection"), + g_param_spec_boxed ("advertised-protocols", NULL, NULL, G_TYPE_STRV, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); @@ -271,9 +253,7 @@ g_dtls_connection_default_init (GDtlsConnectionInterface *iface) * Since: 2.60 */ g_object_interface_install_property (iface, - g_param_spec_string ("negotiated-protocol", - P_("Negotiated Protocol"), - P_("Application-layer protocol negotiated for this connection"), + g_param_spec_string ("negotiated-protocol", NULL, NULL, NULL, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); @@ -286,9 +266,7 @@ g_dtls_connection_default_init (GDtlsConnectionInterface *iface) * Since: 2.70 */ g_object_interface_install_property (iface, - g_param_spec_enum ("protocol-version", - P_("Protocol Version"), - P_("DTLS protocol version negotiated for this connection"), + g_param_spec_enum ("protocol-version", NULL, NULL, G_TYPE_TLS_PROTOCOL_VERSION, G_TLS_PROTOCOL_VERSION_UNKNOWN, G_PARAM_READABLE | @@ -302,9 +280,7 @@ g_dtls_connection_default_init (GDtlsConnectionInterface *iface) * Since: 2.70 */ g_object_interface_install_property (iface, - g_param_spec_string ("ciphersuite-name", - P_("Ciphersuite Name"), - P_("Name of ciphersuite negotiated for this connection"), + g_param_spec_string ("ciphersuite-name", NULL, NULL, NULL, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); diff --git a/gio/gdtlsserverconnection.c b/gio/gdtlsserverconnection.c index f967633fe..e1234391a 100644 --- a/gio/gdtlsserverconnection.c +++ b/gio/gdtlsserverconnection.c @@ -54,9 +54,7 @@ g_dtls_server_connection_default_init (GDtlsServerConnectionInterface *iface) * Since: 2.48 */ g_object_interface_install_property (iface, - g_param_spec_enum ("authentication-mode", - P_("Authentication Mode"), - P_("The client authentication mode"), + g_param_spec_enum ("authentication-mode", NULL, NULL, G_TYPE_TLS_AUTHENTICATION_MODE, G_TLS_AUTHENTICATION_NONE, G_PARAM_READWRITE | diff --git a/gio/gemblem.c b/gio/gemblem.c index c8cab2825..dc032672e 100644 --- a/gio/gemblem.c +++ b/gio/gemblem.c @@ -143,9 +143,7 @@ g_emblem_class_init (GEmblemClass *klass) */ g_object_class_install_property (gobject_class, PROP_ORIGIN, - g_param_spec_enum ("origin", - P_("GEmblem’s origin"), - P_("Tells which origin the emblem is derived from"), + g_param_spec_enum ("origin", NULL, NULL, G_TYPE_EMBLEM_ORIGIN, G_EMBLEM_ORIGIN_UNKNOWN, G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); @@ -159,9 +157,7 @@ g_emblem_class_init (GEmblemClass *klass) */ g_object_class_install_property (gobject_class, PROP_ICON, - g_param_spec_object ("icon", - P_("The icon of the emblem"), - P_("The actual icon of the emblem"), + g_param_spec_object ("icon", NULL, NULL, G_TYPE_OBJECT, G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); diff --git a/gio/gemblemedicon.c b/gio/gemblemedicon.c index b7ab8f9b4..9415c0b9d 100644 --- a/gio/gemblemedicon.c +++ b/gio/gemblemedicon.c @@ -131,9 +131,7 @@ g_emblemed_icon_class_init (GEmblemedIconClass *klass) * Since: 2.18 */ properties[PROP_GICON] = - g_param_spec_object ("gicon", - P_("The base GIcon"), - P_("The GIcon to attach emblems to"), + g_param_spec_object ("gicon", NULL, NULL, G_TYPE_ICON, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS); diff --git a/gio/gfileenumerator.c b/gio/gfileenumerator.c index 1fa6283c8..7225379fa 100644 --- a/gio/gfileenumerator.c +++ b/gio/gfileenumerator.c @@ -164,8 +164,7 @@ g_file_enumerator_class_init (GFileEnumeratorClass *klass) */ g_object_class_install_property (gobject_class, PROP_CONTAINER, - g_param_spec_object ("container", P_("Container"), - P_("The container that is being enumerated"), + g_param_spec_object ("container", NULL, NULL, G_TYPE_FILE, G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY | diff --git a/gio/gfileicon.c b/gio/gfileicon.c index e72bd699f..d796ed43f 100644 --- a/gio/gfileicon.c +++ b/gio/gfileicon.c @@ -153,9 +153,7 @@ g_file_icon_class_init (GFileIconClass *klass) * The file containing the icon. */ g_object_class_install_property (gobject_class, PROP_FILE, - g_param_spec_object ("file", - P_("file"), - P_("The file containing the icon"), + g_param_spec_object ("file", NULL, NULL, G_TYPE_FILE, G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE | G_PARAM_STATIC_NAME | G_PARAM_STATIC_BLURB | G_PARAM_STATIC_NICK)); } diff --git a/gio/gfilemonitor.c b/gio/gfilemonitor.c index 8451a550d..6e26c8d5c 100644 --- a/gio/gfilemonitor.c +++ b/gio/gfilemonitor.c @@ -194,9 +194,7 @@ g_file_monitor_class_init (GFileMonitorClass *klass) * The limit of the monitor to watch for changes, in milliseconds. */ g_object_class_install_property (object_class, PROP_RATE_LIMIT, - g_param_spec_int ("rate-limit", - P_("Rate limit"), - P_("The limit of the monitor to watch for changes, in milliseconds"), + g_param_spec_int ("rate-limit", NULL, NULL, 0, G_MAXINT, DEFAULT_RATE_LIMIT_MSECS, G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY | G_PARAM_STATIC_STRINGS)); @@ -206,9 +204,7 @@ g_file_monitor_class_init (GFileMonitorClass *klass) * Whether the monitor has been cancelled. */ g_object_class_install_property (object_class, PROP_CANCELLED, - g_param_spec_boolean ("cancelled", - P_("Cancelled"), - P_("Whether the monitor has been cancelled"), + g_param_spec_boolean ("cancelled", NULL, NULL, FALSE, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); } diff --git a/gio/gfilterinputstream.c b/gio/gfilterinputstream.c index 8af308517..04ec54100 100644 --- a/gio/gfilterinputstream.c +++ b/gio/gfilterinputstream.c @@ -96,9 +96,7 @@ g_filter_input_stream_class_init (GFilterInputStreamClass *klass) */ g_object_class_install_property (object_class, PROP_BASE_STREAM, - g_param_spec_object ("base-stream", - P_("The Filter Base Stream"), - P_("The underlying base stream on which the io ops will be done."), + g_param_spec_object ("base-stream", NULL, NULL, G_TYPE_INPUT_STREAM, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_NAME|G_PARAM_STATIC_NICK|G_PARAM_STATIC_BLURB)); @@ -110,9 +108,7 @@ g_filter_input_stream_class_init (GFilterInputStreamClass *klass) */ g_object_class_install_property (object_class, PROP_CLOSE_BASE, - g_param_spec_boolean ("close-base-stream", - P_("Close Base Stream"), - P_("If the base stream should be closed when the filter stream is closed."), + g_param_spec_boolean ("close-base-stream", NULL, NULL, TRUE, G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_NAME|G_PARAM_STATIC_NICK|G_PARAM_STATIC_BLURB)); } diff --git a/gio/gfilteroutputstream.c b/gio/gfilteroutputstream.c index 7f839afcc..074b8ce76 100644 --- a/gio/gfilteroutputstream.c +++ b/gio/gfilteroutputstream.c @@ -95,9 +95,7 @@ g_filter_output_stream_class_init (GFilterOutputStreamClass *klass) */ g_object_class_install_property (object_class, PROP_BASE_STREAM, - g_param_spec_object ("base-stream", - P_("The Filter Base Stream"), - P_("The underlying base stream on which the io ops will be done."), + g_param_spec_object ("base-stream", NULL, NULL, G_TYPE_OUTPUT_STREAM, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_NAME|G_PARAM_STATIC_NICK|G_PARAM_STATIC_BLURB)); @@ -109,9 +107,7 @@ g_filter_output_stream_class_init (GFilterOutputStreamClass *klass) */ g_object_class_install_property (object_class, PROP_CLOSE_BASE, - g_param_spec_boolean ("close-base-stream", - P_("Close Base Stream"), - P_("If the base stream should be closed when the filter stream is closed."), + g_param_spec_boolean ("close-base-stream", NULL, NULL, TRUE, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_NAME|G_PARAM_STATIC_NICK|G_PARAM_STATIC_BLURB)); } diff --git a/gio/ginetaddress.c b/gio/ginetaddress.c index 6f844a1ae..c0ba2507a 100644 --- a/gio/ginetaddress.c +++ b/gio/ginetaddress.c @@ -193,9 +193,7 @@ g_inet_address_class_init (GInetAddressClass *klass) * Since: 2.22 */ g_object_class_install_property (gobject_class, PROP_FAMILY, - g_param_spec_enum ("family", - P_("Address family"), - P_("The address family (IPv4 or IPv6)"), + g_param_spec_enum ("family", NULL, NULL, G_TYPE_SOCKET_FAMILY, G_SOCKET_FAMILY_INVALID, G_PARAM_READWRITE | @@ -210,9 +208,7 @@ g_inet_address_class_init (GInetAddressClass *klass) * Since: 2.22 */ g_object_class_install_property (gobject_class, PROP_BYTES, - g_param_spec_pointer ("bytes", - P_("Bytes"), - P_("The raw address data"), + g_param_spec_pointer ("bytes", NULL, NULL, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS)); @@ -226,9 +222,7 @@ g_inet_address_class_init (GInetAddressClass *klass) * Since: 2.22 */ g_object_class_install_property (gobject_class, PROP_IS_ANY, - g_param_spec_boolean ("is-any", - P_("Is any"), - P_("Whether this is the \"any\" address for its family"), + g_param_spec_boolean ("is-any", NULL, NULL, FALSE, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); @@ -242,9 +236,7 @@ g_inet_address_class_init (GInetAddressClass *klass) * Since: 2.22 */ g_object_class_install_property (gobject_class, PROP_IS_LINK_LOCAL, - g_param_spec_boolean ("is-link-local", - P_("Is link-local"), - P_("Whether this is a link-local address"), + g_param_spec_boolean ("is-link-local", NULL, NULL, FALSE, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); @@ -258,9 +250,7 @@ g_inet_address_class_init (GInetAddressClass *klass) * Since: 2.22 */ g_object_class_install_property (gobject_class, PROP_IS_LOOPBACK, - g_param_spec_boolean ("is-loopback", - P_("Is loopback"), - P_("Whether this is the loopback address for its family"), + g_param_spec_boolean ("is-loopback", NULL, NULL, FALSE, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); @@ -274,9 +264,7 @@ g_inet_address_class_init (GInetAddressClass *klass) * Since: 2.22 */ g_object_class_install_property (gobject_class, PROP_IS_SITE_LOCAL, - g_param_spec_boolean ("is-site-local", - P_("Is site-local"), - P_("Whether this is a site-local address"), + g_param_spec_boolean ("is-site-local", NULL, NULL, FALSE, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); @@ -290,9 +278,7 @@ g_inet_address_class_init (GInetAddressClass *klass) * Since: 2.22 */ g_object_class_install_property (gobject_class, PROP_IS_MULTICAST, - g_param_spec_boolean ("is-multicast", - P_("Is multicast"), - P_("Whether this is a multicast address"), + g_param_spec_boolean ("is-multicast", NULL, NULL, FALSE, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); @@ -306,9 +292,7 @@ g_inet_address_class_init (GInetAddressClass *klass) * Since: 2.22 */ g_object_class_install_property (gobject_class, PROP_IS_MC_GLOBAL, - g_param_spec_boolean ("is-mc-global", - P_("Is multicast global"), - P_("Whether this is a global multicast address"), + g_param_spec_boolean ("is-mc-global", NULL, NULL, FALSE, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); @@ -323,9 +307,7 @@ g_inet_address_class_init (GInetAddressClass *klass) * Since: 2.22 */ g_object_class_install_property (gobject_class, PROP_IS_MC_LINK_LOCAL, - g_param_spec_boolean ("is-mc-link-local", - P_("Is multicast link-local"), - P_("Whether this is a link-local multicast address"), + g_param_spec_boolean ("is-mc-link-local", NULL, NULL, FALSE, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); @@ -339,9 +321,7 @@ g_inet_address_class_init (GInetAddressClass *klass) * Since: 2.22 */ g_object_class_install_property (gobject_class, PROP_IS_MC_NODE_LOCAL, - g_param_spec_boolean ("is-mc-node-local", - P_("Is multicast node-local"), - P_("Whether this is a node-local multicast address"), + g_param_spec_boolean ("is-mc-node-local", NULL, NULL, FALSE, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); @@ -355,9 +335,7 @@ g_inet_address_class_init (GInetAddressClass *klass) * Since: 2.22 */ g_object_class_install_property (gobject_class, PROP_IS_MC_ORG_LOCAL, - g_param_spec_boolean ("is-mc-org-local", - P_("Is multicast org-local"), - P_("Whether this is an organization-local multicast address"), + g_param_spec_boolean ("is-mc-org-local", NULL, NULL, FALSE, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); @@ -371,9 +349,7 @@ g_inet_address_class_init (GInetAddressClass *klass) * Since: 2.22 */ g_object_class_install_property (gobject_class, PROP_IS_MC_SITE_LOCAL, - g_param_spec_boolean ("is-mc-site-local", - P_("Is multicast site-local"), - P_("Whether this is a site-local multicast address"), + g_param_spec_boolean ("is-mc-site-local", NULL, NULL, FALSE, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); diff --git a/gio/ginetaddressmask.c b/gio/ginetaddressmask.c index 38a741906..1431b9435 100644 --- a/gio/ginetaddressmask.c +++ b/gio/ginetaddressmask.c @@ -143,9 +143,7 @@ g_inet_address_mask_class_init (GInetAddressMaskClass *klass) * Since: 2.32 */ g_object_class_install_property (gobject_class, PROP_FAMILY, - g_param_spec_enum ("family", - P_("Address family"), - P_("The address family (IPv4 or IPv6)"), + g_param_spec_enum ("family", NULL, NULL, G_TYPE_SOCKET_FAMILY, G_SOCKET_FAMILY_INVALID, G_PARAM_READABLE | @@ -159,9 +157,7 @@ g_inet_address_mask_class_init (GInetAddressMaskClass *klass) * Since: 2.32 */ g_object_class_install_property (gobject_class, PROP_ADDRESS, - g_param_spec_object ("address", - P_("Address"), - P_("The base address"), + g_param_spec_object ("address", NULL, NULL, G_TYPE_INET_ADDRESS, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); @@ -174,9 +170,7 @@ g_inet_address_mask_class_init (GInetAddressMaskClass *klass) * Since: 2.32 */ g_object_class_install_property (gobject_class, PROP_LENGTH, - g_param_spec_uint ("length", - P_("Length"), - P_("The prefix length"), + g_param_spec_uint ("length", NULL, NULL, 0, 128, 0, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); diff --git a/gio/ginetsocketaddress.c b/gio/ginetsocketaddress.c index 7597b1c7d..c17bd1497 100644 --- a/gio/ginetsocketaddress.c +++ b/gio/ginetsocketaddress.c @@ -255,9 +255,7 @@ g_inet_socket_address_class_init (GInetSocketAddressClass *klass) * Since: 2.22 */ g_object_class_install_property (gobject_class, PROP_ADDRESS, - g_param_spec_object ("address", - P_("Address"), - P_("The address"), + g_param_spec_object ("address", NULL, NULL, G_TYPE_INET_ADDRESS, G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE | @@ -271,9 +269,7 @@ g_inet_socket_address_class_init (GInetSocketAddressClass *klass) * Since: 2.22 */ g_object_class_install_property (gobject_class, PROP_PORT, - g_param_spec_uint ("port", - P_("Port"), - P_("The port"), + g_param_spec_uint ("port", NULL, NULL, 0, 65535, 0, @@ -289,9 +285,7 @@ g_inet_socket_address_class_init (GInetSocketAddressClass *klass) * Since: 2.32 */ g_object_class_install_property (gobject_class, PROP_FLOWINFO, - g_param_spec_uint ("flowinfo", - P_("Flow info"), - P_("IPv6 flow info"), + g_param_spec_uint ("flowinfo", NULL, NULL, 0, G_MAXUINT32, 0, @@ -307,9 +301,7 @@ g_inet_socket_address_class_init (GInetSocketAddressClass *klass) * Since: 2.32 */ g_object_class_install_property (gobject_class, PROP_SCOPE_ID, - g_param_spec_uint ("scope-id", - P_("Scope ID"), - P_("IPv6 scope ID"), + g_param_spec_uint ("scope-id", NULL, NULL, 0, G_MAXUINT32, 0, diff --git a/gio/giostream.c b/gio/giostream.c index f0f17f93f..d9398fef1 100644 --- a/gio/giostream.c +++ b/gio/giostream.c @@ -179,9 +179,7 @@ g_io_stream_class_init (GIOStreamClass *klass) * Since: 2.22 */ g_object_class_install_property (gobject_class, PROP_CLOSED, - g_param_spec_boolean ("closed", - P_("Closed"), - P_("Is the stream closed"), + g_param_spec_boolean ("closed", NULL, NULL, FALSE, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); @@ -193,9 +191,7 @@ g_io_stream_class_init (GIOStreamClass *klass) * Since: 2.22 */ g_object_class_install_property (gobject_class, PROP_INPUT_STREAM, - g_param_spec_object ("input-stream", - P_("Input stream"), - P_("The GInputStream to read from"), + g_param_spec_object ("input-stream", NULL, NULL, G_TYPE_INPUT_STREAM, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); @@ -207,9 +203,7 @@ g_io_stream_class_init (GIOStreamClass *klass) * Since: 2.22 */ g_object_class_install_property (gobject_class, PROP_OUTPUT_STREAM, - g_param_spec_object ("output-stream", - P_("Output stream"), - P_("The GOutputStream to write to"), + g_param_spec_object ("output-stream", NULL, NULL, G_TYPE_OUTPUT_STREAM, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); } diff --git a/gio/gkeyfilesettingsbackend.c b/gio/gkeyfilesettingsbackend.c index 79a02668b..a86c4d913 100644 --- a/gio/gkeyfilesettingsbackend.c +++ b/gio/gkeyfilesettingsbackend.c @@ -898,9 +898,7 @@ g_keyfile_settings_backend_class_init (GKeyfileSettingsBackendClass *class) */ g_object_class_install_property (object_class, PROP_FILENAME, - g_param_spec_string ("filename", - P_("Filename"), - P_("The filename"), + g_param_spec_string ("filename", NULL, NULL, NULL, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS)); @@ -916,9 +914,7 @@ g_keyfile_settings_backend_class_init (GKeyfileSettingsBackendClass *class) */ g_object_class_install_property (object_class, PROP_ROOT_PATH, - g_param_spec_string ("root-path", - P_("Root path"), - P_("The root path"), + g_param_spec_string ("root-path", NULL, NULL, NULL, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS)); @@ -933,9 +929,7 @@ g_keyfile_settings_backend_class_init (GKeyfileSettingsBackendClass *class) */ g_object_class_install_property (object_class, PROP_ROOT_GROUP, - g_param_spec_string ("root-group", - P_("Root group"), - P_("The root group"), + g_param_spec_string ("root-group", NULL, NULL, NULL, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS)); @@ -949,9 +943,7 @@ g_keyfile_settings_backend_class_init (GKeyfileSettingsBackendClass *class) */ g_object_class_install_property (object_class, PROP_DEFAULTS_DIR, - g_param_spec_string ("defaults-dir", - P_("Default dir"), - P_("Defaults dir"), + g_param_spec_string ("defaults-dir", NULL, NULL, NULL, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS)); diff --git a/gio/glistmodel.c b/gio/glistmodel.c index 819b35374..35a66e906 100644 --- a/gio/glistmodel.c +++ b/gio/glistmodel.c @@ -91,10 +91,10 @@ G_DEFINE_INTERFACE (GListModel, g_list_model, G_TYPE_OBJECT) * * ```c * properties[PROP_ITEM_TYPE] = - * g_param_spec_gtype ("item-type", "", "", G_TYPE_OBJECT, + * g_param_spec_gtype ("item-type", NULL, NULL, G_TYPE_OBJECT, * G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); * properties[PROP_N_ITEMS] = - * g_param_spec_uint ("n-items", "", "", 0, G_MAXUINT, 0, + * g_param_spec_uint ("n-items", NULL, NULL, 0, G_MAXUINT, 0, * G_PARAM_READABLE | G_PARAM_STATIC_STRINGS); * ``` */ diff --git a/gio/gliststore.c b/gio/gliststore.c index 375485690..41450f6c3 100644 --- a/gio/gliststore.c +++ b/gio/gliststore.c @@ -155,7 +155,7 @@ g_list_store_class_init (GListStoreClass *klass) * Since: 2.44 **/ properties[PROP_ITEM_TYPE] = - g_param_spec_gtype ("item-type", "", "", G_TYPE_OBJECT, + g_param_spec_gtype ("item-type", NULL, NULL, G_TYPE_OBJECT, G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); /** @@ -166,7 +166,7 @@ g_list_store_class_init (GListStoreClass *klass) * Since: 2.74 **/ properties[PROP_N_ITEMS] = - g_param_spec_uint ("n-items", "", "", 0, G_MAXUINT, 0, + g_param_spec_uint ("n-items", NULL, NULL, 0, G_MAXUINT, 0, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS); g_object_class_install_properties (object_class, N_PROPERTIES, properties); diff --git a/gio/gmemoryoutputstream.c b/gio/gmemoryoutputstream.c index b5b8265b2..bf080852c 100644 --- a/gio/gmemoryoutputstream.c +++ b/gio/gmemoryoutputstream.c @@ -151,9 +151,7 @@ g_memory_output_stream_class_init (GMemoryOutputStreamClass *klass) **/ g_object_class_install_property (gobject_class, PROP_DATA, - g_param_spec_pointer ("data", - P_("Data Buffer"), - P_("Pointer to buffer where data will be written."), + g_param_spec_pointer ("data", NULL, NULL, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS)); @@ -166,9 +164,7 @@ g_memory_output_stream_class_init (GMemoryOutputStreamClass *klass) **/ g_object_class_install_property (gobject_class, PROP_SIZE, - g_param_spec_ulong ("size", - P_("Data Buffer Size"), - P_("Current size of the data buffer."), + g_param_spec_ulong ("size", NULL, NULL, 0, G_MAXULONG, 0, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS)); @@ -182,9 +178,7 @@ g_memory_output_stream_class_init (GMemoryOutputStreamClass *klass) **/ g_object_class_install_property (gobject_class, PROP_DATA_SIZE, - g_param_spec_ulong ("data-size", - P_("Data Size"), - P_("Size of data written to the buffer."), + g_param_spec_ulong ("data-size", NULL, NULL, 0, G_MAXULONG, 0, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); @@ -198,9 +192,7 @@ g_memory_output_stream_class_init (GMemoryOutputStreamClass *klass) **/ g_object_class_install_property (gobject_class, PROP_REALLOC_FUNCTION, - g_param_spec_pointer ("realloc-function", - P_("Memory Reallocation Function"), - P_("Function with realloc semantics called to enlarge the buffer."), + g_param_spec_pointer ("realloc-function", NULL, NULL, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS)); @@ -213,9 +205,7 @@ g_memory_output_stream_class_init (GMemoryOutputStreamClass *klass) **/ g_object_class_install_property (gobject_class, PROP_DESTROY_FUNCTION, - g_param_spec_pointer ("destroy-function", - P_("Destroy Notification Function"), - P_("Function called with the buffer as argument when the stream is destroyed."), + g_param_spec_pointer ("destroy-function", NULL, NULL, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS)); } diff --git a/gio/gmountoperation.c b/gio/gmountoperation.c index 6153498cc..a3a74ef19 100644 --- a/gio/gmountoperation.c +++ b/gio/gmountoperation.c @@ -478,9 +478,7 @@ g_mount_operation_class_init (GMountOperationClass *klass) */ g_object_class_install_property (object_class, PROP_USERNAME, - g_param_spec_string ("username", - P_("Username"), - P_("The user name"), + g_param_spec_string ("username", NULL, NULL, NULL, G_PARAM_READWRITE| G_PARAM_STATIC_NAME|G_PARAM_STATIC_NICK|G_PARAM_STATIC_BLURB)); @@ -493,9 +491,7 @@ g_mount_operation_class_init (GMountOperationClass *klass) */ g_object_class_install_property (object_class, PROP_PASSWORD, - g_param_spec_string ("password", - P_("Password"), - P_("The password"), + g_param_spec_string ("password", NULL, NULL, NULL, G_PARAM_READWRITE| G_PARAM_STATIC_NAME|G_PARAM_STATIC_NICK|G_PARAM_STATIC_BLURB)); @@ -507,9 +503,7 @@ g_mount_operation_class_init (GMountOperationClass *klass) */ g_object_class_install_property (object_class, PROP_ANONYMOUS, - g_param_spec_boolean ("anonymous", - P_("Anonymous"), - P_("Whether to use an anonymous user"), + g_param_spec_boolean ("anonymous", NULL, NULL, FALSE, G_PARAM_READWRITE| G_PARAM_STATIC_NAME|G_PARAM_STATIC_NICK|G_PARAM_STATIC_BLURB)); @@ -521,9 +515,7 @@ g_mount_operation_class_init (GMountOperationClass *klass) */ g_object_class_install_property (object_class, PROP_DOMAIN, - g_param_spec_string ("domain", - P_("Domain"), - P_("The domain of the mount operation"), + g_param_spec_string ("domain", NULL, NULL, NULL, G_PARAM_READWRITE| G_PARAM_STATIC_NAME|G_PARAM_STATIC_NICK|G_PARAM_STATIC_BLURB)); @@ -535,9 +527,7 @@ g_mount_operation_class_init (GMountOperationClass *klass) */ g_object_class_install_property (object_class, PROP_PASSWORD_SAVE, - g_param_spec_enum ("password-save", - P_("Password save"), - P_("How passwords should be saved"), + g_param_spec_enum ("password-save", NULL, NULL, G_TYPE_PASSWORD_SAVE, G_PASSWORD_SAVE_NEVER, G_PARAM_READWRITE| @@ -551,9 +541,7 @@ g_mount_operation_class_init (GMountOperationClass *klass) */ g_object_class_install_property (object_class, PROP_CHOICE, - g_param_spec_int ("choice", - P_("Choice"), - P_("The users choice"), + g_param_spec_int ("choice", NULL, NULL, 0, G_MAXINT, 0, G_PARAM_READWRITE| G_PARAM_STATIC_NAME|G_PARAM_STATIC_NICK|G_PARAM_STATIC_BLURB)); @@ -568,9 +556,7 @@ g_mount_operation_class_init (GMountOperationClass *klass) */ g_object_class_install_property (object_class, PROP_IS_TCRYPT_HIDDEN_VOLUME, - g_param_spec_boolean ("is-tcrypt-hidden-volume", - P_("TCRYPT Hidden Volume"), - P_("Whether to unlock a TCRYPT hidden volume. See https://www.veracrypt.fr/en/Hidden%20Volume.html."), + g_param_spec_boolean ("is-tcrypt-hidden-volume", NULL, NULL, FALSE, G_PARAM_READWRITE| G_PARAM_STATIC_NAME|G_PARAM_STATIC_NICK|G_PARAM_STATIC_BLURB)); @@ -588,9 +574,7 @@ g_mount_operation_class_init (GMountOperationClass *klass) */ g_object_class_install_property (object_class, PROP_IS_TCRYPT_SYSTEM_VOLUME, - g_param_spec_boolean ("is-tcrypt-system-volume", - P_("TCRYPT System Volume"), - P_("Whether to unlock a TCRYPT system volume. Only supported for unlocking Windows system volumes. See https://www.veracrypt.fr/en/System%20Encryption.html."), + g_param_spec_boolean ("is-tcrypt-system-volume", NULL, NULL, FALSE, G_PARAM_READWRITE| G_PARAM_STATIC_NAME|G_PARAM_STATIC_NICK|G_PARAM_STATIC_BLURB)); @@ -605,9 +589,7 @@ g_mount_operation_class_init (GMountOperationClass *klass) */ g_object_class_install_property (object_class, PROP_PIM, - g_param_spec_uint ("pim", - P_("PIM"), - P_("The VeraCrypt PIM value"), + g_param_spec_uint ("pim", NULL, NULL, 0, G_MAXUINT, 0, G_PARAM_READWRITE| G_PARAM_STATIC_NAME|G_PARAM_STATIC_NICK|G_PARAM_STATIC_BLURB)); diff --git a/gio/gnetworkaddress.c b/gio/gnetworkaddress.c index fcbe9ae08..adff70518 100644 --- a/gio/gnetworkaddress.c +++ b/gio/gnetworkaddress.c @@ -124,9 +124,7 @@ g_network_address_class_init (GNetworkAddressClass *klass) * Since: 2.22 */ g_object_class_install_property (gobject_class, PROP_HOSTNAME, - g_param_spec_string ("hostname", - P_("Hostname"), - P_("Hostname to resolve"), + g_param_spec_string ("hostname", NULL, NULL, NULL, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | @@ -140,9 +138,7 @@ g_network_address_class_init (GNetworkAddressClass *klass) * Since: 2.22 */ g_object_class_install_property (gobject_class, PROP_PORT, - g_param_spec_uint ("port", - P_("Port"), - P_("Network port"), + g_param_spec_uint ("port", NULL, NULL, 0, 65535, 0, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | @@ -156,9 +152,7 @@ g_network_address_class_init (GNetworkAddressClass *klass) * Since: 2.22 */ g_object_class_install_property (gobject_class, PROP_SCHEME, - g_param_spec_string ("scheme", - P_("Scheme"), - P_("URI Scheme"), + g_param_spec_string ("scheme", NULL, NULL, NULL, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | diff --git a/gio/gnetworkmonitor.c b/gio/gnetworkmonitor.c index 754914e4b..5065041d7 100644 --- a/gio/gnetworkmonitor.c +++ b/gio/gnetworkmonitor.c @@ -352,9 +352,7 @@ g_network_monitor_default_init (GNetworkMonitorInterface *iface) * Since: 2.32 */ g_object_interface_install_property (iface, - g_param_spec_boolean ("network-available", - P_("Network available"), - P_("Whether the network is available"), + g_param_spec_boolean ("network-available", NULL, NULL, FALSE, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); @@ -387,9 +385,7 @@ g_network_monitor_default_init (GNetworkMonitorInterface *iface) * Since: 2.46 */ g_object_interface_install_property (iface, - g_param_spec_boolean ("network-metered", - P_("Network metered"), - P_("Whether the network is metered"), + g_param_spec_boolean ("network-metered", NULL, NULL, FALSE, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); @@ -404,9 +400,7 @@ g_network_monitor_default_init (GNetworkMonitorInterface *iface) * Since: 2.44 */ g_object_interface_install_property (iface, - g_param_spec_enum ("connectivity", - P_("Network connectivity"), - P_("Level of network connectivity"), + g_param_spec_enum ("connectivity", NULL, NULL, G_TYPE_NETWORK_CONNECTIVITY, G_NETWORK_CONNECTIVITY_FULL, G_PARAM_READABLE | diff --git a/gio/gnetworkservice.c b/gio/gnetworkservice.c index 1e67eca40..39c9df1b9 100644 --- a/gio/gnetworkservice.c +++ b/gio/gnetworkservice.c @@ -122,9 +122,7 @@ g_network_service_class_init (GNetworkServiceClass *klass) * Since: 2.22 */ g_object_class_install_property (gobject_class, PROP_SERVICE, - g_param_spec_string ("service", - P_("Service"), - P_("Service name, eg \"ldap\""), + g_param_spec_string ("service", NULL, NULL, NULL, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | @@ -138,9 +136,7 @@ g_network_service_class_init (GNetworkServiceClass *klass) * Since: 2.22 */ g_object_class_install_property (gobject_class, PROP_PROTOCOL, - g_param_spec_string ("protocol", - P_("Protocol"), - P_("Network protocol, eg \"tcp\""), + g_param_spec_string ("protocol", NULL, NULL, NULL, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | @@ -154,9 +150,7 @@ g_network_service_class_init (GNetworkServiceClass *klass) * Since: 2.22 */ g_object_class_install_property (gobject_class, PROP_DOMAIN, - g_param_spec_string ("domain", - P_("Domain"), - P_("Network domain, eg, \"example.com\""), + g_param_spec_string ("domain", NULL, NULL, NULL, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | @@ -170,9 +164,7 @@ g_network_service_class_init (GNetworkServiceClass *klass) * Since: 2.22 */ g_object_class_install_property (gobject_class, PROP_DOMAIN, - g_param_spec_string ("scheme", - P_("Scheme"), - P_("Network scheme (default is to use service)"), + g_param_spec_string ("scheme", NULL, NULL, NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); diff --git a/gio/gpermission.c b/gio/gpermission.c index 9dc3e90a2..da82d4b9e 100644 --- a/gio/gpermission.c +++ b/gio/gpermission.c @@ -433,9 +433,7 @@ g_permission_class_init (GPermissionClass *class) * @permission represents the permission to perform. */ g_object_class_install_property (object_class, PROP_ALLOWED, - g_param_spec_boolean ("allowed", - P_("Is allowed"), - P_("If the caller is allowed to perform the action"), + g_param_spec_boolean ("allowed", NULL, NULL, FALSE, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE)); @@ -446,9 +444,7 @@ g_permission_class_init (GPermissionClass *class) * g_permission_acquire(). */ g_object_class_install_property (object_class, PROP_CAN_ACQUIRE, - g_param_spec_boolean ("can-acquire", - P_("Can acquire"), - P_("If calling g_permission_acquire() makes sense"), + g_param_spec_boolean ("can-acquire", NULL, NULL, FALSE, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE)); @@ -459,9 +455,7 @@ g_permission_class_init (GPermissionClass *class) * g_permission_release(). */ g_object_class_install_property (object_class, PROP_CAN_RELEASE, - g_param_spec_boolean ("can-release", - P_("Can release"), - P_("If calling g_permission_release() makes sense"), + g_param_spec_boolean ("can-release", NULL, NULL, FALSE, G_PARAM_STATIC_STRINGS | G_PARAM_READABLE)); } diff --git a/gio/gpowerprofilemonitor.c b/gio/gpowerprofilemonitor.c index 38eb05f9f..12f7dd6ad 100644 --- a/gio/gpowerprofilemonitor.c +++ b/gio/gpowerprofilemonitor.c @@ -124,9 +124,7 @@ g_power_profile_monitor_default_init (GPowerProfileMonitorInterface *iface) * Since: 2.70 */ g_object_interface_install_property (iface, - g_param_spec_boolean ("power-saver-enabled", - "power-saver-enabled", - "Power Saver Enabled", + g_param_spec_boolean ("power-saver-enabled", NULL, NULL, FALSE, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY)); } diff --git a/gio/gpropertyaction.c b/gio/gpropertyaction.c index ae8903c04..a249806aa 100644 --- a/gio/gpropertyaction.c +++ b/gio/gpropertyaction.c @@ -467,9 +467,7 @@ g_property_action_class_init (GPropertyActionClass *class) * Since: 2.38 **/ g_object_class_install_property (object_class, PROP_NAME, - g_param_spec_string ("name", - P_("Action Name"), - P_("The name used to invoke the action"), + g_param_spec_string ("name", NULL, NULL, NULL, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | @@ -484,9 +482,7 @@ g_property_action_class_init (GPropertyActionClass *class) * Since: 2.38 **/ g_object_class_install_property (object_class, PROP_PARAMETER_TYPE, - g_param_spec_boxed ("parameter-type", - P_("Parameter Type"), - P_("The type of GVariant passed to activate()"), + g_param_spec_boxed ("parameter-type", NULL, NULL, G_TYPE_VARIANT_TYPE, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); @@ -502,9 +498,7 @@ g_property_action_class_init (GPropertyActionClass *class) * Since: 2.38 **/ g_object_class_install_property (object_class, PROP_ENABLED, - g_param_spec_boolean ("enabled", - P_("Enabled"), - P_("If the action can be activated"), + g_param_spec_boolean ("enabled", NULL, NULL, TRUE, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); @@ -518,9 +512,7 @@ g_property_action_class_init (GPropertyActionClass *class) * Since: 2.38 **/ g_object_class_install_property (object_class, PROP_STATE_TYPE, - g_param_spec_boxed ("state-type", - P_("State Type"), - P_("The type of the state kept by the action"), + g_param_spec_boxed ("state-type", NULL, NULL, G_TYPE_VARIANT_TYPE, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); @@ -533,9 +525,7 @@ g_property_action_class_init (GPropertyActionClass *class) * Since: 2.38 **/ g_object_class_install_property (object_class, PROP_STATE, - g_param_spec_variant ("state", - P_("State"), - P_("The state the action is in"), + g_param_spec_variant ("state", NULL, NULL, G_VARIANT_TYPE_ANY, NULL, G_PARAM_READABLE | @@ -551,9 +541,7 @@ g_property_action_class_init (GPropertyActionClass *class) * Since: 2.38 **/ g_object_class_install_property (object_class, PROP_OBJECT, - g_param_spec_object ("object", - P_("Object"), - P_("The object with the property to wrap"), + g_param_spec_object ("object", NULL, NULL, G_TYPE_OBJECT, G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY | @@ -570,9 +558,7 @@ g_property_action_class_init (GPropertyActionClass *class) * Since: 2.38 **/ g_object_class_install_property (object_class, PROP_PROPERTY_NAME, - g_param_spec_string ("property-name", - P_("Property name"), - P_("The name of the property to wrap"), + g_param_spec_string ("property-name", NULL, NULL, NULL, G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY | @@ -587,9 +573,7 @@ g_property_action_class_init (GPropertyActionClass *class) * Since: 2.46 */ g_object_class_install_property (object_class, PROP_INVERT_BOOLEAN, - g_param_spec_boolean ("invert-boolean", - P_("Invert boolean"), - P_("Whether to invert the value of a boolean property"), + g_param_spec_boolean ("invert-boolean", NULL, NULL, FALSE, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | diff --git a/gio/gproxyaddress.c b/gio/gproxyaddress.c index 81d9755ff..690dc7be1 100644 --- a/gio/gproxyaddress.c +++ b/gio/gproxyaddress.c @@ -195,9 +195,7 @@ g_proxy_address_class_init (GProxyAddressClass *klass) */ g_object_class_install_property (gobject_class, PROP_PROTOCOL, - g_param_spec_string ("protocol", - P_("Protocol"), - P_("The proxy protocol"), + g_param_spec_string ("protocol", NULL, NULL, NULL, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | @@ -212,9 +210,7 @@ g_proxy_address_class_init (GProxyAddressClass *klass) */ g_object_class_install_property (gobject_class, PROP_USERNAME, - g_param_spec_string ("username", - P_("Username"), - P_("The proxy username"), + g_param_spec_string ("username", NULL, NULL, NULL, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | @@ -229,9 +225,7 @@ g_proxy_address_class_init (GProxyAddressClass *klass) */ g_object_class_install_property (gobject_class, PROP_PASSWORD, - g_param_spec_string ("password", - P_("Password"), - P_("The proxy password"), + g_param_spec_string ("password", NULL, NULL, NULL, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | @@ -247,9 +241,7 @@ g_proxy_address_class_init (GProxyAddressClass *klass) */ g_object_class_install_property (gobject_class, PROP_DESTINATION_PROTOCOL, - g_param_spec_string ("destination-protocol", - P_("Destination Protocol"), - P_("The proxy destination protocol"), + g_param_spec_string ("destination-protocol", NULL, NULL, NULL, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | @@ -264,9 +256,7 @@ g_proxy_address_class_init (GProxyAddressClass *klass) */ g_object_class_install_property (gobject_class, PROP_DESTINATION_HOSTNAME, - g_param_spec_string ("destination-hostname", - P_("Destination Hostname"), - P_("The proxy destination hostname"), + g_param_spec_string ("destination-hostname", NULL, NULL, NULL, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | @@ -281,9 +271,7 @@ g_proxy_address_class_init (GProxyAddressClass *klass) */ g_object_class_install_property (gobject_class, PROP_DESTINATION_PORT, - g_param_spec_uint ("destination-port", - P_("Destination Port"), - P_("The proxy destination port"), + g_param_spec_uint ("destination-port", NULL, NULL, 0, 65535, 0, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | @@ -299,9 +287,7 @@ g_proxy_address_class_init (GProxyAddressClass *klass) */ g_object_class_install_property (gobject_class, PROP_URI, - g_param_spec_string ("uri", - P_("URI"), - P_("The proxy’s URI"), + g_param_spec_string ("uri", NULL, NULL, NULL, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | diff --git a/gio/gproxyaddressenumerator.c b/gio/gproxyaddressenumerator.c index ecffcd076..68b78ef13 100644 --- a/gio/gproxyaddressenumerator.c +++ b/gio/gproxyaddressenumerator.c @@ -757,9 +757,7 @@ g_proxy_address_enumerator_class_init (GProxyAddressEnumeratorClass *proxy_enume */ g_object_class_install_property (object_class, PROP_URI, - g_param_spec_string ("uri", - P_("URI"), - P_("The destination URI, use none:// for generic socket"), + g_param_spec_string ("uri", NULL, NULL, NULL, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | @@ -775,9 +773,7 @@ g_proxy_address_enumerator_class_init (GProxyAddressEnumeratorClass *proxy_enume */ g_object_class_install_property (object_class, PROP_DEFAULT_PORT, - g_param_spec_uint ("default-port", - P_("Default port"), - P_("The default port to use if uri does not specify one"), + g_param_spec_uint ("default-port", NULL, NULL, 0, 65535, 0, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | @@ -790,9 +786,7 @@ g_proxy_address_enumerator_class_init (GProxyAddressEnumeratorClass *proxy_enume */ g_object_class_install_property (object_class, PROP_CONNECTABLE, - g_param_spec_object ("connectable", - P_("Connectable"), - P_("The connectable being enumerated."), + g_param_spec_object ("connectable", NULL, NULL, G_TYPE_SOCKET_CONNECTABLE, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | @@ -807,9 +801,7 @@ g_proxy_address_enumerator_class_init (GProxyAddressEnumeratorClass *proxy_enume */ g_object_class_install_property (object_class, PROP_PROXY_RESOLVER, - g_param_spec_object ("proxy-resolver", - P_("Proxy resolver"), - P_("The proxy resolver to use."), + g_param_spec_object ("proxy-resolver", NULL, NULL, G_TYPE_PROXY_RESOLVER, G_PARAM_READWRITE | G_PARAM_CONSTRUCT | diff --git a/gio/gresolver.c b/gio/gresolver.c index 695f9dd8d..60fbb4b26 100644 --- a/gio/gresolver.c +++ b/gio/gresolver.c @@ -236,9 +236,7 @@ g_resolver_class_init (GResolverClass *resolver_class) * Since: 2.78 */ props[PROP_TIMEOUT] = - g_param_spec_uint ("timeout", - P_("Timeout"), - P_("Timeout (ms) applied to all resolver lookups"), + g_param_spec_uint ("timeout", NULL, NULL, 0, G_MAXUINT, 0, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY); diff --git a/gio/gsettings.c b/gio/gsettings.c index bd36d7829..a14ba8094 100644 --- a/gio/gsettings.c +++ b/gio/gsettings.c @@ -841,9 +841,7 @@ g_settings_class_init (GSettingsClass *class) * The name of the context that the settings are stored in. */ g_object_class_install_property (object_class, PROP_BACKEND, - g_param_spec_object ("backend", - P_("GSettingsBackend"), - P_("The GSettingsBackend for this settings object"), + g_param_spec_object ("backend", NULL, NULL, G_TYPE_SETTINGS_BACKEND, G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); @@ -859,9 +857,7 @@ g_settings_class_init (GSettingsClass *class) * than the schema itself. Take care. */ g_object_class_install_property (object_class, PROP_SCHEMA, - g_param_spec_boxed ("settings-schema", - P_("schema"), - P_("The GSettingsSchema for this settings object"), + g_param_spec_boxed ("settings-schema", NULL, NULL, G_TYPE_SETTINGS_SCHEMA, G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); @@ -883,9 +879,7 @@ g_settings_class_init (GSettingsClass *class) * version, this property may instead refer to a #GSettingsSchema. */ g_object_class_install_property (object_class, PROP_SCHEMA_ID, - g_param_spec_string ("schema", - P_("Schema name"), - P_("The name of the schema for this settings object"), + g_param_spec_string ("schema", NULL, NULL, NULL, G_PARAM_CONSTRUCT_ONLY | G_PARAM_DEPRECATED | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); @@ -897,9 +891,7 @@ g_settings_class_init (GSettingsClass *class) * for this #GSettings object. */ g_object_class_install_property (object_class, PROP_SCHEMA_ID, - g_param_spec_string ("schema-id", - P_("Schema name"), - P_("The name of the schema for this settings object"), + g_param_spec_string ("schema-id", NULL, NULL, NULL, G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); @@ -910,9 +902,7 @@ g_settings_class_init (GSettingsClass *class) * The path within the backend where the settings are stored. */ g_object_class_install_property (object_class, PROP_PATH, - g_param_spec_string ("path", - P_("Base path"), - P_("The path within the backend where the settings are"), + g_param_spec_string ("path", NULL, NULL, NULL, G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); @@ -924,9 +914,7 @@ g_settings_class_init (GSettingsClass *class) * changes that will be applied when g_settings_apply() is called. */ g_object_class_install_property (object_class, PROP_HAS_UNAPPLIED, - g_param_spec_boolean ("has-unapplied", - P_("Has unapplied changes"), - P_("TRUE if there are outstanding changes to apply()"), + g_param_spec_boolean ("has-unapplied", NULL, NULL, FALSE, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); @@ -939,9 +927,7 @@ g_settings_class_init (GSettingsClass *class) * Since: 2.28 */ g_object_class_install_property (object_class, PROP_DELAY_APPLY, - g_param_spec_boolean ("delay-apply", - P_("Delay-apply mode"), - P_("Whether this settings object is in “delay-apply” mode"), + g_param_spec_boolean ("delay-apply", NULL, NULL, FALSE, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); } diff --git a/gio/gsimpleaction.c b/gio/gsimpleaction.c index 1ffc71ac5..9d6039b70 100644 --- a/gio/gsimpleaction.c +++ b/gio/gsimpleaction.c @@ -450,9 +450,7 @@ g_simple_action_class_init (GSimpleActionClass *class) * Since: 2.28 **/ g_object_class_install_property (object_class, PROP_NAME, - g_param_spec_string ("name", - P_("Action Name"), - P_("The name used to invoke the action"), + g_param_spec_string ("name", NULL, NULL, NULL, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | @@ -467,9 +465,7 @@ g_simple_action_class_init (GSimpleActionClass *class) * Since: 2.28 **/ g_object_class_install_property (object_class, PROP_PARAMETER_TYPE, - g_param_spec_boxed ("parameter-type", - P_("Parameter Type"), - P_("The type of GVariant passed to activate()"), + g_param_spec_boxed ("parameter-type", NULL, NULL, G_TYPE_VARIANT_TYPE, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | @@ -486,9 +482,7 @@ g_simple_action_class_init (GSimpleActionClass *class) * Since: 2.28 **/ g_object_class_install_property (object_class, PROP_ENABLED, - g_param_spec_boolean ("enabled", - P_("Enabled"), - P_("If the action can be activated"), + g_param_spec_boolean ("enabled", NULL, NULL, TRUE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); @@ -502,9 +496,7 @@ g_simple_action_class_init (GSimpleActionClass *class) * Since: 2.28 **/ g_object_class_install_property (object_class, PROP_STATE_TYPE, - g_param_spec_boxed ("state-type", - P_("State Type"), - P_("The type of the state kept by the action"), + g_param_spec_boxed ("state-type", NULL, NULL, G_TYPE_VARIANT_TYPE, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); @@ -517,9 +509,7 @@ g_simple_action_class_init (GSimpleActionClass *class) * Since: 2.28 **/ g_object_class_install_property (object_class, PROP_STATE, - g_param_spec_variant ("state", - P_("State"), - P_("The state the action is in"), + g_param_spec_variant ("state", NULL, NULL, G_VARIANT_TYPE_ANY, NULL, G_PARAM_READWRITE | G_PARAM_CONSTRUCT | diff --git a/gio/gsimpleiostream.c b/gio/gsimpleiostream.c index 6e5cec067..f46d6e255 100644 --- a/gio/gsimpleiostream.c +++ b/gio/gsimpleiostream.c @@ -164,9 +164,7 @@ g_simple_io_stream_class_init (GSimpleIOStreamClass *class) * Since: 2.44 */ g_object_class_install_property (gobject_class, PROP_INPUT_STREAM, - g_param_spec_object ("input-stream", - P_("Input stream"), - P_("The GInputStream to read from"), + g_param_spec_object ("input-stream", NULL, NULL, G_TYPE_INPUT_STREAM, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | @@ -180,9 +178,7 @@ g_simple_io_stream_class_init (GSimpleIOStreamClass *class) * Since: 2.44 */ g_object_class_install_property (gobject_class, PROP_OUTPUT_STREAM, - g_param_spec_object ("output-stream", - P_("Output stream"), - P_("The GOutputStream to write to"), + g_param_spec_object ("output-stream", NULL, NULL, G_TYPE_OUTPUT_STREAM, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | diff --git a/gio/gsimpleproxyresolver.c b/gio/gsimpleproxyresolver.c index 5ec998525..41136527f 100644 --- a/gio/gsimpleproxyresolver.c +++ b/gio/gsimpleproxyresolver.c @@ -425,9 +425,7 @@ g_simple_proxy_resolver_class_init (GSimpleProxyResolverClass *resolver_class) * to all three of the socks5, socks4a, and socks4 proxy types. */ g_object_class_install_property (object_class, PROP_DEFAULT_PROXY, - g_param_spec_string ("default-proxy", - P_("Default proxy"), - P_("The default proxy URI"), + g_param_spec_string ("default-proxy", NULL, NULL, NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); @@ -471,9 +469,7 @@ g_simple_proxy_resolver_class_init (GSimpleProxyResolverClass *resolver_class) * commonly used by other applications. */ g_object_class_install_property (object_class, PROP_IGNORE_HOSTS, - g_param_spec_boxed ("ignore-hosts", - P_("Ignore hosts"), - P_("Hosts that will not use the proxy"), + g_param_spec_boxed ("ignore-hosts", NULL, NULL, G_TYPE_STRV, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); diff --git a/gio/gsocket.c b/gio/gsocket.c index dc8896647..bc2477428 100644 --- a/gio/gsocket.c +++ b/gio/gsocket.c @@ -960,9 +960,7 @@ g_socket_class_init (GSocketClass *klass) * Since: 2.22 */ g_object_class_install_property (gobject_class, PROP_FAMILY, - g_param_spec_enum ("family", - P_("Socket family"), - P_("The sockets address family"), + g_param_spec_enum ("family", NULL, NULL, G_TYPE_SOCKET_FAMILY, G_SOCKET_FAMILY_INVALID, G_PARAM_CONSTRUCT_ONLY | @@ -977,9 +975,7 @@ g_socket_class_init (GSocketClass *klass) * Since: 2.22 */ g_object_class_install_property (gobject_class, PROP_TYPE, - g_param_spec_enum ("type", - P_("Socket type"), - P_("The sockets type"), + g_param_spec_enum ("type", NULL, NULL, G_TYPE_SOCKET_TYPE, G_SOCKET_TYPE_STREAM, G_PARAM_CONSTRUCT_ONLY | @@ -994,9 +990,7 @@ g_socket_class_init (GSocketClass *klass) * Since: 2.22 */ g_object_class_install_property (gobject_class, PROP_PROTOCOL, - g_param_spec_enum ("protocol", - P_("Socket protocol"), - P_("The id of the protocol to use, or -1 for unknown"), + g_param_spec_enum ("protocol", NULL, NULL, G_TYPE_SOCKET_PROTOCOL, G_SOCKET_PROTOCOL_UNKNOWN, G_PARAM_CONSTRUCT_ONLY | @@ -1011,9 +1005,7 @@ g_socket_class_init (GSocketClass *klass) * Since: 2.22 */ g_object_class_install_property (gobject_class, PROP_FD, - g_param_spec_int ("fd", - P_("File descriptor"), - P_("The sockets file descriptor"), + g_param_spec_int ("fd", NULL, NULL, G_MININT, G_MAXINT, -1, @@ -1029,9 +1021,7 @@ g_socket_class_init (GSocketClass *klass) * Since: 2.22 */ g_object_class_install_property (gobject_class, PROP_BLOCKING, - g_param_spec_boolean ("blocking", - P_("blocking"), - P_("Whether or not I/O on this socket is blocking"), + g_param_spec_boolean ("blocking", NULL, NULL, TRUE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); @@ -1044,9 +1034,7 @@ g_socket_class_init (GSocketClass *klass) * Since: 2.22 */ g_object_class_install_property (gobject_class, PROP_LISTEN_BACKLOG, - g_param_spec_int ("listen-backlog", - P_("Listen backlog"), - P_("Outstanding connections in the listen queue"), + g_param_spec_int ("listen-backlog", NULL, NULL, 0, SOMAXCONN, 10, @@ -1061,9 +1049,7 @@ g_socket_class_init (GSocketClass *klass) * Since: 2.22 */ g_object_class_install_property (gobject_class, PROP_KEEPALIVE, - g_param_spec_boolean ("keepalive", - P_("Keep connection alive"), - P_("Keep connection alive by sending periodic pings"), + g_param_spec_boolean ("keepalive", NULL, NULL, FALSE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); @@ -1076,9 +1062,7 @@ g_socket_class_init (GSocketClass *klass) * Since: 2.22 */ g_object_class_install_property (gobject_class, PROP_LOCAL_ADDRESS, - g_param_spec_object ("local-address", - P_("Local address"), - P_("The local address the socket is bound to"), + g_param_spec_object ("local-address", NULL, NULL, G_TYPE_SOCKET_ADDRESS, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); @@ -1091,9 +1075,7 @@ g_socket_class_init (GSocketClass *klass) * Since: 2.22 */ g_object_class_install_property (gobject_class, PROP_REMOTE_ADDRESS, - g_param_spec_object ("remote-address", - P_("Remote address"), - P_("The remote address the socket is connected to"), + g_param_spec_object ("remote-address", NULL, NULL, G_TYPE_SOCKET_ADDRESS, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); @@ -1106,9 +1088,7 @@ g_socket_class_init (GSocketClass *klass) * Since: 2.26 */ g_object_class_install_property (gobject_class, PROP_TIMEOUT, - g_param_spec_uint ("timeout", - P_("Timeout"), - P_("The timeout in seconds on socket I/O"), + g_param_spec_uint ("timeout", NULL, NULL, 0, G_MAXUINT, 0, @@ -1123,9 +1103,7 @@ g_socket_class_init (GSocketClass *klass) * Since: 2.32 */ g_object_class_install_property (gobject_class, PROP_BROADCAST, - g_param_spec_boolean ("broadcast", - P_("Broadcast"), - P_("Whether to allow sending to broadcast addresses"), + g_param_spec_boolean ("broadcast", NULL, NULL, FALSE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); @@ -1138,9 +1116,7 @@ g_socket_class_init (GSocketClass *klass) * Since: 2.32 */ g_object_class_install_property (gobject_class, PROP_TTL, - g_param_spec_uint ("ttl", - P_("TTL"), - P_("Time-to-live of outgoing unicast packets"), + g_param_spec_uint ("ttl", NULL, NULL, 0, G_MAXUINT, 0, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); @@ -1153,9 +1129,7 @@ g_socket_class_init (GSocketClass *klass) * Since: 2.32 */ g_object_class_install_property (gobject_class, PROP_MULTICAST_LOOPBACK, - g_param_spec_boolean ("multicast-loopback", - P_("Multicast loopback"), - P_("Whether outgoing multicast packets loop back to the local host"), + g_param_spec_boolean ("multicast-loopback", NULL, NULL, TRUE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); @@ -1168,9 +1142,7 @@ g_socket_class_init (GSocketClass *klass) * Since: 2.32 */ g_object_class_install_property (gobject_class, PROP_MULTICAST_TTL, - g_param_spec_uint ("multicast-ttl", - P_("Multicast TTL"), - P_("Time-to-live of outgoing multicast packets"), + g_param_spec_uint ("multicast-ttl", NULL, NULL, 0, G_MAXUINT, 1, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); diff --git a/gio/gsocketaddress.c b/gio/gsocketaddress.c index a98521655..09cb9abbe 100644 --- a/gio/gsocketaddress.c +++ b/gio/gsocketaddress.c @@ -117,9 +117,7 @@ g_socket_address_class_init (GSocketAddressClass *klass) * Since: 2.22 */ g_object_class_install_property (gobject_class, PROP_FAMILY, - g_param_spec_enum ("family", - P_("Address family"), - P_("The family of the socket address"), + g_param_spec_enum ("family", NULL, NULL, G_TYPE_SOCKET_FAMILY, G_SOCKET_FAMILY_INVALID, G_PARAM_READABLE | diff --git a/gio/gsocketclient.c b/gio/gsocketclient.c index f58070bd6..4f7cb90dc 100644 --- a/gio/gsocketclient.c +++ b/gio/gsocketclient.c @@ -874,9 +874,7 @@ g_socket_client_class_init (GSocketClientClass *class) * Since: 2.22 */ g_object_class_install_property (gobject_class, PROP_FAMILY, - g_param_spec_enum ("family", - P_("Socket family"), - P_("The sockets address family to use for socket construction"), + g_param_spec_enum ("family", NULL, NULL, G_TYPE_SOCKET_FAMILY, G_SOCKET_FAMILY_INVALID, G_PARAM_CONSTRUCT | @@ -891,9 +889,7 @@ g_socket_client_class_init (GSocketClientClass *class) * Since: 2.22 */ g_object_class_install_property (gobject_class, PROP_TYPE, - g_param_spec_enum ("type", - P_("Socket type"), - P_("The sockets type to use for socket construction"), + g_param_spec_enum ("type", NULL, NULL, G_TYPE_SOCKET_TYPE, G_SOCKET_TYPE_STREAM, G_PARAM_CONSTRUCT | @@ -908,9 +904,7 @@ g_socket_client_class_init (GSocketClientClass *class) * Since: 2.22 */ g_object_class_install_property (gobject_class, PROP_PROTOCOL, - g_param_spec_enum ("protocol", - P_("Socket protocol"), - P_("The protocol to use for socket construction, or 0 for default"), + g_param_spec_enum ("protocol", NULL, NULL, G_TYPE_SOCKET_PROTOCOL, G_SOCKET_PROTOCOL_DEFAULT, G_PARAM_CONSTRUCT | @@ -925,9 +919,7 @@ g_socket_client_class_init (GSocketClientClass *class) * Since: 2.22 */ g_object_class_install_property (gobject_class, PROP_LOCAL_ADDRESS, - g_param_spec_object ("local-address", - P_("Local address"), - P_("The local address constructed sockets will be bound to"), + g_param_spec_object ("local-address", NULL, NULL, G_TYPE_SOCKET_ADDRESS, G_PARAM_CONSTRUCT | G_PARAM_READWRITE | @@ -941,9 +933,7 @@ g_socket_client_class_init (GSocketClientClass *class) * Since: 2.22 */ g_object_class_install_property (gobject_class, PROP_TIMEOUT, - g_param_spec_uint ("timeout", - P_("Socket timeout"), - P_("The I/O timeout for sockets, or 0 for none"), + g_param_spec_uint ("timeout", NULL, NULL, 0, G_MAXUINT, 0, G_PARAM_CONSTRUCT | G_PARAM_READWRITE | @@ -957,9 +947,7 @@ g_socket_client_class_init (GSocketClientClass *class) * Since: 2.22 */ g_object_class_install_property (gobject_class, PROP_ENABLE_PROXY, - g_param_spec_boolean ("enable-proxy", - P_("Enable proxy"), - P_("Enable proxy support"), + g_param_spec_boolean ("enable-proxy", NULL, NULL, TRUE, G_PARAM_CONSTRUCT | G_PARAM_READWRITE | @@ -973,9 +961,7 @@ g_socket_client_class_init (GSocketClientClass *class) * Since: 2.22 */ g_object_class_install_property (gobject_class, PROP_TLS, - g_param_spec_boolean ("tls", - P_("TLS"), - P_("Whether to create TLS connections"), + g_param_spec_boolean ("tls", NULL, NULL, FALSE, G_PARAM_CONSTRUCT | G_PARAM_READWRITE | @@ -1004,9 +990,7 @@ g_socket_client_class_init (GSocketClientClass *class) * Deprecated: 2.72: Do not attempt to ignore validation errors. */ g_object_class_install_property (gobject_class, PROP_TLS_VALIDATION_FLAGS, - g_param_spec_flags ("tls-validation-flags", - P_("TLS validation flags"), - P_("TLS validation flags to use"), + g_param_spec_flags ("tls-validation-flags", NULL, NULL, G_TYPE_TLS_CERTIFICATE_FLAGS, G_TLS_CERTIFICATE_VALIDATE_ALL, G_PARAM_CONSTRUCT | @@ -1022,9 +1006,7 @@ g_socket_client_class_init (GSocketClientClass *class) * Since: 2.36 */ g_object_class_install_property (gobject_class, PROP_PROXY_RESOLVER, - g_param_spec_object ("proxy-resolver", - P_("Proxy resolver"), - P_("The proxy resolver to use"), + g_param_spec_object ("proxy-resolver", NULL, NULL, G_TYPE_PROXY_RESOLVER, G_PARAM_CONSTRUCT | G_PARAM_READWRITE | diff --git a/gio/gsocketconnection.c b/gio/gsocketconnection.c index 798b148f9..c799ac08c 100644 --- a/gio/gsocketconnection.c +++ b/gio/gsocketconnection.c @@ -454,9 +454,7 @@ g_socket_connection_class_init (GSocketConnectionClass *klass) */ g_object_class_install_property (gobject_class, PROP_SOCKET, - g_param_spec_object ("socket", - P_("Socket"), - P_("The underlying GSocket"), + g_param_spec_object ("socket", NULL, NULL, G_TYPE_SOCKET, G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE | diff --git a/gio/gsocketinputstream.c b/gio/gsocketinputstream.c index 5307fcdad..7a15f512d 100644 --- a/gio/gsocketinputstream.c +++ b/gio/gsocketinputstream.c @@ -191,9 +191,7 @@ g_socket_input_stream_class_init (GSocketInputStreamClass *klass) ginputstream_class->read_fn = g_socket_input_stream_read; g_object_class_install_property (gobject_class, PROP_SOCKET, - g_param_spec_object ("socket", - P_("socket"), - P_("The socket that this stream wraps"), + g_param_spec_object ("socket", NULL, NULL, G_TYPE_SOCKET, G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); } diff --git a/gio/gsocketlistener.c b/gio/gsocketlistener.c index 165130837..8a296a5b5 100644 --- a/gio/gsocketlistener.c +++ b/gio/gsocketlistener.c @@ -163,9 +163,7 @@ g_socket_listener_class_init (GSocketListenerClass *klass) * Since: 2.22 */ g_object_class_install_property (gobject_class, PROP_LISTEN_BACKLOG, - g_param_spec_int ("listen-backlog", - P_("Listen backlog"), - P_("outstanding connections in the listen queue"), + g_param_spec_int ("listen-backlog", NULL, NULL, 0, 2000, 10, diff --git a/gio/gsocketoutputstream.c b/gio/gsocketoutputstream.c index d380c52cc..a5b4c3532 100644 --- a/gio/gsocketoutputstream.c +++ b/gio/gsocketoutputstream.c @@ -247,9 +247,7 @@ g_socket_output_stream_class_init (GSocketOutputStreamClass *klass) goutputstream_class->writev_fn = g_socket_output_stream_writev; g_object_class_install_property (gobject_class, PROP_SOCKET, - g_param_spec_object ("socket", - P_("socket"), - P_("The socket that this stream wraps"), + g_param_spec_object ("socket", NULL, NULL, G_TYPE_SOCKET, G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); } diff --git a/gio/gsocketservice.c b/gio/gsocketservice.c index 9d547a2bb..324e6ef34 100644 --- a/gio/gsocketservice.c +++ b/gio/gsocketservice.c @@ -360,9 +360,7 @@ g_socket_service_class_init (GSocketServiceClass *class) * Since: 2.46 */ g_object_class_install_property (gobject_class, PROP_ACTIVE, - g_param_spec_boolean ("active", - P_("Active"), - P_("Whether the service is currently accepting connections"), + g_param_spec_boolean ("active", NULL, NULL, TRUE, G_PARAM_CONSTRUCT | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); } diff --git a/gio/gsubprocess.c b/gio/gsubprocess.c index 70de2da00..6af94db80 100644 --- a/gio/gsubprocess.c +++ b/gio/gsubprocess.c @@ -504,7 +504,7 @@ g_subprocess_class_init (GSubprocessClass *class) * Since: 2.40 */ g_object_class_install_property (gobject_class, PROP_FLAGS, - g_param_spec_flags ("flags", P_("Flags"), P_("Subprocess flags"), + g_param_spec_flags ("flags", NULL, NULL, G_TYPE_SUBPROCESS_FLAGS, 0, G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS)); @@ -516,7 +516,7 @@ g_subprocess_class_init (GSubprocessClass *class) * Since: 2.40 */ g_object_class_install_property (gobject_class, PROP_ARGV, - g_param_spec_boxed ("argv", P_("Arguments"), P_("Argument vector"), + g_param_spec_boxed ("argv", NULL, NULL, G_TYPE_STRV, G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS)); } diff --git a/gio/gsubprocesslauncher.c b/gio/gsubprocesslauncher.c index 62f3aff67..d5ec01ed7 100644 --- a/gio/gsubprocesslauncher.c +++ b/gio/gsubprocesslauncher.c @@ -184,7 +184,7 @@ g_subprocess_launcher_class_init (GSubprocessLauncherClass *class) * Since: 2.40 */ g_object_class_install_property (gobject_class, 1, - g_param_spec_flags ("flags", "Flags", "GSubprocessFlags for launched processes", + g_param_spec_flags ("flags", NULL, NULL, G_TYPE_SUBPROCESS_FLAGS, 0, G_PARAM_WRITABLE | G_PARAM_STATIC_STRINGS | G_PARAM_CONSTRUCT_ONLY)); } diff --git a/gio/gtask.c b/gio/gtask.c index aa678d118..60c2ab989 100644 --- a/gio/gtask.c +++ b/gio/gtask.c @@ -2439,9 +2439,7 @@ g_task_class_init (GTaskClass *klass) * Since: 2.44 */ g_object_class_install_property (gobject_class, PROP_COMPLETED, - g_param_spec_boolean ("completed", - P_("Task completed"), - P_("Whether the task has completed yet"), + g_param_spec_boolean ("completed", NULL, NULL, FALSE, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); if (G_UNLIKELY (task_pool_max_counter == 0)) diff --git a/gio/gtcpconnection.c b/gio/gtcpconnection.c index 57b7b42b3..07747d144 100644 --- a/gio/gtcpconnection.c +++ b/gio/gtcpconnection.c @@ -136,9 +136,7 @@ g_tcp_connection_class_init (GTcpConnectionClass *class) * Since: 2.22 */ g_object_class_install_property (gobject_class, PROP_GRACEFUL_DISCONNECT, - g_param_spec_boolean ("graceful-disconnect", - P_("Graceful Disconnect"), - P_("Whether or not close does a graceful disconnect"), + g_param_spec_boolean ("graceful-disconnect", NULL, NULL, FALSE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); diff --git a/gio/gtcpwrapperconnection.c b/gio/gtcpwrapperconnection.c index 985b032e0..b174e2b58 100644 --- a/gio/gtcpwrapperconnection.c +++ b/gio/gtcpwrapperconnection.c @@ -140,9 +140,7 @@ g_tcp_wrapper_connection_class_init (GTcpWrapperConnectionClass *klass) */ g_object_class_install_property (gobject_class, PROP_BASE_IO_STREAM, - g_param_spec_object ("base-io-stream", - P_("Base IO Stream"), - P_("The wrapped GIOStream"), + g_param_spec_object ("base-io-stream", NULL, NULL, G_TYPE_IO_STREAM, G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE | diff --git a/gio/gtestdbus.c b/gio/gtestdbus.c index 09083ad27..29727e2e1 100644 --- a/gio/gtestdbus.c +++ b/gio/gtestdbus.c @@ -533,9 +533,7 @@ g_test_dbus_class_init (GTestDBusClass *klass) * Since: 2.34 */ g_object_class_install_property (object_class, PROP_FLAGS, - g_param_spec_flags ("flags", - P_("D-Bus session flags"), - P_("Flags specifying the behaviour of the D-Bus session"), + g_param_spec_flags ("flags", NULL, NULL, G_TYPE_TEST_DBUS_FLAGS, G_TEST_DBUS_NONE, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS)); diff --git a/gio/gthemedicon.c b/gio/gthemedicon.c index 178a68162..1d6aacdf1 100644 --- a/gio/gthemedicon.c +++ b/gio/gthemedicon.c @@ -179,9 +179,7 @@ g_themed_icon_class_init (GThemedIconClass *klass) * The icon name. */ g_object_class_install_property (gobject_class, PROP_NAME, - g_param_spec_string ("name", - P_("name"), - P_("The name of the icon"), + g_param_spec_string ("name", NULL, NULL, NULL, G_PARAM_CONSTRUCT_ONLY | G_PARAM_WRITABLE | G_PARAM_STATIC_NAME | G_PARAM_STATIC_BLURB | G_PARAM_STATIC_NICK)); @@ -191,9 +189,7 @@ g_themed_icon_class_init (GThemedIconClass *klass) * A %NULL-terminated array of icon names. */ g_object_class_install_property (gobject_class, PROP_NAMES, - g_param_spec_boxed ("names", - P_("names"), - P_("An array containing the icon names"), + g_param_spec_boxed ("names", NULL, NULL, G_TYPE_STRV, G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE | G_PARAM_STATIC_NAME | G_PARAM_STATIC_BLURB | G_PARAM_STATIC_NICK)); @@ -217,9 +213,7 @@ g_themed_icon_class_init (GThemedIconClass *klass) * ]| */ g_object_class_install_property (gobject_class, PROP_USE_DEFAULT_FALLBACKS, - g_param_spec_boolean ("use-default-fallbacks", - P_("use default fallbacks"), - P_("Whether to use default fallbacks found by shortening the name at “-” characters. Ignores names after the first if multiple names are given."), + g_param_spec_boolean ("use-default-fallbacks", NULL, NULL, FALSE, G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE | G_PARAM_STATIC_NAME | G_PARAM_STATIC_BLURB | G_PARAM_STATIC_NICK)); } diff --git a/gio/gthreadedsocketservice.c b/gio/gthreadedsocketservice.c index 8f9117dd2..42e4fd270 100644 --- a/gio/gthreadedsocketservice.c +++ b/gio/gthreadedsocketservice.c @@ -255,9 +255,7 @@ g_threaded_socket_service_class_init (GThreadedSocketServiceClass *class) * Since: 2.22 */ g_object_class_install_property (gobject_class, PROP_MAX_THREADS, - g_param_spec_int ("max-threads", - P_("Max threads"), - P_("The max number of threads handling clients for this service"), + g_param_spec_int ("max-threads", NULL, NULL, -1, G_MAXINT, 10, diff --git a/gio/gtlscertificate.c b/gio/gtlscertificate.c index e95436d3c..8720506b4 100644 --- a/gio/gtlscertificate.c +++ b/gio/gtlscertificate.c @@ -135,9 +135,7 @@ g_tls_certificate_class_init (GTlsCertificateClass *class) * Since: 2.72 */ g_object_class_install_property (gobject_class, PROP_PKCS12_DATA, - g_param_spec_boxed ("pkcs12-data", - P_("PKCS #12 data"), - P_("The PKCS #12 data used for construction"), + g_param_spec_boxed ("pkcs12-data", NULL, NULL, G_TYPE_BYTE_ARRAY, G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY | @@ -151,9 +149,7 @@ g_tls_certificate_class_init (GTlsCertificateClass *class) * Since: 2.72 */ g_object_class_install_property (gobject_class, PROP_PASSWORD, - g_param_spec_string ("password", - P_("Password"), - P_("Password used when constructing from bytes"), + g_param_spec_string ("password", NULL, NULL, NULL, G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY | @@ -168,9 +164,7 @@ g_tls_certificate_class_init (GTlsCertificateClass *class) * Since: 2.28 */ g_object_class_install_property (gobject_class, PROP_CERTIFICATE, - g_param_spec_boxed ("certificate", - P_("Certificate"), - P_("The DER representation of the certificate"), + g_param_spec_boxed ("certificate", NULL, NULL, G_TYPE_BYTE_ARRAY, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | @@ -185,9 +179,7 @@ g_tls_certificate_class_init (GTlsCertificateClass *class) * Since: 2.28 */ g_object_class_install_property (gobject_class, PROP_CERTIFICATE_PEM, - g_param_spec_string ("certificate-pem", - P_("Certificate (PEM)"), - P_("The PEM representation of the certificate"), + g_param_spec_string ("certificate-pem", NULL, NULL, NULL, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | @@ -216,9 +208,7 @@ g_tls_certificate_class_init (GTlsCertificateClass *class) * Since: 2.28 */ g_object_class_install_property (gobject_class, PROP_PRIVATE_KEY, - g_param_spec_boxed ("private-key", - P_("Private key"), - P_("The DER representation of the certificate’s private key"), + g_param_spec_boxed ("private-key", NULL, NULL, G_TYPE_BYTE_ARRAY, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | @@ -248,9 +238,7 @@ g_tls_certificate_class_init (GTlsCertificateClass *class) * Since: 2.28 */ g_object_class_install_property (gobject_class, PROP_PRIVATE_KEY_PEM, - g_param_spec_string ("private-key-pem", - P_("Private key (PEM)"), - P_("The PEM representation of the certificate’s private key"), + g_param_spec_string ("private-key-pem", NULL, NULL, NULL, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | @@ -278,9 +266,7 @@ g_tls_certificate_class_init (GTlsCertificateClass *class) * Since: 2.28 */ g_object_class_install_property (gobject_class, PROP_ISSUER, - g_param_spec_object ("issuer", - P_("Issuer"), - P_("The certificate for the issuing entity"), + g_param_spec_object ("issuer", NULL, NULL, G_TYPE_TLS_CERTIFICATE, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | @@ -298,9 +284,7 @@ g_tls_certificate_class_init (GTlsCertificateClass *class) * Since: 2.68 */ g_object_class_install_property (gobject_class, PROP_PKCS11_URI, - g_param_spec_string ("pkcs11-uri", - P_("PKCS #11 URI"), - P_("The PKCS #11 URI"), + g_param_spec_string ("pkcs11-uri", NULL, NULL, NULL, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | @@ -315,9 +299,7 @@ g_tls_certificate_class_init (GTlsCertificateClass *class) * Since: 2.68 */ g_object_class_install_property (gobject_class, PROP_PRIVATE_KEY_PKCS11_URI, - g_param_spec_string ("private-key-pkcs11-uri", - P_("PKCS #11 URI"), - P_("The PKCS #11 URI for a private key"), + g_param_spec_string ("private-key-pkcs11-uri", NULL, NULL, NULL, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | @@ -332,9 +314,7 @@ g_tls_certificate_class_init (GTlsCertificateClass *class) * Since: 2.70 */ g_object_class_install_property (gobject_class, PROP_NOT_VALID_BEFORE, - g_param_spec_boxed ("not-valid-before", - P_("Not Valid Before"), - P_("Cert should not be considered valid before this time."), + g_param_spec_boxed ("not-valid-before", NULL, NULL, G_TYPE_DATE_TIME, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); @@ -348,9 +328,7 @@ g_tls_certificate_class_init (GTlsCertificateClass *class) * Since: 2.70 */ g_object_class_install_property (gobject_class, PROP_NOT_VALID_AFTER, - g_param_spec_boxed ("not-valid-after", - P_("Not Valid after"), - P_("Cert should not be considered valid after this time."), + g_param_spec_boxed ("not-valid-after", NULL, NULL, G_TYPE_DATE_TIME, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); @@ -364,9 +342,7 @@ g_tls_certificate_class_init (GTlsCertificateClass *class) * Since: 2.70 */ g_object_class_install_property (gobject_class, PROP_SUBJECT_NAME, - g_param_spec_string ("subject-name", - P_("Subject Name"), - P_("The subject name from the certificate."), + g_param_spec_string ("subject-name", NULL, NULL, NULL, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); @@ -379,9 +355,7 @@ g_tls_certificate_class_init (GTlsCertificateClass *class) * Since: 2.70 */ g_object_class_install_property (gobject_class, PROP_ISSUER_NAME, - g_param_spec_string ("issuer-name", - P_("Issuer Name"), - P_("The issuer from the certificate."), + g_param_spec_string ("issuer-name", NULL, NULL, NULL, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); @@ -395,9 +369,7 @@ g_tls_certificate_class_init (GTlsCertificateClass *class) * Since: 2.70 */ g_object_class_install_property (gobject_class, PROP_DNS_NAMES, - g_param_spec_boxed ("dns-names", - P_("DNS Names"), - P_("DNS Names listed on the cert."), + g_param_spec_boxed ("dns-names", NULL, NULL, G_TYPE_PTR_ARRAY, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); @@ -411,9 +383,7 @@ g_tls_certificate_class_init (GTlsCertificateClass *class) * Since: 2.70 */ g_object_class_install_property (gobject_class, PROP_IP_ADDRESSES, - g_param_spec_boxed ("ip-addresses", - P_("IP Addresses"), - P_("IP Addresses listed on the cert."), + g_param_spec_boxed ("ip-addresses", NULL, NULL, G_TYPE_PTR_ARRAY, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); diff --git a/gio/gtlsclientconnection.c b/gio/gtlsclientconnection.c index b2b0155fd..2b511f3b9 100644 --- a/gio/gtlsclientconnection.c +++ b/gio/gtlsclientconnection.c @@ -69,9 +69,7 @@ g_tls_client_connection_default_init (GTlsClientConnectionInterface *iface) * Deprecated: 2.72: Do not attempt to ignore validation errors. */ g_object_interface_install_property (iface, - g_param_spec_flags ("validation-flags", - P_("Validation flags"), - P_("What certificate validation to perform"), + g_param_spec_flags ("validation-flags", NULL, NULL, G_TYPE_TLS_CERTIFICATE_FLAGS, G_TLS_CERTIFICATE_VALIDATE_ALL, G_PARAM_READWRITE | @@ -100,9 +98,7 @@ g_tls_client_connection_default_init (GTlsClientConnectionInterface *iface) * Since: 2.28 */ g_object_interface_install_property (iface, - g_param_spec_object ("server-identity", - P_("Server identity"), - P_("GSocketConnectable identifying the server"), + g_param_spec_object ("server-identity", NULL, NULL, G_TYPE_SOCKET_CONNECTABLE, G_PARAM_READWRITE | G_PARAM_CONSTRUCT | @@ -119,9 +115,7 @@ g_tls_client_connection_default_init (GTlsClientConnectionInterface *iface) * Deprecated: 2.56: SSL 3.0 is insecure. */ g_object_interface_install_property (iface, - g_param_spec_boolean ("use-ssl3", - P_("Use fallback"), - P_("Use fallback version of SSL/TLS rather than most recent version"), + g_param_spec_boolean ("use-ssl3", NULL, NULL, FALSE, G_PARAM_READWRITE | G_PARAM_CONSTRUCT | @@ -142,9 +136,7 @@ g_tls_client_connection_default_init (GTlsClientConnectionInterface *iface) * Since: 2.28 */ g_object_interface_install_property (iface, - g_param_spec_pointer ("accepted-cas", - P_("Accepted CAs"), - P_("Distinguished names of the CAs the server accepts certificates from"), + g_param_spec_pointer ("accepted-cas", NULL, NULL, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); } diff --git a/gio/gtlsconnection.c b/gio/gtlsconnection.c index 40215ce47..2e3f27304 100644 --- a/gio/gtlsconnection.c +++ b/gio/gtlsconnection.c @@ -103,9 +103,7 @@ g_tls_connection_class_init (GTlsConnectionClass *klass) * Since: 2.28 */ g_object_class_install_property (gobject_class, PROP_BASE_IO_STREAM, - g_param_spec_object ("base-io-stream", - P_("Base IOStream"), - P_("The GIOStream that the connection wraps"), + g_param_spec_object ("base-io-stream", NULL, NULL, G_TYPE_IO_STREAM, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | @@ -120,9 +118,7 @@ g_tls_connection_class_init (GTlsConnectionClass *klass) * Deprecated: 2.30: Use GTlsConnection:database instead */ g_object_class_install_property (gobject_class, PROP_USE_SYSTEM_CERTDB, - g_param_spec_boolean ("use-system-certdb", - P_("Use system certificate database"), - P_("Whether to verify peer certificates against the system certificate database"), + g_param_spec_boolean ("use-system-certdb", NULL, NULL, TRUE, G_PARAM_READWRITE | G_PARAM_CONSTRUCT | @@ -151,9 +147,7 @@ g_tls_connection_class_init (GTlsConnectionClass *klass) * Since: 2.30 */ g_object_class_install_property (gobject_class, PROP_DATABASE, - g_param_spec_object ("database", - P_("Database"), - P_("Certificate database to use for looking up or verifying certificates"), + g_param_spec_object ("database", NULL, NULL, G_TYPE_TLS_DATABASE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); @@ -167,9 +161,7 @@ g_tls_connection_class_init (GTlsConnectionClass *klass) * Since: 2.30 */ g_object_class_install_property (gobject_class, PROP_INTERACTION, - g_param_spec_object ("interaction", - P_("Interaction"), - P_("Optional object for user interaction"), + g_param_spec_object ("interaction", NULL, NULL, G_TYPE_TLS_INTERACTION, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); @@ -182,9 +174,7 @@ g_tls_connection_class_init (GTlsConnectionClass *klass) * Since: 2.28 */ g_object_class_install_property (gobject_class, PROP_REQUIRE_CLOSE_NOTIFY, - g_param_spec_boolean ("require-close-notify", - P_("Require close notify"), - P_("Whether to require proper TLS close notification"), + g_param_spec_boolean ("require-close-notify", NULL, NULL, TRUE, G_PARAM_READWRITE | G_PARAM_CONSTRUCT | @@ -200,9 +190,7 @@ g_tls_connection_class_init (GTlsConnectionClass *klass) * Deprecated: 2.60: The rehandshake mode is ignored. */ g_object_class_install_property (gobject_class, PROP_REHANDSHAKE_MODE, - g_param_spec_enum ("rehandshake-mode", - P_("Rehandshake mode"), - P_("When to allow rehandshaking"), + g_param_spec_enum ("rehandshake-mode", NULL, NULL, G_TYPE_TLS_REHANDSHAKE_MODE, G_TLS_REHANDSHAKE_SAFELY, G_PARAM_READWRITE | @@ -218,9 +206,7 @@ g_tls_connection_class_init (GTlsConnectionClass *klass) * Since: 2.28 */ g_object_class_install_property (gobject_class, PROP_CERTIFICATE, - g_param_spec_object ("certificate", - P_("Certificate"), - P_("The connection’s certificate"), + g_param_spec_object ("certificate", NULL, NULL, G_TYPE_TLS_CERTIFICATE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); @@ -237,9 +223,7 @@ g_tls_connection_class_init (GTlsConnectionClass *klass) * Since: 2.28 */ g_object_class_install_property (gobject_class, PROP_PEER_CERTIFICATE, - g_param_spec_object ("peer-certificate", - P_("Peer Certificate"), - P_("The connection’s peer’s certificate"), + g_param_spec_object ("peer-certificate", NULL, NULL, G_TYPE_TLS_CERTIFICATE, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); @@ -264,9 +248,7 @@ g_tls_connection_class_init (GTlsConnectionClass *klass) * Since: 2.28 */ g_object_class_install_property (gobject_class, PROP_PEER_CERTIFICATE_ERRORS, - g_param_spec_flags ("peer-certificate-errors", - P_("Peer Certificate Errors"), - P_("Errors found with the peer’s certificate"), + g_param_spec_flags ("peer-certificate-errors", NULL, NULL, G_TYPE_TLS_CERTIFICATE_FLAGS, 0, G_PARAM_READABLE | @@ -281,9 +263,7 @@ g_tls_connection_class_init (GTlsConnectionClass *klass) * Since: 2.60 */ g_object_class_install_property (gobject_class, PROP_ADVERTISED_PROTOCOLS, - g_param_spec_boxed ("advertised-protocols", - P_("Advertised Protocols"), - P_("Application-layer protocols available on this connection"), + g_param_spec_boxed ("advertised-protocols", NULL, NULL, G_TYPE_STRV, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); @@ -296,9 +276,7 @@ g_tls_connection_class_init (GTlsConnectionClass *klass) * Since: 2.60 */ g_object_class_install_property (gobject_class, PROP_NEGOTIATED_PROTOCOL, - g_param_spec_string ("negotiated-protocol", - P_("Negotiated Protocol"), - P_("Application-layer protocol negotiated for this connection"), + g_param_spec_string ("negotiated-protocol", NULL, NULL, NULL, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); @@ -311,9 +289,7 @@ g_tls_connection_class_init (GTlsConnectionClass *klass) * Since: 2.70 */ g_object_class_install_property (gobject_class, PROP_PROTOCOL_VERSION, - g_param_spec_enum ("protocol-version", - P_("Protocol Version"), - P_("TLS protocol version negotiated for this connection"), + g_param_spec_enum ("protocol-version", NULL, NULL, G_TYPE_TLS_PROTOCOL_VERSION, G_TLS_PROTOCOL_VERSION_UNKNOWN, G_PARAM_READABLE | @@ -327,9 +303,7 @@ g_tls_connection_class_init (GTlsConnectionClass *klass) * Since: 2.70 */ g_object_class_install_property (gobject_class, PROP_CIPHERSUITE_NAME, - g_param_spec_string ("ciphersuite-name", - P_("Ciphersuite Name"), - P_("Name of ciphersuite negotiated for this connection"), + g_param_spec_string ("ciphersuite-name", NULL, NULL, NULL, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); diff --git a/gio/gtlsfiledatabase.c b/gio/gtlsfiledatabase.c index 6050008ab..fe6713140 100644 --- a/gio/gtlsfiledatabase.c +++ b/gio/gtlsfiledatabase.c @@ -55,9 +55,7 @@ g_tls_file_database_default_init (GTlsFileDatabaseInterface *iface) * Since: 2.30 */ g_object_interface_install_property (iface, - g_param_spec_string ("anchors", - P_("Anchors"), - P_("The certificate authority anchor file"), + g_param_spec_string ("anchors", NULL, NULL, NULL, G_PARAM_READWRITE | G_PARAM_CONSTRUCT | diff --git a/gio/gtlspassword.c b/gio/gtlspassword.c index 321a390d1..c1a536603 100644 --- a/gio/gtlspassword.c +++ b/gio/gtlspassword.c @@ -195,9 +195,7 @@ g_tls_password_class_init (GTlsPasswordClass *klass) * Since: 2.30 */ g_object_class_install_property (gobject_class, PROP_FLAGS, - g_param_spec_flags ("flags", - P_("Flags"), - P_("Flags about the password"), + g_param_spec_flags ("flags", NULL, NULL, G_TYPE_TLS_PASSWORD_FLAGS, G_TLS_PASSWORD_NONE, G_PARAM_READWRITE | @@ -211,9 +209,7 @@ g_tls_password_class_init (GTlsPasswordClass *klass) * Since: 2.30 */ g_object_class_install_property (gobject_class, PROP_DESCRIPTION, - g_param_spec_string ("description", - P_("Description"), - P_("Description of what the password is for"), + g_param_spec_string ("description", NULL, NULL, NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); @@ -226,9 +222,7 @@ g_tls_password_class_init (GTlsPasswordClass *klass) * Since: 2.30 */ g_object_class_install_property (gobject_class, PROP_WARNING, - g_param_spec_string ("warning", - P_("Warning"), - P_("Warning about the password"), + g_param_spec_string ("warning", NULL, NULL, NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); diff --git a/gio/gtlsserverconnection.c b/gio/gtlsserverconnection.c index 10757fde3..f68542b37 100644 --- a/gio/gtlsserverconnection.c +++ b/gio/gtlsserverconnection.c @@ -53,9 +53,7 @@ g_tls_server_connection_default_init (GTlsServerConnectionInterface *iface) * Since: 2.28 */ g_object_interface_install_property (iface, - g_param_spec_enum ("authentication-mode", - P_("Authentication Mode"), - P_("The client authentication mode"), + g_param_spec_enum ("authentication-mode", NULL, NULL, G_TYPE_TLS_AUTHENTICATION_MODE, G_TLS_AUTHENTICATION_NONE, G_PARAM_READWRITE | diff --git a/gio/gunixcredentialsmessage.c b/gio/gunixcredentialsmessage.c index 6440c3ba4..f56665ce0 100644 --- a/gio/gunixcredentialsmessage.c +++ b/gio/gunixcredentialsmessage.c @@ -264,9 +264,7 @@ g_unix_credentials_message_class_init (GUnixCredentialsMessageClass *class) */ g_object_class_install_property (gobject_class, PROP_CREDENTIALS, - g_param_spec_object ("credentials", - P_("Credentials"), - P_("The credentials stored in the message"), + g_param_spec_object ("credentials", NULL, NULL, G_TYPE_CREDENTIALS, G_PARAM_READABLE | G_PARAM_WRITABLE | diff --git a/gio/gunixfdmessage.c b/gio/gunixfdmessage.c index 42d05b693..2d11a35c9 100644 --- a/gio/gunixfdmessage.c +++ b/gio/gunixfdmessage.c @@ -221,8 +221,7 @@ g_unix_fd_message_class_init (GUnixFDMessageClass *class) * Since: 2.22 */ g_object_class_install_property (object_class, 1, - g_param_spec_object ("fd-list", "file descriptor list", - "The GUnixFDList object to send with the message", + g_param_spec_object ("fd-list", NULL, NULL, G_TYPE_UNIX_FD_LIST, G_PARAM_STATIC_STRINGS | G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY)); } diff --git a/gio/gunixinputstream.c b/gio/gunixinputstream.c index 4ae672d2e..1ace44a11 100644 --- a/gio/gunixinputstream.c +++ b/gio/gunixinputstream.c @@ -133,9 +133,7 @@ g_unix_input_stream_class_init (GUnixInputStreamClass *klass) */ g_object_class_install_property (gobject_class, PROP_FD, - g_param_spec_int ("fd", - P_("File descriptor"), - P_("The file descriptor to read from"), + g_param_spec_int ("fd", NULL, NULL, G_MININT, G_MAXINT, -1, G_PARAM_READABLE | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB)); @@ -148,9 +146,7 @@ g_unix_input_stream_class_init (GUnixInputStreamClass *klass) */ g_object_class_install_property (gobject_class, PROP_CLOSE_FD, - g_param_spec_boolean ("close-fd", - P_("Close file descriptor"), - P_("Whether to close the file descriptor when the stream is closed"), + g_param_spec_boolean ("close-fd", NULL, NULL, TRUE, G_PARAM_READABLE | G_PARAM_WRITABLE | G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB)); } diff --git a/gio/gunixoutputstream.c b/gio/gunixoutputstream.c index 0e48c9693..e0782cabc 100644 --- a/gio/gunixoutputstream.c +++ b/gio/gunixoutputstream.c @@ -132,9 +132,7 @@ g_unix_output_stream_class_init (GUnixOutputStreamClass *klass) */ g_object_class_install_property (gobject_class, PROP_FD, - g_param_spec_int ("fd", - P_("File descriptor"), - P_("The file descriptor to write to"), + g_param_spec_int ("fd", NULL, NULL, G_MININT, G_MAXINT, -1, G_PARAM_READABLE | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB)); @@ -147,9 +145,7 @@ g_unix_output_stream_class_init (GUnixOutputStreamClass *klass) */ g_object_class_install_property (gobject_class, PROP_CLOSE_FD, - g_param_spec_boolean ("close-fd", - P_("Close file descriptor"), - P_("Whether to close the file descriptor when the stream is closed"), + g_param_spec_boolean ("close-fd", NULL, NULL, TRUE, G_PARAM_READABLE | G_PARAM_WRITABLE | G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB)); } diff --git a/gio/gunixsocketaddress.c b/gio/gunixsocketaddress.c index 3f0762ebf..3d1a26e1e 100644 --- a/gio/gunixsocketaddress.c +++ b/gio/gunixsocketaddress.c @@ -276,9 +276,7 @@ g_unix_socket_address_class_init (GUnixSocketAddressClass *klass) */ g_object_class_install_property (gobject_class, PROP_PATH, - g_param_spec_string ("path", - P_("Path"), - P_("UNIX socket path"), + g_param_spec_string ("path", NULL, NULL, NULL, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | @@ -292,9 +290,7 @@ g_unix_socket_address_class_init (GUnixSocketAddressClass *klass) * Since: 2.22 */ g_object_class_install_property (gobject_class, PROP_PATH_AS_ARRAY, - g_param_spec_boxed ("path-as-array", - P_("Path array"), - P_("UNIX socket path, as byte array"), + g_param_spec_boxed ("path-as-array", NULL, NULL, G_TYPE_BYTE_ARRAY, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | @@ -310,9 +306,7 @@ g_unix_socket_address_class_init (GUnixSocketAddressClass *klass) * abstract addresses. */ g_object_class_install_property (gobject_class, PROP_ABSTRACT, - g_param_spec_boolean ("abstract", - P_("Abstract"), - P_("Whether or not this is an abstract address"), + g_param_spec_boolean ("abstract", NULL, NULL, FALSE, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | @@ -326,9 +320,7 @@ g_unix_socket_address_class_init (GUnixSocketAddressClass *klass) * Since: 2.22 */ g_object_class_install_property (gobject_class, PROP_ADDRESS_TYPE, - g_param_spec_enum ("address-type", - P_("Address type"), - P_("The type of UNIX socket address"), + g_param_spec_enum ("address-type", NULL, NULL, G_TYPE_UNIX_SOCKET_ADDRESS_TYPE, G_UNIX_SOCKET_ADDRESS_PATH, G_PARAM_READWRITE | diff --git a/gio/gwin32inputstream.c b/gio/gwin32inputstream.c index 233f6ed1f..afb362ab7 100644 --- a/gio/gwin32inputstream.c +++ b/gio/gwin32inputstream.c @@ -258,9 +258,7 @@ g_win32_input_stream_class_init (GWin32InputStreamClass *klass) * Since: 2.26 */ props[PROP_HANDLE] = - g_param_spec_pointer ("handle", - P_("File handle"), - P_("The file handle to read from"), + g_param_spec_pointer ("handle", NULL, NULL, G_PARAM_READABLE | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY | @@ -274,9 +272,7 @@ g_win32_input_stream_class_init (GWin32InputStreamClass *klass) * Since: 2.26 */ props[PROP_CLOSE_HANDLE] = - g_param_spec_boolean ("close-handle", - P_("Close file handle"), - P_("Whether to close the file handle when the stream is closed"), + g_param_spec_boolean ("close-handle", NULL, NULL, TRUE, G_PARAM_READABLE | G_PARAM_WRITABLE | diff --git a/gio/gwin32outputstream.c b/gio/gwin32outputstream.c index b3ad407de..fdf1e9810 100644 --- a/gio/gwin32outputstream.c +++ b/gio/gwin32outputstream.c @@ -245,9 +245,7 @@ g_win32_output_stream_class_init (GWin32OutputStreamClass *klass) * Since: 2.26 */ props[PROP_HANDLE] = - g_param_spec_pointer ("handle", - P_("File handle"), - P_("The file handle to write to"), + g_param_spec_pointer ("handle", NULL, NULL, G_PARAM_READABLE | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY | @@ -261,9 +259,7 @@ g_win32_output_stream_class_init (GWin32OutputStreamClass *klass) * Since: 2.26 */ props[PROP_CLOSE_HANDLE] = - g_param_spec_boolean ("close-handle", - P_("Close file handle"), - P_("Whether to close the file handle when the stream is closed"), + g_param_spec_boolean ("close-handle", NULL, NULL, TRUE, G_PARAM_READABLE | G_PARAM_WRITABLE | diff --git a/gio/gwin32registrykey.c b/gio/gwin32registrykey.c index 73c47b155..bd83b38b5 100644 --- a/gio/gwin32registrykey.c +++ b/gio/gwin32registrykey.c @@ -2695,9 +2695,7 @@ g_win32_registry_key_class_init (GWin32RegistryKeyClass *klass) */ g_object_class_install_property (gobject_class, PROP_PATH, - g_param_spec_string ("path", - "Path", - "Path to the key in the registry", + g_param_spec_string ("path", NULL, NULL, NULL, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | @@ -2712,9 +2710,7 @@ g_win32_registry_key_class_init (GWin32RegistryKeyClass *klass) */ g_object_class_install_property (gobject_class, PROP_PATH_UTF16, - g_param_spec_pointer ("path-utf16", - "Path (UTF-16)", - "Path to the key in the registry, in UTF-16", + g_param_spec_pointer ("path-utf16", NULL, NULL, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS)); diff --git a/gio/gzlibcompressor.c b/gio/gzlibcompressor.c index d522f6157..00bde8fe2 100644 --- a/gio/gzlibcompressor.c +++ b/gio/gzlibcompressor.c @@ -230,9 +230,7 @@ g_zlib_compressor_class_init (GZlibCompressorClass *klass) */ g_object_class_install_property (gobject_class, PROP_FORMAT, - g_param_spec_enum ("format", - P_("compression format"), - P_("The format of the compressed data"), + g_param_spec_enum ("format", NULL, NULL, G_TYPE_ZLIB_COMPRESSOR_FORMAT, G_ZLIB_COMPRESSOR_FORMAT_ZLIB, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | @@ -248,9 +246,7 @@ g_zlib_compressor_class_init (GZlibCompressorClass *klass) */ g_object_class_install_property (gobject_class, PROP_LEVEL, - g_param_spec_int ("level", - P_("compression level"), - P_("The level of compression from 0 (no compression) to 9 (most compression), -1 for the default level"), + g_param_spec_int ("level", NULL, NULL, -1, 9, -1, G_PARAM_READWRITE | @@ -268,9 +264,7 @@ g_zlib_compressor_class_init (GZlibCompressorClass *klass) */ g_object_class_install_property (gobject_class, PROP_FILE_INFO, - g_param_spec_object ("file-info", - P_("file info"), - P_("File info"), + g_param_spec_object ("file-info", NULL, NULL, G_TYPE_FILE_INFO, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); diff --git a/gio/gzlibdecompressor.c b/gio/gzlibdecompressor.c index 306fd7bda..dbe126d3c 100644 --- a/gio/gzlibdecompressor.c +++ b/gio/gzlibdecompressor.c @@ -224,9 +224,7 @@ g_zlib_decompressor_class_init (GZlibDecompressorClass *klass) */ g_object_class_install_property (gobject_class, PROP_FORMAT, - g_param_spec_enum ("format", - P_("compression format"), - P_("The format of the compressed data"), + g_param_spec_enum ("format", NULL, NULL, G_TYPE_ZLIB_COMPRESSOR_FORMAT, G_ZLIB_COMPRESSOR_FORMAT_ZLIB, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | @@ -244,9 +242,7 @@ g_zlib_decompressor_class_init (GZlibDecompressorClass *klass) */ g_object_class_install_property (gobject_class, PROP_FILE_INFO, - g_param_spec_object ("file-info", - P_("file info"), - P_("File info"), + g_param_spec_object ("file-info", NULL, NULL, G_TYPE_FILE_INFO, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); diff --git a/gobject/gbinding.c b/gobject/gbinding.c index 5671d2203..8c242e3af 100644 --- a/gobject/gbinding.c +++ b/gobject/gbinding.c @@ -886,9 +886,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 | @@ -901,9 +899,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 | @@ -920,9 +916,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 | @@ -939,9 +933,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 | @@ -954,9 +946,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 c35f697ce..55e691be3 100644 --- a/gobject/gbindinggroup.c +++ b/gobject/gbindinggroup.c @@ -345,9 +345,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 80f7c66ec..07da83f23 100644 --- a/gobject/gobject.c +++ b/gobject/gobject.c @@ -749,13 +749,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); * @@ -1565,7 +1565,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 b0e7cbecc..5372e8cc7 100644 --- a/gobject/gsignalgroup.c +++ b/gobject/gsignalgroup.c @@ -610,9 +610,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)); @@ -624,9 +622,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)); From c4b47c708dd8a1437b9623e165aeca2698c2b421 Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Wed, 29 Nov 2023 13:39:58 +0000 Subject: [PATCH 3/3] gwin32appinfo: Use correct gettext macro MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `P_()` is for pspec strings — it gave us the option to split them out to a separate translation domain. `_()` is for normal strings. Spotted by Sophie Herold: https://gitlab.gnome.org/GNOME/glib/-/merge_requests/3411#note_1733329 Signed-off-by: Philip Withnall --- gio/gwin32appinfo.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gio/gwin32appinfo.c b/gio/gwin32appinfo.c index 9e35239f8..f17787846 100644 --- a/gio/gwin32appinfo.c +++ b/gio/gwin32appinfo.c @@ -4253,7 +4253,7 @@ g_win32_app_info_get_name (GAppInfo *appinfo) else if (info->app && info->app->canonical_name_u8) return info->app->canonical_name_u8; else - return P_("Unnamed"); + return _("Unnamed"); } static const char * @@ -5213,11 +5213,11 @@ g_win32_app_info_launch_internal (GWin32AppInfo *info, { if (info->app->is_uwp || info->handler == NULL) g_set_error (error, G_IO_ERROR, G_IO_ERROR_FAILED, - P_("The app ‘%s’ in the application object has no verbs"), + _("The app ‘%s’ in the application object has no verbs"), g_win32_appinfo_application_get_some_name (info->app)); else if (info->handler->verbs->len == 0) g_set_error (error, G_IO_ERROR, G_IO_ERROR_FAILED, - P_("The app ‘%s’ and the handler ‘%s’ in the application object have no verbs"), + _("The app ‘%s’ and the handler ‘%s’ in the application object have no verbs"), g_win32_appinfo_application_get_some_name (info->app), info->handler->handler_id_folded);