Merge branch 'wip/sophie-h/remove-nick-blurb' into 'main'

Remove all nicks and blurbs from param specs

Closes #2991

See merge request GNOME/glib!3411
This commit is contained in:
Philip Withnall 2023-11-29 13:54:41 +00:00
commit 48963118b2
95 changed files with 919 additions and 897 deletions

View File

@ -90,9 +90,7 @@ g_action_default_init (GActionInterface *iface)
* Since: 2.28
**/
g_object_interface_install_property (iface,
g_param_spec_string ("name",
P_("Action Name"),
P_("The name used to invoke the action"),
g_param_spec_string ("name", NULL, NULL,
NULL,
G_PARAM_READABLE |
G_PARAM_STATIC_STRINGS));
@ -107,9 +105,7 @@ g_action_default_init (GActionInterface *iface)
* Since: 2.28
**/
g_object_interface_install_property (iface,
g_param_spec_boxed ("parameter-type",
P_("Parameter Type"),
P_("The type of GVariant passed to activate()"),
g_param_spec_boxed ("parameter-type", NULL, NULL,
G_TYPE_VARIANT_TYPE,
G_PARAM_READABLE |
G_PARAM_STATIC_STRINGS));
@ -125,9 +121,7 @@ g_action_default_init (GActionInterface *iface)
* Since: 2.28
**/
g_object_interface_install_property (iface,
g_param_spec_boolean ("enabled",
P_("Enabled"),
P_("If the action can be activated"),
g_param_spec_boolean ("enabled", NULL, NULL,
TRUE,
G_PARAM_READABLE |
G_PARAM_STATIC_STRINGS));
@ -141,9 +135,7 @@ g_action_default_init (GActionInterface *iface)
* Since: 2.28
**/
g_object_interface_install_property (iface,
g_param_spec_boxed ("state-type",
P_("State Type"),
P_("The type of the state kept by the action"),
g_param_spec_boxed ("state-type", NULL, NULL,
G_TYPE_VARIANT_TYPE,
G_PARAM_READABLE |
G_PARAM_STATIC_STRINGS));
@ -156,9 +148,7 @@ g_action_default_init (GActionInterface *iface)
* Since: 2.28
**/
g_object_interface_install_property (iface,
g_param_spec_variant ("state",
P_("State"),
P_("The state the action is in"),
g_param_spec_variant ("state", NULL, NULL,
G_VARIANT_TYPE_ANY,
NULL,
G_PARAM_READABLE |

View File

@ -1484,49 +1484,84 @@ g_application_class_init (GApplicationClass *class)
class->dbus_unregister = g_application_real_dbus_unregister;
class->name_lost = g_application_real_name_lost;
/**
* GApplication:application-id:
*
* The unique identifier for the application.
*
* Since: 2.28
*/
g_object_class_install_property (object_class, PROP_APPLICATION_ID,
g_param_spec_string ("application-id",
P_("Application identifier"),
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));
/**
* GApplication:flags:
*
* Flags specifying the behaviour of the application.
*
* Since: 2.28
*/
g_object_class_install_property (object_class, PROP_FLAGS,
g_param_spec_flags ("flags",
P_("Application flags"),
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));
/**
* GApplication:resource-base-path:
*
* The base resource path for the application.
*
* Since: 2.28
*/
g_object_class_install_property (object_class, PROP_RESOURCE_BASE_PATH,
g_param_spec_string ("resource-base-path",
P_("Resource base path"),
P_("The base resource path for the application"),
g_param_spec_string ("resource-base-path", NULL, NULL,
NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
/**
* GApplication:is-registered:
*
* Whether [method@Gio.Application.register] has been called.
*
* Since: 2.28
*/
g_object_class_install_property (object_class, PROP_IS_REGISTERED,
g_param_spec_boolean ("is-registered",
P_("Is registered"),
P_("If g_application_register() has been called"),
g_param_spec_boolean ("is-registered", NULL, NULL,
FALSE, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
/**
* GApplication:is-remote:
*
* Whether this application instance is remote.
*
* Since: 2.28
*/
g_object_class_install_property (object_class, PROP_IS_REMOTE,
g_param_spec_boolean ("is-remote",
P_("Is remote"),
P_("If this application instance is remote"),
g_param_spec_boolean ("is-remote", NULL, NULL,
FALSE, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
/**
* GApplication:inactivity-timeout:
*
* Time (in milliseconds) to stay alive after becoming idle.
*
* Since: 2.28
*/
g_object_class_install_property (object_class, PROP_INACTIVITY_TIMEOUT,
g_param_spec_uint ("inactivity-timeout",
P_("Inactivity timeout"),
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));
/**
* GApplication:action-group:
*
* The group of actions that the application exports.
*
* Since: 2.28
*/
g_object_class_install_property (object_class, PROP_ACTION_GROUP,
g_param_spec_object ("action-group",
P_("Action group"),
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));
@ -1539,9 +1574,7 @@ g_application_class_init (GApplicationClass *class)
* Since: 2.44
*/
g_object_class_install_property (object_class, PROP_IS_BUSY,
g_param_spec_boolean ("is-busy",
P_("Is busy"),
P_("If this application is currently marked busy"),
g_param_spec_boolean ("is-busy", NULL, NULL,
FALSE, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
/**

View File

@ -438,33 +438,54 @@ g_application_command_line_class_init (GApplicationCommandLineClass *class)
class->done = g_application_command_line_real_done;
/**
* GApplicationCommandLine:arguments:
*
* The commandline that caused this [signal@Gio.Application::command-line]
* signal emission.
*
* Since: 2.28
*/
g_object_class_install_property (object_class, PROP_ARGUMENTS,
g_param_spec_variant ("arguments",
P_("Commandline arguments"),
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));
/**
* GApplicationCommandLine:options:
*
* The options sent along with the commandline.
*
* Since: 2.28
*/
g_object_class_install_property (object_class, PROP_OPTIONS,
g_param_spec_variant ("options",
P_("Options"),
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));
/**
* GApplicationCommandLine:platform-data:
*
* Platform-specific data for the commandline.
*
* Since: 2.28
*/
g_object_class_install_property (object_class, PROP_PLATFORM_DATA,
g_param_spec_variant ("platform-data",
P_("Platform data"),
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));
/**
* GApplicationCommandLine:is-remote:
*
* Whether this is a remote commandline.
*
* Since: 2.28
*/
g_object_class_install_property (object_class, PROP_IS_REMOTE,
g_param_spec_boolean ("is-remote",
P_("Is remote"),
P_("TRUE if this is a remote commandline"),
g_param_spec_boolean ("is-remote", NULL, NULL,
FALSE,
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
}

View File

@ -157,11 +157,14 @@ g_buffered_input_stream_class_init (GBufferedInputStreamClass *klass)
bstream_class->fill_async = g_buffered_input_stream_real_fill_async;
bstream_class->fill_finish = g_buffered_input_stream_real_fill_finish;
/**
* GBufferedInputStream:buffer-size:
*
* The size of the backend buffer, in bytes.
*/
g_object_class_install_property (object_class,
PROP_BUFSIZE,
g_param_spec_uint ("buffer-size",
P_("Buffer Size"),
P_("The size of the backend buffer"),
g_param_spec_uint ("buffer-size", NULL, NULL,
1,
G_MAXUINT,
DEFAULT_BUFFER_SIZE,

View File

@ -145,22 +145,28 @@ g_buffered_output_stream_class_init (GBufferedOutputStreamClass *klass)
ostream_class->close_async = g_buffered_output_stream_close_async;
ostream_class->close_finish = g_buffered_output_stream_close_finish;
/**
* GBufferedOutputStream:buffer-size:
*
* The size of the backend buffer, in bytes.
*/
g_object_class_install_property (object_class,
PROP_BUFSIZE,
g_param_spec_uint ("buffer-size",
P_("Buffer Size"),
P_("The size of the backend buffer"),
g_param_spec_uint ("buffer-size", NULL, NULL,
1,
G_MAXUINT,
DEFAULT_BUFFER_SIZE,
G_PARAM_READWRITE|G_PARAM_CONSTRUCT|
G_PARAM_STATIC_NAME|G_PARAM_STATIC_NICK|G_PARAM_STATIC_BLURB));
/**
* GBufferedOutputStream:auto-grow:
*
* Whether the buffer should automatically grow.
*/
g_object_class_install_property (object_class,
PROP_AUTO_GROW,
g_param_spec_boolean ("auto-grow",
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));

View File

@ -127,9 +127,7 @@ g_bytes_icon_class_init (GBytesIconClass *klass)
* The bytes containing the icon.
*/
g_object_class_install_property (gobject_class, PROP_BYTES,
g_param_spec_boxed ("bytes",
P_("bytes"),
P_("The bytes containing the icon"),
g_param_spec_boxed ("bytes", NULL, NULL,
G_TYPE_BYTES,
G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
}

View File

@ -152,27 +152,44 @@ g_charset_converter_class_init (GCharsetConverterClass *klass)
gobject_class->get_property = g_charset_converter_get_property;
gobject_class->set_property = g_charset_converter_set_property;
/**
* GCharsetConverter:to-charset:
*
* The character encoding to convert to.
*
* Since: 2.24
*/
g_object_class_install_property (gobject_class,
PROP_TO_CHARSET,
g_param_spec_string ("to-charset",
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));
/**
* GCharsetConverter:from-charset:
*
* The character encoding to convert from.
*
* Since: 2.24
*/
g_object_class_install_property (gobject_class,
PROP_FROM_CHARSET,
g_param_spec_string ("from-charset",
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));
/**
* GCharsetConverter:use-fallback:
*
* Use fallback (of form `\<hexval>`) for invalid bytes.
*
* Since: 2.24
*/
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 |

View File

@ -113,11 +113,14 @@ g_converter_input_stream_class_init (GConverterInputStreamClass *klass)
istream_class = G_INPUT_STREAM_CLASS (klass);
istream_class->read_fn = g_converter_input_stream_read;
/**
* GConverterInputStream:converter:
*
* The converter object.
*/
g_object_class_install_property (object_class,
PROP_CONVERTER,
g_param_spec_object ("converter",
P_("Converter"),
P_("The converter object"),
g_param_spec_object ("converter", NULL, NULL,
G_TYPE_CONVERTER,
G_PARAM_READWRITE|
G_PARAM_CONSTRUCT_ONLY|

View File

@ -129,11 +129,14 @@ g_converter_output_stream_class_init (GConverterOutputStreamClass *klass)
istream_class->write_fn = g_converter_output_stream_write;
istream_class->flush = g_converter_output_stream_flush;
/**
* GConverterOutputStream:converter:
*
* The converter object.
*/
g_object_class_install_property (object_class,
PROP_CONVERTER,
g_param_spec_object ("converter",
P_("Converter"),
P_("The converter object"),
g_param_spec_object ("converter", NULL, NULL,
G_TYPE_CONVERTER,
G_PARAM_READWRITE|
G_PARAM_CONSTRUCT_ONLY|

View File

@ -82,9 +82,7 @@ g_data_input_stream_class_init (GDataInputStreamClass *klass)
*/
g_object_class_install_property (object_class,
PROP_BYTE_ORDER,
g_param_spec_enum ("byte-order",
P_("Byte order"),
P_("The byte order"),
g_param_spec_enum ("byte-order", NULL, NULL,
G_TYPE_DATA_STREAM_BYTE_ORDER,
G_DATA_STREAM_BYTE_ORDER_BIG_ENDIAN,
G_PARAM_READWRITE|G_PARAM_STATIC_NAME|G_PARAM_STATIC_BLURB));
@ -97,9 +95,7 @@ g_data_input_stream_class_init (GDataInputStreamClass *klass)
*/
g_object_class_install_property (object_class,
PROP_NEWLINE_TYPE,
g_param_spec_enum ("newline-type",
P_("Newline type"),
P_("The accepted types of line ending"),
g_param_spec_enum ("newline-type", NULL, NULL,
G_TYPE_DATA_STREAM_NEWLINE_TYPE,
G_DATA_STREAM_NEWLINE_TYPE_LF,
G_PARAM_READWRITE|G_PARAM_STATIC_NAME|G_PARAM_STATIC_BLURB));

View File

@ -94,9 +94,7 @@ g_data_output_stream_class_init (GDataOutputStreamClass *klass)
*/
g_object_class_install_property (object_class,
PROP_BYTE_ORDER,
g_param_spec_enum ("byte-order",
P_("Byte order"),
P_("The byte order"),
g_param_spec_enum ("byte-order", NULL, NULL,
G_TYPE_DATA_STREAM_BYTE_ORDER,
G_DATA_STREAM_BYTE_ORDER_BIG_ENDIAN,
G_PARAM_READWRITE|G_PARAM_STATIC_NAME|G_PARAM_STATIC_BLURB));

View File

@ -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 |

View File

@ -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 |

View File

@ -815,9 +815,7 @@ g_dbus_connection_class_init (GDBusConnectionClass *klass)
*/
g_object_class_install_property (gobject_class,
PROP_STREAM,
g_param_spec_object ("stream",
P_("IO Stream"),
P_("The underlying streams used for I/O"),
g_param_spec_object ("stream", NULL, NULL,
G_TYPE_IO_STREAM,
G_PARAM_READABLE |
G_PARAM_WRITABLE |
@ -836,9 +834,7 @@ g_dbus_connection_class_init (GDBusConnectionClass *klass)
*/
g_object_class_install_property (gobject_class,
PROP_ADDRESS,
g_param_spec_string ("address",
P_("Address"),
P_("D-Bus address specifying potential socket endpoints"),
g_param_spec_string ("address", NULL, NULL,
NULL,
G_PARAM_WRITABLE |
G_PARAM_CONSTRUCT_ONLY |
@ -855,9 +851,7 @@ g_dbus_connection_class_init (GDBusConnectionClass *klass)
*/
g_object_class_install_property (gobject_class,
PROP_FLAGS,
g_param_spec_flags ("flags",
P_("Flags"),
P_("Flags"),
g_param_spec_flags ("flags", NULL, NULL,
G_TYPE_DBUS_CONNECTION_FLAGS,
G_DBUS_CONNECTION_FLAGS_NONE,
G_PARAM_READABLE |
@ -897,9 +891,7 @@ g_dbus_connection_class_init (GDBusConnectionClass *klass)
*/
g_object_class_install_property (gobject_class,
PROP_GUID,
g_param_spec_string ("guid",
P_("GUID"),
P_("GUID of the server peer"),
g_param_spec_string ("guid", NULL, NULL,
NULL,
G_PARAM_READABLE |
G_PARAM_WRITABLE |
@ -918,9 +910,7 @@ g_dbus_connection_class_init (GDBusConnectionClass *klass)
*/
g_object_class_install_property (gobject_class,
PROP_UNIQUE_NAME,
g_param_spec_string ("unique-name",
P_("unique-name"),
P_("Unique name of bus connection"),
g_param_spec_string ("unique-name", NULL, NULL,
NULL,
G_PARAM_READABLE |
G_PARAM_STATIC_NAME |
@ -936,9 +926,7 @@ g_dbus_connection_class_init (GDBusConnectionClass *klass)
*/
g_object_class_install_property (gobject_class,
PROP_CLOSED,
g_param_spec_boolean ("closed",
P_("Closed"),
P_("Whether the connection is closed"),
g_param_spec_boolean ("closed", NULL, NULL,
FALSE,
G_PARAM_READABLE |
G_PARAM_STATIC_NAME |
@ -959,9 +947,7 @@ g_dbus_connection_class_init (GDBusConnectionClass *klass)
*/
g_object_class_install_property (gobject_class,
PROP_EXIT_ON_CLOSE,
g_param_spec_boolean ("exit-on-close",
P_("Exit on close"),
P_("Whether the process is terminated when the connection is closed"),
g_param_spec_boolean ("exit-on-close", NULL, NULL,
FALSE,
G_PARAM_READABLE |
G_PARAM_WRITABLE |
@ -979,9 +965,7 @@ g_dbus_connection_class_init (GDBusConnectionClass *klass)
*/
g_object_class_install_property (gobject_class,
PROP_CAPABILITY_FLAGS,
g_param_spec_flags ("capabilities",
P_("Capabilities"),
P_("Capabilities"),
g_param_spec_flags ("capabilities", NULL, NULL,
G_TYPE_DBUS_CAPABILITY_FLAGS,
G_DBUS_CAPABILITY_FLAGS_NONE,
G_PARAM_READABLE |
@ -998,9 +982,7 @@ g_dbus_connection_class_init (GDBusConnectionClass *klass)
*/
g_object_class_install_property (gobject_class,
PROP_AUTHENTICATION_OBSERVER,
g_param_spec_object ("authentication-observer",
P_("Authentication Observer"),
P_("Object used to assist in the authentication process"),
g_param_spec_object ("authentication-observer", NULL, NULL,
G_TYPE_DBUS_AUTH_OBSERVER,
G_PARAM_WRITABLE |
G_PARAM_CONSTRUCT_ONLY |

View File

@ -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 |

View File

@ -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 |

View File

@ -569,9 +569,7 @@ g_dbus_message_class_init (GDBusMessageClass *klass)
*/
g_object_class_install_property (gobject_class,
PROP_LOCKED,
g_param_spec_boolean ("locked",
P_("Locked"),
P_("Whether the message is locked"),
g_param_spec_boolean ("locked", NULL, NULL,
FALSE,
G_PARAM_READABLE |
G_PARAM_STATIC_NAME |

View File

@ -363,9 +363,7 @@ g_dbus_object_manager_client_class_init (GDBusObjectManagerClientClass *klass)
*/
g_object_class_install_property (gobject_class,
PROP_CONNECTION,
g_param_spec_object ("connection",
"Connection",
"The connection to use",
g_param_spec_object ("connection", NULL, NULL,
G_TYPE_DBUS_CONNECTION,
G_PARAM_READABLE |
G_PARAM_WRITABLE |
@ -384,9 +382,7 @@ g_dbus_object_manager_client_class_init (GDBusObjectManagerClientClass *klass)
*/
g_object_class_install_property (gobject_class,
PROP_BUS_TYPE,
g_param_spec_enum ("bus-type",
"Bus Type",
"The bus to connect to, if any",
g_param_spec_enum ("bus-type", NULL, NULL,
G_TYPE_BUS_TYPE,
G_BUS_TYPE_NONE,
G_PARAM_WRITABLE |
@ -404,9 +400,7 @@ g_dbus_object_manager_client_class_init (GDBusObjectManagerClientClass *klass)
*/
g_object_class_install_property (gobject_class,
PROP_FLAGS,
g_param_spec_flags ("flags",
"Flags",
"Flags for the proxy manager",
g_param_spec_flags ("flags", NULL, NULL,
G_TYPE_DBUS_OBJECT_MANAGER_CLIENT_FLAGS,
G_DBUS_OBJECT_MANAGER_CLIENT_FLAGS_NONE,
G_PARAM_READABLE |
@ -425,9 +419,7 @@ g_dbus_object_manager_client_class_init (GDBusObjectManagerClientClass *klass)
*/
g_object_class_install_property (gobject_class,
PROP_OBJECT_PATH,
g_param_spec_string ("object-path",
"Object Path",
"The object path of the control object",
g_param_spec_string ("object-path", NULL, NULL,
NULL,
G_PARAM_READABLE |
G_PARAM_WRITABLE |
@ -443,9 +435,7 @@ g_dbus_object_manager_client_class_init (GDBusObjectManagerClientClass *klass)
*/
g_object_class_install_property (gobject_class,
PROP_NAME,
g_param_spec_string ("name",
"Name",
"Name that the manager is for",
g_param_spec_string ("name", NULL, NULL,
NULL,
G_PARAM_READABLE |
G_PARAM_WRITABLE |
@ -463,9 +453,7 @@ g_dbus_object_manager_client_class_init (GDBusObjectManagerClientClass *klass)
*/
g_object_class_install_property (gobject_class,
PROP_NAME_OWNER,
g_param_spec_string ("name-owner",
"Name Owner",
"The owner of the name we are watching",
g_param_spec_string ("name-owner", NULL, NULL,
NULL,
G_PARAM_READABLE |
G_PARAM_STATIC_STRINGS));
@ -480,9 +468,7 @@ g_dbus_object_manager_client_class_init (GDBusObjectManagerClientClass *klass)
*/
g_object_class_install_property (gobject_class,
PROP_GET_PROXY_TYPE_FUNC,
g_param_spec_pointer ("get-proxy-type-func",
"GDBusProxyTypeFunc Function Pointer",
"The GDBusProxyTypeFunc pointer to use",
g_param_spec_pointer ("get-proxy-type-func", NULL, NULL,
G_PARAM_READABLE |
G_PARAM_WRITABLE |
G_PARAM_CONSTRUCT_ONLY |
@ -497,9 +483,7 @@ g_dbus_object_manager_client_class_init (GDBusObjectManagerClientClass *klass)
*/
g_object_class_install_property (gobject_class,
PROP_GET_PROXY_TYPE_USER_DATA,
g_param_spec_pointer ("get-proxy-type-user-data",
"GDBusProxyTypeFunc User Data",
"The GDBusProxyTypeFunc user_data",
g_param_spec_pointer ("get-proxy-type-user-data", NULL, NULL,
G_PARAM_READABLE |
G_PARAM_WRITABLE |
G_PARAM_CONSTRUCT_ONLY |
@ -514,9 +498,7 @@ g_dbus_object_manager_client_class_init (GDBusObjectManagerClientClass *klass)
*/
g_object_class_install_property (gobject_class,
PROP_GET_PROXY_TYPE_DESTROY_NOTIFY,
g_param_spec_pointer ("get-proxy-type-destroy-notify",
"GDBusProxyTypeFunc user data free function",
"The GDBusProxyTypeFunc user data free function",
g_param_spec_pointer ("get-proxy-type-destroy-notify", NULL, NULL,
G_PARAM_READABLE |
G_PARAM_WRITABLE |
G_PARAM_CONSTRUCT_ONLY |

View File

@ -209,9 +209,7 @@ g_dbus_object_manager_server_class_init (GDBusObjectManagerServerClass *klass)
*/
g_object_class_install_property (gobject_class,
PROP_CONNECTION,
g_param_spec_object ("connection",
"Connection",
"The connection to export objects on",
g_param_spec_object ("connection", NULL, NULL,
G_TYPE_DBUS_CONNECTION,
G_PARAM_READABLE |
G_PARAM_WRITABLE |
@ -226,9 +224,7 @@ g_dbus_object_manager_server_class_init (GDBusObjectManagerServerClass *klass)
*/
g_object_class_install_property (gobject_class,
PROP_OBJECT_PATH,
g_param_spec_string ("object-path",
"Object Path",
"The object path to register the manager object at",
g_param_spec_string ("object-path", NULL, NULL,
NULL,
G_PARAM_READABLE |
G_PARAM_WRITABLE |

View File

@ -152,9 +152,7 @@ g_dbus_object_proxy_class_init (GDBusObjectProxyClass *klass)
*/
g_object_class_install_property (gobject_class,
PROP_G_OBJECT_PATH,
g_param_spec_string ("g-object-path",
"Object Path",
"The object path of the proxy",
g_param_spec_string ("g-object-path", NULL, NULL,
NULL,
G_PARAM_READWRITE |
G_PARAM_CONSTRUCT_ONLY |
@ -169,9 +167,7 @@ g_dbus_object_proxy_class_init (GDBusObjectProxyClass *klass)
*/
g_object_class_install_property (gobject_class,
PROP_G_CONNECTION,
g_param_spec_object ("g-connection",
"Connection",
"The connection of the proxy",
g_param_spec_object ("g-connection", NULL, NULL,
G_TYPE_DBUS_CONNECTION,
G_PARAM_READWRITE |
G_PARAM_CONSTRUCT_ONLY |

View File

@ -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 |

View File

@ -369,9 +369,7 @@ g_dbus_proxy_class_init (GDBusProxyClass *klass)
*/
g_object_class_install_property (gobject_class,
PROP_G_INTERFACE_INFO,
g_param_spec_boxed ("g-interface-info",
P_("Interface Information"),
P_("Interface Information"),
g_param_spec_boxed ("g-interface-info", NULL, NULL,
G_TYPE_DBUS_INTERFACE_INFO,
G_PARAM_READABLE |
G_PARAM_WRITABLE |
@ -388,9 +386,7 @@ g_dbus_proxy_class_init (GDBusProxyClass *klass)
*/
g_object_class_install_property (gobject_class,
PROP_G_CONNECTION,
g_param_spec_object ("g-connection",
P_("g-connection"),
P_("The connection the proxy is for"),
g_param_spec_object ("g-connection", NULL, NULL,
G_TYPE_DBUS_CONNECTION,
G_PARAM_READABLE |
G_PARAM_WRITABLE |
@ -411,9 +407,7 @@ g_dbus_proxy_class_init (GDBusProxyClass *klass)
*/
g_object_class_install_property (gobject_class,
PROP_G_BUS_TYPE,
g_param_spec_enum ("g-bus-type",
P_("Bus Type"),
P_("The bus to connect to, if any"),
g_param_spec_enum ("g-bus-type", NULL, NULL,
G_TYPE_BUS_TYPE,
G_BUS_TYPE_NONE,
G_PARAM_WRITABLE |
@ -431,9 +425,7 @@ g_dbus_proxy_class_init (GDBusProxyClass *klass)
*/
g_object_class_install_property (gobject_class,
PROP_G_FLAGS,
g_param_spec_flags ("g-flags",
P_("g-flags"),
P_("Flags for the proxy"),
g_param_spec_flags ("g-flags", NULL, NULL,
G_TYPE_DBUS_PROXY_FLAGS,
G_DBUS_PROXY_FLAGS_NONE,
G_PARAM_READABLE |
@ -452,9 +444,7 @@ g_dbus_proxy_class_init (GDBusProxyClass *klass)
*/
g_object_class_install_property (gobject_class,
PROP_G_NAME,
g_param_spec_string ("g-name",
P_("g-name"),
P_("The well-known or unique name that the proxy is for"),
g_param_spec_string ("g-name", NULL, NULL,
NULL,
G_PARAM_READABLE |
G_PARAM_WRITABLE |
@ -474,9 +464,7 @@ g_dbus_proxy_class_init (GDBusProxyClass *klass)
*/
g_object_class_install_property (gobject_class,
PROP_G_NAME_OWNER,
g_param_spec_string ("g-name-owner",
P_("g-name-owner"),
P_("The unique name for the owner"),
g_param_spec_string ("g-name-owner", NULL, NULL,
NULL,
G_PARAM_READABLE |
G_PARAM_STATIC_NAME |
@ -492,9 +480,7 @@ g_dbus_proxy_class_init (GDBusProxyClass *klass)
*/
g_object_class_install_property (gobject_class,
PROP_G_OBJECT_PATH,
g_param_spec_string ("g-object-path",
P_("g-object-path"),
P_("The object path the proxy is for"),
g_param_spec_string ("g-object-path", NULL, NULL,
NULL,
G_PARAM_READABLE |
G_PARAM_WRITABLE |
@ -512,9 +498,7 @@ g_dbus_proxy_class_init (GDBusProxyClass *klass)
*/
g_object_class_install_property (gobject_class,
PROP_G_INTERFACE_NAME,
g_param_spec_string ("g-interface-name",
P_("g-interface-name"),
P_("The D-Bus interface name the proxy is for"),
g_param_spec_string ("g-interface-name", NULL, NULL,
NULL,
G_PARAM_READABLE |
G_PARAM_WRITABLE |
@ -539,9 +523,7 @@ g_dbus_proxy_class_init (GDBusProxyClass *klass)
*/
g_object_class_install_property (gobject_class,
PROP_G_DEFAULT_TIMEOUT,
g_param_spec_int ("g-default-timeout",
P_("Default Timeout"),
P_("Timeout for remote method invocation"),
g_param_spec_int ("g-default-timeout", NULL, NULL,
-1,
G_MAXINT,
-1,

View File

@ -298,9 +298,7 @@ g_dbus_server_class_init (GDBusServerClass *klass)
*/
g_object_class_install_property (gobject_class,
PROP_FLAGS,
g_param_spec_flags ("flags",
P_("Flags"),
P_("Flags for the server"),
g_param_spec_flags ("flags", NULL, NULL,
G_TYPE_DBUS_SERVER_FLAGS,
G_DBUS_SERVER_FLAGS_NONE,
G_PARAM_READABLE |
@ -321,9 +319,7 @@ g_dbus_server_class_init (GDBusServerClass *klass)
*/
g_object_class_install_property (gobject_class,
PROP_GUID,
g_param_spec_string ("guid",
P_("GUID"),
P_("The guid of the server"),
g_param_spec_string ("guid", NULL, NULL,
NULL,
G_PARAM_READABLE |
G_PARAM_WRITABLE |
@ -341,9 +337,7 @@ g_dbus_server_class_init (GDBusServerClass *klass)
*/
g_object_class_install_property (gobject_class,
PROP_ADDRESS,
g_param_spec_string ("address",
P_("Address"),
P_("The address to listen on"),
g_param_spec_string ("address", NULL, NULL,
NULL,
G_PARAM_READABLE |
G_PARAM_WRITABLE |
@ -361,9 +355,7 @@ g_dbus_server_class_init (GDBusServerClass *klass)
*/
g_object_class_install_property (gobject_class,
PROP_CLIENT_ADDRESS,
g_param_spec_string ("client-address",
P_("Client Address"),
P_("The address clients can use"),
g_param_spec_string ("client-address", NULL, NULL,
NULL,
G_PARAM_READABLE |
G_PARAM_STATIC_NAME |
@ -379,9 +371,7 @@ g_dbus_server_class_init (GDBusServerClass *klass)
*/
g_object_class_install_property (gobject_class,
PROP_ACTIVE,
g_param_spec_boolean ("active",
P_("Active"),
P_("Whether the server is currently active"),
g_param_spec_boolean ("active", NULL, NULL,
FALSE,
G_PARAM_READABLE |
G_PARAM_STATIC_NAME |
@ -397,9 +387,7 @@ g_dbus_server_class_init (GDBusServerClass *klass)
*/
g_object_class_install_property (gobject_class,
PROP_AUTHENTICATION_OBSERVER,
g_param_spec_object ("authentication-observer",
P_("Authentication Observer"),
P_("Object used to assist in the authentication process"),
g_param_spec_object ("authentication-observer", NULL, NULL,
G_TYPE_DBUS_AUTH_OBSERVER,
G_PARAM_READABLE |
G_PARAM_WRITABLE |

View File

@ -66,9 +66,7 @@ g_debug_controller_default_init (GDebugControllerInterface *iface)
* Since: 2.72
*/
g_object_interface_install_property (iface,
g_param_spec_boolean ("debug-enabled",
"Debug Enabled",
"Whether to expose debug output",
g_param_spec_boolean ("debug-enabled", NULL, NULL,
FALSE,
G_PARAM_READWRITE |
G_PARAM_STATIC_STRINGS |

View File

@ -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 |

View File

@ -1781,7 +1781,7 @@ g_desktop_app_info_class_init (GDesktopAppInfoClass *klass)
*/
g_object_class_install_property (gobject_class,
PROP_FILENAME,
g_param_spec_string ("filename", "Filename", "", NULL,
g_param_spec_string ("filename", NULL, NULL, NULL,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY));
}

View File

@ -70,9 +70,7 @@ g_dtls_client_connection_default_init (GDtlsClientConnectionInterface *iface)
* Deprecated: 2.74: Do not attempt to ignore validation errors.
*/
g_object_interface_install_property (iface,
g_param_spec_flags ("validation-flags",
P_("Validation flags"),
P_("What certificate validation to perform"),
g_param_spec_flags ("validation-flags", NULL, NULL,
G_TYPE_TLS_CERTIFICATE_FLAGS,
G_TLS_CERTIFICATE_VALIDATE_ALL,
G_PARAM_READWRITE |
@ -100,9 +98,7 @@ g_dtls_client_connection_default_init (GDtlsClientConnectionInterface *iface)
* Since: 2.48
*/
g_object_interface_install_property (iface,
g_param_spec_object ("server-identity",
P_("Server identity"),
P_("GSocketConnectable identifying the server"),
g_param_spec_object ("server-identity", NULL, NULL,
G_TYPE_SOCKET_CONNECTABLE,
G_PARAM_READWRITE |
G_PARAM_CONSTRUCT |
@ -122,9 +118,7 @@ g_dtls_client_connection_default_init (GDtlsClientConnectionInterface *iface)
* Since: 2.48
*/
g_object_interface_install_property (iface,
g_param_spec_pointer ("accepted-cas",
P_("Accepted CAs"),
P_("Distinguished names of the CAs the server accepts certificates from"),
g_param_spec_pointer ("accepted-cas", NULL, NULL,
G_PARAM_READABLE |
G_PARAM_STATIC_STRINGS));
}

View File

@ -96,9 +96,7 @@ g_dtls_connection_default_init (GDtlsConnectionInterface *iface)
* Since: 2.48
*/
g_object_interface_install_property (iface,
g_param_spec_object ("base-socket",
P_("Base Socket"),
P_("The GDatagramBased that the connection wraps"),
g_param_spec_object ("base-socket", NULL, NULL,
G_TYPE_DATAGRAM_BASED,
G_PARAM_READWRITE |
G_PARAM_CONSTRUCT_ONLY |
@ -126,9 +124,7 @@ g_dtls_connection_default_init (GDtlsConnectionInterface *iface)
* Since: 2.48
*/
g_object_interface_install_property (iface,
g_param_spec_object ("database",
P_("Database"),
P_("Certificate database to use for looking up or verifying certificates"),
g_param_spec_object ("database", NULL, NULL,
G_TYPE_TLS_DATABASE,
G_PARAM_READWRITE |
G_PARAM_STATIC_STRINGS));
@ -142,9 +138,7 @@ g_dtls_connection_default_init (GDtlsConnectionInterface *iface)
* Since: 2.48
*/
g_object_interface_install_property (iface,
g_param_spec_object ("interaction",
P_("Interaction"),
P_("Optional object for user interaction"),
g_param_spec_object ("interaction", NULL, NULL,
G_TYPE_TLS_INTERACTION,
G_PARAM_READWRITE |
G_PARAM_STATIC_STRINGS));
@ -157,9 +151,7 @@ g_dtls_connection_default_init (GDtlsConnectionInterface *iface)
* Since: 2.48
*/
g_object_interface_install_property (iface,
g_param_spec_boolean ("require-close-notify",
P_("Require close notify"),
P_("Whether to require proper TLS close notification"),
g_param_spec_boolean ("require-close-notify", NULL, NULL,
TRUE,
G_PARAM_READWRITE |
G_PARAM_CONSTRUCT |
@ -175,9 +167,7 @@ g_dtls_connection_default_init (GDtlsConnectionInterface *iface)
* Deprecated: 2.60: The rehandshake mode is ignored.
*/
g_object_interface_install_property (iface,
g_param_spec_enum ("rehandshake-mode",
P_("Rehandshake mode"),
P_("When to allow rehandshaking"),
g_param_spec_enum ("rehandshake-mode", NULL, NULL,
G_TYPE_TLS_REHANDSHAKE_MODE,
G_TLS_REHANDSHAKE_NEVER,
G_PARAM_READWRITE |
@ -193,9 +183,7 @@ g_dtls_connection_default_init (GDtlsConnectionInterface *iface)
* Since: 2.48
*/
g_object_interface_install_property (iface,
g_param_spec_object ("certificate",
P_("Certificate"),
P_("The connections certificate"),
g_param_spec_object ("certificate", NULL, NULL,
G_TYPE_TLS_CERTIFICATE,
G_PARAM_READWRITE |
G_PARAM_STATIC_STRINGS));
@ -212,9 +200,7 @@ g_dtls_connection_default_init (GDtlsConnectionInterface *iface)
* Since: 2.48
*/
g_object_interface_install_property (iface,
g_param_spec_object ("peer-certificate",
P_("Peer Certificate"),
P_("The connections peers certificate"),
g_param_spec_object ("peer-certificate", NULL, NULL,
G_TYPE_TLS_CERTIFICATE,
G_PARAM_READABLE |
G_PARAM_STATIC_STRINGS));
@ -239,9 +225,7 @@ g_dtls_connection_default_init (GDtlsConnectionInterface *iface)
* Since: 2.48
*/
g_object_interface_install_property (iface,
g_param_spec_flags ("peer-certificate-errors",
P_("Peer Certificate Errors"),
P_("Errors found with the peers certificate"),
g_param_spec_flags ("peer-certificate-errors", NULL, NULL,
G_TYPE_TLS_CERTIFICATE_FLAGS,
0,
G_PARAM_READABLE |
@ -256,9 +240,7 @@ g_dtls_connection_default_init (GDtlsConnectionInterface *iface)
* Since: 2.60
*/
g_object_interface_install_property (iface,
g_param_spec_boxed ("advertised-protocols",
P_("Advertised Protocols"),
P_("Application-layer protocols available on this connection"),
g_param_spec_boxed ("advertised-protocols", NULL, NULL,
G_TYPE_STRV,
G_PARAM_READWRITE |
G_PARAM_STATIC_STRINGS));
@ -271,9 +253,7 @@ g_dtls_connection_default_init (GDtlsConnectionInterface *iface)
* Since: 2.60
*/
g_object_interface_install_property (iface,
g_param_spec_string ("negotiated-protocol",
P_("Negotiated Protocol"),
P_("Application-layer protocol negotiated for this connection"),
g_param_spec_string ("negotiated-protocol", NULL, NULL,
NULL,
G_PARAM_READABLE |
G_PARAM_STATIC_STRINGS));
@ -286,9 +266,7 @@ g_dtls_connection_default_init (GDtlsConnectionInterface *iface)
* Since: 2.70
*/
g_object_interface_install_property (iface,
g_param_spec_enum ("protocol-version",
P_("Protocol Version"),
P_("DTLS protocol version negotiated for this connection"),
g_param_spec_enum ("protocol-version", NULL, NULL,
G_TYPE_TLS_PROTOCOL_VERSION,
G_TLS_PROTOCOL_VERSION_UNKNOWN,
G_PARAM_READABLE |
@ -302,9 +280,7 @@ g_dtls_connection_default_init (GDtlsConnectionInterface *iface)
* Since: 2.70
*/
g_object_interface_install_property (iface,
g_param_spec_string ("ciphersuite-name",
P_("Ciphersuite Name"),
P_("Name of ciphersuite negotiated for this connection"),
g_param_spec_string ("ciphersuite-name", NULL, NULL,
NULL,
G_PARAM_READABLE |
G_PARAM_STATIC_STRINGS));

View File

@ -54,9 +54,7 @@ g_dtls_server_connection_default_init (GDtlsServerConnectionInterface *iface)
* Since: 2.48
*/
g_object_interface_install_property (iface,
g_param_spec_enum ("authentication-mode",
P_("Authentication Mode"),
P_("The client authentication mode"),
g_param_spec_enum ("authentication-mode", NULL, NULL,
G_TYPE_TLS_AUTHENTICATION_MODE,
G_TLS_AUTHENTICATION_NONE,
G_PARAM_READWRITE |

View File

@ -134,20 +134,30 @@ g_emblem_class_init (GEmblemClass *klass)
gobject_class->set_property = g_emblem_set_property;
gobject_class->get_property = g_emblem_get_property;
/**
* GEmblem:origin:
*
* The origin the emblem is derived from.
*
* Since: 2.18
*/
g_object_class_install_property (gobject_class,
PROP_ORIGIN,
g_param_spec_enum ("origin",
P_("GEmblems 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));
/**
* GEmblem:icon:
*
* The actual icon of the emblem.
*
* Since: 2.18
*/
g_object_class_install_property (gobject_class,
PROP_ICON,
g_param_spec_object ("icon",
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));

View File

@ -123,10 +123,15 @@ g_emblemed_icon_class_init (GEmblemedIconClass *klass)
gobject_class->set_property = g_emblemed_icon_set_property;
gobject_class->get_property = g_emblemed_icon_get_property;
/**
* GEmblemedIcon:gicon:
*
* The [iface@Gio.Icon] to attach emblems to.
*
* Since: 2.18
*/
properties[PROP_GICON] =
g_param_spec_object ("gicon",
P_("The base GIcon"),
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);

View File

@ -157,10 +157,14 @@ g_file_enumerator_class_init (GFileEnumeratorClass *klass)
klass->close_async = g_file_enumerator_real_close_async;
klass->close_finish = g_file_enumerator_real_close_finish;
/**
* GFileEnumerator:container:
*
* The container that is being enumerated.
*/
g_object_class_install_property
(gobject_class, PROP_CONTAINER,
g_param_spec_object ("container", P_("Container"),
P_("The container that is being enumerated"),
g_param_spec_object ("container", NULL, NULL,
G_TYPE_FILE,
G_PARAM_WRITABLE |
G_PARAM_CONSTRUCT_ONLY |

View File

@ -153,9 +153,7 @@ g_file_icon_class_init (GFileIconClass *klass)
* The file containing the icon.
*/
g_object_class_install_property (gobject_class, PROP_FILE,
g_param_spec_object ("file",
P_("file"),
P_("The file containing the icon"),
g_param_spec_object ("file", NULL, NULL,
G_TYPE_FILE,
G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE | G_PARAM_STATIC_NAME | G_PARAM_STATIC_BLURB | G_PARAM_STATIC_NICK));
}

View File

@ -188,17 +188,23 @@ g_file_monitor_class_init (GFileMonitorClass *klass)
G_TYPE_FROM_CLASS (klass),
_g_cclosure_marshal_VOID__OBJECT_OBJECT_ENUMv);
/**
* GFileMonitor:rate-limit:
*
* The limit of the monitor to watch for changes, in milliseconds.
*/
g_object_class_install_property (object_class, PROP_RATE_LIMIT,
g_param_spec_int ("rate-limit",
P_("Rate limit"),
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));
/**
* GFileMonitor:cancelled:
*
* Whether the monitor has been cancelled.
*/
g_object_class_install_property (object_class, PROP_CANCELLED,
g_param_spec_boolean ("cancelled",
P_("Cancelled"),
P_("Whether the monitor has been cancelled"),
g_param_spec_boolean ("cancelled", NULL, NULL,
FALSE, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
}

View File

@ -89,20 +89,26 @@ g_filter_input_stream_class_init (GFilterInputStreamClass *klass)
istream_class->skip = g_filter_input_stream_skip;
istream_class->close_fn = g_filter_input_stream_close;
/**
* GFilterInputStream:base-stream:
*
* The underlying base stream on which the I/O ops will be done.
*/
g_object_class_install_property (object_class,
PROP_BASE_STREAM,
g_param_spec_object ("base-stream",
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));
/**
* GFilterInputStream:close-base-stream:
*
* Whether the base stream should be closed when the filter stream is closed.
*/
g_object_class_install_property (object_class,
PROP_CLOSE_BASE,
g_param_spec_boolean ("close-base-stream",
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));
}

View File

@ -88,20 +88,26 @@ g_filter_output_stream_class_init (GFilterOutputStreamClass *klass)
ostream_class->flush = g_filter_output_stream_flush;
ostream_class->close_fn = g_filter_output_stream_close;
/**
* GFilterOutputStream:close-base-stream:
*
* The underlying base stream on which the I/O ops will be done.
*/
g_object_class_install_property (object_class,
PROP_BASE_STREAM,
g_param_spec_object ("base-stream",
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));
/**
* GFilterOutputStream:close-base-stream:
*
* Whether the base stream should be closed when the filter stream is closed.
*/
g_object_class_install_property (object_class,
PROP_CLOSE_BASE,
g_param_spec_boolean ("close-base-stream",
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));
}

View File

@ -185,20 +185,30 @@ g_inet_address_class_init (GInetAddressClass *klass)
gobject_class->set_property = g_inet_address_set_property;
gobject_class->get_property = g_inet_address_get_property;
/**
* GInetAddress:family:
*
* The address family (IPv4 or IPv6).
*
* Since: 2.22
*/
g_object_class_install_property (gobject_class, PROP_FAMILY,
g_param_spec_enum ("family",
P_("Address family"),
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 |
G_PARAM_CONSTRUCT_ONLY |
G_PARAM_STATIC_STRINGS));
/**
* GInetAddress:bytes:
*
* The raw address data.
*
* Since: 2.22
*/
g_object_class_install_property (gobject_class, PROP_BYTES,
g_param_spec_pointer ("bytes",
P_("Bytes"),
P_("The raw address data"),
g_param_spec_pointer ("bytes", NULL, NULL,
G_PARAM_READWRITE |
G_PARAM_CONSTRUCT_ONLY |
G_PARAM_STATIC_STRINGS));
@ -212,9 +222,7 @@ g_inet_address_class_init (GInetAddressClass *klass)
* Since: 2.22
*/
g_object_class_install_property (gobject_class, PROP_IS_ANY,
g_param_spec_boolean ("is-any",
P_("Is any"),
P_("Whether this is the \"any\" address for its family"),
g_param_spec_boolean ("is-any", NULL, NULL,
FALSE,
G_PARAM_READABLE |
G_PARAM_STATIC_STRINGS));
@ -228,9 +236,7 @@ g_inet_address_class_init (GInetAddressClass *klass)
* Since: 2.22
*/
g_object_class_install_property (gobject_class, PROP_IS_LINK_LOCAL,
g_param_spec_boolean ("is-link-local",
P_("Is link-local"),
P_("Whether this is a link-local address"),
g_param_spec_boolean ("is-link-local", NULL, NULL,
FALSE,
G_PARAM_READABLE |
G_PARAM_STATIC_STRINGS));
@ -244,9 +250,7 @@ g_inet_address_class_init (GInetAddressClass *klass)
* Since: 2.22
*/
g_object_class_install_property (gobject_class, PROP_IS_LOOPBACK,
g_param_spec_boolean ("is-loopback",
P_("Is loopback"),
P_("Whether this is the loopback address for its family"),
g_param_spec_boolean ("is-loopback", NULL, NULL,
FALSE,
G_PARAM_READABLE |
G_PARAM_STATIC_STRINGS));
@ -260,9 +264,7 @@ g_inet_address_class_init (GInetAddressClass *klass)
* Since: 2.22
*/
g_object_class_install_property (gobject_class, PROP_IS_SITE_LOCAL,
g_param_spec_boolean ("is-site-local",
P_("Is site-local"),
P_("Whether this is a site-local address"),
g_param_spec_boolean ("is-site-local", NULL, NULL,
FALSE,
G_PARAM_READABLE |
G_PARAM_STATIC_STRINGS));
@ -276,9 +278,7 @@ g_inet_address_class_init (GInetAddressClass *klass)
* Since: 2.22
*/
g_object_class_install_property (gobject_class, PROP_IS_MULTICAST,
g_param_spec_boolean ("is-multicast",
P_("Is multicast"),
P_("Whether this is a multicast address"),
g_param_spec_boolean ("is-multicast", NULL, NULL,
FALSE,
G_PARAM_READABLE |
G_PARAM_STATIC_STRINGS));
@ -292,9 +292,7 @@ g_inet_address_class_init (GInetAddressClass *klass)
* Since: 2.22
*/
g_object_class_install_property (gobject_class, PROP_IS_MC_GLOBAL,
g_param_spec_boolean ("is-mc-global",
P_("Is multicast global"),
P_("Whether this is a global multicast address"),
g_param_spec_boolean ("is-mc-global", NULL, NULL,
FALSE,
G_PARAM_READABLE |
G_PARAM_STATIC_STRINGS));
@ -309,9 +307,7 @@ g_inet_address_class_init (GInetAddressClass *klass)
* Since: 2.22
*/
g_object_class_install_property (gobject_class, PROP_IS_MC_LINK_LOCAL,
g_param_spec_boolean ("is-mc-link-local",
P_("Is multicast link-local"),
P_("Whether this is a link-local multicast address"),
g_param_spec_boolean ("is-mc-link-local", NULL, NULL,
FALSE,
G_PARAM_READABLE |
G_PARAM_STATIC_STRINGS));
@ -325,9 +321,7 @@ g_inet_address_class_init (GInetAddressClass *klass)
* Since: 2.22
*/
g_object_class_install_property (gobject_class, PROP_IS_MC_NODE_LOCAL,
g_param_spec_boolean ("is-mc-node-local",
P_("Is multicast node-local"),
P_("Whether this is a node-local multicast address"),
g_param_spec_boolean ("is-mc-node-local", NULL, NULL,
FALSE,
G_PARAM_READABLE |
G_PARAM_STATIC_STRINGS));
@ -341,9 +335,7 @@ g_inet_address_class_init (GInetAddressClass *klass)
* Since: 2.22
*/
g_object_class_install_property (gobject_class, PROP_IS_MC_ORG_LOCAL,
g_param_spec_boolean ("is-mc-org-local",
P_("Is multicast org-local"),
P_("Whether this is an organization-local multicast address"),
g_param_spec_boolean ("is-mc-org-local", NULL, NULL,
FALSE,
G_PARAM_READABLE |
G_PARAM_STATIC_STRINGS));
@ -357,9 +349,7 @@ g_inet_address_class_init (GInetAddressClass *klass)
* Since: 2.22
*/
g_object_class_install_property (gobject_class, PROP_IS_MC_SITE_LOCAL,
g_param_spec_boolean ("is-mc-site-local",
P_("Is multicast site-local"),
P_("Whether this is a site-local multicast address"),
g_param_spec_boolean ("is-mc-site-local", NULL, NULL,
FALSE,
G_PARAM_READABLE |
G_PARAM_STATIC_STRINGS));

View File

@ -135,25 +135,42 @@ g_inet_address_mask_class_init (GInetAddressMaskClass *klass)
gobject_class->get_property = g_inet_address_mask_get_property;
gobject_class->dispose = g_inet_address_mask_dispose;
/**
* GInetAddressMask:family:
*
* The address family (IPv4 or IPv6).
*
* Since: 2.32
*/
g_object_class_install_property (gobject_class, PROP_FAMILY,
g_param_spec_enum ("family",
P_("Address family"),
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));
/**
* GInetAddressMask:address:
*
* The base address.
*
* Since: 2.32
*/
g_object_class_install_property (gobject_class, PROP_ADDRESS,
g_param_spec_object ("address",
P_("Address"),
P_("The base address"),
g_param_spec_object ("address", NULL, NULL,
G_TYPE_INET_ADDRESS,
G_PARAM_READWRITE |
G_PARAM_STATIC_STRINGS));
/**
* GInetAddressMask:length:
*
* The prefix length, in bytes.
*
* Since: 2.32
*/
g_object_class_install_property (gobject_class, PROP_LENGTH,
g_param_spec_uint ("length",
P_("Length"),
P_("The prefix length"),
g_param_spec_uint ("length", NULL, NULL,
0, 128, 0,
G_PARAM_READWRITE |
G_PARAM_STATIC_STRINGS));

View File

@ -247,19 +247,29 @@ g_inet_socket_address_class_init (GInetSocketAddressClass *klass)
gsocketaddress_class->to_native = g_inet_socket_address_to_native;
gsocketaddress_class->get_native_size = g_inet_socket_address_get_native_size;
/**
* GInetSocketAddress:address:
*
* The address.
*
* Since: 2.22
*/
g_object_class_install_property (gobject_class, PROP_ADDRESS,
g_param_spec_object ("address",
P_("Address"),
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));
/**
* GInetSocketAddress:port:
*
* The port.
*
* Since: 2.22
*/
g_object_class_install_property (gobject_class, PROP_PORT,
g_param_spec_uint ("port",
P_("Port"),
P_("The port"),
g_param_spec_uint ("port", NULL, NULL,
0,
65535,
0,
@ -275,9 +285,7 @@ g_inet_socket_address_class_init (GInetSocketAddressClass *klass)
* Since: 2.32
*/
g_object_class_install_property (gobject_class, PROP_FLOWINFO,
g_param_spec_uint ("flowinfo",
P_("Flow info"),
P_("IPv6 flow info"),
g_param_spec_uint ("flowinfo", NULL, NULL,
0,
G_MAXUINT32,
0,
@ -286,16 +294,14 @@ g_inet_socket_address_class_init (GInetSocketAddressClass *klass)
G_PARAM_STATIC_STRINGS));
/**
* GInetSocketAddress:scope_id:
* GInetSocketAddress:scope-id:
*
* The `sin6_scope_id` field, for IPv6 addresses.
*
* 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,

View File

@ -171,23 +171,39 @@ g_io_stream_class_init (GIOStreamClass *klass)
klass->close_async = g_io_stream_real_close_async;
klass->close_finish = g_io_stream_real_close_finish;
/**
* GIOStream:closed:
*
* Whether the stream is closed.
*
* Since: 2.22
*/
g_object_class_install_property (gobject_class, PROP_CLOSED,
g_param_spec_boolean ("closed",
P_("Closed"),
P_("Is the stream closed"),
g_param_spec_boolean ("closed", NULL, NULL,
FALSE,
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
/**
* GIOStream:input-stream:
*
* The [class@Gio.InputStream] to read from.
*
* Since: 2.22
*/
g_object_class_install_property (gobject_class, PROP_INPUT_STREAM,
g_param_spec_object ("input-stream",
P_("Input stream"),
P_("The GInputStream to read from"),
g_param_spec_object ("input-stream", NULL, NULL,
G_TYPE_INPUT_STREAM,
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
/**
* GIOStream:output-stream:
*
* The [class@Gio.OutputStream] to write to.
*
* Since: 2.22
*/
g_object_class_install_property (gobject_class, PROP_OUTPUT_STREAM,
g_param_spec_object ("output-stream",
P_("Output stream"),
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));
}

View File

@ -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));

View File

@ -91,10 +91,10 @@ G_DEFINE_INTERFACE (GListModel, g_list_model, G_TYPE_OBJECT)
*
* ```c
* properties[PROP_ITEM_TYPE] =
* g_param_spec_gtype ("item-type", "", "", G_TYPE_OBJECT,
* g_param_spec_gtype ("item-type", NULL, NULL, G_TYPE_OBJECT,
* G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS);
* properties[PROP_N_ITEMS] =
* g_param_spec_uint ("n-items", "", "", 0, G_MAXUINT, 0,
* g_param_spec_uint ("n-items", NULL, NULL, 0, G_MAXUINT, 0,
* G_PARAM_READABLE | G_PARAM_STATIC_STRINGS);
* ```
*/

View File

@ -155,7 +155,7 @@ g_list_store_class_init (GListStoreClass *klass)
* Since: 2.44
**/
properties[PROP_ITEM_TYPE] =
g_param_spec_gtype ("item-type", "", "", G_TYPE_OBJECT,
g_param_spec_gtype ("item-type", NULL, NULL, G_TYPE_OBJECT,
G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS);
/**
@ -166,7 +166,7 @@ g_list_store_class_init (GListStoreClass *klass)
* Since: 2.74
**/
properties[PROP_N_ITEMS] =
g_param_spec_uint ("n-items", "", "", 0, G_MAXUINT, 0,
g_param_spec_uint ("n-items", NULL, NULL, 0, G_MAXUINT, 0,
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS);
g_object_class_install_properties (object_class, N_PROPERTIES, properties);

View File

@ -151,9 +151,7 @@ g_memory_output_stream_class_init (GMemoryOutputStreamClass *klass)
**/
g_object_class_install_property (gobject_class,
PROP_DATA,
g_param_spec_pointer ("data",
P_("Data Buffer"),
P_("Pointer to buffer where data will be written."),
g_param_spec_pointer ("data", NULL, NULL,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY |
G_PARAM_STATIC_STRINGS));
@ -166,9 +164,7 @@ g_memory_output_stream_class_init (GMemoryOutputStreamClass *klass)
**/
g_object_class_install_property (gobject_class,
PROP_SIZE,
g_param_spec_ulong ("size",
P_("Data Buffer Size"),
P_("Current size of the data buffer."),
g_param_spec_ulong ("size", NULL, NULL,
0, G_MAXULONG, 0,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY |
G_PARAM_STATIC_STRINGS));
@ -182,9 +178,7 @@ g_memory_output_stream_class_init (GMemoryOutputStreamClass *klass)
**/
g_object_class_install_property (gobject_class,
PROP_DATA_SIZE,
g_param_spec_ulong ("data-size",
P_("Data Size"),
P_("Size of data written to the buffer."),
g_param_spec_ulong ("data-size", NULL, NULL,
0, G_MAXULONG, 0,
G_PARAM_READABLE |
G_PARAM_STATIC_STRINGS));
@ -198,9 +192,7 @@ g_memory_output_stream_class_init (GMemoryOutputStreamClass *klass)
**/
g_object_class_install_property (gobject_class,
PROP_REALLOC_FUNCTION,
g_param_spec_pointer ("realloc-function",
P_("Memory Reallocation Function"),
P_("Function with realloc semantics called to enlarge the buffer."),
g_param_spec_pointer ("realloc-function", NULL, NULL,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY |
G_PARAM_STATIC_STRINGS));
@ -213,9 +205,7 @@ g_memory_output_stream_class_init (GMemoryOutputStreamClass *klass)
**/
g_object_class_install_property (gobject_class,
PROP_DESTROY_FUNCTION,
g_param_spec_pointer ("destroy-function",
P_("Destroy Notification Function"),
P_("Function called with the buffer as argument when the stream is destroyed."),
g_param_spec_pointer ("destroy-function", NULL, NULL,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY |
G_PARAM_STATIC_STRINGS));
}

View File

@ -478,9 +478,7 @@ g_mount_operation_class_init (GMountOperationClass *klass)
*/
g_object_class_install_property (object_class,
PROP_USERNAME,
g_param_spec_string ("username",
P_("Username"),
P_("The user name"),
g_param_spec_string ("username", NULL, NULL,
NULL,
G_PARAM_READWRITE|
G_PARAM_STATIC_NAME|G_PARAM_STATIC_NICK|G_PARAM_STATIC_BLURB));
@ -493,9 +491,7 @@ g_mount_operation_class_init (GMountOperationClass *klass)
*/
g_object_class_install_property (object_class,
PROP_PASSWORD,
g_param_spec_string ("password",
P_("Password"),
P_("The password"),
g_param_spec_string ("password", NULL, NULL,
NULL,
G_PARAM_READWRITE|
G_PARAM_STATIC_NAME|G_PARAM_STATIC_NICK|G_PARAM_STATIC_BLURB));
@ -507,9 +503,7 @@ g_mount_operation_class_init (GMountOperationClass *klass)
*/
g_object_class_install_property (object_class,
PROP_ANONYMOUS,
g_param_spec_boolean ("anonymous",
P_("Anonymous"),
P_("Whether to use an anonymous user"),
g_param_spec_boolean ("anonymous", NULL, NULL,
FALSE,
G_PARAM_READWRITE|
G_PARAM_STATIC_NAME|G_PARAM_STATIC_NICK|G_PARAM_STATIC_BLURB));
@ -521,9 +515,7 @@ g_mount_operation_class_init (GMountOperationClass *klass)
*/
g_object_class_install_property (object_class,
PROP_DOMAIN,
g_param_spec_string ("domain",
P_("Domain"),
P_("The domain of the mount operation"),
g_param_spec_string ("domain", NULL, NULL,
NULL,
G_PARAM_READWRITE|
G_PARAM_STATIC_NAME|G_PARAM_STATIC_NICK|G_PARAM_STATIC_BLURB));
@ -535,9 +527,7 @@ g_mount_operation_class_init (GMountOperationClass *klass)
*/
g_object_class_install_property (object_class,
PROP_PASSWORD_SAVE,
g_param_spec_enum ("password-save",
P_("Password save"),
P_("How passwords should be saved"),
g_param_spec_enum ("password-save", NULL, NULL,
G_TYPE_PASSWORD_SAVE,
G_PASSWORD_SAVE_NEVER,
G_PARAM_READWRITE|
@ -551,9 +541,7 @@ g_mount_operation_class_init (GMountOperationClass *klass)
*/
g_object_class_install_property (object_class,
PROP_CHOICE,
g_param_spec_int ("choice",
P_("Choice"),
P_("The users choice"),
g_param_spec_int ("choice", NULL, NULL,
0, G_MAXINT, 0,
G_PARAM_READWRITE|
G_PARAM_STATIC_NAME|G_PARAM_STATIC_NICK|G_PARAM_STATIC_BLURB));
@ -568,9 +556,7 @@ g_mount_operation_class_init (GMountOperationClass *klass)
*/
g_object_class_install_property (object_class,
PROP_IS_TCRYPT_HIDDEN_VOLUME,
g_param_spec_boolean ("is-tcrypt-hidden-volume",
P_("TCRYPT Hidden Volume"),
P_("Whether to unlock a TCRYPT hidden volume. See https://www.veracrypt.fr/en/Hidden%20Volume.html."),
g_param_spec_boolean ("is-tcrypt-hidden-volume", NULL, NULL,
FALSE,
G_PARAM_READWRITE|
G_PARAM_STATIC_NAME|G_PARAM_STATIC_NICK|G_PARAM_STATIC_BLURB));
@ -588,9 +574,7 @@ g_mount_operation_class_init (GMountOperationClass *klass)
*/
g_object_class_install_property (object_class,
PROP_IS_TCRYPT_SYSTEM_VOLUME,
g_param_spec_boolean ("is-tcrypt-system-volume",
P_("TCRYPT System Volume"),
P_("Whether to unlock a TCRYPT system volume. Only supported for unlocking Windows system volumes. See https://www.veracrypt.fr/en/System%20Encryption.html."),
g_param_spec_boolean ("is-tcrypt-system-volume", NULL, NULL,
FALSE,
G_PARAM_READWRITE|
G_PARAM_STATIC_NAME|G_PARAM_STATIC_NICK|G_PARAM_STATIC_BLURB));
@ -605,9 +589,7 @@ g_mount_operation_class_init (GMountOperationClass *klass)
*/
g_object_class_install_property (object_class,
PROP_PIM,
g_param_spec_uint ("pim",
P_("PIM"),
P_("The VeraCrypt PIM value"),
g_param_spec_uint ("pim", NULL, NULL,
0, G_MAXUINT, 0,
G_PARAM_READWRITE|
G_PARAM_STATIC_NAME|G_PARAM_STATIC_NICK|G_PARAM_STATIC_BLURB));

View File

@ -116,27 +116,43 @@ g_network_address_class_init (GNetworkAddressClass *klass)
gobject_class->get_property = g_network_address_get_property;
gobject_class->finalize = g_network_address_finalize;
/**
* GNetworkAddress:hostname:
*
* Hostname to resolve.
*
* Since: 2.22
*/
g_object_class_install_property (gobject_class, PROP_HOSTNAME,
g_param_spec_string ("hostname",
P_("Hostname"),
P_("Hostname to resolve"),
g_param_spec_string ("hostname", NULL, NULL,
NULL,
G_PARAM_READWRITE |
G_PARAM_CONSTRUCT_ONLY |
G_PARAM_STATIC_STRINGS));
/**
* GNetworkAddress:port:
*
* Network port.
*
* Since: 2.22
*/
g_object_class_install_property (gobject_class, PROP_PORT,
g_param_spec_uint ("port",
P_("Port"),
P_("Network port"),
g_param_spec_uint ("port", NULL, NULL,
0, 65535, 0,
G_PARAM_READWRITE |
G_PARAM_CONSTRUCT_ONLY |
G_PARAM_STATIC_STRINGS));
/**
* GNetworkAddress:scheme:
*
* URI scheme.
*
* Since: 2.22
*/
g_object_class_install_property (gobject_class, PROP_SCHEME,
g_param_spec_string ("scheme",
P_("Scheme"),
P_("URI Scheme"),
g_param_spec_string ("scheme", NULL, NULL,
NULL,
G_PARAM_READWRITE |
G_PARAM_CONSTRUCT_ONLY |

View File

@ -352,9 +352,7 @@ g_network_monitor_default_init (GNetworkMonitorInterface *iface)
* Since: 2.32
*/
g_object_interface_install_property (iface,
g_param_spec_boolean ("network-available",
P_("Network available"),
P_("Whether the network is available"),
g_param_spec_boolean ("network-available", NULL, NULL,
FALSE,
G_PARAM_READABLE |
G_PARAM_STATIC_STRINGS));
@ -387,9 +385,7 @@ g_network_monitor_default_init (GNetworkMonitorInterface *iface)
* Since: 2.46
*/
g_object_interface_install_property (iface,
g_param_spec_boolean ("network-metered",
P_("Network metered"),
P_("Whether the network is metered"),
g_param_spec_boolean ("network-metered", NULL, NULL,
FALSE,
G_PARAM_READABLE |
G_PARAM_STATIC_STRINGS));
@ -404,9 +400,7 @@ g_network_monitor_default_init (GNetworkMonitorInterface *iface)
* Since: 2.44
*/
g_object_interface_install_property (iface,
g_param_spec_enum ("connectivity",
P_("Network connectivity"),
P_("Level of network connectivity"),
g_param_spec_enum ("connectivity", NULL, NULL,
G_TYPE_NETWORK_CONNECTIVITY,
G_NETWORK_CONNECTIVITY_FULL,
G_PARAM_READABLE |

View File

@ -114,34 +114,57 @@ g_network_service_class_init (GNetworkServiceClass *klass)
gobject_class->get_property = g_network_service_get_property;
gobject_class->finalize = g_network_service_finalize;
/**
* GNetworkService:service:
*
* Service name, for example `ldap`.
*
* Since: 2.22
*/
g_object_class_install_property (gobject_class, PROP_SERVICE,
g_param_spec_string ("service",
P_("Service"),
P_("Service name, eg \"ldap\""),
g_param_spec_string ("service", NULL, NULL,
NULL,
G_PARAM_READWRITE |
G_PARAM_CONSTRUCT_ONLY |
G_PARAM_STATIC_STRINGS));
/**
* GNetworkService:protocol:
*
* Network protocol, for example `tcp`.
*
* Since: 2.22
*/
g_object_class_install_property (gobject_class, PROP_PROTOCOL,
g_param_spec_string ("protocol",
P_("Protocol"),
P_("Network protocol, eg \"tcp\""),
g_param_spec_string ("protocol", NULL, NULL,
NULL,
G_PARAM_READWRITE |
G_PARAM_CONSTRUCT_ONLY |
G_PARAM_STATIC_STRINGS));
/**
* GNetworkService:domain:
*
* Network domain, for example `example.com`.
*
* Since: 2.22
*/
g_object_class_install_property (gobject_class, PROP_DOMAIN,
g_param_spec_string ("domain",
P_("Domain"),
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));
/**
* GNetworkService:scheme:
*
* Network scheme (default is to use service).
*
* Since: 2.22
*/
g_object_class_install_property (gobject_class, PROP_DOMAIN,
g_param_spec_string ("scheme",
P_("Scheme"),
P_("Network scheme (default is to use service)"),
g_param_spec_string ("scheme", NULL, NULL,
NULL,
G_PARAM_READWRITE |
G_PARAM_STATIC_STRINGS));

View File

@ -433,9 +433,7 @@ g_permission_class_init (GPermissionClass *class)
* @permission represents the permission to perform.
*/
g_object_class_install_property (object_class, PROP_ALLOWED,
g_param_spec_boolean ("allowed",
P_("Is allowed"),
P_("If the caller is allowed to perform the action"),
g_param_spec_boolean ("allowed", NULL, NULL,
FALSE,
G_PARAM_STATIC_STRINGS | G_PARAM_READABLE));
@ -446,9 +444,7 @@ g_permission_class_init (GPermissionClass *class)
* g_permission_acquire().
*/
g_object_class_install_property (object_class, PROP_CAN_ACQUIRE,
g_param_spec_boolean ("can-acquire",
P_("Can acquire"),
P_("If calling g_permission_acquire() makes sense"),
g_param_spec_boolean ("can-acquire", NULL, NULL,
FALSE,
G_PARAM_STATIC_STRINGS | G_PARAM_READABLE));
@ -459,9 +455,7 @@ g_permission_class_init (GPermissionClass *class)
* g_permission_release().
*/
g_object_class_install_property (object_class, PROP_CAN_RELEASE,
g_param_spec_boolean ("can-release",
P_("Can release"),
P_("If calling g_permission_release() makes sense"),
g_param_spec_boolean ("can-release", NULL, NULL,
FALSE,
G_PARAM_STATIC_STRINGS | G_PARAM_READABLE));
}

View File

@ -124,9 +124,7 @@ g_power_profile_monitor_default_init (GPowerProfileMonitorInterface *iface)
* Since: 2.70
*/
g_object_interface_install_property (iface,
g_param_spec_boolean ("power-saver-enabled",
"power-saver-enabled",
"Power Saver Enabled",
g_param_spec_boolean ("power-saver-enabled", NULL, NULL,
FALSE,
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY));
}

View File

@ -467,9 +467,7 @@ g_property_action_class_init (GPropertyActionClass *class)
* Since: 2.38
**/
g_object_class_install_property (object_class, PROP_NAME,
g_param_spec_string ("name",
P_("Action Name"),
P_("The name used to invoke the action"),
g_param_spec_string ("name", NULL, NULL,
NULL,
G_PARAM_READWRITE |
G_PARAM_CONSTRUCT_ONLY |
@ -484,9 +482,7 @@ g_property_action_class_init (GPropertyActionClass *class)
* Since: 2.38
**/
g_object_class_install_property (object_class, PROP_PARAMETER_TYPE,
g_param_spec_boxed ("parameter-type",
P_("Parameter Type"),
P_("The type of GVariant passed to activate()"),
g_param_spec_boxed ("parameter-type", NULL, NULL,
G_TYPE_VARIANT_TYPE,
G_PARAM_READABLE |
G_PARAM_STATIC_STRINGS));
@ -502,9 +498,7 @@ g_property_action_class_init (GPropertyActionClass *class)
* Since: 2.38
**/
g_object_class_install_property (object_class, PROP_ENABLED,
g_param_spec_boolean ("enabled",
P_("Enabled"),
P_("If the action can be activated"),
g_param_spec_boolean ("enabled", NULL, NULL,
TRUE,
G_PARAM_READABLE |
G_PARAM_STATIC_STRINGS));
@ -518,9 +512,7 @@ g_property_action_class_init (GPropertyActionClass *class)
* Since: 2.38
**/
g_object_class_install_property (object_class, PROP_STATE_TYPE,
g_param_spec_boxed ("state-type",
P_("State Type"),
P_("The type of the state kept by the action"),
g_param_spec_boxed ("state-type", NULL, NULL,
G_TYPE_VARIANT_TYPE,
G_PARAM_READABLE |
G_PARAM_STATIC_STRINGS));
@ -533,9 +525,7 @@ g_property_action_class_init (GPropertyActionClass *class)
* Since: 2.38
**/
g_object_class_install_property (object_class, PROP_STATE,
g_param_spec_variant ("state",
P_("State"),
P_("The state the action is in"),
g_param_spec_variant ("state", NULL, NULL,
G_VARIANT_TYPE_ANY,
NULL,
G_PARAM_READABLE |
@ -551,9 +541,7 @@ g_property_action_class_init (GPropertyActionClass *class)
* Since: 2.38
**/
g_object_class_install_property (object_class, PROP_OBJECT,
g_param_spec_object ("object",
P_("Object"),
P_("The object with the property to wrap"),
g_param_spec_object ("object", NULL, NULL,
G_TYPE_OBJECT,
G_PARAM_WRITABLE |
G_PARAM_CONSTRUCT_ONLY |
@ -570,9 +558,7 @@ g_property_action_class_init (GPropertyActionClass *class)
* Since: 2.38
**/
g_object_class_install_property (object_class, PROP_PROPERTY_NAME,
g_param_spec_string ("property-name",
P_("Property name"),
P_("The name of the property to wrap"),
g_param_spec_string ("property-name", NULL, NULL,
NULL,
G_PARAM_WRITABLE |
G_PARAM_CONSTRUCT_ONLY |
@ -587,9 +573,7 @@ g_property_action_class_init (GPropertyActionClass *class)
* Since: 2.46
*/
g_object_class_install_property (object_class, PROP_INVERT_BOOLEAN,
g_param_spec_boolean ("invert-boolean",
P_("Invert boolean"),
P_("Whether to invert the value of a boolean property"),
g_param_spec_boolean ("invert-boolean", NULL, NULL,
FALSE,
G_PARAM_READWRITE |
G_PARAM_CONSTRUCT_ONLY |

View File

@ -186,31 +186,46 @@ g_proxy_address_class_init (GProxyAddressClass *klass)
gobject_class->set_property = g_proxy_address_set_property;
gobject_class->get_property = g_proxy_address_get_property;
/**
* GProxyAddress:protocol:
*
* The proxy protocol.
*
* Since: 2.26
*/
g_object_class_install_property (gobject_class,
PROP_PROTOCOL,
g_param_spec_string ("protocol",
P_("Protocol"),
P_("The proxy protocol"),
g_param_spec_string ("protocol", NULL, NULL,
NULL,
G_PARAM_READWRITE |
G_PARAM_CONSTRUCT_ONLY |
G_PARAM_STATIC_STRINGS));
/**
* GProxyAddress:username:
*
* The proxy username.
*
* Since: 2.26
*/
g_object_class_install_property (gobject_class,
PROP_USERNAME,
g_param_spec_string ("username",
P_("Username"),
P_("The proxy username"),
g_param_spec_string ("username", NULL, NULL,
NULL,
G_PARAM_READWRITE |
G_PARAM_CONSTRUCT_ONLY |
G_PARAM_STATIC_STRINGS));
/**
* GProxyAddress:password:
*
* The proxy password.
*
* Since: 2.26
*/
g_object_class_install_property (gobject_class,
PROP_PASSWORD,
g_param_spec_string ("password",
P_("Password"),
P_("The proxy password"),
g_param_spec_string ("password", NULL, NULL,
NULL,
G_PARAM_READWRITE |
G_PARAM_CONSTRUCT_ONLY |
@ -226,29 +241,37 @@ 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 |
G_PARAM_STATIC_STRINGS));
/**
* GProxyAddress:destination-hostname:
*
* The proxy destination hostname.
*
* Since: 2.26
*/
g_object_class_install_property (gobject_class,
PROP_DESTINATION_HOSTNAME,
g_param_spec_string ("destination-hostname",
P_("Destination Hostname"),
P_("The proxy destination hostname"),
g_param_spec_string ("destination-hostname", NULL, NULL,
NULL,
G_PARAM_READWRITE |
G_PARAM_CONSTRUCT_ONLY |
G_PARAM_STATIC_STRINGS));
/**
* GProxyAddress:destination-port:
*
* The proxy destination port.
*
* Since: 2.26
*/
g_object_class_install_property (gobject_class,
PROP_DESTINATION_PORT,
g_param_spec_uint ("destination-port",
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 |
@ -264,9 +287,7 @@ g_proxy_address_class_init (GProxyAddressClass *klass)
*/
g_object_class_install_property (gobject_class,
PROP_URI,
g_param_spec_string ("uri",
P_("URI"),
P_("The proxys URI"),
g_param_spec_string ("uri", NULL, NULL,
NULL,
G_PARAM_READWRITE |
G_PARAM_CONSTRUCT_ONLY |

View File

@ -750,11 +750,14 @@ g_proxy_address_enumerator_class_init (GProxyAddressEnumeratorClass *proxy_enume
enumerator_class->next_async = g_proxy_address_enumerator_next_async;
enumerator_class->next_finish = g_proxy_address_enumerator_next_finish;
/**
* GProxyAddressEnumerator:uri:
*
* The destination URI. Use `none://` for a generic socket.
*/
g_object_class_install_property (object_class,
PROP_URI,
g_param_spec_string ("uri",
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 |
@ -770,19 +773,20 @@ 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 |
G_PARAM_STATIC_STRINGS));
/**
* GProxyAddressEnumerator:connectable:
*
* The connectable being enumerated.
*/
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 |
@ -797,9 +801,7 @@ g_proxy_address_enumerator_class_init (GProxyAddressEnumeratorClass *proxy_enume
*/
g_object_class_install_property (object_class,
PROP_PROXY_RESOLVER,
g_param_spec_object ("proxy-resolver",
P_("Proxy resolver"),
P_("The proxy resolver to use."),
g_param_spec_object ("proxy-resolver", NULL, NULL,
G_TYPE_PROXY_RESOLVER,
G_PARAM_READWRITE |
G_PARAM_CONSTRUCT |

View File

@ -236,9 +236,7 @@ g_resolver_class_init (GResolverClass *resolver_class)
* Since: 2.78
*/
props[PROP_TIMEOUT] =
g_param_spec_uint ("timeout",
P_("Timeout"),
P_("Timeout (ms) applied to all resolver lookups"),
g_param_spec_uint ("timeout", NULL, NULL,
0, G_MAXUINT, 0,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);

View File

@ -841,9 +841,7 @@ g_settings_class_init (GSettingsClass *class)
* The name of the context that the settings are stored in.
*/
g_object_class_install_property (object_class, PROP_BACKEND,
g_param_spec_object ("backend",
P_("GSettingsBackend"),
P_("The GSettingsBackend for this settings object"),
g_param_spec_object ("backend", NULL, NULL,
G_TYPE_SETTINGS_BACKEND, G_PARAM_CONSTRUCT_ONLY |
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
@ -859,9 +857,7 @@ g_settings_class_init (GSettingsClass *class)
* than the schema itself. Take care.
*/
g_object_class_install_property (object_class, PROP_SCHEMA,
g_param_spec_boxed ("settings-schema",
P_("schema"),
P_("The GSettingsSchema for this settings object"),
g_param_spec_boxed ("settings-schema", NULL, NULL,
G_TYPE_SETTINGS_SCHEMA,
G_PARAM_CONSTRUCT_ONLY |
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
@ -883,9 +879,7 @@ g_settings_class_init (GSettingsClass *class)
* version, this property may instead refer to a #GSettingsSchema.
*/
g_object_class_install_property (object_class, PROP_SCHEMA_ID,
g_param_spec_string ("schema",
P_("Schema name"),
P_("The name of the schema for this settings object"),
g_param_spec_string ("schema", NULL, NULL,
NULL,
G_PARAM_CONSTRUCT_ONLY |
G_PARAM_DEPRECATED | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
@ -897,9 +891,7 @@ g_settings_class_init (GSettingsClass *class)
* for this #GSettings object.
*/
g_object_class_install_property (object_class, PROP_SCHEMA_ID,
g_param_spec_string ("schema-id",
P_("Schema name"),
P_("The name of the schema for this settings object"),
g_param_spec_string ("schema-id", NULL, NULL,
NULL,
G_PARAM_CONSTRUCT_ONLY |
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
@ -910,9 +902,7 @@ g_settings_class_init (GSettingsClass *class)
* The path within the backend where the settings are stored.
*/
g_object_class_install_property (object_class, PROP_PATH,
g_param_spec_string ("path",
P_("Base path"),
P_("The path within the backend where the settings are"),
g_param_spec_string ("path", NULL, NULL,
NULL,
G_PARAM_CONSTRUCT_ONLY |
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
@ -924,9 +914,7 @@ g_settings_class_init (GSettingsClass *class)
* changes that will be applied when g_settings_apply() is called.
*/
g_object_class_install_property (object_class, PROP_HAS_UNAPPLIED,
g_param_spec_boolean ("has-unapplied",
P_("Has unapplied changes"),
P_("TRUE if there are outstanding changes to apply()"),
g_param_spec_boolean ("has-unapplied", NULL, NULL,
FALSE,
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
@ -939,9 +927,7 @@ g_settings_class_init (GSettingsClass *class)
* Since: 2.28
*/
g_object_class_install_property (object_class, PROP_DELAY_APPLY,
g_param_spec_boolean ("delay-apply",
P_("Delay-apply mode"),
P_("Whether this settings object is in “delay-apply” mode"),
g_param_spec_boolean ("delay-apply", NULL, NULL,
FALSE,
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
}

View File

@ -450,9 +450,7 @@ g_simple_action_class_init (GSimpleActionClass *class)
* Since: 2.28
**/
g_object_class_install_property (object_class, PROP_NAME,
g_param_spec_string ("name",
P_("Action Name"),
P_("The name used to invoke the action"),
g_param_spec_string ("name", NULL, NULL,
NULL,
G_PARAM_READWRITE |
G_PARAM_CONSTRUCT_ONLY |
@ -467,9 +465,7 @@ g_simple_action_class_init (GSimpleActionClass *class)
* Since: 2.28
**/
g_object_class_install_property (object_class, PROP_PARAMETER_TYPE,
g_param_spec_boxed ("parameter-type",
P_("Parameter Type"),
P_("The type of GVariant passed to activate()"),
g_param_spec_boxed ("parameter-type", NULL, NULL,
G_TYPE_VARIANT_TYPE,
G_PARAM_READWRITE |
G_PARAM_CONSTRUCT_ONLY |
@ -486,9 +482,7 @@ g_simple_action_class_init (GSimpleActionClass *class)
* Since: 2.28
**/
g_object_class_install_property (object_class, PROP_ENABLED,
g_param_spec_boolean ("enabled",
P_("Enabled"),
P_("If the action can be activated"),
g_param_spec_boolean ("enabled", NULL, NULL,
TRUE,
G_PARAM_READWRITE |
G_PARAM_STATIC_STRINGS));
@ -502,9 +496,7 @@ g_simple_action_class_init (GSimpleActionClass *class)
* Since: 2.28
**/
g_object_class_install_property (object_class, PROP_STATE_TYPE,
g_param_spec_boxed ("state-type",
P_("State Type"),
P_("The type of the state kept by the action"),
g_param_spec_boxed ("state-type", NULL, NULL,
G_TYPE_VARIANT_TYPE,
G_PARAM_READABLE |
G_PARAM_STATIC_STRINGS));
@ -517,9 +509,7 @@ g_simple_action_class_init (GSimpleActionClass *class)
* Since: 2.28
**/
g_object_class_install_property (object_class, PROP_STATE,
g_param_spec_variant ("state",
P_("State"),
P_("The state the action is in"),
g_param_spec_variant ("state", NULL, NULL,
G_VARIANT_TYPE_ANY,
NULL,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT |

View File

@ -159,12 +159,12 @@ g_simple_io_stream_class_init (GSimpleIOStreamClass *class)
/**
* GSimpleIOStream:input-stream:
*
* The [class@Gio.InputStream] to read from.
*
* Since: 2.44
*/
g_object_class_install_property (gobject_class, PROP_INPUT_STREAM,
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 |
@ -173,12 +173,12 @@ g_simple_io_stream_class_init (GSimpleIOStreamClass *class)
/**
* GSimpleIOStream:output-stream:
*
* The [class@Gio.OutputStream] to write to.
*
* Since: 2.44
*/
g_object_class_install_property (gobject_class, PROP_OUTPUT_STREAM,
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 |

View File

@ -425,9 +425,7 @@ g_simple_proxy_resolver_class_init (GSimpleProxyResolverClass *resolver_class)
* to all three of the socks5, socks4a, and socks4 proxy types.
*/
g_object_class_install_property (object_class, PROP_DEFAULT_PROXY,
g_param_spec_string ("default-proxy",
P_("Default proxy"),
P_("The default proxy URI"),
g_param_spec_string ("default-proxy", NULL, NULL,
NULL,
G_PARAM_READWRITE |
G_PARAM_STATIC_STRINGS));
@ -471,9 +469,7 @@ g_simple_proxy_resolver_class_init (GSimpleProxyResolverClass *resolver_class)
* commonly used by other applications.
*/
g_object_class_install_property (object_class, PROP_IGNORE_HOSTS,
g_param_spec_boxed ("ignore-hosts",
P_("Ignore hosts"),
P_("Hosts that will not use the proxy"),
g_param_spec_boxed ("ignore-hosts", NULL, NULL,
G_TYPE_STRV,
G_PARAM_READWRITE |
G_PARAM_STATIC_STRINGS));

View File

@ -952,40 +952,60 @@ g_socket_class_init (GSocketClass *klass)
gobject_class->set_property = g_socket_set_property;
gobject_class->get_property = g_socket_get_property;
/**
* GSocket:family:
*
* The sockets address family.
*
* Since: 2.22
*/
g_object_class_install_property (gobject_class, PROP_FAMILY,
g_param_spec_enum ("family",
P_("Socket family"),
P_("The sockets address family"),
g_param_spec_enum ("family", NULL, NULL,
G_TYPE_SOCKET_FAMILY,
G_SOCKET_FAMILY_INVALID,
G_PARAM_CONSTRUCT_ONLY |
G_PARAM_READWRITE |
G_PARAM_STATIC_STRINGS));
/**
* GSocket:type:
*
* The sockets type.
*
* Since: 2.22
*/
g_object_class_install_property (gobject_class, PROP_TYPE,
g_param_spec_enum ("type",
P_("Socket type"),
P_("The sockets type"),
g_param_spec_enum ("type", NULL, NULL,
G_TYPE_SOCKET_TYPE,
G_SOCKET_TYPE_STREAM,
G_PARAM_CONSTRUCT_ONLY |
G_PARAM_READWRITE |
G_PARAM_STATIC_STRINGS));
/**
* GSocket:protocol:
*
* The ID of the protocol to use, or `-1` for unknown.
*
* Since: 2.22
*/
g_object_class_install_property (gobject_class, PROP_PROTOCOL,
g_param_spec_enum ("protocol",
P_("Socket protocol"),
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 |
G_PARAM_READWRITE |
G_PARAM_STATIC_STRINGS));
/**
* GSocket:fd:
*
* The sockets file descriptor.
*
* Since: 2.22
*/
g_object_class_install_property (gobject_class, PROP_FD,
g_param_spec_int ("fd",
P_("File descriptor"),
P_("The sockets file descriptor"),
g_param_spec_int ("fd", NULL, NULL,
G_MININT,
G_MAXINT,
-1,
@ -993,44 +1013,69 @@ g_socket_class_init (GSocketClass *klass)
G_PARAM_READWRITE |
G_PARAM_STATIC_STRINGS));
/**
* GSocket:blocking:
*
* Whether I/O on this socket is blocking.
*
* Since: 2.22
*/
g_object_class_install_property (gobject_class, PROP_BLOCKING,
g_param_spec_boolean ("blocking",
P_("blocking"),
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));
/**
* GSocket:listen-backlog:
*
* The number of outstanding connections in the listen queue.
*
* Since: 2.22
*/
g_object_class_install_property (gobject_class, PROP_LISTEN_BACKLOG,
g_param_spec_int ("listen-backlog",
P_("Listen backlog"),
P_("Outstanding connections in the listen queue"),
g_param_spec_int ("listen-backlog", NULL, NULL,
0,
SOMAXCONN,
10,
G_PARAM_READWRITE |
G_PARAM_STATIC_STRINGS));
/**
* GSocket:keepalive:
*
* Whether to keep the connection alive by sending periodic pings.
*
* Since: 2.22
*/
g_object_class_install_property (gobject_class, PROP_KEEPALIVE,
g_param_spec_boolean ("keepalive",
P_("Keep connection alive"),
P_("Keep connection alive by sending periodic pings"),
g_param_spec_boolean ("keepalive", NULL, NULL,
FALSE,
G_PARAM_READWRITE |
G_PARAM_STATIC_STRINGS));
/**
* GSocket:local-address:
*
* The local address the socket is bound to.
*
* Since: 2.22
*/
g_object_class_install_property (gobject_class, PROP_LOCAL_ADDRESS,
g_param_spec_object ("local-address",
P_("Local address"),
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));
/**
* GSocket:remote-address:
*
* The remote address the socket is connected to.
*
* Since: 2.22
*/
g_object_class_install_property (gobject_class, PROP_REMOTE_ADDRESS,
g_param_spec_object ("remote-address",
P_("Remote address"),
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));
@ -1043,9 +1088,7 @@ g_socket_class_init (GSocketClass *klass)
* Since: 2.26
*/
g_object_class_install_property (gobject_class, PROP_TIMEOUT,
g_param_spec_uint ("timeout",
P_("Timeout"),
P_("The timeout in seconds on socket I/O"),
g_param_spec_uint ("timeout", NULL, NULL,
0,
G_MAXUINT,
0,
@ -1060,9 +1103,7 @@ g_socket_class_init (GSocketClass *klass)
* Since: 2.32
*/
g_object_class_install_property (gobject_class, PROP_BROADCAST,
g_param_spec_boolean ("broadcast",
P_("Broadcast"),
P_("Whether to allow sending to broadcast addresses"),
g_param_spec_boolean ("broadcast", NULL, NULL,
FALSE,
G_PARAM_READWRITE |
G_PARAM_STATIC_STRINGS));
@ -1075,9 +1116,7 @@ g_socket_class_init (GSocketClass *klass)
* Since: 2.32
*/
g_object_class_install_property (gobject_class, PROP_TTL,
g_param_spec_uint ("ttl",
P_("TTL"),
P_("Time-to-live of outgoing unicast packets"),
g_param_spec_uint ("ttl", NULL, NULL,
0, G_MAXUINT, 0,
G_PARAM_READWRITE |
G_PARAM_STATIC_STRINGS));
@ -1090,9 +1129,7 @@ g_socket_class_init (GSocketClass *klass)
* Since: 2.32
*/
g_object_class_install_property (gobject_class, PROP_MULTICAST_LOOPBACK,
g_param_spec_boolean ("multicast-loopback",
P_("Multicast loopback"),
P_("Whether outgoing multicast packets loop back to the local host"),
g_param_spec_boolean ("multicast-loopback", NULL, NULL,
TRUE,
G_PARAM_READWRITE |
G_PARAM_STATIC_STRINGS));
@ -1105,9 +1142,7 @@ g_socket_class_init (GSocketClass *klass)
* Since: 2.32
*/
g_object_class_install_property (gobject_class, PROP_MULTICAST_TTL,
g_param_spec_uint ("multicast-ttl",
P_("Multicast TTL"),
P_("Time-to-live of outgoing multicast packets"),
g_param_spec_uint ("multicast-ttl", NULL, NULL,
0, G_MAXUINT, 1,
G_PARAM_READWRITE |
G_PARAM_STATIC_STRINGS));

View File

@ -109,10 +109,15 @@ g_socket_address_class_init (GSocketAddressClass *klass)
gobject_class->get_property = g_socket_address_get_property;
/**
* GSocketAddress:family:
*
* The family of the socket address.
*
* Since: 2.22
*/
g_object_class_install_property (gobject_class, PROP_FAMILY,
g_param_spec_enum ("family",
P_("Address family"),
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 |

View File

@ -866,67 +866,102 @@ g_socket_client_class_init (GSocketClientClass *class)
G_TYPE_FROM_CLASS (class),
_g_cclosure_marshal_VOID__ENUM_OBJECT_OBJECTv);
/**
* GSocketClient:family:
*
* The address family to use for socket construction.
*
* Since: 2.22
*/
g_object_class_install_property (gobject_class, PROP_FAMILY,
g_param_spec_enum ("family",
P_("Socket family"),
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 |
G_PARAM_READWRITE |
G_PARAM_STATIC_STRINGS));
/**
* GSocketClient:type:
*
* The type to use for socket construction.
*
* Since: 2.22
*/
g_object_class_install_property (gobject_class, PROP_TYPE,
g_param_spec_enum ("type",
P_("Socket type"),
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 |
G_PARAM_READWRITE |
G_PARAM_STATIC_STRINGS));
/**
* GSocketClient:protocol:
*
* The protocol to use for socket construction, or `0` for default.
*
* Since: 2.22
*/
g_object_class_install_property (gobject_class, PROP_PROTOCOL,
g_param_spec_enum ("protocol",
P_("Socket protocol"),
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 |
G_PARAM_READWRITE |
G_PARAM_STATIC_STRINGS));
/**
* GSocketClient:local-address:
*
* The local address constructed sockets will be bound to.
*
* Since: 2.22
*/
g_object_class_install_property (gobject_class, PROP_LOCAL_ADDRESS,
g_param_spec_object ("local-address",
P_("Local address"),
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));
/**
* GSocketClient:timeout:
*
* The I/O timeout for sockets, in seconds, or `0` for none.
*
* Since: 2.22
*/
g_object_class_install_property (gobject_class, PROP_TIMEOUT,
g_param_spec_uint ("timeout",
P_("Socket timeout"),
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));
/**
* GSocketClient:enable-proxy:
*
* Enable proxy support.
*
* Since: 2.22
*/
g_object_class_install_property (gobject_class, PROP_ENABLE_PROXY,
g_param_spec_boolean ("enable-proxy",
P_("Enable proxy"),
P_("Enable proxy support"),
g_param_spec_boolean ("enable-proxy", NULL, NULL,
TRUE,
G_PARAM_CONSTRUCT |
G_PARAM_READWRITE |
G_PARAM_STATIC_STRINGS));
/**
* GSocketClient:tls:
*
* Whether to create TLS connections.
*
* Since: 2.22
*/
g_object_class_install_property (gobject_class, PROP_TLS,
g_param_spec_boolean ("tls",
P_("TLS"),
P_("Whether to create TLS connections"),
g_param_spec_boolean ("tls", NULL, NULL,
FALSE,
G_PARAM_CONSTRUCT |
G_PARAM_READWRITE |
@ -955,9 +990,7 @@ g_socket_client_class_init (GSocketClientClass *class)
* Deprecated: 2.72: Do not attempt to ignore validation errors.
*/
g_object_class_install_property (gobject_class, PROP_TLS_VALIDATION_FLAGS,
g_param_spec_flags ("tls-validation-flags",
P_("TLS validation flags"),
P_("TLS validation flags to use"),
g_param_spec_flags ("tls-validation-flags", NULL, NULL,
G_TYPE_TLS_CERTIFICATE_FLAGS,
G_TLS_CERTIFICATE_VALIDATE_ALL,
G_PARAM_CONSTRUCT |
@ -973,9 +1006,7 @@ g_socket_client_class_init (GSocketClientClass *class)
* Since: 2.36
*/
g_object_class_install_property (gobject_class, PROP_PROXY_RESOLVER,
g_param_spec_object ("proxy-resolver",
P_("Proxy resolver"),
P_("The proxy resolver to use"),
g_param_spec_object ("proxy-resolver", NULL, NULL,
G_TYPE_PROXY_RESOLVER,
G_PARAM_CONSTRUCT |
G_PARAM_READWRITE |

View File

@ -445,11 +445,16 @@ g_socket_connection_class_init (GSocketConnectionClass *klass)
stream_class->close_async = g_socket_connection_close_async;
stream_class->close_finish = g_socket_connection_close_finish;
/**
* GSocketConnection:socket:
*
* The underlying [class@Gio.Socket].
*
* Since: 2.22
*/
g_object_class_install_property (gobject_class,
PROP_SOCKET,
g_param_spec_object ("socket",
P_("Socket"),
P_("The underlying GSocket"),
g_param_spec_object ("socket", NULL, NULL,
G_TYPE_SOCKET,
G_PARAM_CONSTRUCT_ONLY |
G_PARAM_READWRITE |

View File

@ -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));
}

View File

@ -154,10 +154,16 @@ g_socket_listener_class_init (GSocketListenerClass *klass)
gobject_class->finalize = g_socket_listener_finalize;
gobject_class->set_property = g_socket_listener_set_property;
gobject_class->get_property = g_socket_listener_get_property;
/**
* GSocketListener:listen-backlog:
*
* The number of outstanding connections in the listen queue.
*
* Since: 2.22
*/
g_object_class_install_property (gobject_class, PROP_LISTEN_BACKLOG,
g_param_spec_int ("listen-backlog",
P_("Listen backlog"),
P_("outstanding connections in the listen queue"),
g_param_spec_int ("listen-backlog", NULL, NULL,
0,
2000,
10,

View File

@ -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));
}

View File

@ -360,9 +360,7 @@ g_socket_service_class_init (GSocketServiceClass *class)
* Since: 2.46
*/
g_object_class_install_property (gobject_class, PROP_ACTIVE,
g_param_spec_boolean ("active",
P_("Active"),
P_("Whether the service is currently accepting connections"),
g_param_spec_boolean ("active", NULL, NULL,
TRUE,
G_PARAM_CONSTRUCT | G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
}

View File

@ -496,12 +496,27 @@ g_subprocess_class_init (GSubprocessClass *class)
gobject_class->finalize = g_subprocess_finalize;
gobject_class->set_property = g_subprocess_set_property;
/**
* GSubprocess:flags:
*
* Subprocess flags.
*
* Since: 2.40
*/
g_object_class_install_property (gobject_class, PROP_FLAGS,
g_param_spec_flags ("flags", P_("Flags"), P_("Subprocess flags"),
g_param_spec_flags ("flags", NULL, NULL,
G_TYPE_SUBPROCESS_FLAGS, 0, G_PARAM_WRITABLE |
G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS));
/**
* GSubprocess:argv:
*
* Argument vector.
*
* Since: 2.40
*/
g_object_class_install_property (gobject_class, PROP_ARGV,
g_param_spec_boxed ("argv", P_("Arguments"), P_("Argument vector"),
g_param_spec_boxed ("argv", NULL, NULL,
G_TYPE_STRV, G_PARAM_WRITABLE |
G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS));
}

View File

@ -176,8 +176,15 @@ g_subprocess_launcher_class_init (GSubprocessLauncherClass *class)
gobject_class->set_property = g_subprocess_launcher_set_property;
gobject_class->dispose = g_subprocess_launcher_dispose;
/**
* GSubprocessLauncher:flags:
*
* [flags@Gio.SubprocessFlags] for launched processes.
*
* Since: 2.40
*/
g_object_class_install_property (gobject_class, 1,
g_param_spec_flags ("flags", "Flags", "GSubprocessFlags for launched processes",
g_param_spec_flags ("flags", NULL, NULL,
G_TYPE_SUBPROCESS_FLAGS, 0, G_PARAM_WRITABLE |
G_PARAM_STATIC_STRINGS | G_PARAM_CONSTRUCT_ONLY));
}

View File

@ -2439,9 +2439,7 @@ g_task_class_init (GTaskClass *klass)
* Since: 2.44
*/
g_object_class_install_property (gobject_class, PROP_COMPLETED,
g_param_spec_boolean ("completed",
P_("Task completed"),
P_("Whether the task has completed yet"),
g_param_spec_boolean ("completed", NULL, NULL,
FALSE, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
if (G_UNLIKELY (task_pool_max_counter == 0))

View File

@ -128,10 +128,15 @@ g_tcp_connection_class_init (GTcpConnectionClass *class)
stream_class->close_fn = g_tcp_connection_close;
stream_class->close_async = g_tcp_connection_close_async;
/**
* GTcpConnection:graceful-disconnect:
*
* Whether [method@Gio.IOStream.close] does a graceful disconnect.
*
* Since: 2.22
*/
g_object_class_install_property (gobject_class, PROP_GRACEFUL_DISCONNECT,
g_param_spec_boolean ("graceful-disconnect",
P_("Graceful Disconnect"),
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));

View File

@ -131,11 +131,16 @@ g_tcp_wrapper_connection_class_init (GTcpWrapperConnectionClass *klass)
stream_class->get_input_stream = g_tcp_wrapper_connection_get_input_stream;
stream_class->get_output_stream = g_tcp_wrapper_connection_get_output_stream;
/**
* GTcpWrapperConnection:base-io-stream:
*
* The wrapped [class@Gio.IOStream].
*
* Since: 2.28
*/
g_object_class_install_property (gobject_class,
PROP_BASE_IO_STREAM,
g_param_spec_object ("base-io-stream",
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 |

View File

@ -533,9 +533,7 @@ g_test_dbus_class_init (GTestDBusClass *klass)
* Since: 2.34
*/
g_object_class_install_property (object_class, PROP_FLAGS,
g_param_spec_flags ("flags",
P_("D-Bus session flags"),
P_("Flags specifying the behaviour of the D-Bus session"),
g_param_spec_flags ("flags", NULL, NULL,
G_TYPE_TEST_DBUS_FLAGS, G_TEST_DBUS_NONE,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY |
G_PARAM_STATIC_STRINGS));

View File

@ -179,9 +179,7 @@ g_themed_icon_class_init (GThemedIconClass *klass)
* The icon name.
*/
g_object_class_install_property (gobject_class, PROP_NAME,
g_param_spec_string ("name",
P_("name"),
P_("The name of the icon"),
g_param_spec_string ("name", NULL, NULL,
NULL,
G_PARAM_CONSTRUCT_ONLY | G_PARAM_WRITABLE | G_PARAM_STATIC_NAME | G_PARAM_STATIC_BLURB | G_PARAM_STATIC_NICK));
@ -191,9 +189,7 @@ g_themed_icon_class_init (GThemedIconClass *klass)
* A %NULL-terminated array of icon names.
*/
g_object_class_install_property (gobject_class, PROP_NAMES,
g_param_spec_boxed ("names",
P_("names"),
P_("An array containing the icon names"),
g_param_spec_boxed ("names", NULL, NULL,
G_TYPE_STRV,
G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE | G_PARAM_STATIC_NAME | G_PARAM_STATIC_BLURB | G_PARAM_STATIC_NICK));
@ -217,9 +213,7 @@ g_themed_icon_class_init (GThemedIconClass *klass)
* ]|
*/
g_object_class_install_property (gobject_class, PROP_USE_DEFAULT_FALLBACKS,
g_param_spec_boolean ("use-default-fallbacks",
P_("use default fallbacks"),
P_("Whether to use default fallbacks found by shortening the name at “-” characters. Ignores names after the first if multiple names are given."),
g_param_spec_boolean ("use-default-fallbacks", NULL, NULL,
FALSE,
G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE | G_PARAM_STATIC_NAME | G_PARAM_STATIC_BLURB | G_PARAM_STATIC_NICK));
}

View File

@ -247,10 +247,15 @@ g_threaded_socket_service_class_init (GThreadedSocketServiceClass *class)
G_TYPE_FROM_CLASS (class),
_g_cclosure_marshal_BOOLEAN__OBJECT_OBJECTv);
/**
* GThreadedSocketService:max-threads:
*
* The maximum number of threads handling clients for this service.
*
* Since: 2.22
*/
g_object_class_install_property (gobject_class, PROP_MAX_THREADS,
g_param_spec_int ("max-threads",
P_("Max threads"),
P_("The max number of threads handling clients for this service"),
g_param_spec_int ("max-threads", NULL, NULL,
-1,
G_MAXINT,
10,

View File

@ -135,9 +135,7 @@ g_tls_certificate_class_init (GTlsCertificateClass *class)
* Since: 2.72
*/
g_object_class_install_property (gobject_class, PROP_PKCS12_DATA,
g_param_spec_boxed ("pkcs12-data",
P_("PKCS #12 data"),
P_("The PKCS #12 data used for construction"),
g_param_spec_boxed ("pkcs12-data", NULL, NULL,
G_TYPE_BYTE_ARRAY,
G_PARAM_WRITABLE |
G_PARAM_CONSTRUCT_ONLY |
@ -151,9 +149,7 @@ g_tls_certificate_class_init (GTlsCertificateClass *class)
* Since: 2.72
*/
g_object_class_install_property (gobject_class, PROP_PASSWORD,
g_param_spec_string ("password",
P_("Password"),
P_("Password used when constructing from bytes"),
g_param_spec_string ("password", NULL, NULL,
NULL,
G_PARAM_WRITABLE |
G_PARAM_CONSTRUCT_ONLY |
@ -168,9 +164,7 @@ g_tls_certificate_class_init (GTlsCertificateClass *class)
* Since: 2.28
*/
g_object_class_install_property (gobject_class, PROP_CERTIFICATE,
g_param_spec_boxed ("certificate",
P_("Certificate"),
P_("The DER representation of the certificate"),
g_param_spec_boxed ("certificate", NULL, NULL,
G_TYPE_BYTE_ARRAY,
G_PARAM_READWRITE |
G_PARAM_CONSTRUCT_ONLY |
@ -185,9 +179,7 @@ g_tls_certificate_class_init (GTlsCertificateClass *class)
* Since: 2.28
*/
g_object_class_install_property (gobject_class, PROP_CERTIFICATE_PEM,
g_param_spec_string ("certificate-pem",
P_("Certificate (PEM)"),
P_("The PEM representation of the certificate"),
g_param_spec_string ("certificate-pem", NULL, NULL,
NULL,
G_PARAM_READWRITE |
G_PARAM_CONSTRUCT_ONLY |
@ -216,9 +208,7 @@ g_tls_certificate_class_init (GTlsCertificateClass *class)
* Since: 2.28
*/
g_object_class_install_property (gobject_class, PROP_PRIVATE_KEY,
g_param_spec_boxed ("private-key",
P_("Private key"),
P_("The DER representation of the certificates private key"),
g_param_spec_boxed ("private-key", NULL, NULL,
G_TYPE_BYTE_ARRAY,
G_PARAM_READWRITE |
G_PARAM_CONSTRUCT_ONLY |
@ -248,9 +238,7 @@ g_tls_certificate_class_init (GTlsCertificateClass *class)
* Since: 2.28
*/
g_object_class_install_property (gobject_class, PROP_PRIVATE_KEY_PEM,
g_param_spec_string ("private-key-pem",
P_("Private key (PEM)"),
P_("The PEM representation of the certificates private key"),
g_param_spec_string ("private-key-pem", NULL, NULL,
NULL,
G_PARAM_READWRITE |
G_PARAM_CONSTRUCT_ONLY |
@ -278,9 +266,7 @@ g_tls_certificate_class_init (GTlsCertificateClass *class)
* Since: 2.28
*/
g_object_class_install_property (gobject_class, PROP_ISSUER,
g_param_spec_object ("issuer",
P_("Issuer"),
P_("The certificate for the issuing entity"),
g_param_spec_object ("issuer", NULL, NULL,
G_TYPE_TLS_CERTIFICATE,
G_PARAM_READWRITE |
G_PARAM_CONSTRUCT_ONLY |
@ -298,9 +284,7 @@ g_tls_certificate_class_init (GTlsCertificateClass *class)
* Since: 2.68
*/
g_object_class_install_property (gobject_class, PROP_PKCS11_URI,
g_param_spec_string ("pkcs11-uri",
P_("PKCS #11 URI"),
P_("The PKCS #11 URI"),
g_param_spec_string ("pkcs11-uri", NULL, NULL,
NULL,
G_PARAM_READWRITE |
G_PARAM_CONSTRUCT_ONLY |
@ -315,9 +299,7 @@ g_tls_certificate_class_init (GTlsCertificateClass *class)
* Since: 2.68
*/
g_object_class_install_property (gobject_class, PROP_PRIVATE_KEY_PKCS11_URI,
g_param_spec_string ("private-key-pkcs11-uri",
P_("PKCS #11 URI"),
P_("The PKCS #11 URI for a private key"),
g_param_spec_string ("private-key-pkcs11-uri", NULL, NULL,
NULL,
G_PARAM_READWRITE |
G_PARAM_CONSTRUCT_ONLY |
@ -332,9 +314,7 @@ g_tls_certificate_class_init (GTlsCertificateClass *class)
* Since: 2.70
*/
g_object_class_install_property (gobject_class, PROP_NOT_VALID_BEFORE,
g_param_spec_boxed ("not-valid-before",
P_("Not Valid Before"),
P_("Cert should not be considered valid before this time."),
g_param_spec_boxed ("not-valid-before", NULL, NULL,
G_TYPE_DATE_TIME,
G_PARAM_READABLE |
G_PARAM_STATIC_STRINGS));
@ -348,9 +328,7 @@ g_tls_certificate_class_init (GTlsCertificateClass *class)
* Since: 2.70
*/
g_object_class_install_property (gobject_class, PROP_NOT_VALID_AFTER,
g_param_spec_boxed ("not-valid-after",
P_("Not Valid after"),
P_("Cert should not be considered valid after this time."),
g_param_spec_boxed ("not-valid-after", NULL, NULL,
G_TYPE_DATE_TIME,
G_PARAM_READABLE |
G_PARAM_STATIC_STRINGS));
@ -364,9 +342,7 @@ g_tls_certificate_class_init (GTlsCertificateClass *class)
* Since: 2.70
*/
g_object_class_install_property (gobject_class, PROP_SUBJECT_NAME,
g_param_spec_string ("subject-name",
P_("Subject Name"),
P_("The subject name from the certificate."),
g_param_spec_string ("subject-name", NULL, NULL,
NULL,
G_PARAM_READABLE |
G_PARAM_STATIC_STRINGS));
@ -379,9 +355,7 @@ g_tls_certificate_class_init (GTlsCertificateClass *class)
* Since: 2.70
*/
g_object_class_install_property (gobject_class, PROP_ISSUER_NAME,
g_param_spec_string ("issuer-name",
P_("Issuer Name"),
P_("The issuer from the certificate."),
g_param_spec_string ("issuer-name", NULL, NULL,
NULL,
G_PARAM_READABLE |
G_PARAM_STATIC_STRINGS));
@ -395,9 +369,7 @@ g_tls_certificate_class_init (GTlsCertificateClass *class)
* Since: 2.70
*/
g_object_class_install_property (gobject_class, PROP_DNS_NAMES,
g_param_spec_boxed ("dns-names",
P_("DNS Names"),
P_("DNS Names listed on the cert."),
g_param_spec_boxed ("dns-names", NULL, NULL,
G_TYPE_PTR_ARRAY,
G_PARAM_READABLE |
G_PARAM_STATIC_STRINGS));
@ -411,9 +383,7 @@ g_tls_certificate_class_init (GTlsCertificateClass *class)
* Since: 2.70
*/
g_object_class_install_property (gobject_class, PROP_IP_ADDRESSES,
g_param_spec_boxed ("ip-addresses",
P_("IP Addresses"),
P_("IP Addresses listed on the cert."),
g_param_spec_boxed ("ip-addresses", NULL, NULL,
G_TYPE_PTR_ARRAY,
G_PARAM_READABLE |
G_PARAM_STATIC_STRINGS));

View File

@ -69,9 +69,7 @@ g_tls_client_connection_default_init (GTlsClientConnectionInterface *iface)
* Deprecated: 2.72: Do not attempt to ignore validation errors.
*/
g_object_interface_install_property (iface,
g_param_spec_flags ("validation-flags",
P_("Validation flags"),
P_("What certificate validation to perform"),
g_param_spec_flags ("validation-flags", NULL, NULL,
G_TYPE_TLS_CERTIFICATE_FLAGS,
G_TLS_CERTIFICATE_VALIDATE_ALL,
G_PARAM_READWRITE |
@ -100,9 +98,7 @@ g_tls_client_connection_default_init (GTlsClientConnectionInterface *iface)
* Since: 2.28
*/
g_object_interface_install_property (iface,
g_param_spec_object ("server-identity",
P_("Server identity"),
P_("GSocketConnectable identifying the server"),
g_param_spec_object ("server-identity", NULL, NULL,
G_TYPE_SOCKET_CONNECTABLE,
G_PARAM_READWRITE |
G_PARAM_CONSTRUCT |
@ -119,9 +115,7 @@ g_tls_client_connection_default_init (GTlsClientConnectionInterface *iface)
* Deprecated: 2.56: SSL 3.0 is insecure.
*/
g_object_interface_install_property (iface,
g_param_spec_boolean ("use-ssl3",
P_("Use fallback"),
P_("Use fallback version of SSL/TLS rather than most recent version"),
g_param_spec_boolean ("use-ssl3", NULL, NULL,
FALSE,
G_PARAM_READWRITE |
G_PARAM_CONSTRUCT |
@ -142,9 +136,7 @@ g_tls_client_connection_default_init (GTlsClientConnectionInterface *iface)
* Since: 2.28
*/
g_object_interface_install_property (iface,
g_param_spec_pointer ("accepted-cas",
P_("Accepted CAs"),
P_("Distinguished names of the CAs the server accepts certificates from"),
g_param_spec_pointer ("accepted-cas", NULL, NULL,
G_PARAM_READABLE |
G_PARAM_STATIC_STRINGS));
}

View File

@ -103,9 +103,7 @@ g_tls_connection_class_init (GTlsConnectionClass *klass)
* Since: 2.28
*/
g_object_class_install_property (gobject_class, PROP_BASE_IO_STREAM,
g_param_spec_object ("base-io-stream",
P_("Base IOStream"),
P_("The GIOStream that the connection wraps"),
g_param_spec_object ("base-io-stream", NULL, NULL,
G_TYPE_IO_STREAM,
G_PARAM_READWRITE |
G_PARAM_CONSTRUCT_ONLY |
@ -120,9 +118,7 @@ g_tls_connection_class_init (GTlsConnectionClass *klass)
* Deprecated: 2.30: Use GTlsConnection:database instead
*/
g_object_class_install_property (gobject_class, PROP_USE_SYSTEM_CERTDB,
g_param_spec_boolean ("use-system-certdb",
P_("Use system certificate database"),
P_("Whether to verify peer certificates against the system certificate database"),
g_param_spec_boolean ("use-system-certdb", NULL, NULL,
TRUE,
G_PARAM_READWRITE |
G_PARAM_CONSTRUCT |
@ -151,9 +147,7 @@ g_tls_connection_class_init (GTlsConnectionClass *klass)
* Since: 2.30
*/
g_object_class_install_property (gobject_class, PROP_DATABASE,
g_param_spec_object ("database",
P_("Database"),
P_("Certificate database to use for looking up or verifying certificates"),
g_param_spec_object ("database", NULL, NULL,
G_TYPE_TLS_DATABASE,
G_PARAM_READWRITE |
G_PARAM_STATIC_STRINGS));
@ -167,9 +161,7 @@ g_tls_connection_class_init (GTlsConnectionClass *klass)
* Since: 2.30
*/
g_object_class_install_property (gobject_class, PROP_INTERACTION,
g_param_spec_object ("interaction",
P_("Interaction"),
P_("Optional object for user interaction"),
g_param_spec_object ("interaction", NULL, NULL,
G_TYPE_TLS_INTERACTION,
G_PARAM_READWRITE |
G_PARAM_STATIC_STRINGS));
@ -182,9 +174,7 @@ g_tls_connection_class_init (GTlsConnectionClass *klass)
* Since: 2.28
*/
g_object_class_install_property (gobject_class, PROP_REQUIRE_CLOSE_NOTIFY,
g_param_spec_boolean ("require-close-notify",
P_("Require close notify"),
P_("Whether to require proper TLS close notification"),
g_param_spec_boolean ("require-close-notify", NULL, NULL,
TRUE,
G_PARAM_READWRITE |
G_PARAM_CONSTRUCT |
@ -200,9 +190,7 @@ g_tls_connection_class_init (GTlsConnectionClass *klass)
* Deprecated: 2.60: The rehandshake mode is ignored.
*/
g_object_class_install_property (gobject_class, PROP_REHANDSHAKE_MODE,
g_param_spec_enum ("rehandshake-mode",
P_("Rehandshake mode"),
P_("When to allow rehandshaking"),
g_param_spec_enum ("rehandshake-mode", NULL, NULL,
G_TYPE_TLS_REHANDSHAKE_MODE,
G_TLS_REHANDSHAKE_SAFELY,
G_PARAM_READWRITE |
@ -218,9 +206,7 @@ g_tls_connection_class_init (GTlsConnectionClass *klass)
* Since: 2.28
*/
g_object_class_install_property (gobject_class, PROP_CERTIFICATE,
g_param_spec_object ("certificate",
P_("Certificate"),
P_("The connections certificate"),
g_param_spec_object ("certificate", NULL, NULL,
G_TYPE_TLS_CERTIFICATE,
G_PARAM_READWRITE |
G_PARAM_STATIC_STRINGS));
@ -237,9 +223,7 @@ g_tls_connection_class_init (GTlsConnectionClass *klass)
* Since: 2.28
*/
g_object_class_install_property (gobject_class, PROP_PEER_CERTIFICATE,
g_param_spec_object ("peer-certificate",
P_("Peer Certificate"),
P_("The connections peers certificate"),
g_param_spec_object ("peer-certificate", NULL, NULL,
G_TYPE_TLS_CERTIFICATE,
G_PARAM_READABLE |
G_PARAM_STATIC_STRINGS));
@ -264,9 +248,7 @@ g_tls_connection_class_init (GTlsConnectionClass *klass)
* Since: 2.28
*/
g_object_class_install_property (gobject_class, PROP_PEER_CERTIFICATE_ERRORS,
g_param_spec_flags ("peer-certificate-errors",
P_("Peer Certificate Errors"),
P_("Errors found with the peers certificate"),
g_param_spec_flags ("peer-certificate-errors", NULL, NULL,
G_TYPE_TLS_CERTIFICATE_FLAGS,
0,
G_PARAM_READABLE |
@ -281,9 +263,7 @@ g_tls_connection_class_init (GTlsConnectionClass *klass)
* Since: 2.60
*/
g_object_class_install_property (gobject_class, PROP_ADVERTISED_PROTOCOLS,
g_param_spec_boxed ("advertised-protocols",
P_("Advertised Protocols"),
P_("Application-layer protocols available on this connection"),
g_param_spec_boxed ("advertised-protocols", NULL, NULL,
G_TYPE_STRV,
G_PARAM_READWRITE |
G_PARAM_STATIC_STRINGS));
@ -296,9 +276,7 @@ g_tls_connection_class_init (GTlsConnectionClass *klass)
* Since: 2.60
*/
g_object_class_install_property (gobject_class, PROP_NEGOTIATED_PROTOCOL,
g_param_spec_string ("negotiated-protocol",
P_("Negotiated Protocol"),
P_("Application-layer protocol negotiated for this connection"),
g_param_spec_string ("negotiated-protocol", NULL, NULL,
NULL,
G_PARAM_READABLE |
G_PARAM_STATIC_STRINGS));
@ -311,9 +289,7 @@ g_tls_connection_class_init (GTlsConnectionClass *klass)
* Since: 2.70
*/
g_object_class_install_property (gobject_class, PROP_PROTOCOL_VERSION,
g_param_spec_enum ("protocol-version",
P_("Protocol Version"),
P_("TLS protocol version negotiated for this connection"),
g_param_spec_enum ("protocol-version", NULL, NULL,
G_TYPE_TLS_PROTOCOL_VERSION,
G_TLS_PROTOCOL_VERSION_UNKNOWN,
G_PARAM_READABLE |
@ -327,9 +303,7 @@ g_tls_connection_class_init (GTlsConnectionClass *klass)
* Since: 2.70
*/
g_object_class_install_property (gobject_class, PROP_CIPHERSUITE_NAME,
g_param_spec_string ("ciphersuite-name",
P_("Ciphersuite Name"),
P_("Name of ciphersuite negotiated for this connection"),
g_param_spec_string ("ciphersuite-name", NULL, NULL,
NULL,
G_PARAM_READABLE |
G_PARAM_STATIC_STRINGS));

View File

@ -55,9 +55,7 @@ g_tls_file_database_default_init (GTlsFileDatabaseInterface *iface)
* Since: 2.30
*/
g_object_interface_install_property (iface,
g_param_spec_string ("anchors",
P_("Anchors"),
P_("The certificate authority anchor file"),
g_param_spec_string ("anchors", NULL, NULL,
NULL,
G_PARAM_READWRITE |
G_PARAM_CONSTRUCT |

View File

@ -187,27 +187,42 @@ g_tls_password_class_init (GTlsPasswordClass *klass)
gobject_class->set_property = g_tls_password_set_property;
gobject_class->finalize = g_tls_password_finalize;
/**
* GTlsPassword:flags:
*
* Flags about the password.
*
* Since: 2.30
*/
g_object_class_install_property (gobject_class, PROP_FLAGS,
g_param_spec_flags ("flags",
P_("Flags"),
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));
/**
* GTlsPassword:description:
*
* Description of what the password is for.
*
* Since: 2.30
*/
g_object_class_install_property (gobject_class, PROP_DESCRIPTION,
g_param_spec_string ("description",
P_("Description"),
P_("Description of what the password is for"),
g_param_spec_string ("description", NULL, NULL,
NULL,
G_PARAM_READWRITE |
G_PARAM_STATIC_STRINGS));
/**
* GTlsPassword:warning:
*
* Warning about the password.
*
* Since: 2.30
*/
g_object_class_install_property (gobject_class, PROP_WARNING,
g_param_spec_string ("warning",
P_("Warning"),
P_("Warning about the password"),
g_param_spec_string ("warning", NULL, NULL,
NULL,
G_PARAM_READWRITE |
G_PARAM_STATIC_STRINGS));

View File

@ -53,9 +53,7 @@ g_tls_server_connection_default_init (GTlsServerConnectionInterface *iface)
* Since: 2.28
*/
g_object_interface_install_property (iface,
g_param_spec_enum ("authentication-mode",
P_("Authentication Mode"),
P_("The client authentication mode"),
g_param_spec_enum ("authentication-mode", NULL, NULL,
G_TYPE_TLS_AUTHENTICATION_MODE,
G_TLS_AUTHENTICATION_NONE,
G_PARAM_READWRITE |

View File

@ -264,9 +264,7 @@ g_unix_credentials_message_class_init (GUnixCredentialsMessageClass *class)
*/
g_object_class_install_property (gobject_class,
PROP_CREDENTIALS,
g_param_spec_object ("credentials",
P_("Credentials"),
P_("The credentials stored in the message"),
g_param_spec_object ("credentials", NULL, NULL,
G_TYPE_CREDENTIALS,
G_PARAM_READABLE |
G_PARAM_WRITABLE |

View File

@ -213,9 +213,15 @@ g_unix_fd_message_class_init (GUnixFDMessageClass *class)
object_class->set_property = g_unix_fd_message_set_property;
object_class->get_property = g_unix_fd_message_get_property;
/**
* GUnixFDMessage:fd-list:
*
* The [class@Gio.UnixFDList] object to send with the message.
*
* Since: 2.22
*/
g_object_class_install_property (object_class, 1,
g_param_spec_object ("fd-list", "file descriptor list",
"The GUnixFDList object to send with the message",
g_param_spec_object ("fd-list", NULL, NULL,
G_TYPE_UNIX_FD_LIST, G_PARAM_STATIC_STRINGS |
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY));
}

View File

@ -133,9 +133,7 @@ g_unix_input_stream_class_init (GUnixInputStreamClass *klass)
*/
g_object_class_install_property (gobject_class,
PROP_FD,
g_param_spec_int ("fd",
P_("File descriptor"),
P_("The file descriptor to read from"),
g_param_spec_int ("fd", NULL, NULL,
G_MININT, G_MAXINT, -1,
G_PARAM_READABLE | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB));
@ -148,9 +146,7 @@ g_unix_input_stream_class_init (GUnixInputStreamClass *klass)
*/
g_object_class_install_property (gobject_class,
PROP_CLOSE_FD,
g_param_spec_boolean ("close-fd",
P_("Close file descriptor"),
P_("Whether to close the file descriptor when the stream is closed"),
g_param_spec_boolean ("close-fd", NULL, NULL,
TRUE,
G_PARAM_READABLE | G_PARAM_WRITABLE | G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB));
}

View File

@ -132,9 +132,7 @@ g_unix_output_stream_class_init (GUnixOutputStreamClass *klass)
*/
g_object_class_install_property (gobject_class,
PROP_FD,
g_param_spec_int ("fd",
P_("File descriptor"),
P_("The file descriptor to write to"),
g_param_spec_int ("fd", NULL, NULL,
G_MININT, G_MAXINT, -1,
G_PARAM_READABLE | G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB));
@ -147,9 +145,7 @@ g_unix_output_stream_class_init (GUnixOutputStreamClass *klass)
*/
g_object_class_install_property (gobject_class,
PROP_CLOSE_FD,
g_param_spec_boolean ("close-fd",
P_("Close file descriptor"),
P_("Whether to close the file descriptor when the stream is closed"),
g_param_spec_boolean ("close-fd", NULL, NULL,
TRUE,
G_PARAM_READABLE | G_PARAM_WRITABLE | G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB));
}

View File

@ -267,23 +267,35 @@ g_unix_socket_address_class_init (GUnixSocketAddressClass *klass)
gsocketaddress_class->to_native = g_unix_socket_address_to_native;
gsocketaddress_class->get_native_size = g_unix_socket_address_get_native_size;
/**
* GUnixSocketAddress:path:
*
* Unix socket path.
*
* Since: 2.22
*/
g_object_class_install_property (gobject_class,
PROP_PATH,
g_param_spec_string ("path",
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));
/**
* GUnixSocketAddress:path-as-array:
*
* Unix socket path, as a byte array.
*
* Since: 2.22
*/
g_object_class_install_property (gobject_class, PROP_PATH_AS_ARRAY,
g_param_spec_boxed ("path-as-array",
P_("Path array"),
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 |
G_PARAM_STATIC_STRINGS));
/**
* GUnixSocketAddress:abstract:
*
@ -294,17 +306,21 @@ 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));
/**
* GUnixSocketAddress:address-type:
*
* The type of Unix socket address.
*
* Since: 2.22
*/
g_object_class_install_property (gobject_class, PROP_ADDRESS_TYPE,
g_param_spec_enum ("address-type",
P_("Address type"),
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 |

View File

@ -4253,7 +4253,7 @@ g_win32_app_info_get_name (GAppInfo *appinfo)
else if (info->app && info->app->canonical_name_u8)
return info->app->canonical_name_u8;
else
return P_("Unnamed");
return _("Unnamed");
}
static const char *
@ -5213,11 +5213,11 @@ g_win32_app_info_launch_internal (GWin32AppInfo *info,
{
if (info->app->is_uwp || info->handler == NULL)
g_set_error (error, G_IO_ERROR, G_IO_ERROR_FAILED,
P_("The app %s in the application object has no verbs"),
_("The app %s in the application object has no verbs"),
g_win32_appinfo_application_get_some_name (info->app));
else if (info->handler->verbs->len == 0)
g_set_error (error, G_IO_ERROR, G_IO_ERROR_FAILED,
P_("The app %s and the handler %s in the application object have no verbs"),
_("The app %s and the handler %s in the application object have no verbs"),
g_win32_appinfo_application_get_some_name (info->app),
info->handler->handler_id_folded);

View File

@ -258,9 +258,7 @@ g_win32_input_stream_class_init (GWin32InputStreamClass *klass)
* Since: 2.26
*/
props[PROP_HANDLE] =
g_param_spec_pointer ("handle",
P_("File handle"),
P_("The file handle to read from"),
g_param_spec_pointer ("handle", NULL, NULL,
G_PARAM_READABLE |
G_PARAM_WRITABLE |
G_PARAM_CONSTRUCT_ONLY |
@ -274,9 +272,7 @@ g_win32_input_stream_class_init (GWin32InputStreamClass *klass)
* Since: 2.26
*/
props[PROP_CLOSE_HANDLE] =
g_param_spec_boolean ("close-handle",
P_("Close file handle"),
P_("Whether to close the file handle when the stream is closed"),
g_param_spec_boolean ("close-handle", NULL, NULL,
TRUE,
G_PARAM_READABLE |
G_PARAM_WRITABLE |

View File

@ -245,9 +245,7 @@ g_win32_output_stream_class_init (GWin32OutputStreamClass *klass)
* Since: 2.26
*/
props[PROP_HANDLE] =
g_param_spec_pointer ("handle",
P_("File handle"),
P_("The file handle to write to"),
g_param_spec_pointer ("handle", NULL, NULL,
G_PARAM_READABLE |
G_PARAM_WRITABLE |
G_PARAM_CONSTRUCT_ONLY |
@ -261,9 +259,7 @@ g_win32_output_stream_class_init (GWin32OutputStreamClass *klass)
* Since: 2.26
*/
props[PROP_CLOSE_HANDLE] =
g_param_spec_boolean ("close-handle",
P_("Close file handle"),
P_("Whether to close the file handle when the stream is closed"),
g_param_spec_boolean ("close-handle", NULL, NULL,
TRUE,
G_PARAM_READABLE |
G_PARAM_WRITABLE |

View File

@ -2695,9 +2695,7 @@ g_win32_registry_key_class_init (GWin32RegistryKeyClass *klass)
*/
g_object_class_install_property (gobject_class,
PROP_PATH,
g_param_spec_string ("path",
"Path",
"Path to the key in the registry",
g_param_spec_string ("path", NULL, NULL,
NULL,
G_PARAM_READWRITE |
G_PARAM_CONSTRUCT_ONLY |
@ -2712,9 +2710,7 @@ g_win32_registry_key_class_init (GWin32RegistryKeyClass *klass)
*/
g_object_class_install_property (gobject_class,
PROP_PATH_UTF16,
g_param_spec_pointer ("path-utf16",
"Path (UTF-16)",
"Path to the key in the registry, in UTF-16",
g_param_spec_pointer ("path-utf16", NULL, NULL,
G_PARAM_READWRITE |
G_PARAM_CONSTRUCT_ONLY |
G_PARAM_STATIC_STRINGS));

View File

@ -221,20 +221,32 @@ g_zlib_compressor_class_init (GZlibCompressorClass *klass)
gobject_class->get_property = g_zlib_compressor_get_property;
gobject_class->set_property = g_zlib_compressor_set_property;
/**
* GZlibCompressor:format:
*
* The format of the compressed data.
*
* Since: 2.24
*/
g_object_class_install_property (gobject_class,
PROP_FORMAT,
g_param_spec_enum ("format",
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));
/**
* GZlibCompressor:level:
*
* The level of compression from `0` (no compression) to `9` (most
* compression). `-1` for the default level.
*
* Since: 2.24
*/
g_object_class_install_property (gobject_class,
PROP_LEVEL,
g_param_spec_int ("level",
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 |
@ -252,9 +264,7 @@ g_zlib_compressor_class_init (GZlibCompressorClass *klass)
*/
g_object_class_install_property (gobject_class,
PROP_FILE_INFO,
g_param_spec_object ("file-info",
P_("file info"),
P_("File info"),
g_param_spec_object ("file-info", NULL, NULL,
G_TYPE_FILE_INFO,
G_PARAM_READWRITE |
G_PARAM_STATIC_STRINGS));

View File

@ -215,11 +215,16 @@ g_zlib_decompressor_class_init (GZlibDecompressorClass *klass)
gobject_class->get_property = g_zlib_decompressor_get_property;
gobject_class->set_property = g_zlib_decompressor_set_property;
/**
* GZlibDecompressor:format:
*
* The format of the compressed data.
*
* Since: 2.24
*/
g_object_class_install_property (gobject_class,
PROP_FORMAT,
g_param_spec_enum ("format",
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 |
@ -237,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));

View File

@ -886,9 +886,7 @@ g_binding_class_init (GBindingClass *klass)
* Since: 2.26
*/
g_object_class_install_property (gobject_class, PROP_SOURCE,
g_param_spec_object ("source",
P_("Source"),
P_("The source of the binding"),
g_param_spec_object ("source", NULL, NULL,
G_TYPE_OBJECT,
G_PARAM_CONSTRUCT_ONLY |
G_PARAM_READWRITE |
@ -901,9 +899,7 @@ g_binding_class_init (GBindingClass *klass)
* Since: 2.26
*/
g_object_class_install_property (gobject_class, PROP_TARGET,
g_param_spec_object ("target",
P_("Target"),
P_("The target of the binding"),
g_param_spec_object ("target", NULL, NULL,
G_TYPE_OBJECT,
G_PARAM_CONSTRUCT_ONLY |
G_PARAM_READWRITE |
@ -920,9 +916,7 @@ g_binding_class_init (GBindingClass *klass)
* Since: 2.26
*/
g_object_class_install_property (gobject_class, PROP_SOURCE_PROPERTY,
g_param_spec_string ("source-property",
P_("Source Property"),
P_("The property on the source to bind"),
g_param_spec_string ("source-property", NULL, NULL,
NULL,
G_PARAM_CONSTRUCT_ONLY |
G_PARAM_READWRITE |
@ -939,9 +933,7 @@ g_binding_class_init (GBindingClass *klass)
* Since: 2.26
*/
g_object_class_install_property (gobject_class, PROP_TARGET_PROPERTY,
g_param_spec_string ("target-property",
P_("Target Property"),
P_("The property on the target to bind"),
g_param_spec_string ("target-property", NULL, NULL,
NULL,
G_PARAM_CONSTRUCT_ONLY |
G_PARAM_READWRITE |
@ -954,9 +946,7 @@ g_binding_class_init (GBindingClass *klass)
* Since: 2.26
*/
g_object_class_install_property (gobject_class, PROP_FLAGS,
g_param_spec_flags ("flags",
P_("Flags"),
P_("The binding flags"),
g_param_spec_flags ("flags", NULL, NULL,
G_TYPE_BINDING_FLAGS,
G_BINDING_DEFAULT,
G_PARAM_CONSTRUCT_ONLY |

View File

@ -345,9 +345,7 @@ g_binding_group_class_init (GBindingGroupClass *klass)
* Since: 2.72
*/
properties[PROP_SOURCE] =
g_param_spec_object ("source",
"Source",
"The source GObject used for binding properties.",
g_param_spec_object ("source", NULL, NULL,
G_TYPE_OBJECT,
(G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY | G_PARAM_STATIC_STRINGS));

View File

@ -749,13 +749,13 @@ find_pspec (GObjectClass *class,
* GObjectClass *gobject_class = G_OBJECT_CLASS (klass);
*
* obj_properties[PROP_FOO] =
* g_param_spec_int ("foo", "Foo", "Foo",
* g_param_spec_int ("foo", NULL, NULL,
* -1, G_MAXINT,
* 0,
* G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS);
*
* obj_properties[PROP_BAR] =
* g_param_spec_string ("bar", "Bar", "Bar",
* g_param_spec_string ("bar", NULL, NULL,
* NULL,
* G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS);
*
@ -1565,7 +1565,7 @@ g_object_notify (GObject *object,
* static void
* my_object_class_init (MyObjectClass *klass)
* {
* properties[PROP_FOO] = g_param_spec_int ("foo", "Foo", "The foo",
* properties[PROP_FOO] = g_param_spec_int ("foo", NULL, NULL,
* 0, 100,
* 50,
* G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS);

View File

@ -610,9 +610,7 @@ g_signal_group_class_init (GSignalGroupClass *klass)
* Since: 2.72
*/
properties[PROP_TARGET] =
g_param_spec_object ("target",
"Target",
"The target instance used when connecting signals.",
g_param_spec_object ("target", NULL, NULL,
G_TYPE_OBJECT,
(G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY | G_PARAM_STATIC_STRINGS));
@ -624,9 +622,7 @@ g_signal_group_class_init (GSignalGroupClass *klass)
* Since: 2.72
*/
properties[PROP_TARGET_TYPE] =
g_param_spec_gtype ("target-type",
"Target Type",
"The GType of the target property.",
g_param_spec_gtype ("target-type", NULL, NULL,
G_TYPE_OBJECT,
(G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS));