diff options
author | Sophie Herold <sophie@hemio.de> | 2023-04-28 01:59:26 +0200 |
---|---|---|
committer | Sophie Herold <sophie@hemio.de> | 2023-04-28 02:17:36 +0200 |
commit | e02808020ffbe82ad14c9bca2f4a157aa2b1b691 (patch) | |
tree | 69152391d3693bb9437b5949afbf3a11b2f04b80 | |
parent | 473063383df0ec135fd86b75b6f7f1dd20a8e2aa (diff) | |
download | glib-e02808020ffbe82ad14c9bca2f4a157aa2b1b691.tar.gz |
Remove all nicks and blurbs from param specswip/sophie-h/remove-nick-blurb
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
95 files changed, 307 insertions, 896 deletions
diff --git a/gio/gaction.c b/gio/gaction.c index 5599137fd..91f479163 100644 --- a/gio/gaction.c +++ b/gio/gaction.c @@ -100,9 +100,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)); @@ -117,9 +115,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)); @@ -135,9 +131,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)); @@ -151,9 +145,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)); @@ -166,9 +158,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 3708e812c..bb92aea75 100644 --- a/gio/gapplication.c +++ b/gio/gapplication.c @@ -1478,48 +1478,34 @@ g_application_class_init (GApplicationClass *class) class->name_lost = g_application_real_name_lost; 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)); 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)); 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)); 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)); 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)); 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)); 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)); @@ -1532,9 +1518,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 e9a6f46c6..76039ce3f 100644 --- a/gio/gapplicationcommandline.c +++ b/gio/gapplicationcommandline.c @@ -423,32 +423,24 @@ g_application_command_line_class_init (GApplicationCommandLineClass *class) class->get_stdin = g_application_command_line_real_get_stdin; 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)); 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)); 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)); 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 55450ce0e..14b1ac22a 100644 --- a/gio/gbufferedinputstream.c +++ b/gio/gbufferedinputstream.c @@ -163,9 +163,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 4999a7d69..104545010 100644 --- a/gio/gbufferedoutputstream.c +++ b/gio/gbufferedoutputstream.c @@ -151,9 +151,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, @@ -162,9 +160,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 b402a5178..3f192cf26 100644 --- a/gio/gbytesicon.c +++ b/gio/gbytesicon.c @@ -130,9 +130,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 499319999..9edab8a6c 100644 --- a/gio/gcharsetconverter.c +++ b/gio/gcharsetconverter.c @@ -161,25 +161,19 @@ 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)); 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)); g_object_class_install_property (gobject_class, PROP_USE_FALLBACK, - g_param_spec_boolean ("use-fallback", - P_("Fallback enabled"), - P_("Use fallback (of form \\<hexval>) 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 59277bf83..64942577c 100644 --- a/gio/gconverterinputstream.c +++ b/gio/gconverterinputstream.c @@ -118,9 +118,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 b26f645d4..905f3a7be 100644 --- a/gio/gconverteroutputstream.c +++ b/gio/gconverteroutputstream.c @@ -134,9 +134,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 72c50308e..0a0d2b7c3 100644 --- a/gio/gdatainputstream.c +++ b/gio/gdatainputstream.c @@ -86,9 +86,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)); @@ -101,9 +99,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 f2d1f3988..22a1f32a7 100644 --- a/gio/gdataoutputstream.c +++ b/gio/gdataoutputstream.c @@ -99,9 +99,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 65ece54b2..7b2762f15 100644 --- a/gio/gdbusconnection.c +++ b/gio/gdbusconnection.c @@ -820,9 +820,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 | @@ -841,9 +839,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 | @@ -860,9 +856,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 | @@ -902,9 +896,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 | @@ -923,9 +915,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 | @@ -941,9 +931,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 | @@ -964,9 +952,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 | @@ -984,9 +970,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 | @@ -1003,9 +987,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 a2a79fe3d..81fb975df 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 66da3bdf5..c2c5930bd 100644 --- a/gio/gdbusmessage.c +++ b/gio/gdbusmessage.c @@ -577,9 +577,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 b6b3b212c..8a5b978fd 100644 --- a/gio/gdbusobjectmanagerclient.c +++ b/gio/gdbusobjectmanagerclient.c @@ -360,9 +360,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 | @@ -381,9 +379,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 | @@ -401,9 +397,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 | @@ -422,9 +416,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 | @@ -440,9 +432,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 | @@ -460,9 +450,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)); @@ -477,9 +465,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 | @@ -494,9 +480,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 | @@ -511,9 +495,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 68539ea00..0110288ff 100644 --- a/gio/gdbusobjectmanagerserver.c +++ b/gio/gdbusobjectmanagerserver.c @@ -210,9 +210,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 | @@ -227,9 +225,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 ac5e4482a..b9434adae 100644 --- a/gio/gdbusobjectproxy.c +++ b/gio/gdbusobjectproxy.c @@ -154,9 +154,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 | @@ -171,9 +169,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 0b857ba7d..d991220f6 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 afc6fe94e..0f46579f2 100644 --- a/gio/gdbusproxy.c +++ b/gio/gdbusproxy.c @@ -367,9 +367,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 | @@ -386,9 +384,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 | @@ -409,9 +405,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 | @@ -429,9 +423,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 | @@ -450,9 +442,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 | @@ -472,9 +462,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 | @@ -490,9 +478,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 | @@ -510,9 +496,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 | @@ -537,9 +521,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 db0c9ab50..e4f82bdf8 100644 --- a/gio/gdbusserver.c +++ b/gio/gdbusserver.c @@ -305,9 +305,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 | @@ -328,9 +326,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 | @@ -348,9 +344,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 | @@ -368,9 +362,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 | @@ -386,9 +378,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 | @@ -404,9 +394,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 159a69967..0194380a4 100644 --- a/gio/gdebugcontroller.c +++ b/gio/gdebugcontroller.c @@ -68,9 +68,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 ce0f70383..f5b75b20b 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 1f161328a..372cde6d0 100644 --- a/gio/gdesktopappinfo.c +++ b/gio/gdesktopappinfo.c @@ -1788,7 +1788,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 507823c36..517d63fe3 100644 --- a/gio/gdtlsclientconnection.c +++ b/gio/gdtlsclientconnection.c @@ -82,9 +82,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 | @@ -112,9 +110,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 | @@ -134,9 +130,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 ef961063e..9b11747a4 100644 --- a/gio/gdtlsconnection.c +++ b/gio/gdtlsconnection.c @@ -106,9 +106,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 | @@ -136,9 +134,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)); @@ -152,9 +148,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)); @@ -167,9 +161,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 | @@ -185,9 +177,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 | @@ -203,9 +193,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)); @@ -222,9 +210,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)); @@ -249,9 +235,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 | @@ -266,9 +250,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)); @@ -281,9 +263,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)); @@ -296,9 +276,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 | @@ -312,9 +290,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 a5241213c..9638d56d5 100644 --- a/gio/gdtlsserverconnection.c +++ b/gio/gdtlsserverconnection.c @@ -57,9 +57,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 af1ba0006..761124dfd 100644 --- a/gio/gemblem.c +++ b/gio/gemblem.c @@ -139,18 +139,14 @@ 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)); 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 8b72f12f9..fc8f3ca0d 100644 --- a/gio/gemblemedicon.c +++ b/gio/gemblemedicon.c @@ -127,9 +127,7 @@ g_emblemed_icon_class_init (GEmblemedIconClass *klass) gobject_class->get_property = g_emblemed_icon_get_property; 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 c4b44d1ce..667bbe064 100644 --- a/gio/gfileenumerator.c +++ b/gio/gfileenumerator.c @@ -161,8 +161,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 bd727cd7a..14bb03dc1 100644 --- a/gio/gfileicon.c +++ b/gio/gfileicon.c @@ -155,9 +155,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 89c2ff60b..0994bc2a2 100644 --- a/gio/gfilemonitor.c +++ b/gio/gfilemonitor.c @@ -192,16 +192,12 @@ g_file_monitor_class_init (GFileMonitorClass *klass) _g_cclosure_marshal_VOID__OBJECT_OBJECT_ENUMv); 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)); 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 46cb0ef77..eb5f2356b 100644 --- a/gio/gfilterinputstream.c +++ b/gio/gfilterinputstream.c @@ -93,18 +93,14 @@ 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)); 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 637f448ff..f9d67dfb3 100644 --- a/gio/gfilteroutputstream.c +++ b/gio/gfilteroutputstream.c @@ -92,18 +92,14 @@ 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)); 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 66d889714..1d968a06d 100644 --- a/gio/ginetaddress.c +++ b/gio/ginetaddress.c @@ -194,9 +194,7 @@ g_inet_address_class_init (GInetAddressClass *klass) gobject_class->get_property = g_inet_address_get_property; 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 | @@ -204,9 +202,7 @@ g_inet_address_class_init (GInetAddressClass *klass) G_PARAM_STATIC_STRINGS)); 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)); @@ -220,9 +216,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)); @@ -236,9 +230,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)); @@ -252,9 +244,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)); @@ -268,9 +258,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)); @@ -284,9 +272,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)); @@ -300,9 +286,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)); @@ -317,9 +301,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)); @@ -333,9 +315,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)); @@ -349,9 +329,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)); @@ -365,9 +343,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 c0704db14..33637e38e 100644 --- a/gio/ginetaddressmask.c +++ b/gio/ginetaddressmask.c @@ -145,24 +145,18 @@ g_inet_address_mask_class_init (GInetAddressMaskClass *klass) gobject_class->dispose = g_inet_address_mask_dispose; 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 | G_PARAM_STATIC_STRINGS)); 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)); 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 769303558..8af142024 100644 --- a/gio/ginetsocketaddress.c +++ b/gio/ginetsocketaddress.c @@ -254,18 +254,14 @@ g_inet_socket_address_class_init (GInetSocketAddressClass *klass) gsocketaddress_class->get_native_size = g_inet_socket_address_get_native_size; 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 | G_PARAM_STATIC_STRINGS)); 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, @@ -281,9 +277,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, @@ -299,9 +293,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 e1e14722d..ac5f027d5 100644 --- a/gio/giostream.c +++ b/gio/giostream.c @@ -173,22 +173,16 @@ g_io_stream_class_init (GIOStreamClass *klass) klass->close_finish = g_io_stream_real_close_finish; 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)); 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)); 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 3f9b85e91..d97743d95 100644 --- a/gio/glistmodel.c +++ b/gio/glistmodel.c @@ -93,10 +93,10 @@ G_DEFINE_INTERFACE (GListModel, g_list_model, G_TYPE_OBJECT) * respectively and be defined as such: * |[<!-- language="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 f405abd79..5f958103f 100644 --- a/gio/gliststore.c +++ b/gio/gliststore.c @@ -165,7 +165,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); /** @@ -176,7 +176,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 0339a7ad7..2c22d94b3 100644 --- a/gio/gmemoryoutputstream.c +++ b/gio/gmemoryoutputstream.c @@ -154,9 +154,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)); @@ -169,9 +167,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)); @@ -185,9 +181,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)); @@ -201,9 +195,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)); @@ -216,9 +208,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 d8f54493f..c765a0aac 100644 --- a/gio/gmountoperation.c +++ b/gio/gmountoperation.c @@ -480,9 +480,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)); @@ -495,9 +493,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)); @@ -509,9 +505,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)); @@ -523,9 +517,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)); @@ -537,9 +529,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| @@ -553,9 +543,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)); @@ -570,9 +558,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)); @@ -590,9 +576,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)); @@ -607,9 +591,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 598917de2..9e04ca16e 100644 --- a/gio/gnetworkaddress.c +++ b/gio/gnetworkaddress.c @@ -126,26 +126,20 @@ g_network_address_class_init (GNetworkAddressClass *klass) gobject_class->finalize = g_network_address_finalize; 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 | G_PARAM_STATIC_STRINGS)); 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 | G_PARAM_STATIC_STRINGS)); 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 bae60d5f8..5032fbb88 100644 --- a/gio/gnetworkmonitor.c +++ b/gio/gnetworkmonitor.c @@ -362,9 +362,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)); @@ -393,9 +391,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)); @@ -410,9 +406,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 8fa74eca3..698e2ea1f 100644 --- a/gio/gnetworkservice.c +++ b/gio/gnetworkservice.c @@ -124,33 +124,25 @@ g_network_service_class_init (GNetworkServiceClass *klass) gobject_class->finalize = g_network_service_finalize; 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 | G_PARAM_STATIC_STRINGS)); 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 | G_PARAM_STATIC_STRINGS)); 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 | G_PARAM_STATIC_STRINGS)); 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 957e57f2d..e5d59d31c 100644 --- a/gio/gpermission.c +++ b/gio/gpermission.c @@ -444,9 +444,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)); @@ -457,9 +455,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)); @@ -470,9 +466,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 9c22411f0..6921ff914 100644 --- a/gio/gpowerprofilemonitor.c +++ b/gio/gpowerprofilemonitor.c @@ -135,9 +135,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 8df765e98..570edd670 100644 --- a/gio/gpropertyaction.c +++ b/gio/gpropertyaction.c @@ -456,9 +456,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 | @@ -473,9 +471,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)); @@ -491,9 +487,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)); @@ -507,9 +501,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)); @@ -522,9 +514,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 | @@ -540,9 +530,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 | @@ -559,9 +547,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 | @@ -576,9 +562,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 764e6f5d7..dbe8fba57 100644 --- a/gio/gproxyaddress.c +++ b/gio/gproxyaddress.c @@ -196,9 +196,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 | @@ -206,9 +204,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 | @@ -216,9 +212,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 | @@ -234,9 +228,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 | @@ -244,9 +236,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 | @@ -254,9 +244,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 | @@ -272,9 +260,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 4e6d58a2d..daf281f06 100644 --- a/gio/gproxyaddressenumerator.c +++ b/gio/gproxyaddressenumerator.c @@ -748,9 +748,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 | @@ -766,9 +764,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 | @@ -776,9 +772,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 | @@ -793,9 +787,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/gregistrysettingsbackend.c b/gio/gregistrysettingsbackend.c index 772fae037..2c6672046 100644 --- a/gio/gregistrysettingsbackend.c +++ b/gio/gregistrysettingsbackend.c @@ -2318,9 +2318,7 @@ g_registry_settings_backend_class_init (GRegistrySettingsBackendClass *class) */ g_object_class_install_property (object_class, PROP_REGISTRY_KEY, - g_param_spec_string ("registry-key", - P_("Root registry key"), - P_("The path to the registry key where settings are stored"), + g_param_spec_string ("registry-key", NULL, NULL, "HKEY_CURRENT_USER\\Software\\GSettings", G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS)); diff --git a/gio/gresolver.c b/gio/gresolver.c index 676f1e271..a15c203d5 100644 --- a/gio/gresolver.c +++ b/gio/gresolver.c @@ -240,9 +240,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 a2c3dd0e4..2477c9252 100644 --- a/gio/gsettings.c +++ b/gio/gsettings.c @@ -848,9 +848,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)); @@ -866,9 +864,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)); @@ -890,9 +886,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)); @@ -904,9 +898,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)); @@ -917,9 +909,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)); @@ -931,9 +921,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)); @@ -946,9 +934,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 4e7e5b5ee..67b013288 100644 --- a/gio/gsimpleaction.c +++ b/gio/gsimpleaction.c @@ -460,9 +460,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 | @@ -477,9 +475,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 | @@ -496,9 +492,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)); @@ -512,9 +506,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)); @@ -527,9 +519,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 da6df2489..8ed6364e1 100644 --- a/gio/gsimpleiostream.c +++ b/gio/gsimpleiostream.c @@ -173,9 +173,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 | @@ -187,9 +185,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 8de26cb7b..d2c109f33 100644 --- a/gio/gsimpleproxyresolver.c +++ b/gio/gsimpleproxyresolver.c @@ -428,9 +428,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)); @@ -474,9 +472,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 3411b7785..f941d3149 100644 --- a/gio/gsocket.c +++ b/gio/gsocket.c @@ -955,9 +955,7 @@ g_socket_class_init (GSocketClass *klass) gobject_class->get_property = g_socket_get_property; 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 | @@ -965,9 +963,7 @@ g_socket_class_init (GSocketClass *klass) G_PARAM_STATIC_STRINGS)); 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 | @@ -975,9 +971,7 @@ g_socket_class_init (GSocketClass *klass) G_PARAM_STATIC_STRINGS)); 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 | @@ -985,9 +979,7 @@ g_socket_class_init (GSocketClass *klass) G_PARAM_STATIC_STRINGS)); 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, @@ -996,17 +988,13 @@ g_socket_class_init (GSocketClass *klass) G_PARAM_STATIC_STRINGS)); 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)); 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, @@ -1014,25 +1002,19 @@ g_socket_class_init (GSocketClass *klass) G_PARAM_STATIC_STRINGS)); 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)); 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)); 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)); @@ -1045,9 +1027,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, @@ -1062,9 +1042,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)); @@ -1077,9 +1055,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)); @@ -1092,9 +1068,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)); @@ -1107,9 +1081,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 994037c05..e996b350a 100644 --- a/gio/gsocketaddress.c +++ b/gio/gsocketaddress.c @@ -119,9 +119,7 @@ g_socket_address_class_init (GSocketAddressClass *klass) gobject_class->get_property = g_socket_address_get_property; 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 f7fb567fc..2f46f3488 100644 --- a/gio/gsocketclient.c +++ b/gio/gsocketclient.c @@ -870,9 +870,7 @@ g_socket_client_class_init (GSocketClientClass *class) _g_cclosure_marshal_VOID__ENUM_OBJECT_OBJECTv); 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 | @@ -880,9 +878,7 @@ g_socket_client_class_init (GSocketClientClass *class) G_PARAM_STATIC_STRINGS)); 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 | @@ -890,9 +886,7 @@ g_socket_client_class_init (GSocketClientClass *class) G_PARAM_STATIC_STRINGS)); 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 | @@ -900,36 +894,28 @@ g_socket_client_class_init (GSocketClientClass *class) G_PARAM_STATIC_STRINGS)); 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 | G_PARAM_STATIC_STRINGS)); 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 | G_PARAM_STATIC_STRINGS)); 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 | G_PARAM_STATIC_STRINGS)); 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 | @@ -958,9 +944,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 | @@ -976,9 +960,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 79f2cc615..6566418ab 100644 --- a/gio/gsocketconnection.c +++ b/gio/gsocketconnection.c @@ -450,9 +450,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 5ac83ea5b..ac6c05136 100644 --- a/gio/gsocketlistener.c +++ b/gio/gsocketlistener.c @@ -158,9 +158,7 @@ g_socket_listener_class_init (GSocketListenerClass *klass) gobject_class->set_property = g_socket_listener_set_property; gobject_class->get_property = g_socket_listener_get_property; 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 42e18d0a1..b0c17770a 100644 --- a/gio/gsocketservice.c +++ b/gio/gsocketservice.c @@ -364,9 +364,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 c4747a148..7e82c4a33 100644 --- a/gio/gsubprocess.c +++ b/gio/gsubprocess.c @@ -501,11 +501,11 @@ g_subprocess_class_init (GSubprocessClass *class) gobject_class->set_property = g_subprocess_set_property; 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)); 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 759ddf093..4a0aee8d3 100644 --- a/gio/gsubprocesslauncher.c +++ b/gio/gsubprocesslauncher.c @@ -180,7 +180,7 @@ g_subprocess_launcher_class_init (GSubprocessLauncherClass *class) gobject_class->dispose = g_subprocess_launcher_dispose; 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 c436110aa..631749e8c 100644 --- a/gio/gtask.c +++ b/gio/gtask.c @@ -2400,9 +2400,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 422b3dea5..f51eb4e21 100644 --- a/gio/gtcpconnection.c +++ b/gio/gtcpconnection.c @@ -133,9 +133,7 @@ g_tcp_connection_class_init (GTcpConnectionClass *class) stream_class->close_async = g_tcp_connection_close_async; 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 686aa42e0..9a5d1c55e 100644 --- a/gio/gtcpwrapperconnection.c +++ b/gio/gtcpwrapperconnection.c @@ -144,9 +144,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 8c5de3355..7189224bc 100644 --- a/gio/gtestdbus.c +++ b/gio/gtestdbus.c @@ -538,9 +538,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 8551bd27d..4f20eec44 100644 --- a/gio/gthemedicon.c +++ b/gio/gthemedicon.c @@ -180,9 +180,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)); @@ -192,9 +190,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)); @@ -218,9 +214,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 63dc2a883..368504056 100644 --- a/gio/gthreadedsocketservice.c +++ b/gio/gthreadedsocketservice.c @@ -249,9 +249,7 @@ g_threaded_socket_service_class_init (GThreadedSocketServiceClass *class) _g_cclosure_marshal_BOOLEAN__OBJECT_OBJECTv); 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 4862bc99a..6bbbcdfd6 100644 --- a/gio/gtlscertificate.c +++ b/gio/gtlscertificate.c @@ -147,9 +147,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 | @@ -163,9 +161,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 | @@ -180,9 +176,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 | @@ -197,9 +191,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 | @@ -228,9 +220,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 | @@ -260,9 +250,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 | @@ -290,9 +278,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 | @@ -310,9 +296,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 | @@ -327,9 +311,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 | @@ -344,9 +326,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)); @@ -360,9 +340,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)); @@ -376,9 +354,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)); @@ -391,9 +367,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)); @@ -407,9 +381,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)); @@ -423,9 +395,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 d64106e51..c5bd7048a 100644 --- a/gio/gtlsclientconnection.c +++ b/gio/gtlsclientconnection.c @@ -78,9 +78,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 | @@ -109,9 +107,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 | @@ -128,9 +124,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 | @@ -151,9 +145,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 95b4bc8f7..fd78b56e1 100644 --- a/gio/gtlsconnection.c +++ b/gio/gtlsconnection.c @@ -113,9 +113,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 | @@ -130,9 +128,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 | @@ -161,9 +157,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)); @@ -177,9 +171,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)); @@ -192,9 +184,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 | @@ -210,9 +200,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 | @@ -228,9 +216,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)); @@ -247,9 +233,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)); @@ -274,9 +258,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 | @@ -291,9 +273,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)); @@ -306,9 +286,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)); @@ -321,9 +299,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 | @@ -337,9 +313,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 e32faf94c..4e324571b 100644 --- a/gio/gtlsfiledatabase.c +++ b/gio/gtlsfiledatabase.c @@ -65,9 +65,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 586d76155..0b78bdf4a 100644 --- a/gio/gtlspassword.c +++ b/gio/gtlspassword.c @@ -197,26 +197,20 @@ g_tls_password_class_init (GTlsPasswordClass *klass) gobject_class->finalize = g_tls_password_finalize; 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 | G_PARAM_STATIC_STRINGS)); 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)); 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 dc9db62bb..8702baaaf 100644 --- a/gio/gtlsserverconnection.c +++ b/gio/gtlsserverconnection.c @@ -55,9 +55,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 212c4b0e0..8b85217a6 100644 --- a/gio/gunixcredentialsmessage.c +++ b/gio/gunixcredentialsmessage.c @@ -266,9 +266,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 889a0c921..291c2e52f 100644 --- a/gio/gunixfdmessage.c +++ b/gio/gunixfdmessage.c @@ -225,8 +225,7 @@ g_unix_fd_message_class_init (GUnixFDMessageClass *class) object_class->get_property = g_unix_fd_message_get_property; 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 2180ce8dc..f5a963bff 100644 --- a/gio/gunixinputstream.c +++ b/gio/gunixinputstream.c @@ -136,9 +136,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)); @@ -151,9 +149,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 8a71c315c..bb1a8f69b 100644 --- a/gio/gunixoutputstream.c +++ b/gio/gunixoutputstream.c @@ -135,9 +135,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)); @@ -150,9 +148,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 3ccb2cbf1..e67dc6e16 100644 --- a/gio/gunixsocketaddress.c +++ b/gio/gunixsocketaddress.c @@ -277,17 +277,13 @@ 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 | G_PARAM_STATIC_STRINGS)); 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 | @@ -302,17 +298,13 @@ 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 | G_PARAM_STATIC_STRINGS)); 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 685d6f295..da5d758d5 100644 --- a/gio/gwin32inputstream.c +++ b/gio/gwin32inputstream.c @@ -261,9 +261,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 | @@ -277,9 +275,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 b88f05c82..67e3c5bb0 100644 --- a/gio/gwin32outputstream.c +++ b/gio/gwin32outputstream.c @@ -248,9 +248,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 | @@ -264,9 +262,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 df20db102..2076f4992 100644 --- a/gio/gwin32registrykey.c +++ b/gio/gwin32registrykey.c @@ -2697,9 +2697,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 | @@ -2714,9 +2712,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 a1c018a01..8d0bbef8b 100644 --- a/gio/gzlibcompressor.c +++ b/gio/gzlibcompressor.c @@ -230,18 +230,14 @@ 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 | G_PARAM_STATIC_STRINGS)); 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 | @@ -259,9 +255,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 f7045093e..a67220fc1 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 204dc44db..133676592 100644 --- a/gobject/gbinding.c +++ b/gobject/gbinding.c @@ -889,9 +889,7 @@ g_binding_class_init (GBindingClass *klass) * Since: 2.26 */ g_object_class_install_property (gobject_class, PROP_SOURCE, - g_param_spec_object ("source", - P_("Source"), - P_("The source of the binding"), + g_param_spec_object ("source", NULL, NULL, G_TYPE_OBJECT, G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE | @@ -904,9 +902,7 @@ g_binding_class_init (GBindingClass *klass) * Since: 2.26 */ g_object_class_install_property (gobject_class, PROP_TARGET, - g_param_spec_object ("target", - P_("Target"), - P_("The target of the binding"), + g_param_spec_object ("target", NULL, NULL, G_TYPE_OBJECT, G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE | @@ -923,9 +919,7 @@ g_binding_class_init (GBindingClass *klass) * Since: 2.26 */ g_object_class_install_property (gobject_class, PROP_SOURCE_PROPERTY, - g_param_spec_string ("source-property", - P_("Source Property"), - P_("The property on the source to bind"), + g_param_spec_string ("source-property", NULL, NULL, NULL, G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE | @@ -942,9 +936,7 @@ g_binding_class_init (GBindingClass *klass) * Since: 2.26 */ g_object_class_install_property (gobject_class, PROP_TARGET_PROPERTY, - g_param_spec_string ("target-property", - P_("Target Property"), - P_("The property on the target to bind"), + g_param_spec_string ("target-property", NULL, NULL, NULL, G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE | @@ -957,9 +949,7 @@ g_binding_class_init (GBindingClass *klass) * Since: 2.26 */ g_object_class_install_property (gobject_class, PROP_FLAGS, - g_param_spec_flags ("flags", - P_("Flags"), - P_("The binding flags"), + g_param_spec_flags ("flags", NULL, NULL, G_TYPE_BINDING_FLAGS, G_BINDING_DEFAULT, G_PARAM_CONSTRUCT_ONLY | diff --git a/gobject/gbindinggroup.c b/gobject/gbindinggroup.c index e5c8980bf..fa3e996b7 100644 --- a/gobject/gbindinggroup.c +++ b/gobject/gbindinggroup.c @@ -348,9 +348,7 @@ g_binding_group_class_init (GBindingGroupClass *klass) * Since: 2.72 */ properties[PROP_SOURCE] = - g_param_spec_object ("source", - "Source", - "The source GObject used for binding properties.", + g_param_spec_object ("source", NULL, NULL, G_TYPE_OBJECT, (G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY | G_PARAM_STATIC_STRINGS)); diff --git a/gobject/gobject.c b/gobject/gobject.c index a61754b9f..1dec5062d 100644 --- a/gobject/gobject.c +++ b/gobject/gobject.c @@ -820,13 +820,13 @@ find_pspec (GObjectClass *class, * GObjectClass *gobject_class = G_OBJECT_CLASS (klass); * * obj_properties[PROP_FOO] = - * g_param_spec_int ("foo", "Foo", "Foo", + * g_param_spec_int ("foo", NULL, NULL, * -1, G_MAXINT, * 0, * G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); * * obj_properties[PROP_BAR] = - * g_param_spec_string ("bar", "Bar", "Bar", + * g_param_spec_string ("bar", NULL, NULL, * NULL, * G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); * @@ -1629,7 +1629,7 @@ g_object_notify (GObject *object, * static void * my_object_class_init (MyObjectClass *klass) * { - * properties[PROP_FOO] = g_param_spec_int ("foo", "Foo", "The foo", + * properties[PROP_FOO] = g_param_spec_int ("foo", NULL, NULL, * 0, 100, * 50, * G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); diff --git a/gobject/gsignalgroup.c b/gobject/gsignalgroup.c index e773fc040..c0dfd32bc 100644 --- a/gobject/gsignalgroup.c +++ b/gobject/gsignalgroup.c @@ -611,9 +611,7 @@ g_signal_group_class_init (GSignalGroupClass *klass) * Since: 2.72 */ properties[PROP_TARGET] = - g_param_spec_object ("target", - "Target", - "The target instance used when connecting signals.", + g_param_spec_object ("target", NULL, NULL, G_TYPE_OBJECT, (G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY | G_PARAM_STATIC_STRINGS)); @@ -625,9 +623,7 @@ g_signal_group_class_init (GSignalGroupClass *klass) * Since: 2.72 */ properties[PROP_TARGET_TYPE] = - g_param_spec_gtype ("target-type", - "Target Type", - "The GType of the target property.", + g_param_spec_gtype ("target-type", NULL, NULL, G_TYPE_OBJECT, (G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS)); |