From b852bbba473fda18cb7b930ed57ac4347632b55f Mon Sep 17 00:00:00 2001 From: Bilal Elmoussaoui Date: Wed, 28 Jun 2023 14:02:43 +0200 Subject: [PATCH] cleanup: Stop translating nick/blurb for pspecs As those strings are intended to be used by some UI but nothing uses that in reality except GStreamer. So drop them similar to what GTK did at https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/4717 Part-of: --- clutter/clutter/clutter-actor-meta.c | 12 +- clutter/clutter/clutter-actor.c | 284 +++++------------- clutter/clutter/clutter-align-constraint.c | 16 +- clutter/clutter/clutter-bin-layout.c | 20 +- clutter/clutter/clutter-bind-constraint.c | 12 +- clutter/clutter/clutter-binding-pool.c | 4 +- clutter/clutter/clutter-box-layout.c | 17 +- .../clutter-brightness-contrast-effect.c | 8 +- clutter/clutter/clutter-canvas.c | 12 +- clutter/clutter/clutter-child-meta.c | 8 +- clutter/clutter/clutter-click-action.c | 16 +- clutter/clutter/clutter-clone.c | 4 +- clutter/clutter/clutter-color-state.c | 4 +- clutter/clutter/clutter-colorize-effect.c | 4 +- clutter/clutter/clutter-deform-effect.c | 12 +- clutter/clutter/clutter-desaturate-effect.c | 4 +- clutter/clutter/clutter-flow-layout.c | 36 +-- clutter/clutter/clutter-gesture-action.c | 16 +- clutter/clutter/clutter-grid-layout.c | 39 +-- clutter/clutter/clutter-input-device-tool.c | 16 +- clutter/clutter/clutter-input-device.c | 52 +--- clutter/clutter/clutter-input-method.c | 12 +- clutter/clutter/clutter-interval.c | 12 +- clutter/clutter/clutter-keymap.c | 8 +- clutter/clutter/clutter-layout-meta.c | 4 +- clutter/clutter/clutter-page-turn-effect.c | 12 +- clutter/clutter/clutter-pan-action.c | 16 +- clutter/clutter/clutter-path-constraint.c | 8 +- clutter/clutter/clutter-path.c | 9 +- clutter/clutter/clutter-property-transition.c | 4 +- clutter/clutter/clutter-script.c | 12 +- clutter/clutter/clutter-scroll-actor.c | 8 +- clutter/clutter/clutter-seat.c | 4 +- clutter/clutter/clutter-settings.c | 56 +--- clutter/clutter/clutter-shader-effect.c | 4 +- clutter/clutter/clutter-snap-constraint.c | 16 +- clutter/clutter/clutter-stage-manager.c | 4 +- clutter/clutter/clutter-stage-view.c | 36 +-- clutter/clutter/clutter-stage.c | 12 +- clutter/clutter/clutter-text-buffer.c | 12 +- clutter/clutter/clutter-text.c | 124 ++------ clutter/clutter/clutter-timeline.c | 32 +- clutter/clutter/clutter-transition.c | 12 +- clutter/clutter/clutter-units.c | 4 +- .../clutter/clutter-virtual-input-device.c | 8 +- cogl/cogl-pango/cogl-pango-render.c | 4 +- cogl/cogl/cogl-framebuffer-driver.c | 4 +- cogl/cogl/cogl-framebuffer.c | 16 +- src/backends/meta-backend.c | 8 +- src/backends/meta-barrier.c | 28 +- src/backends/meta-color-manager.c | 4 +- src/backends/meta-crtc-mode.c | 12 +- src/backends/meta-crtc.c | 16 +- src/backends/meta-cursor-renderer.c | 8 +- src/backends/meta-cursor-tracker.c | 4 +- src/backends/meta-cursor.c | 4 +- src/backends/meta-dbus-session-manager.c | 20 +- src/backends/meta-dbus-session-watcher.c | 12 +- src/backends/meta-gpu.c | 4 +- src/backends/meta-idle-monitor.c | 4 +- src/backends/meta-input-device.c | 8 +- src/backends/meta-input-mapper.c | 4 +- src/backends/meta-input-settings.c | 4 +- src/backends/meta-monitor-config-store.c | 4 +- src/backends/meta-monitor-manager.c | 20 +- src/backends/meta-orientation-manager.c | 4 +- src/backends/meta-output.c | 16 +- src/backends/meta-remote-access-controller.c | 4 +- src/backends/meta-renderer-view.c | 8 +- src/backends/meta-renderer.c | 4 +- .../meta-screen-cast-monitor-stream.c | 4 +- src/backends/meta-screen-cast-session.c | 4 +- src/backends/meta-screen-cast-stream-src.c | 4 +- src/backends/meta-screen-cast-stream.c | 16 +- src/backends/meta-screen-cast-window-stream.c | 4 +- src/backends/meta-stage-impl.c | 8 +- src/backends/meta-virtual-monitor.c | 12 +- src/backends/native/meta-backend-native.c | 4 +- src/backends/native/meta-drm-buffer.c | 8 +- .../native/meta-input-device-native.c | 8 +- .../native/meta-input-settings-native.c | 4 +- src/backends/native/meta-kms-impl-device.c | 16 +- .../native/meta-monitor-manager-native.c | 4 +- src/backends/native/meta-render-device.c | 8 +- src/backends/native/meta-seat-impl.c | 12 +- src/backends/native/meta-seat-native.c | 12 +- .../native/meta-virtual-input-device-native.c | 8 +- src/backends/x11/cm/meta-backend-x11-cm.c | 4 +- .../x11/cm/meta-cursor-sprite-xfixes.c | 4 +- src/backends/x11/meta-input-device-x11.c | 4 +- src/backends/x11/meta-keymap-x11.c | 4 +- src/backends/x11/meta-seat-x11.c | 16 +- src/compositor/compositor.c | 8 +- src/compositor/meta-background-actor.c | 8 +- src/compositor/meta-background-content.c | 40 +-- src/compositor/meta-background.c | 4 +- src/compositor/meta-compositor-view.c | 4 +- src/compositor/meta-dnd-actor.c | 12 +- src/compositor/meta-feedback-actor.c | 12 +- src/compositor/meta-module.c | 4 +- src/compositor/meta-window-actor-x11.c | 8 +- src/compositor/meta-window-actor.c | 4 +- src/compositor/meta-window-drag.c | 8 +- src/core/display.c | 8 +- src/core/meta-close-dialog.c | 4 +- src/core/meta-context.c | 8 +- src/core/meta-gesture-tracker.c | 4 +- src/core/meta-inhibit-shortcuts-dialog.c | 4 +- src/core/meta-launch-context.c | 12 +- src/core/meta-workspace-manager.c | 12 +- src/core/stack.c | 4 +- src/core/startup-notification.c | 36 +-- src/core/window.c | 116 ++----- src/core/workspace.c | 12 +- src/frames/meta-frame-content.c | 8 +- src/frames/meta-window-tracker.c | 4 +- src/tests/clutter/conform/script-parser.c | 2 +- src/tests/clutter/interactive/test-layout.c | 12 +- .../meta-pointer-confinement-wayland.c | 4 +- src/wayland/meta-wayland-data-source.c | 4 +- src/wayland/meta-wayland-input-device.c | 4 +- src/wayland/meta-wayland-surface.c | 8 +- src/wayland/meta-wayland-xdg-shell.c | 8 +- src/wayland/meta-window-wayland.c | 4 +- src/wayland/meta-window-xwayland.c | 8 +- src/x11/meta-startup-notification-x11.c | 4 +- src/x11/meta-x11-stack.c | 4 +- src/x11/window-x11.c | 4 +- 128 files changed, 455 insertions(+), 1372 deletions(-) diff --git a/clutter/clutter/clutter-actor-meta.c b/clutter/clutter/clutter-actor-meta.c index f2de1349a..bf207bccc 100644 --- a/clutter/clutter/clutter-actor-meta.c +++ b/clutter/clutter/clutter-actor-meta.c @@ -206,9 +206,7 @@ clutter_actor_meta_class_init (ClutterActorMetaClass *klass) * The #ClutterActor attached to the #ClutterActorMeta instance */ obj_props[PROP_ACTOR] = - g_param_spec_object ("actor", - P_("Actor"), - P_("The actor attached to the meta"), + g_param_spec_object ("actor", NULL, NULL, CLUTTER_TYPE_ACTOR, CLUTTER_PARAM_READABLE | G_PARAM_EXPLICIT_NOTIFY); @@ -219,9 +217,7 @@ clutter_actor_meta_class_init (ClutterActorMetaClass *klass) * The unique name to access the #ClutterActorMeta */ obj_props[PROP_NAME] = - g_param_spec_string ("name", - P_("Name"), - P_("The name of the meta"), + g_param_spec_string ("name", NULL, NULL, NULL, CLUTTER_PARAM_READWRITE); @@ -231,9 +227,7 @@ clutter_actor_meta_class_init (ClutterActorMetaClass *klass) * Whether or not the #ClutterActorMeta is enabled */ obj_props[PROP_ENABLED] = - g_param_spec_boolean ("enabled", - P_("Enabled"), - P_("Whether the meta is enabled"), + g_param_spec_boolean ("enabled", NULL, NULL, TRUE, CLUTTER_PARAM_READWRITE); diff --git a/clutter/clutter/clutter-actor.c b/clutter/clutter/clutter-actor.c index aa3baec38..3f76fa9c1 100644 --- a/clutter/clutter/clutter-actor.c +++ b/clutter/clutter/clutter-actor.c @@ -5817,9 +5817,7 @@ clutter_actor_class_init (ClutterActorClass *klass) * The #ClutterActor:x property is animatable. */ obj_props[PROP_X] = - g_param_spec_float ("x", - P_("X coordinate"), - P_("X coordinate of the actor"), + g_param_spec_float ("x", NULL, NULL, -G_MAXFLOAT, G_MAXFLOAT, 0.0, G_PARAM_READWRITE | @@ -5837,9 +5835,7 @@ clutter_actor_class_init (ClutterActorClass *klass) * The #ClutterActor:y property is animatable. */ obj_props[PROP_Y] = - g_param_spec_float ("y", - P_("Y coordinate"), - P_("Y coordinate of the actor"), + g_param_spec_float ("y", NULL, NULL, -G_MAXFLOAT, G_MAXFLOAT, 0.0, G_PARAM_READWRITE | @@ -5859,9 +5855,7 @@ clutter_actor_class_init (ClutterActorClass *klass) * The #ClutterActor:position property is animatable. */ obj_props[PROP_POSITION] = - g_param_spec_boxed ("position", - P_("Position"), - P_("The position of the origin of the actor"), + g_param_spec_boxed ("position", NULL, NULL, GRAPHENE_TYPE_POINT, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | @@ -5878,9 +5872,7 @@ clutter_actor_class_init (ClutterActorClass *klass) * The #ClutterActor:width property is animatable. */ obj_props[PROP_WIDTH] = - g_param_spec_float ("width", - P_("Width"), - P_("Width of the actor"), + g_param_spec_float ("width", NULL, NULL, -1.0f, G_MAXFLOAT, 0.0, G_PARAM_READWRITE | @@ -5898,9 +5890,7 @@ clutter_actor_class_init (ClutterActorClass *klass) * The #ClutterActor:height property is animatable. */ obj_props[PROP_HEIGHT] = - g_param_spec_float ("height", - P_("Height"), - P_("Height of the actor"), + g_param_spec_float ("height", NULL, NULL, -1.0f, G_MAXFLOAT, 0.0, G_PARAM_READWRITE | @@ -5919,9 +5909,7 @@ clutter_actor_class_init (ClutterActorClass *klass) * The #ClutterActor:size property is animatable. */ obj_props[PROP_SIZE] = - g_param_spec_boxed ("size", - P_("Size"), - P_("The size of the actor"), + g_param_spec_boxed ("size", NULL, NULL, GRAPHENE_TYPE_SIZE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | @@ -5937,9 +5925,7 @@ clutter_actor_class_init (ClutterActorClass *klass) * property as well, as a side effect */ obj_props[PROP_FIXED_X] = - g_param_spec_float ("fixed-x", - P_("Fixed X"), - P_("Forced X position of the actor"), + g_param_spec_float ("fixed-x", NULL, NULL, -G_MAXFLOAT, G_MAXFLOAT, 0.0, CLUTTER_PARAM_READWRITE | @@ -5954,9 +5940,7 @@ clutter_actor_class_init (ClutterActorClass *klass) * property as well, as a side effect */ obj_props[PROP_FIXED_Y] = - g_param_spec_float ("fixed-y", - P_("Fixed Y"), - P_("Forced Y position of the actor"), + g_param_spec_float ("fixed-y", NULL, NULL, -G_MAXFLOAT, G_MAXFLOAT, 0, CLUTTER_PARAM_READWRITE | @@ -5969,9 +5953,7 @@ clutter_actor_class_init (ClutterActorClass *klass) * #ClutterActor:fixed-y properties are used */ obj_props[PROP_FIXED_POSITION_SET] = - g_param_spec_boolean ("fixed-position-set", - P_("Fixed position set"), - P_("Whether to use fixed positioning for the actor"), + g_param_spec_boolean ("fixed-position-set", NULL, NULL, FALSE, CLUTTER_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY); @@ -5987,9 +5969,7 @@ clutter_actor_class_init (ClutterActorClass *klass) *This property overrides the usual width request of the actor. */ obj_props[PROP_MIN_WIDTH] = - g_param_spec_float ("min-width", - P_("Min Width"), - P_("Forced minimum width request for the actor"), + g_param_spec_float ("min-width", NULL, NULL, 0.0, G_MAXFLOAT, 0.0, CLUTTER_PARAM_READWRITE | @@ -6005,9 +5985,7 @@ clutter_actor_class_init (ClutterActorClass *klass) * request of the actor. */ obj_props[PROP_MIN_HEIGHT] = - g_param_spec_float ("min-height", - P_("Min Height"), - P_("Forced minimum height request for the actor"), + g_param_spec_float ("min-height", NULL, NULL, 0.0, G_MAXFLOAT, 0.0, CLUTTER_PARAM_READWRITE | @@ -6023,9 +6001,7 @@ clutter_actor_class_init (ClutterActorClass *klass) * usual width request of the actor */ obj_props[PROP_NATURAL_WIDTH] = - g_param_spec_float ("natural-width", - P_("Natural Width"), - P_("Forced natural width request for the actor"), + g_param_spec_float ("natural-width", NULL, NULL, 0.0, G_MAXFLOAT, 0.0, CLUTTER_PARAM_READWRITE | @@ -6041,9 +6017,7 @@ clutter_actor_class_init (ClutterActorClass *klass) * usual height request of the actor */ obj_props[PROP_NATURAL_HEIGHT] = - g_param_spec_float ("natural-height", - P_("Natural Height"), - P_("Forced natural height request for the actor"), + g_param_spec_float ("natural-height", NULL, NULL, 0.0, G_MAXFLOAT, 0.0, CLUTTER_PARAM_READWRITE | @@ -6056,9 +6030,7 @@ clutter_actor_class_init (ClutterActorClass *klass) * is used */ obj_props[PROP_MIN_WIDTH_SET] = - g_param_spec_boolean ("min-width-set", - P_("Minimum width set"), - P_("Whether to use the min-width property"), + g_param_spec_boolean ("min-width-set", NULL, NULL, FALSE, CLUTTER_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY); @@ -6070,9 +6042,7 @@ clutter_actor_class_init (ClutterActorClass *klass) * is used */ obj_props[PROP_MIN_HEIGHT_SET] = - g_param_spec_boolean ("min-height-set", - P_("Minimum height set"), - P_("Whether to use the min-height property"), + g_param_spec_boolean ("min-height-set", NULL, NULL, FALSE, CLUTTER_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY); @@ -6084,9 +6054,7 @@ clutter_actor_class_init (ClutterActorClass *klass) * is used */ obj_props[PROP_NATURAL_WIDTH_SET] = - g_param_spec_boolean ("natural-width-set", - P_("Natural width set"), - P_("Whether to use the natural-width property"), + g_param_spec_boolean ("natural-width-set", NULL, NULL, FALSE, CLUTTER_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY); @@ -6098,9 +6066,7 @@ clutter_actor_class_init (ClutterActorClass *klass) * is used */ obj_props[PROP_NATURAL_HEIGHT_SET] = - g_param_spec_boolean ("natural-height-set", - P_("Natural height set"), - P_("Whether to use the natural-height property"), + g_param_spec_boolean ("natural-height-set", NULL, NULL, FALSE, CLUTTER_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY); @@ -6114,9 +6080,7 @@ clutter_actor_class_init (ClutterActorClass *klass) * actor moves or resizes */ obj_props[PROP_ALLOCATION] = - g_param_spec_boxed ("allocation", - P_("Allocation"), - P_("The actor's allocation"), + g_param_spec_boxed ("allocation", NULL, NULL, CLUTTER_TYPE_ACTOR_BOX, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS | @@ -6181,9 +6145,7 @@ clutter_actor_class_init (ClutterActorClass *klass) * check for you. */ obj_props[PROP_REQUEST_MODE] = - g_param_spec_enum ("request-mode", - P_("Request Mode"), - P_("The actor's request mode"), + g_param_spec_enum ("request-mode", NULL, NULL, CLUTTER_TYPE_REQUEST_MODE, CLUTTER_REQUEST_HEIGHT_FOR_WIDTH, CLUTTER_PARAM_READWRITE | @@ -6205,9 +6167,7 @@ clutter_actor_class_init (ClutterActorClass *klass) * The #ClutterActor:z-position property is animatable. */ obj_props[PROP_Z_POSITION] = - g_param_spec_float ("z-position", - P_("Z Position"), - P_("The actor's position on the Z axis"), + g_param_spec_float ("z-position", NULL, NULL, -G_MAXFLOAT, G_MAXFLOAT, 0.0f, G_PARAM_READWRITE | @@ -6224,9 +6184,7 @@ clutter_actor_class_init (ClutterActorClass *klass) * The #ClutterActor:opacity property is animatable. */ obj_props[PROP_OPACITY] = - g_param_spec_uint ("opacity", - P_("Opacity"), - P_("Opacity of an actor"), + g_param_spec_uint ("opacity", NULL, NULL, 0, 255, 255, G_PARAM_READWRITE | @@ -6244,9 +6202,7 @@ clutter_actor_class_init (ClutterActorClass *klass) * clutter_actor_set_offscreen_redirect() for details. */ obj_props[PROP_OFFSCREEN_REDIRECT] = - g_param_spec_flags ("offscreen-redirect", - P_("Offscreen redirect"), - P_("Flags controlling when to flatten the actor into a single image"), + g_param_spec_flags ("offscreen-redirect", NULL, NULL, CLUTTER_TYPE_OFFSCREEN_REDIRECT, 0, CLUTTER_PARAM_READWRITE); @@ -6259,9 +6215,7 @@ clutter_actor_class_init (ClutterActorClass *klass) * See also #ClutterActor:mapped */ obj_props[PROP_VISIBLE] = - g_param_spec_boolean ("visible", - P_("Visible"), - P_("Whether the actor is visible or not"), + g_param_spec_boolean ("visible", NULL, NULL, FALSE, CLUTTER_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY); @@ -6273,9 +6227,7 @@ clutter_actor_class_init (ClutterActorClass *klass) * to which it belongs is mapped) */ obj_props[PROP_MAPPED] = - g_param_spec_boolean ("mapped", - P_("Mapped"), - P_("Whether the actor will be painted"), + g_param_spec_boolean ("mapped", NULL, NULL, FALSE, CLUTTER_PARAM_READABLE | G_PARAM_EXPLICIT_NOTIFY); @@ -6286,9 +6238,7 @@ clutter_actor_class_init (ClutterActorClass *klass) * Whether the actor has been realized */ obj_props[PROP_REALIZED] = - g_param_spec_boolean ("realized", - P_("Realized"), - P_("Whether the actor has been realized"), + g_param_spec_boolean ("realized", NULL, NULL, FALSE, CLUTTER_PARAM_READABLE | G_PARAM_EXPLICIT_NOTIFY); @@ -6301,9 +6251,7 @@ clutter_actor_class_init (ClutterActorClass *klass) * Only reactive actors will emit event-related signals */ obj_props[PROP_REACTIVE] = - g_param_spec_boolean ("reactive", - P_("Reactive"), - P_("Whether the actor is reactive to events"), + g_param_spec_boolean ("reactive", NULL, NULL, FALSE, CLUTTER_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY); @@ -6314,9 +6262,7 @@ clutter_actor_class_init (ClutterActorClass *klass) * Whether the actor has the #ClutterActor:clip property set or not */ obj_props[PROP_HAS_CLIP] = - g_param_spec_boolean ("has-clip", - P_("Has Clip"), - P_("Whether the actor has a clip set"), + g_param_spec_boolean ("has-clip", NULL, NULL, FALSE, CLUTTER_PARAM_READABLE | G_PARAM_EXPLICIT_NOTIFY); @@ -6333,9 +6279,7 @@ clutter_actor_class_init (ClutterActorClass *klass) * property as a side effect. */ obj_props[PROP_CLIP_RECT] = - g_param_spec_boxed ("clip-rect", - P_("Clip Rectangle"), - P_("The visible region of the actor"), + g_param_spec_boxed ("clip-rect", NULL, NULL, GRAPHENE_TYPE_RECT, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | @@ -6347,9 +6291,7 @@ clutter_actor_class_init (ClutterActorClass *klass) * The name of the actor */ obj_props[PROP_NAME] = - g_param_spec_string ("name", - P_("Name"), - P_("Name of the actor"), + g_param_spec_string ("name", NULL, NULL, NULL, CLUTTER_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY); @@ -6368,9 +6310,7 @@ clutter_actor_class_init (ClutterActorClass *klass) * The #ClutterActor:pivot-point property is animatable. */ obj_props[PROP_PIVOT_POINT] = - g_param_spec_boxed ("pivot-point", - P_("Pivot Point"), - P_("The point around which the scaling and rotation occur"), + g_param_spec_boxed ("pivot-point", NULL, NULL, GRAPHENE_TYPE_POINT, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | @@ -6386,9 +6326,7 @@ clutter_actor_class_init (ClutterActorClass *klass) * The #ClutterActor:pivot-point-z property is animatable. */ obj_props[PROP_PIVOT_POINT_Z] = - g_param_spec_float ("pivot-point-z", - P_("Pivot Point Z"), - P_("Z component of the pivot point"), + g_param_spec_float ("pivot-point-z", NULL, NULL, -G_MAXFLOAT, G_MAXFLOAT, 0.f, G_PARAM_READWRITE | @@ -6404,9 +6342,7 @@ clutter_actor_class_init (ClutterActorClass *klass) * The #ClutterActor:scale-x property is animatable. */ obj_props[PROP_SCALE_X] = - g_param_spec_double ("scale-x", - P_("Scale X"), - P_("Scale factor on the X axis"), + g_param_spec_double ("scale-x", NULL, NULL, -G_MAXDOUBLE, G_MAXDOUBLE, 1.0, G_PARAM_READWRITE | @@ -6422,9 +6358,7 @@ clutter_actor_class_init (ClutterActorClass *klass) * The #ClutterActor:scale-y property is animatable. */ obj_props[PROP_SCALE_Y] = - g_param_spec_double ("scale-y", - P_("Scale Y"), - P_("Scale factor on the Y axis"), + g_param_spec_double ("scale-y", NULL, NULL, -G_MAXDOUBLE, G_MAXDOUBLE, 1.0, G_PARAM_READWRITE | @@ -6440,9 +6374,7 @@ clutter_actor_class_init (ClutterActorClass *klass) * The #ClutterActor:scale-y property is animatable. */ obj_props[PROP_SCALE_Z] = - g_param_spec_double ("scale-z", - P_("Scale Z"), - P_("Scale factor on the Z axis"), + g_param_spec_double ("scale-z", NULL, NULL, -G_MAXDOUBLE, G_MAXDOUBLE, 1.0, G_PARAM_READWRITE | @@ -6458,9 +6390,7 @@ clutter_actor_class_init (ClutterActorClass *klass) * The #ClutterActor:rotation-angle-x property is animatable. */ obj_props[PROP_ROTATION_ANGLE_X] = - g_param_spec_double ("rotation-angle-x", - P_("Rotation Angle X"), - P_("The rotation angle on the X axis"), + g_param_spec_double ("rotation-angle-x", NULL, NULL, -G_MAXDOUBLE, G_MAXDOUBLE, 0.0, G_PARAM_READWRITE | @@ -6476,9 +6406,7 @@ clutter_actor_class_init (ClutterActorClass *klass) * The #ClutterActor:rotation-angle-y property is animatable. */ obj_props[PROP_ROTATION_ANGLE_Y] = - g_param_spec_double ("rotation-angle-y", - P_("Rotation Angle Y"), - P_("The rotation angle on the Y axis"), + g_param_spec_double ("rotation-angle-y", NULL, NULL, -G_MAXDOUBLE, G_MAXDOUBLE, 0.0, G_PARAM_READWRITE | @@ -6494,9 +6422,7 @@ clutter_actor_class_init (ClutterActorClass *klass) * The #ClutterActor:rotation-angle-z property is animatable. */ obj_props[PROP_ROTATION_ANGLE_Z] = - g_param_spec_double ("rotation-angle-z", - P_("Rotation Angle Z"), - P_("The rotation angle on the Z axis"), + g_param_spec_double ("rotation-angle-z", NULL, NULL, -G_MAXDOUBLE, G_MAXDOUBLE, 0.0, G_PARAM_READWRITE | @@ -6512,9 +6438,7 @@ clutter_actor_class_init (ClutterActorClass *klass) * The #ClutterActor:translation-x property is animatable. */ obj_props[PROP_TRANSLATION_X] = - g_param_spec_float ("translation-x", - P_("Translation X"), - P_("Translation along the X axis"), + g_param_spec_float ("translation-x", NULL, NULL, -G_MAXFLOAT, G_MAXFLOAT, 0.f, G_PARAM_READWRITE | @@ -6531,9 +6455,7 @@ clutter_actor_class_init (ClutterActorClass *klass) * The #ClutterActor:translation-y property is animatable. */ obj_props[PROP_TRANSLATION_Y] = - g_param_spec_float ("translation-y", - P_("Translation Y"), - P_("Translation along the Y axis"), + g_param_spec_float ("translation-y", NULL, NULL, -G_MAXFLOAT, G_MAXFLOAT, 0.f, G_PARAM_READWRITE | @@ -6550,9 +6472,7 @@ clutter_actor_class_init (ClutterActorClass *klass) * The #ClutterActor:translation-z property is animatable. */ obj_props[PROP_TRANSLATION_Z] = - g_param_spec_float ("translation-z", - P_("Translation Z"), - P_("Translation along the Z axis"), + g_param_spec_float ("translation-z", NULL, NULL, -G_MAXFLOAT, G_MAXFLOAT, 0.f, G_PARAM_READWRITE | @@ -6580,9 +6500,7 @@ clutter_actor_class_init (ClutterActorClass *klass) * The #ClutterActor:transform property is animatable. */ obj_props[PROP_TRANSFORM] = - g_param_spec_boxed ("transform", - P_("Transform"), - P_("Transformation matrix"), + g_param_spec_boxed ("transform", NULL, NULL, GRAPHENE_TYPE_MATRIX, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | @@ -6595,9 +6513,7 @@ clutter_actor_class_init (ClutterActorClass *klass) * Whether the #ClutterActor:transform property is set. */ obj_props[PROP_TRANSFORM_SET] = - g_param_spec_boolean ("transform-set", - P_("Transform Set"), - P_("Whether the transform property is set"), + g_param_spec_boolean ("transform-set", NULL, NULL, FALSE, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS | @@ -6616,9 +6532,7 @@ clutter_actor_class_init (ClutterActorClass *klass) * The #ClutterActor:child-transform property is animatable. */ obj_props[PROP_CHILD_TRANSFORM] = - g_param_spec_boxed ("child-transform", - P_("Child Transform"), - P_("Children transformation matrix"), + g_param_spec_boxed ("child-transform", NULL, NULL, GRAPHENE_TYPE_MATRIX, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | @@ -6631,9 +6545,7 @@ clutter_actor_class_init (ClutterActorClass *klass) * Whether the #ClutterActor:child-transform property is set. */ obj_props[PROP_CHILD_TRANSFORM_SET] = - g_param_spec_boolean ("child-transform-set", - P_("Child Transform Set"), - P_("Whether the child-transform property is set"), + g_param_spec_boolean ("child-transform-set", NULL, NULL, FALSE, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS | @@ -6648,9 +6560,7 @@ clutter_actor_class_init (ClutterActorClass *klass) * parented will set this property to %FALSE as a side effect. */ obj_props[PROP_SHOW_ON_SET_PARENT] = /* XXX:2.0 - remove */ - g_param_spec_boolean ("show-on-set-parent", - P_("Show on set parent"), - P_("Whether the actor is shown when parented"), + g_param_spec_boolean ("show-on-set-parent", NULL, NULL, TRUE, CLUTTER_PARAM_READWRITE); @@ -6664,9 +6574,7 @@ clutter_actor_class_init (ClutterActorClass *klass) * set using clutter_actor_set_clip(). */ obj_props[PROP_CLIP_TO_ALLOCATION] = - g_param_spec_boolean ("clip-to-allocation", - P_("Clip to Allocation"), - P_("Sets the clip region to track the actor's allocation"), + g_param_spec_boolean ("clip-to-allocation", NULL, NULL, FALSE, CLUTTER_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY); @@ -6677,9 +6585,7 @@ clutter_actor_class_init (ClutterActorClass *klass) * The direction of the text inside a #ClutterActor. */ obj_props[PROP_TEXT_DIRECTION] = - g_param_spec_enum ("text-direction", - P_("Text Direction"), - P_("Direction of the text"), + g_param_spec_enum ("text-direction", NULL, NULL, CLUTTER_TYPE_TEXT_DIRECTION, CLUTTER_TEXT_DIRECTION_LTR, CLUTTER_PARAM_READWRITE | @@ -6692,9 +6598,7 @@ clutter_actor_class_init (ClutterActorClass *klass) * or not. */ obj_props[PROP_HAS_POINTER] = - g_param_spec_boolean ("has-pointer", - P_("Has Pointer"), - P_("Whether the actor contains the pointer of an input device"), + g_param_spec_boolean ("has-pointer", NULL, NULL, FALSE, CLUTTER_PARAM_READABLE | G_PARAM_EXPLICIT_NOTIFY); @@ -6705,9 +6609,7 @@ clutter_actor_class_init (ClutterActorClass *klass) * Adds a #ClutterAction to the actor */ obj_props[PROP_ACTIONS] = - g_param_spec_object ("actions", - P_("Actions"), - P_("Adds an action to the actor"), + g_param_spec_object ("actions", NULL, NULL, CLUTTER_TYPE_ACTION, CLUTTER_PARAM_WRITABLE | G_PARAM_EXPLICIT_NOTIFY); @@ -6718,9 +6620,7 @@ clutter_actor_class_init (ClutterActorClass *klass) * Adds a #ClutterConstraint to the actor */ obj_props[PROP_CONSTRAINTS] = - g_param_spec_object ("constraints", - P_("Constraints"), - P_("Adds a constraint to the actor"), + g_param_spec_object ("constraints", NULL, NULL, CLUTTER_TYPE_CONSTRAINT, CLUTTER_PARAM_WRITABLE | G_PARAM_EXPLICIT_NOTIFY); @@ -6731,9 +6631,7 @@ clutter_actor_class_init (ClutterActorClass *klass) * Adds #ClutterEffect to the list of effects be applied on a #ClutterActor */ obj_props[PROP_EFFECT] = - g_param_spec_object ("effect", - P_("Effect"), - P_("Add an effect to be applied on the actor"), + g_param_spec_object ("effect", NULL, NULL, CLUTTER_TYPE_EFFECT, CLUTTER_PARAM_WRITABLE | G_PARAM_EXPLICIT_NOTIFY); @@ -6745,9 +6643,7 @@ clutter_actor_class_init (ClutterActorClass *klass) * an actor. */ obj_props[PROP_LAYOUT_MANAGER] = - g_param_spec_object ("layout-manager", - P_("Layout Manager"), - P_("The object controlling the layout of an actor's children"), + g_param_spec_object ("layout-manager", NULL, NULL, CLUTTER_TYPE_LAYOUT_MANAGER, CLUTTER_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY); @@ -6759,9 +6655,7 @@ clutter_actor_class_init (ClutterActorClass *klass) * the X axis. */ obj_props[PROP_X_EXPAND] = - g_param_spec_boolean ("x-expand", - P_("X Expand"), - P_("Whether extra horizontal space should be assigned to the actor"), + g_param_spec_boolean ("x-expand", NULL, NULL, FALSE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | @@ -6774,9 +6668,7 @@ clutter_actor_class_init (ClutterActorClass *klass) * the Y axis. */ obj_props[PROP_Y_EXPAND] = - g_param_spec_boolean ("y-expand", - P_("Y Expand"), - P_("Whether extra vertical space should be assigned to the actor"), + g_param_spec_boolean ("y-expand", NULL, NULL, FALSE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | @@ -6790,9 +6682,7 @@ clutter_actor_class_init (ClutterActorClass *klass) * property. */ obj_props[PROP_X_ALIGN] = - g_param_spec_enum ("x-align", - P_("X Alignment"), - P_("The alignment of the actor on the X axis within its allocation"), + g_param_spec_enum ("x-align", NULL, NULL, CLUTTER_TYPE_ACTOR_ALIGN, CLUTTER_ACTOR_ALIGN_FILL, CLUTTER_PARAM_READWRITE | @@ -6805,9 +6695,7 @@ clutter_actor_class_init (ClutterActorClass *klass) * extra space for its allocation. */ obj_props[PROP_Y_ALIGN] = - g_param_spec_enum ("y-align", - P_("Y Alignment"), - P_("The alignment of the actor on the Y axis within its allocation"), + g_param_spec_enum ("y-align", NULL, NULL, CLUTTER_TYPE_ACTOR_ALIGN, CLUTTER_ACTOR_ALIGN_FILL, CLUTTER_PARAM_READWRITE | @@ -6824,9 +6712,7 @@ clutter_actor_class_init (ClutterActorClass *klass) * The #ClutterActor:margin-top property is animatable. */ obj_props[PROP_MARGIN_TOP] = - g_param_spec_float ("margin-top", - P_("Margin Top"), - P_("Extra space at the top"), + g_param_spec_float ("margin-top", NULL, NULL, 0.0, G_MAXFLOAT, 0.0, G_PARAM_READWRITE | @@ -6845,9 +6731,7 @@ clutter_actor_class_init (ClutterActorClass *klass) * The #ClutterActor:margin-bottom property is animatable. */ obj_props[PROP_MARGIN_BOTTOM] = - g_param_spec_float ("margin-bottom", - P_("Margin Bottom"), - P_("Extra space at the bottom"), + g_param_spec_float ("margin-bottom", NULL, NULL, 0.0, G_MAXFLOAT, 0.0, G_PARAM_READWRITE | @@ -6866,9 +6750,7 @@ clutter_actor_class_init (ClutterActorClass *klass) * The #ClutterActor:margin-left property is animatable. */ obj_props[PROP_MARGIN_LEFT] = - g_param_spec_float ("margin-left", - P_("Margin Left"), - P_("Extra space at the left"), + g_param_spec_float ("margin-left", NULL, NULL, 0.0, G_MAXFLOAT, 0.0, G_PARAM_READWRITE | @@ -6887,9 +6769,7 @@ clutter_actor_class_init (ClutterActorClass *klass) * The #ClutterActor:margin-right property is animatable. */ obj_props[PROP_MARGIN_RIGHT] = - g_param_spec_float ("margin-right", - P_("Margin Right"), - P_("Extra space at the right"), + g_param_spec_float ("margin-right", NULL, NULL, 0.0, G_MAXFLOAT, 0.0, G_PARAM_READWRITE | @@ -6903,9 +6783,7 @@ clutter_actor_class_init (ClutterActorClass *klass) * Whether the #ClutterActor:background-color property has been set. */ obj_props[PROP_BACKGROUND_COLOR_SET] = - g_param_spec_boolean ("background-color-set", - P_("Background Color Set"), - P_("Whether the background color is set"), + g_param_spec_boolean ("background-color-set", NULL, NULL, FALSE, CLUTTER_PARAM_READABLE | G_PARAM_EXPLICIT_NOTIFY); @@ -6919,9 +6797,7 @@ clutter_actor_class_init (ClutterActorClass *klass) * The #ClutterActor:background-color property is animatable. */ obj_props[PROP_BACKGROUND_COLOR] = - clutter_param_spec_color ("background-color", - P_("Background color"), - P_("The actor's background color"), + clutter_param_spec_color ("background-color", NULL, NULL, CLUTTER_COLOR_Transparent, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | @@ -6934,9 +6810,7 @@ clutter_actor_class_init (ClutterActorClass *klass) * The actor's first child. */ obj_props[PROP_FIRST_CHILD] = - g_param_spec_object ("first-child", - P_("First Child"), - P_("The actor's first child"), + g_param_spec_object ("first-child", NULL, NULL, CLUTTER_TYPE_ACTOR, CLUTTER_PARAM_READABLE | G_PARAM_EXPLICIT_NOTIFY); @@ -6947,9 +6821,7 @@ clutter_actor_class_init (ClutterActorClass *klass) * The actor's last child. */ obj_props[PROP_LAST_CHILD] = - g_param_spec_object ("last-child", - P_("Last Child"), - P_("The actor's last child"), + g_param_spec_object ("last-child", NULL, NULL, CLUTTER_TYPE_ACTOR, CLUTTER_PARAM_READABLE | G_PARAM_EXPLICIT_NOTIFY); @@ -6961,9 +6833,7 @@ clutter_actor_class_init (ClutterActorClass *klass) * of the actor. */ obj_props[PROP_CONTENT] = - g_param_spec_object ("content", - P_("Content"), - P_("Delegate object for painting the actor's content"), + g_param_spec_object ("content", NULL, NULL, CLUTTER_TYPE_CONTENT, CLUTTER_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY); @@ -6986,9 +6856,7 @@ clutter_actor_class_init (ClutterActorClass *klass) * The #ClutterActor:content-gravity property is animatable. */ obj_props[PROP_CONTENT_GRAVITY] = - g_param_spec_enum ("content-gravity", - P_("Content Gravity"), - P_("Alignment of the actor's content"), + g_param_spec_enum ("content-gravity", NULL, NULL, CLUTTER_TYPE_CONTENT_GRAVITY, CLUTTER_CONTENT_GRAVITY_RESIZE_FILL, CLUTTER_PARAM_READWRITE | @@ -7006,9 +6874,7 @@ clutter_actor_class_init (ClutterActorClass *klass) * allocation's of the actor. */ obj_props[PROP_CONTENT_BOX] = - g_param_spec_boxed ("content-box", - P_("Content Box"), - P_("The bounding box of the actor's content"), + g_param_spec_boxed ("content-box", NULL, NULL, CLUTTER_TYPE_ACTOR_BOX, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS | @@ -7016,18 +6882,14 @@ clutter_actor_class_init (ClutterActorClass *klass) CLUTTER_PARAM_ANIMATABLE); obj_props[PROP_MINIFICATION_FILTER] = - g_param_spec_enum ("minification-filter", - P_("Minification Filter"), - P_("The filter used when reducing the size of the content"), + g_param_spec_enum ("minification-filter", NULL, NULL, CLUTTER_TYPE_SCALING_FILTER, CLUTTER_SCALING_FILTER_LINEAR, CLUTTER_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY); obj_props[PROP_MAGNIFICATION_FILTER] = - g_param_spec_enum ("magnification-filter", - P_("Magnification Filter"), - P_("The filter used when increasing the size of the content"), + g_param_spec_enum ("magnification-filter", NULL, NULL, CLUTTER_TYPE_SCALING_FILTER, CLUTTER_SCALING_FILTER_LINEAR, CLUTTER_PARAM_READWRITE | @@ -7039,9 +6901,7 @@ clutter_actor_class_init (ClutterActorClass *klass) * The repeat policy for the actor's #ClutterActor:content. */ obj_props[PROP_CONTENT_REPEAT] = - g_param_spec_flags ("content-repeat", - P_("Content Repeat"), - P_("The repeat policy for the actor's content"), + g_param_spec_flags ("content-repeat", NULL, NULL, CLUTTER_TYPE_CONTENT_REPEAT, CLUTTER_REPEAT_NONE, G_PARAM_READWRITE | @@ -7055,9 +6915,7 @@ clutter_actor_class_init (ClutterActorClass *klass) * actors. */ obj_props[PROP_COLOR_STATE] = - g_param_spec_object ("color-state", - P_("ColorState"), - P_("ColorState of the each actors"), + g_param_spec_object ("color-state", NULL, NULL, CLUTTER_TYPE_COLOR_STATE, CLUTTER_PARAM_READWRITE | G_PARAM_CONSTRUCT); diff --git a/clutter/clutter/clutter-align-constraint.c b/clutter/clutter/clutter-align-constraint.c index 36003c214..e4269f1f4 100644 --- a/clutter/clutter/clutter-align-constraint.c +++ b/clutter/clutter/clutter-align-constraint.c @@ -289,9 +289,7 @@ clutter_align_constraint_class_init (ClutterAlignConstraintClass *klass) * using the constraint. */ obj_props[PROP_SOURCE] = - g_param_spec_object ("source", - P_("Source"), - P_("The source of the alignment"), + g_param_spec_object ("source", NULL, NULL, CLUTTER_TYPE_ACTOR, CLUTTER_PARAM_READWRITE | G_PARAM_CONSTRUCT); @@ -301,9 +299,7 @@ clutter_align_constraint_class_init (ClutterAlignConstraintClass *klass) * The axis to be used to compute the alignment */ obj_props[PROP_ALIGN_AXIS] = - g_param_spec_enum ("align-axis", - P_("Align Axis"), - P_("The axis to align the position to"), + g_param_spec_enum ("align-axis", NULL, NULL, CLUTTER_TYPE_ALIGN_AXIS, CLUTTER_ALIGN_X_AXIS, CLUTTER_PARAM_READWRITE | G_PARAM_CONSTRUCT); @@ -325,9 +321,7 @@ clutter_align_constraint_class_init (ClutterAlignConstraintClass *klass) * the source actor. */ obj_props[PROP_PIVOT_POINT] = - g_param_spec_boxed ("pivot-point", - P_("Pivot point"), - P_("The pivot point"), + g_param_spec_boxed ("pivot-point", NULL, NULL, GRAPHENE_TYPE_POINT, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); @@ -343,9 +337,7 @@ clutter_align_constraint_class_init (ClutterAlignConstraintClass *klass) * and 1.0 means bottom. */ obj_props[PROP_FACTOR] = - g_param_spec_float ("factor", - P_("Factor"), - P_("The alignment factor, between 0.0 and 1.0"), + g_param_spec_float ("factor", NULL, NULL, 0.0, 1.0, 0.0, CLUTTER_PARAM_READWRITE | G_PARAM_CONSTRUCT); diff --git a/clutter/clutter/clutter-bin-layout.c b/clutter/clutter/clutter-bin-layout.c index e31dacefd..f7cfe7553 100644 --- a/clutter/clutter/clutter-bin-layout.c +++ b/clutter/clutter/clutter-bin-layout.c @@ -213,19 +213,13 @@ clutter_bin_layer_class_init (ClutterBinLayerClass *klass) gobject_class->get_property = clutter_bin_layer_get_property; layer_props[PROP_LAYER_X_ALIGN] = - g_param_spec_enum ("x-align", - P_("Horizontal Alignment"), - P_("Horizontal alignment for the actor " - "inside the layout manager"), + g_param_spec_enum ("x-align", NULL, NULL, CLUTTER_TYPE_BIN_ALIGNMENT, CLUTTER_BIN_ALIGNMENT_CENTER, CLUTTER_PARAM_READWRITE); layer_props[PROP_LAYER_Y_ALIGN] = - g_param_spec_enum ("y-align", - P_("Vertical Alignment"), - P_("Vertical alignment for the actor " - "inside the layout manager"), + g_param_spec_enum ("y-align", NULL, NULL, CLUTTER_TYPE_BIN_ALIGNMENT, CLUTTER_BIN_ALIGNMENT_CENTER, CLUTTER_PARAM_READWRITE); @@ -622,10 +616,7 @@ clutter_bin_layout_class_init (ClutterBinLayoutClass *klass) * #ClutterActor:x-align properties on #ClutterActor instead. */ bin_props[PROP_X_ALIGN] = - g_param_spec_enum ("x-align", - P_("Horizontal Alignment"), - P_("Default horizontal alignment for the actors " - "inside the layout manager"), + g_param_spec_enum ("x-align", NULL, NULL, CLUTTER_TYPE_BIN_ALIGNMENT, CLUTTER_BIN_ALIGNMENT_CENTER, CLUTTER_PARAM_READWRITE); @@ -640,10 +631,7 @@ clutter_bin_layout_class_init (ClutterBinLayoutClass *klass) * #ClutterActor:y-align properties on #ClutterActor instead. */ bin_props[PROP_Y_ALIGN] = - g_param_spec_enum ("y-align", - P_("Vertical Alignment"), - P_("Default vertical alignment for the actors " - "inside the layout manager"), + g_param_spec_enum ("y-align", NULL, NULL, CLUTTER_TYPE_BIN_ALIGNMENT, CLUTTER_BIN_ALIGNMENT_CENTER, CLUTTER_PARAM_READWRITE); diff --git a/clutter/clutter/clutter-bind-constraint.c b/clutter/clutter/clutter-bind-constraint.c index 8f7854e73..404512c9e 100644 --- a/clutter/clutter/clutter-bind-constraint.c +++ b/clutter/clutter/clutter-bind-constraint.c @@ -392,9 +392,7 @@ clutter_bind_constraint_class_init (ClutterBindConstraintClass *klass) * to the constraint. */ obj_props[PROP_SOURCE] = - g_param_spec_object ("source", - P_("Source"), - P_("The source of the binding"), + g_param_spec_object ("source", NULL, NULL, CLUTTER_TYPE_ACTOR, CLUTTER_PARAM_READWRITE | G_PARAM_CONSTRUCT); @@ -404,9 +402,7 @@ clutter_bind_constraint_class_init (ClutterBindConstraintClass *klass) * The coordinate to be bound */ obj_props[PROP_COORDINATE] = - g_param_spec_enum ("coordinate", - P_("Coordinate"), - P_("The coordinate to bind"), + g_param_spec_enum ("coordinate", NULL, NULL, CLUTTER_TYPE_BIND_COORDINATE, CLUTTER_BIND_X, CLUTTER_PARAM_READWRITE | G_PARAM_CONSTRUCT); @@ -417,9 +413,7 @@ clutter_bind_constraint_class_init (ClutterBindConstraintClass *klass) * The offset, in pixels, to be applied to the binding */ obj_props[PROP_OFFSET] = - g_param_spec_float ("offset", - P_("Offset"), - P_("The offset in pixels to apply to the binding"), + g_param_spec_float ("offset", NULL, NULL, -G_MAXFLOAT, G_MAXFLOAT, 0.0f, CLUTTER_PARAM_READWRITE | G_PARAM_CONSTRUCT); diff --git a/clutter/clutter/clutter-binding-pool.c b/clutter/clutter/clutter-binding-pool.c index b94b119d1..0e17d6204 100644 --- a/clutter/clutter/clutter-binding-pool.c +++ b/clutter/clutter/clutter-binding-pool.c @@ -308,9 +308,7 @@ clutter_binding_pool_class_init (ClutterBindingPoolClass *klass) * The unique name of the #ClutterBindingPool. */ obj_props[PROP_NAME] = - g_param_spec_string ("name", - P_("Name"), - P_("The unique name of the binding pool"), + g_param_spec_string ("name", NULL, NULL, NULL, CLUTTER_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY); diff --git a/clutter/clutter/clutter-box-layout.c b/clutter/clutter/clutter-box-layout.c index ccc1b53e1..9f523d9dd 100644 --- a/clutter/clutter/clutter-box-layout.c +++ b/clutter/clutter/clutter-box-layout.c @@ -940,9 +940,7 @@ clutter_box_layout_class_init (ClutterBoxLayoutClass *klass) * or vertical */ obj_props[PROP_ORIENTATION] = - g_param_spec_enum ("orientation", - P_("Orientation"), - P_("The orientation of the layout"), + g_param_spec_enum ("orientation", NULL, NULL, CLUTTER_TYPE_ORIENTATION, CLUTTER_ORIENTATION_HORIZONTAL, G_PARAM_READWRITE | @@ -955,10 +953,7 @@ clutter_box_layout_class_init (ClutterBoxLayoutClass *klass) * homogeneously, i.e. all children get the same size */ obj_props[PROP_HOMOGENEOUS] = - g_param_spec_boolean ("homogeneous", - P_("Homogeneous"), - P_("Whether the layout should be homogeneous, " - "i.e. all children get the same size"), + g_param_spec_boolean ("homogeneous", NULL, NULL, FALSE, CLUTTER_PARAM_READWRITE); @@ -968,9 +963,7 @@ clutter_box_layout_class_init (ClutterBoxLayoutClass *klass) * Deprecated: No longer has any effect */ obj_props[PROP_PACK_START] = - g_param_spec_boolean ("pack-start", - P_("Pack Start"), - P_("Whether to pack items at the start of the box"), + g_param_spec_boolean ("pack-start", NULL, NULL, FALSE, CLUTTER_PARAM_READWRITE | G_PARAM_DEPRECATED); @@ -980,9 +973,7 @@ clutter_box_layout_class_init (ClutterBoxLayoutClass *klass) * The spacing between children of the #ClutterBoxLayout, in pixels */ obj_props[PROP_SPACING] = - g_param_spec_uint ("spacing", - P_("Spacing"), - P_("Spacing between children"), + g_param_spec_uint ("spacing", NULL, NULL, 0, G_MAXUINT, 0, CLUTTER_PARAM_READWRITE); diff --git a/clutter/clutter/clutter-brightness-contrast-effect.c b/clutter/clutter/clutter-brightness-contrast-effect.c index ba6ea76d8..400caa49a 100644 --- a/clutter/clutter/clutter-brightness-contrast-effect.c +++ b/clutter/clutter/clutter-brightness-contrast-effect.c @@ -268,9 +268,7 @@ clutter_brightness_contrast_effect_class_init (ClutterBrightnessContrastEffectCl * brightness. */ obj_props[PROP_BRIGHTNESS] = - clutter_param_spec_color ("brightness", - P_("Brightness"), - P_("The brightness change to apply"), + clutter_param_spec_color ("brightness", NULL, NULL, &no_brightness_change, CLUTTER_PARAM_READWRITE); @@ -286,9 +284,7 @@ clutter_brightness_contrast_effect_class_init (ClutterBrightnessContrastEffectCl * contrast. */ obj_props[PROP_CONTRAST] = - clutter_param_spec_color ("contrast", - P_("Contrast"), - P_("The contrast change to apply"), + clutter_param_spec_color ("contrast", NULL, NULL, &no_contrast_change, CLUTTER_PARAM_READWRITE); diff --git a/clutter/clutter/clutter-canvas.c b/clutter/clutter/clutter-canvas.c index cb024871a..b1a1e49ae 100644 --- a/clutter/clutter/clutter-canvas.c +++ b/clutter/clutter/clutter-canvas.c @@ -234,9 +234,7 @@ clutter_canvas_class_init (ClutterCanvasClass *klass) * The width of the canvas. */ obj_props[PROP_WIDTH] = - g_param_spec_int ("width", - P_("Width"), - P_("The width of the canvas"), + g_param_spec_int ("width", NULL, NULL, -1, G_MAXINT, -1, G_PARAM_READWRITE | @@ -248,9 +246,7 @@ clutter_canvas_class_init (ClutterCanvasClass *klass) * The height of the canvas. */ obj_props[PROP_HEIGHT] = - g_param_spec_int ("height", - P_("Height"), - P_("The height of the canvas"), + g_param_spec_int ("height", NULL, NULL, -1, G_MAXINT, -1, G_PARAM_READWRITE | @@ -262,9 +258,7 @@ clutter_canvas_class_init (ClutterCanvasClass *klass) * The height of the canvas. */ obj_props[PROP_SCALE_FACTOR] = - g_param_spec_float ("scale-factor", - P_("Scale Factor"), - P_("The Scale factor of the canvas"), + g_param_spec_float ("scale-factor", NULL, NULL, 0.01f, G_MAXFLOAT, 1.0f, G_PARAM_READWRITE | diff --git a/clutter/clutter/clutter-child-meta.c b/clutter/clutter/clutter-child-meta.c index 284d99488..6cad8920f 100644 --- a/clutter/clutter/clutter-child-meta.c +++ b/clutter/clutter/clutter-child-meta.c @@ -147,9 +147,7 @@ clutter_child_meta_class_init (ClutterChildMetaClass *klass) * The #ClutterContainer that created this #ClutterChildMeta. */ obj_props[PROP_CONTAINER] = - g_param_spec_object ("container", - P_("Container"), - P_("The container that created this data"), + g_param_spec_object ("container", NULL, NULL, CLUTTER_TYPE_CONTAINER, G_PARAM_CONSTRUCT_ONLY | CLUTTER_PARAM_READWRITE); @@ -160,9 +158,7 @@ clutter_child_meta_class_init (ClutterChildMetaClass *klass) * The #ClutterActor being wrapped by this #ClutterChildMeta */ obj_props[PROP_ACTOR] = - g_param_spec_object ("actor", - P_("Actor"), - P_("The actor wrapped by this data"), + g_param_spec_object ("actor", NULL, NULL, CLUTTER_TYPE_ACTOR, G_PARAM_CONSTRUCT_ONLY | CLUTTER_PARAM_READWRITE); diff --git a/clutter/clutter/clutter-click-action.c b/clutter/clutter/clutter-click-action.c index 4e6b53630..72405717a 100644 --- a/clutter/clutter/clutter-click-action.c +++ b/clutter/clutter/clutter-click-action.c @@ -558,9 +558,7 @@ clutter_click_action_class_init (ClutterClickActionClass *klass) * Whether the clickable actor should be in "pressed" state */ obj_props[PROP_PRESSED] = - g_param_spec_boolean ("pressed", - P_("Pressed"), - P_("Whether the clickable should be in pressed state"), + g_param_spec_boolean ("pressed", NULL, NULL, FALSE, CLUTTER_PARAM_READABLE); @@ -570,9 +568,7 @@ clutter_click_action_class_init (ClutterClickActionClass *klass) * Whether the clickable actor has the pointer grabbed */ obj_props[PROP_HELD] = - g_param_spec_boolean ("held", - P_("Held"), - P_("Whether the clickable has a grab"), + g_param_spec_boolean ("held", NULL, NULL, FALSE, CLUTTER_PARAM_READABLE); @@ -586,9 +582,7 @@ clutter_click_action_class_init (ClutterClickActionClass *klass) * the [property@Settings:long-press-duration] property. */ obj_props[PROP_LONG_PRESS_DURATION] = - g_param_spec_int ("long-press-duration", - P_("Long Press Duration"), - P_("The minimum duration of a long press to recognize the gesture"), + g_param_spec_int ("long-press-duration", NULL, NULL, -1, G_MAXINT, -1, CLUTTER_PARAM_READWRITE); @@ -603,9 +597,7 @@ clutter_click_action_class_init (ClutterClickActionClass *klass) * the [property@Settings:dnd-drag-threshold] property. */ obj_props[PROP_LONG_PRESS_THRESHOLD] = - g_param_spec_int ("long-press-threshold", - P_("Long Press Threshold"), - P_("The maximum threshold before a long press is cancelled"), + g_param_spec_int ("long-press-threshold", NULL, NULL, -1, G_MAXINT, -1, CLUTTER_PARAM_READWRITE); diff --git a/clutter/clutter/clutter-clone.c b/clutter/clutter/clutter-clone.c index f3fccd630..cad186d1b 100644 --- a/clutter/clutter/clutter-clone.c +++ b/clutter/clutter/clutter-clone.c @@ -355,9 +355,7 @@ clutter_clone_class_init (ClutterCloneClass *klass) * This property specifies the source actor being cloned. */ obj_props[PROP_SOURCE] = - g_param_spec_object ("source", - P_("Source"), - P_("Specifies the actor to be cloned"), + g_param_spec_object ("source", NULL, NULL, CLUTTER_TYPE_ACTOR, G_PARAM_CONSTRUCT | CLUTTER_PARAM_READWRITE); diff --git a/clutter/clutter/clutter-color-state.c b/clutter/clutter/clutter-color-state.c index 8d80fa523..2fd26a241 100644 --- a/clutter/clutter/clutter-color-state.c +++ b/clutter/clutter/clutter-color-state.c @@ -150,9 +150,7 @@ clutter_color_state_class_init (ClutterColorStateClass *klass) * defaults to sRGB colorspace */ obj_props[PROP_COLORSPACE] = - g_param_spec_enum ("colorspace", - P_("Colorspace"), - P_("Colorspace information of the color state"), + g_param_spec_enum ("colorspace", NULL, NULL, CLUTTER_TYPE_COLORSPACE, CLUTTER_COLORSPACE_SRGB, CLUTTER_PARAM_READWRITE | diff --git a/clutter/clutter/clutter-colorize-effect.c b/clutter/clutter/clutter-colorize-effect.c index 697900ac0..26395e323 100644 --- a/clutter/clutter/clutter-colorize-effect.c +++ b/clutter/clutter/clutter-colorize-effect.c @@ -182,9 +182,7 @@ clutter_colorize_effect_class_init (ClutterColorizeEffectClass *klass) * The tint to apply to the actor */ obj_props[PROP_TINT] = - clutter_param_spec_color ("tint", - P_("Tint"), - P_("The tint to apply"), + clutter_param_spec_color ("tint", NULL, NULL, &default_tint, CLUTTER_PARAM_READWRITE); diff --git a/clutter/clutter/clutter-deform-effect.c b/clutter/clutter/clutter-deform-effect.c index f67b22819..7c9bd458f 100644 --- a/clutter/clutter/clutter-deform-effect.c +++ b/clutter/clutter/clutter-deform-effect.c @@ -595,9 +595,7 @@ clutter_deform_effect_class_init (ClutterDeformEffectClass *klass) * smaller the tiles */ obj_props[PROP_X_TILES] = - g_param_spec_uint ("x-tiles", - P_("Horizontal Tiles"), - P_("The number of horizontal tiles"), + g_param_spec_uint ("x-tiles", NULL, NULL, 1, G_MAXUINT, DEFAULT_N_TILES, CLUTTER_PARAM_READWRITE); @@ -609,9 +607,7 @@ clutter_deform_effect_class_init (ClutterDeformEffectClass *klass) * smaller the tiles */ obj_props[PROP_Y_TILES] = - g_param_spec_uint ("y-tiles", - P_("Vertical Tiles"), - P_("The number of vertical tiles"), + g_param_spec_uint ("y-tiles", NULL, NULL, 1, G_MAXUINT, DEFAULT_N_TILES, CLUTTER_PARAM_READWRITE); @@ -625,9 +621,7 @@ clutter_deform_effect_class_init (ClutterDeformEffectClass *klass) * By default, no material will be used */ obj_props[PROP_BACK_MATERIAL] = - g_param_spec_boxed ("back-material", - P_("Back Material"), - P_("The material to be used when painting the back of the actor"), + g_param_spec_boxed ("back-material", NULL, NULL, COGL_TYPE_HANDLE, CLUTTER_PARAM_READWRITE); diff --git a/clutter/clutter/clutter-desaturate-effect.c b/clutter/clutter/clutter-desaturate-effect.c index 10246167f..e82c6456b 100644 --- a/clutter/clutter/clutter-desaturate-effect.c +++ b/clutter/clutter/clutter-desaturate-effect.c @@ -199,9 +199,7 @@ clutter_desaturate_effect_class_init (ClutterDesaturateEffectClass *klass) * desaturation). */ obj_props[PROP_FACTOR] = - g_param_spec_double ("factor", - P_("Factor"), - P_("The desaturation factor"), + g_param_spec_double ("factor", NULL, NULL, 0.0, 1.0, 1.0, CLUTTER_PARAM_READWRITE); diff --git a/clutter/clutter/clutter-flow-layout.c b/clutter/clutter/clutter-flow-layout.c index 72a8d0669..361b5d988 100644 --- a/clutter/clutter/clutter-flow-layout.c +++ b/clutter/clutter/clutter-flow-layout.c @@ -917,9 +917,7 @@ clutter_flow_layout_class_init (ClutterFlowLayoutClass *klass) * This property also controls the overflowing directions */ flow_properties[PROP_ORIENTATION] = - g_param_spec_enum ("orientation", - P_("Orientation"), - P_("The orientation of the layout"), + g_param_spec_enum ("orientation", NULL, NULL, CLUTTER_TYPE_FLOW_ORIENTATION, CLUTTER_FLOW_HORIZONTAL, CLUTTER_PARAM_READWRITE | G_PARAM_CONSTRUCT); @@ -931,9 +929,7 @@ clutter_flow_layout_class_init (ClutterFlowLayoutClass *klass) * the same allocation */ flow_properties[PROP_HOMOGENEOUS] = - g_param_spec_boolean ("homogeneous", - P_("Homogeneous"), - P_("Whether each item should receive the same allocation"), + g_param_spec_boolean ("homogeneous", NULL, NULL, FALSE, CLUTTER_PARAM_READWRITE); @@ -945,9 +941,7 @@ clutter_flow_layout_class_init (ClutterFlowLayoutClass *klass) * and by vertical overflowing layouts */ flow_properties[PROP_COLUMN_SPACING] = - g_param_spec_float ("column-spacing", - P_("Column Spacing"), - P_("The spacing between columns"), + g_param_spec_float ("column-spacing", NULL, NULL, 0.0, G_MAXFLOAT, 0.0, CLUTTER_PARAM_READWRITE); @@ -960,9 +954,7 @@ clutter_flow_layout_class_init (ClutterFlowLayoutClass *klass) * by horizontal overflowing layouts */ flow_properties[PROP_ROW_SPACING] = - g_param_spec_float ("row-spacing", - P_("Row Spacing"), - P_("The spacing between rows"), + g_param_spec_float ("row-spacing", NULL, NULL, 0.0, G_MAXFLOAT, 0.0, CLUTTER_PARAM_READWRITE); @@ -973,9 +965,7 @@ clutter_flow_layout_class_init (ClutterFlowLayoutClass *klass) * Minimum width for each column in the layout, in pixels */ flow_properties[PROP_MIN_COLUMN_WIDTH] = - g_param_spec_float ("min-column-width", - P_("Minimum Column Width"), - P_("Minimum width for each column"), + g_param_spec_float ("min-column-width", NULL, NULL, 0.0, G_MAXFLOAT, 0.0, CLUTTER_PARAM_READWRITE); @@ -987,9 +977,7 @@ clutter_flow_layout_class_init (ClutterFlowLayoutClass *klass) * set to -1 the width will be the maximum child width */ flow_properties[PROP_MAX_COLUMN_WIDTH] = - g_param_spec_float ("max-column-width", - P_("Maximum Column Width"), - P_("Maximum width for each column"), + g_param_spec_float ("max-column-width", NULL, NULL, -1.0, G_MAXFLOAT, -1.0, CLUTTER_PARAM_READWRITE); @@ -1000,9 +988,7 @@ clutter_flow_layout_class_init (ClutterFlowLayoutClass *klass) * Minimum height for each row in the layout, in pixels */ flow_properties[PROP_MIN_ROW_HEGHT] = - g_param_spec_float ("min-row-height", - P_("Minimum Row Height"), - P_("Minimum height for each row"), + g_param_spec_float ("min-row-height", NULL, NULL, 0.0, G_MAXFLOAT, 0.0, CLUTTER_PARAM_READWRITE); @@ -1014,9 +1000,7 @@ clutter_flow_layout_class_init (ClutterFlowLayoutClass *klass) * set to -1 the width will be the maximum child height */ flow_properties[PROP_MAX_ROW_HEIGHT] = - g_param_spec_float ("max-row-height", - P_("Maximum Row Height"), - P_("Maximum height for each row"), + g_param_spec_float ("max-row-height", NULL, NULL, -1.0, G_MAXFLOAT, -1.0, CLUTTER_PARAM_READWRITE); @@ -1028,9 +1012,7 @@ clutter_flow_layout_class_init (ClutterFlowLayoutClass *klass) * on a grid */ flow_properties[PROP_SNAP_TO_GRID] = - g_param_spec_boolean ("snap-to-grid", - P_("Snap to grid"), - P_("Snap to grid"), + g_param_spec_boolean ("snap-to-grid", NULL, NULL, TRUE, CLUTTER_PARAM_READWRITE); diff --git a/clutter/clutter/clutter-gesture-action.c b/clutter/clutter/clutter-gesture-action.c index ba843033d..613a1b1fb 100644 --- a/clutter/clutter/clutter-gesture-action.c +++ b/clutter/clutter/clutter-gesture-action.c @@ -676,9 +676,7 @@ clutter_gesture_action_class_init (ClutterGestureActionClass *klass) * Number of touch points to trigger a gesture action. */ gesture_props[PROP_N_TOUCH_POINTS] = - g_param_spec_int ("n-touch-points", - P_("Number touch points"), - P_("Number of touch points"), + g_param_spec_int ("n-touch-points", NULL, NULL, 1, G_MAXINT, 1, CLUTTER_PARAM_READWRITE); @@ -690,9 +688,7 @@ clutter_gesture_action_class_init (ClutterGestureActionClass *klass) * [signal@GestureAction::gesture-cancel] signal. */ gesture_props[PROP_THRESHOLD_TRIGGER_EDGE] = - g_param_spec_enum ("threshold-trigger-edge", - P_("Threshold Trigger Edge"), - P_("The trigger edge used by the action"), + g_param_spec_enum ("threshold-trigger-edge", NULL, NULL, CLUTTER_TYPE_GESTURE_TRIGGER_EDGE, CLUTTER_GESTURE_TRIGGER_EDGE_NONE, CLUTTER_PARAM_READWRITE | @@ -708,9 +704,7 @@ clutter_gesture_action_class_init (ClutterGestureActionClass *klass) * A negative value will be interpreted as the default drag threshold. */ gesture_props[PROP_THRESHOLD_TRIGGER_DISTANCE_X] = - g_param_spec_float ("threshold-trigger-distance-x", - P_("Threshold Trigger Horizontal Distance"), - P_("The horizontal trigger distance used by the action"), + g_param_spec_float ("threshold-trigger-distance-x", NULL, NULL, -1.0, G_MAXFLOAT, -1.0, CLUTTER_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY); @@ -725,9 +719,7 @@ clutter_gesture_action_class_init (ClutterGestureActionClass *klass) * A negative value will be interpreted as the default drag threshold. */ gesture_props[PROP_THRESHOLD_TRIGGER_DISTANCE_Y] = - g_param_spec_float ("threshold-trigger-distance-y", - P_("Threshold Trigger Vertical Distance"), - P_("The vertical trigger distance used by the action"), + g_param_spec_float ("threshold-trigger-distance-y", NULL, NULL, -1.0, G_MAXFLOAT, -1.0, CLUTTER_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY); diff --git a/clutter/clutter/clutter-grid-layout.c b/clutter/clutter/clutter-grid-layout.c index 5a4f7b4fb..848fd46a9 100644 --- a/clutter/clutter/clutter-grid-layout.c +++ b/clutter/clutter/clutter-grid-layout.c @@ -1216,32 +1216,22 @@ clutter_grid_child_class_init (ClutterGridChildClass *klass) gobject_class->get_property = clutter_grid_child_get_property; child_props[PROP_CHILD_LEFT_ATTACH] = - g_param_spec_int ("left-attach", - P_("Left attachment"), - P_("The column number to attach the left side of the " - "child to"), + g_param_spec_int ("left-attach", NULL, NULL, -G_MAXINT, G_MAXINT, 0, G_PARAM_STATIC_STRINGS | G_PARAM_READWRITE); child_props[PROP_CHILD_TOP_ATTACH] = - g_param_spec_int ("top-attach", - P_("Top attachment"), - P_("The row number to attach the top side of a child " - "widget to"), + g_param_spec_int ("top-attach", NULL, NULL, -G_MAXINT, G_MAXINT, 0, G_PARAM_STATIC_STRINGS | G_PARAM_READWRITE); child_props[PROP_CHILD_WIDTH] = - g_param_spec_int ("width", - P_("Width"), - P_("The number of columns that a child spans"), + g_param_spec_int ("width", NULL, NULL, -G_MAXINT, G_MAXINT, 1, G_PARAM_STATIC_STRINGS | G_PARAM_READWRITE); child_props[PROP_CHILD_HEIGHT] = - g_param_spec_int ("height", - P_("Height"), - P_("The number of rows that a child spans"), + g_param_spec_int ("height", NULL, NULL, -G_MAXINT, G_MAXINT, 1, G_PARAM_STATIC_STRINGS | G_PARAM_READWRITE); @@ -1558,9 +1548,7 @@ clutter_grid_layout_class_init (ClutterGridLayoutClass *klass) * The orientation of the layout, either horizontal or vertical */ obj_props[PROP_ORIENTATION] = - g_param_spec_enum ("orientation", - P_("Orientation"), - P_("The orientation of the layout"), + g_param_spec_enum ("orientation", NULL, NULL, CLUTTER_TYPE_ORIENTATION, CLUTTER_ORIENTATION_HORIZONTAL, G_PARAM_STATIC_STRINGS | G_PARAM_READWRITE); @@ -1571,9 +1559,7 @@ clutter_grid_layout_class_init (ClutterGridLayoutClass *klass) * The amount of space in pixels between two consecutive rows */ obj_props[PROP_ROW_SPACING] = - g_param_spec_uint ("row-spacing", - P_("Row spacing"), - P_("The amount of space between two consecutive rows"), + g_param_spec_uint ("row-spacing", NULL, NULL, 0, G_MAXUINT, 0, G_PARAM_STATIC_STRINGS | G_PARAM_READWRITE); @@ -1583,10 +1569,7 @@ clutter_grid_layout_class_init (ClutterGridLayoutClass *klass) * The amount of space in pixels between two consecutive columns */ obj_props[PROP_COLUMN_SPACING] = - g_param_spec_uint ("column-spacing", - P_("Column spacing"), - P_("The amount of space between two consecutive " - "columns"), + g_param_spec_uint ("column-spacing", NULL, NULL, 0, G_MAXUINT, 0, G_PARAM_STATIC_STRINGS | G_PARAM_READWRITE); @@ -1596,9 +1579,7 @@ clutter_grid_layout_class_init (ClutterGridLayoutClass *klass) * Whether all rows of the layout should have the same height */ obj_props[PROP_ROW_HOMOGENEOUS] = - g_param_spec_boolean ("row-homogeneous", - P_("Row Homogeneous"), - P_("If TRUE, the rows are all the same height"), + g_param_spec_boolean ("row-homogeneous", NULL, NULL, FALSE, G_PARAM_STATIC_STRINGS | G_PARAM_READWRITE); @@ -1608,9 +1589,7 @@ clutter_grid_layout_class_init (ClutterGridLayoutClass *klass) * Whether all columns of the layout should have the same width */ obj_props[PROP_COLUMN_HOMOGENEOUS] = - g_param_spec_boolean ("column-homogeneous", - P_("Column Homogeneous"), - P_("If TRUE, the columns are all the same width"), + g_param_spec_boolean ("column-homogeneous", NULL, NULL, FALSE, G_PARAM_STATIC_STRINGS | G_PARAM_READWRITE); diff --git a/clutter/clutter/clutter-input-device-tool.c b/clutter/clutter/clutter-input-device-tool.c index a56bd487f..4883c512e 100644 --- a/clutter/clutter/clutter-input-device-tool.c +++ b/clutter/clutter/clutter-input-device-tool.c @@ -119,28 +119,20 @@ clutter_input_device_tool_class_init (ClutterInputDeviceToolClass *klass) gobject_class->get_property = clutter_input_device_tool_get_property; props[PROP_TYPE] = - g_param_spec_enum ("type", - P_("Tool type"), - P_("Tool type"), + g_param_spec_enum ("type", NULL, NULL, CLUTTER_TYPE_INPUT_DEVICE_TOOL_TYPE, CLUTTER_INPUT_DEVICE_TOOL_NONE, CLUTTER_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY); props[PROP_SERIAL] = - g_param_spec_uint64 ("serial", - P_("Tool serial"), - P_("Tool serial"), + g_param_spec_uint64 ("serial", NULL, NULL, 0, G_MAXUINT64, 0, CLUTTER_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY); props[PROP_ID] = - g_param_spec_uint64 ("id", - P_("Tool ID"), - P_("Tool ID"), + g_param_spec_uint64 ("id", NULL, NULL, 0, G_MAXUINT64, 0, CLUTTER_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY); props[PROP_AXES] = - g_param_spec_flags ("axes", - P_("Axes"), - P_("Axes"), + g_param_spec_flags ("axes", NULL, NULL, CLUTTER_TYPE_INPUT_AXIS_FLAGS, CLUTTER_INPUT_AXIS_FLAG_NONE, CLUTTER_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY); diff --git a/clutter/clutter/clutter-input-device.c b/clutter/clutter/clutter-input-device.c index 161bed3da..221777331 100644 --- a/clutter/clutter/clutter-input-device.c +++ b/clutter/clutter/clutter-input-device.c @@ -317,9 +317,7 @@ clutter_input_device_class_init (ClutterInputDeviceClass *klass) * The name of the device */ obj_props[PROP_NAME] = - g_param_spec_string ("name", - P_("Name"), - P_("The name of the device"), + g_param_spec_string ("name", NULL, NULL, NULL, CLUTTER_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY); @@ -330,9 +328,7 @@ clutter_input_device_class_init (ClutterInputDeviceClass *klass) * The type of the device */ obj_props[PROP_DEVICE_TYPE] = - g_param_spec_enum ("device-type", - P_("Device Type"), - P_("The type of the device"), + g_param_spec_enum ("device-type", NULL, NULL, CLUTTER_TYPE_INPUT_DEVICE_TYPE, CLUTTER_POINTER_DEVICE, CLUTTER_PARAM_READWRITE | @@ -344,9 +340,7 @@ clutter_input_device_class_init (ClutterInputDeviceClass *klass) * The capabilities of the device */ obj_props[PROP_CAPABILITIES] = - g_param_spec_flags ("capabilities", - P_("Capabilities"), - P_("The capabilities of the device"), + g_param_spec_flags ("capabilities", NULL, NULL, CLUTTER_TYPE_INPUT_CAPABILITIES, 0, CLUTTER_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY); @@ -357,9 +351,7 @@ clutter_input_device_class_init (ClutterInputDeviceClass *klass) * The #ClutterSeat instance which owns the device */ obj_props[PROP_SEAT] = - g_param_spec_object ("seat", - P_("Seat"), - P_("Seat"), + g_param_spec_object ("seat", NULL, NULL, CLUTTER_TYPE_SEAT, CLUTTER_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY); @@ -369,9 +361,7 @@ clutter_input_device_class_init (ClutterInputDeviceClass *klass) * The mode of the device. */ obj_props[PROP_DEVICE_MODE] = - g_param_spec_enum ("device-mode", - P_("Device Mode"), - P_("The mode of the device"), + g_param_spec_enum ("device-mode", NULL, NULL, CLUTTER_TYPE_INPUT_MODE, CLUTTER_INPUT_MODE_FLOATING, CLUTTER_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY); @@ -382,9 +372,7 @@ clutter_input_device_class_init (ClutterInputDeviceClass *klass) * Whether the device has an on screen cursor following its movement. */ obj_props[PROP_HAS_CURSOR] = - g_param_spec_boolean ("has-cursor", - P_("Has Cursor"), - P_("Whether the device has a cursor"), + g_param_spec_boolean ("has-cursor", NULL, NULL, FALSE, CLUTTER_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY); @@ -394,9 +382,7 @@ clutter_input_device_class_init (ClutterInputDeviceClass *klass) * Vendor ID of this device.2 */ obj_props[PROP_VENDOR_ID] = - g_param_spec_string ("vendor-id", - P_("Vendor ID"), - P_("Vendor ID"), + g_param_spec_string ("vendor-id", NULL, NULL, NULL, CLUTTER_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY); @@ -406,44 +392,32 @@ clutter_input_device_class_init (ClutterInputDeviceClass *klass) * Product ID of this device.2 */ obj_props[PROP_PRODUCT_ID] = - g_param_spec_string ("product-id", - P_("Product ID"), - P_("Product ID"), + g_param_spec_string ("product-id", NULL, NULL, NULL, CLUTTER_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY); obj_props[PROP_N_RINGS] = - g_param_spec_int ("n-rings", - P_("Number of rings"), - P_("Number of rings (circular sliders) in this device"), + g_param_spec_int ("n-rings", NULL, NULL, 0, G_MAXINT, 0, CLUTTER_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY); obj_props[PROP_N_STRIPS] = - g_param_spec_int ("n-strips", - P_("Number of strips"), - P_("Number of strips (linear sliders) in this device"), + g_param_spec_int ("n-strips", NULL, NULL, 0, G_MAXINT, 0, CLUTTER_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY); obj_props[PROP_N_MODE_GROUPS] = - g_param_spec_int ("n-mode-groups", - P_("Number of mode groups"), - P_("Number of mode groups"), + g_param_spec_int ("n-mode-groups", NULL, NULL, 0, G_MAXINT, 0, CLUTTER_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY); obj_props[PROP_N_BUTTONS] = - g_param_spec_int ("n-buttons", - P_("Number of buttons"), - P_("Number of buttons"), + g_param_spec_int ("n-buttons", NULL, NULL, 0, G_MAXINT, 0, CLUTTER_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY); obj_props[PROP_DEVICE_NODE] = - g_param_spec_string ("device-node", - P_("Device node path"), - P_("Device node path"), + g_param_spec_string ("device-node", NULL, NULL, NULL, CLUTTER_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY); diff --git a/clutter/clutter/clutter-input-method.c b/clutter/clutter/clutter-input-method.c index 75b282c71..e586a6baf 100644 --- a/clutter/clutter/clutter-input-method.c +++ b/clutter/clutter/clutter-input-method.c @@ -190,23 +190,17 @@ clutter_input_method_class_init (ClutterInputMethodClass *klass) G_TYPE_NONE, 1, GRAPHENE_TYPE_RECT); pspecs[PROP_CONTENT_HINTS] = - g_param_spec_flags ("content-hints", - P_("Content hints"), - P_("Content hints"), + g_param_spec_flags ("content-hints", NULL, NULL, CLUTTER_TYPE_INPUT_CONTENT_HINT_FLAGS, 0, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); pspecs[PROP_CONTENT_PURPOSE] = - g_param_spec_enum ("content-purpose", - P_("Content purpose"), - P_("Content purpose"), + g_param_spec_enum ("content-purpose", NULL, NULL, CLUTTER_TYPE_INPUT_CONTENT_PURPOSE, 0, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); pspecs[PROP_CAN_SHOW_PREEDIT] = - g_param_spec_boolean ("can-show-preedit", - P_("Can show preedit"), - P_("Can show preedit"), + g_param_spec_boolean ("can-show-preedit", NULL, NULL, FALSE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); diff --git a/clutter/clutter/clutter-interval.c b/clutter/clutter/clutter-interval.c index bc4f6588e..c72ce9877 100644 --- a/clutter/clutter/clutter-interval.c +++ b/clutter/clutter/clutter-interval.c @@ -525,9 +525,7 @@ clutter_interval_class_init (ClutterIntervalClass *klass) * The type of the values in the interval. */ obj_props[PROP_VALUE_TYPE] = - g_param_spec_gtype ("value-type", - P_("Value Type"), - P_("The type of the values in the interval"), + g_param_spec_gtype ("value-type", NULL, NULL, G_TYPE_NONE, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | @@ -539,9 +537,7 @@ clutter_interval_class_init (ClutterIntervalClass *klass) * The initial value of the interval. */ obj_props[PROP_INITIAL] = - g_param_spec_boxed ("initial", - P_("Initial Value"), - P_("Initial value of the interval"), + g_param_spec_boxed ("initial", NULL, NULL, G_TYPE_VALUE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); @@ -552,9 +548,7 @@ clutter_interval_class_init (ClutterIntervalClass *klass) * The final value of the interval. */ obj_props[PROP_FINAL] = - g_param_spec_boxed ("final", - P_("Final Value"), - P_("Final value of the interval"), + g_param_spec_boxed ("final", NULL, NULL, G_TYPE_VALUE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); diff --git a/clutter/clutter/clutter-keymap.c b/clutter/clutter/clutter-keymap.c index 1f1041fe0..2c2303a2f 100644 --- a/clutter/clutter/clutter-keymap.c +++ b/clutter/clutter/clutter-keymap.c @@ -108,16 +108,12 @@ clutter_keymap_class_init (ClutterKeymapClass *klass) object_class->set_property = clutter_keymap_set_property; obj_props[PROP_CAPS_LOCK_STATE] = - g_param_spec_boolean ("caps-lock-state", - "Caps lock state", - "Caps lock state", + g_param_spec_boolean ("caps-lock-state", NULL, NULL, FALSE, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS); obj_props[PROP_NUM_LOCK_STATE] = - g_param_spec_boolean ("num-lock-state", - "Num lock state", - "Num lock state", + g_param_spec_boolean ("num-lock-state", NULL, NULL, FALSE, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS); diff --git a/clutter/clutter/clutter-layout-meta.c b/clutter/clutter/clutter-layout-meta.c index 2a4c46c06..0f30250a4 100644 --- a/clutter/clutter/clutter-layout-meta.c +++ b/clutter/clutter/clutter-layout-meta.c @@ -109,9 +109,7 @@ clutter_layout_meta_class_init (ClutterLayoutMetaClass *klass) * * The [class@LayoutManager] that created this #ClutterLayoutMeta. */ - pspec = g_param_spec_object ("manager", - P_("Manager"), - P_("The manager that created this data"), + pspec = g_param_spec_object ("manager", NULL, NULL, CLUTTER_TYPE_LAYOUT_MANAGER, G_PARAM_CONSTRUCT_ONLY | CLUTTER_PARAM_READWRITE); diff --git a/clutter/clutter/clutter-page-turn-effect.c b/clutter/clutter/clutter-page-turn-effect.c index d4d5fed74..bc0a95b91 100644 --- a/clutter/clutter/clutter-page-turn-effect.c +++ b/clutter/clutter/clutter-page-turn-effect.c @@ -215,9 +215,7 @@ clutter_page_turn_effect_class_init (ClutterPageTurnEffectClass *klass) * The period of the page turn, between 0.0 (no curling) and * 1.0 (fully curled) */ - pspec = g_param_spec_double ("period", - "Period", - "The period of the page turn", + pspec = g_param_spec_double ("period", NULL, NULL, 0.0, 1.0, 0.0, CLUTTER_PARAM_READWRITE); @@ -229,9 +227,7 @@ clutter_page_turn_effect_class_init (ClutterPageTurnEffectClass *klass) * * The angle of the page rotation, in degrees, between 0.0 and 360.0 */ - pspec = g_param_spec_double ("angle", - "Angle", - "The angle of the page rotation, in degrees", + pspec = g_param_spec_double ("angle", NULL, NULL, 0.0, 360.0, 0.0, CLUTTER_PARAM_READWRITE); @@ -243,9 +239,7 @@ clutter_page_turn_effect_class_init (ClutterPageTurnEffectClass *klass) * * The radius of the page curl, in pixels */ - pspec = g_param_spec_float ("radius", - "Radius", - "The radius of the page curl", + pspec = g_param_spec_float ("radius", NULL, NULL, -G_MAXFLOAT, G_MAXFLOAT, 24.0, CLUTTER_PARAM_READWRITE); diff --git a/clutter/clutter/clutter-pan-action.c b/clutter/clutter/clutter-pan-action.c index 4f0652e42..4688003a6 100644 --- a/clutter/clutter/clutter-pan-action.c +++ b/clutter/clutter/clutter-pan-action.c @@ -476,9 +476,7 @@ clutter_pan_action_class_init (ClutterPanActionClass *klass) * Constraints the panning action to the specified axis */ pan_props[PROP_PAN_AXIS] = - g_param_spec_enum ("pan-axis", - P_("Pan Axis"), - P_("Constraints the panning to an axis"), + g_param_spec_enum ("pan-axis", NULL, NULL, CLUTTER_TYPE_PAN_AXIS, CLUTTER_PAN_AXIS_NONE, CLUTTER_PARAM_READWRITE); @@ -489,9 +487,7 @@ clutter_pan_action_class_init (ClutterPanActionClass *klass) * Whether interpolated events emission is enabled. */ pan_props[PROP_INTERPOLATE] = - g_param_spec_boolean ("interpolate", - P_("Interpolate"), - P_("Whether interpolated events emission is enabled."), + g_param_spec_boolean ("interpolate", NULL, NULL, FALSE, CLUTTER_PARAM_READWRITE); @@ -504,9 +500,7 @@ clutter_pan_action_class_init (ClutterPanActionClass *klass) * scroll deltas, using the rate specified by this property. */ pan_props[PROP_DECELERATION] = - g_param_spec_double ("deceleration", - P_("Deceleration"), - P_("Rate at which the interpolated panning will decelerate in"), + g_param_spec_double ("deceleration", NULL, NULL, FLOAT_EPSILON, 1.0, default_deceleration_rate, CLUTTER_PARAM_READWRITE); @@ -520,9 +514,7 @@ clutter_pan_action_class_init (ClutterPanActionClass *klass) * to generate interpolated ::pan events. */ pan_props[PROP_ACCELERATION_FACTOR] = - g_param_spec_double ("acceleration-factor", - P_("Initial acceleration factor"), - P_("Factor applied to the momentum when starting the interpolated phase"), + g_param_spec_double ("acceleration-factor", NULL, NULL, 1.0, G_MAXDOUBLE, default_acceleration_factor, CLUTTER_PARAM_READWRITE); diff --git a/clutter/clutter/clutter-path-constraint.c b/clutter/clutter/clutter-path-constraint.c index 147b6bb0b..def1a5ec3 100644 --- a/clutter/clutter/clutter-path-constraint.c +++ b/clutter/clutter/clutter-path-constraint.c @@ -202,9 +202,7 @@ clutter_path_constraint_class_init (ClutterPathConstraintClass *klass) * The #ClutterPath used to constrain the position of an actor. */ path_properties[PROP_PATH] = - g_param_spec_object ("path", - P_("Path"), - P_("The path used to constrain an actor"), + g_param_spec_object ("path", NULL, NULL, CLUTTER_TYPE_PATH, CLUTTER_PARAM_READWRITE); @@ -214,9 +212,7 @@ clutter_path_constraint_class_init (ClutterPathConstraintClass *klass) * The offset along the #ClutterPathConstraint:path, between -1.0 and 2.0. */ path_properties[PROP_OFFSET] = - g_param_spec_float ("offset", - P_("Offset"), - P_("The offset along the path, between -1.0 and 2.0"), + g_param_spec_float ("offset", NULL, NULL, -1.0, 2.0, 0.0, CLUTTER_PARAM_READWRITE); diff --git a/clutter/clutter/clutter-path.c b/clutter/clutter/clutter-path.c index 6e0928ce5..81d6a9a06 100644 --- a/clutter/clutter/clutter-path.c +++ b/clutter/clutter/clutter-path.c @@ -183,18 +183,13 @@ clutter_path_class_init (ClutterPathClass *klass) gobject_class->set_property = clutter_path_set_property; gobject_class->finalize = clutter_path_finalize; - pspec = g_param_spec_string ("description", - "Description", - "SVG-style description of the path", + pspec = g_param_spec_string ("description", NULL, NULL, "", CLUTTER_PARAM_READWRITE); obj_props[PROP_DESCRIPTION] = pspec; g_object_class_install_property (gobject_class, PROP_DESCRIPTION, pspec); - pspec = g_param_spec_uint ("length", - "Length", - "An approximation of the total length " - "of the path.", + pspec = g_param_spec_uint ("length", NULL, NULL, 0, G_MAXUINT, 0, CLUTTER_PARAM_READABLE); obj_props[PROP_LENGTH] = pspec; diff --git a/clutter/clutter/clutter-property-transition.c b/clutter/clutter/clutter-property-transition.c index 7a4b6a266..0163affdb 100644 --- a/clutter/clutter/clutter-property-transition.c +++ b/clutter/clutter/clutter-property-transition.c @@ -259,9 +259,7 @@ clutter_property_transition_class_init (ClutterPropertyTransitionClass *klass) * The name of the property of a [iface@Animatable] to animate. */ obj_props[PROP_PROPERTY_NAME] = - g_param_spec_string ("property-name", - P_("Property Name"), - P_("The name of the property to animate"), + g_param_spec_string ("property-name", NULL, NULL, NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); diff --git a/clutter/clutter/clutter-script.c b/clutter/clutter/clutter-script.c index 66144c6f0..724f9b3a5 100644 --- a/clutter/clutter/clutter-script.c +++ b/clutter/clutter/clutter-script.c @@ -338,9 +338,7 @@ clutter_script_class_init (ClutterScriptClass *klass) * file name is stored inside the [property@Script:filename] property. */ obj_props[PROP_FILENAME_SET] = - g_param_spec_boolean ("filename-set", - P_("Filename Set"), - P_("Whether the :filename property is set"), + g_param_spec_boolean ("filename-set", NULL, NULL, FALSE, CLUTTER_PARAM_READABLE); @@ -351,9 +349,7 @@ clutter_script_class_init (ClutterScriptClass *klass) * is %FALSE then the value of this property is undefined. */ obj_props[PROP_FILENAME] = - g_param_spec_string ("filename", - P_("Filename"), - P_("The path of the currently parsed file"), + g_param_spec_string ("filename", NULL, NULL, NULL, CLUTTER_PARAM_READABLE); @@ -367,9 +363,7 @@ clutter_script_class_init (ClutterScriptClass *klass) * will use gettext(), otherwise g_dgettext() will be used. */ obj_props[PROP_TRANSLATION_DOMAIN] = - g_param_spec_string ("translation-domain", - P_("Translation Domain"), - P_("The translation domain used to localize string"), + g_param_spec_string ("translation-domain", NULL, NULL, NULL, CLUTTER_PARAM_READWRITE); diff --git a/clutter/clutter/clutter-scroll-actor.c b/clutter/clutter/clutter-scroll-actor.c index d40c8b988..da2449947 100644 --- a/clutter/clutter/clutter-scroll-actor.c +++ b/clutter/clutter/clutter-scroll-actor.c @@ -175,9 +175,7 @@ clutter_scroll_actor_class_init (ClutterScrollActorClass *klass) * The scrolling direction. */ obj_props[PROP_SCROLL_MODE] = - g_param_spec_flags ("scroll-mode", - P_("Scroll Mode"), - P_("The scrolling direction"), + g_param_spec_flags ("scroll-mode", NULL, NULL, CLUTTER_TYPE_SCROLL_MODE, CLUTTER_SCROLL_BOTH, G_PARAM_READWRITE | @@ -242,9 +240,7 @@ clutter_animatable_iface_init (ClutterAnimatableInterface *iface) parent_animatable_iface = g_type_interface_peek_parent (iface); animatable_props[ANIM_PROP_SCROLL_TO] = - g_param_spec_boxed ("scroll-to", - "Scroll To", - "The point to scroll the actor to", + g_param_spec_boxed ("scroll-to", NULL, NULL, GRAPHENE_TYPE_POINT, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | diff --git a/clutter/clutter/clutter-seat.c b/clutter/clutter/clutter-seat.c index ba02e85d6..ac6a9e0a0 100644 --- a/clutter/clutter/clutter-seat.c +++ b/clutter/clutter/clutter-seat.c @@ -297,9 +297,7 @@ clutter_seat_class_init (ClutterSeatClass *klass) * requirements documented in [method@Seat.get_touch_mode] are fulfilled. **/ props[PROP_TOUCH_MODE] = - g_param_spec_boolean ("touch-mode", - P_("Touch mode"), - P_("Touch mode"), + g_param_spec_boolean ("touch-mode", NULL, NULL, FALSE, CLUTTER_PARAM_READABLE); diff --git a/clutter/clutter/clutter-settings.c b/clutter/clutter/clutter-settings.c index a28818b9e..545002fe0 100644 --- a/clutter/clutter/clutter-settings.c +++ b/clutter/clutter/clutter-settings.c @@ -782,9 +782,7 @@ clutter_settings_class_init (ClutterSettingsClass *klass) * Deprecated: 1.10 */ obj_props[PROP_BACKEND] = - g_param_spec_object ("backend", - "Backend", - "A pointer to the backend", + g_param_spec_object ("backend", NULL, NULL, CLUTTER_TYPE_BACKEND, CLUTTER_PARAM_WRITABLE | G_PARAM_DEPRECATED | @@ -797,9 +795,7 @@ clutter_settings_class_init (ClutterSettingsClass *klass) * events in order to increase the click count by 1. */ obj_props[PROP_DOUBLE_CLICK_TIME] = - g_param_spec_int ("double-click-time", - P_("Double Click Time"), - P_("The time between clicks necessary to detect a multiple click"), + g_param_spec_int ("double-click-time", NULL, NULL, 0, G_MAXINT, 250, CLUTTER_PARAM_READWRITE); @@ -811,9 +807,7 @@ clutter_settings_class_init (ClutterSettingsClass *klass) * determines whether or not to increase the click count by 1. */ obj_props[PROP_DOUBLE_CLICK_DISTANCE] = - g_param_spec_int ("double-click-distance", - P_("Double Click Distance"), - P_("The distance between clicks necessary to detect a multiple click"), + g_param_spec_int ("double-click-distance", NULL, NULL, 0, G_MAXINT, 5, CLUTTER_PARAM_READWRITE); @@ -825,9 +819,7 @@ clutter_settings_class_init (ClutterSettingsClass *klass) * should travel before a drag operation should start. */ obj_props[PROP_DND_DRAG_THRESHOLD] = - g_param_spec_int ("dnd-drag-threshold", - P_("Drag Threshold"), - P_("The distance the cursor should travel before starting to drag"), + g_param_spec_int ("dnd-drag-threshold", NULL, NULL, 1, G_MAXINT, 8, CLUTTER_PARAM_READWRITE); @@ -839,9 +831,7 @@ clutter_settings_class_init (ClutterSettingsClass *klass) * a string that can be passed to [func@Pango.FontDescription.from_string]. */ obj_props[PROP_FONT_NAME] = - g_param_spec_string ("font-name", - P_("Font Name"), - P_("The description of the default font, as one that could be parsed by Pango"), + g_param_spec_string ("font-name", NULL, NULL, NULL, CLUTTER_PARAM_READWRITE); @@ -853,9 +843,7 @@ clutter_settings_class_init (ClutterSettingsClass *klass) * unconditionally; and -1 will use the system's default. */ obj_props[PROP_FONT_ANTIALIAS] = - g_param_spec_int ("font-antialias", - P_("Font Antialias"), - P_("Whether to use antialiasing (1 to enable, 0 to disable, and -1 to use the default)"), + g_param_spec_int ("font-antialias", NULL, NULL, -1, 1, -1, CLUTTER_PARAM_READWRITE); @@ -868,17 +856,13 @@ clutter_settings_class_init (ClutterSettingsClass *klass) * If set to -1, the system's default will be used instead */ obj_props[PROP_FONT_DPI] = - g_param_spec_int ("font-dpi", - P_("Font DPI"), - P_("The resolution of the font, in 1024 * dots/inch, or -1 to use the default"), + g_param_spec_int ("font-dpi", NULL, NULL, -1, 1024 * 1024, -1, CLUTTER_PARAM_READWRITE); obj_props[PROP_UNSCALED_FONT_DPI] = - g_param_spec_int ("unscaled-font-dpi", - P_("Font DPI"), - P_("The resolution of the font, in 1024 * dots/inch, or -1 to use the default"), + g_param_spec_int ("unscaled-font-dpi", NULL, NULL, -1, 1024 * 1024, -1, CLUTTER_PARAM_WRITABLE); @@ -891,9 +875,7 @@ clutter_settings_class_init (ClutterSettingsClass *klass) * it; and a value of -1 will use the system's default. */ obj_props[PROP_FONT_HINTING] = - g_param_spec_int ("font-hinting", - P_("Font Hinting"), - P_("Whether to use hinting (1 to enable, 0 to disable and -1 to use the default)"), + g_param_spec_int ("font-hinting", NULL, NULL, -1, 1, -1, CLUTTER_PARAM_READWRITE); @@ -910,9 +892,7 @@ clutter_settings_class_init (ClutterSettingsClass *klass) * - hintfull */ obj_props[PROP_FONT_HINT_STYLE] = - g_param_spec_string ("font-hint-style", - P_("Font Hint Style"), - P_("The style of hinting (hintnone, hintslight, hintmedium, hintfull)"), + g_param_spec_string ("font-hint-style", NULL, NULL, NULL, CLUTTER_PARAM_READWRITE); @@ -929,9 +909,7 @@ clutter_settings_class_init (ClutterSettingsClass *klass) * - vbgr */ obj_props[PROP_FONT_RGBA] = - g_param_spec_string ("font-subpixel-order", - P_("Font Subpixel Order"), - P_("The type of subpixel antialiasing (none, rgb, bgr, vrgb, vbgr)"), + g_param_spec_string ("font-subpixel-order", NULL, NULL, NULL, CLUTTER_PARAM_READWRITE); @@ -944,17 +922,13 @@ clutter_settings_class_init (ClutterSettingsClass *klass) * See also [property@ClickAction:long-press-duration]. */ obj_props[PROP_LONG_PRESS_DURATION] = - g_param_spec_int ("long-press-duration", - P_("Long Press Duration"), - P_("The minimum duration for a long press gesture to be recognized"), + g_param_spec_int ("long-press-duration", NULL, NULL, 0, G_MAXINT, 500, CLUTTER_PARAM_READWRITE); obj_props[PROP_FONTCONFIG_TIMESTAMP] = - g_param_spec_uint ("fontconfig-timestamp", - P_("Fontconfig configuration timestamp"), - P_("Timestamp of the current fontconfig configuration"), + g_param_spec_uint ("fontconfig-timestamp", NULL, NULL, 0, G_MAXUINT, 0, CLUTTER_PARAM_WRITABLE); @@ -968,9 +942,7 @@ clutter_settings_class_init (ClutterSettingsClass *klass) * enabling the hint. */ obj_props[PROP_PASSWORD_HINT_TIME] = - g_param_spec_uint ("password-hint-time", - P_("Password Hint Time"), - P_("How long to show the last input character in hidden entries"), + g_param_spec_uint ("password-hint-time", NULL, NULL, 0, G_MAXUINT, 0, CLUTTER_PARAM_READWRITE); diff --git a/clutter/clutter/clutter-shader-effect.c b/clutter/clutter/clutter-shader-effect.c index 0ac1beef2..1f178a291 100644 --- a/clutter/clutter/clutter-shader-effect.c +++ b/clutter/clutter/clutter-shader-effect.c @@ -452,9 +452,7 @@ clutter_shader_effect_class_init (ClutterShaderEffectClass *klass) * sub-classes. */ obj_props[PROP_SHADER_TYPE] = - g_param_spec_enum ("shader-type", - P_("Shader Type"), - P_("The type of shader used"), + g_param_spec_enum ("shader-type", NULL, NULL, CLUTTER_TYPE_SHADER_TYPE, CLUTTER_FRAGMENT_SHADER, CLUTTER_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY); diff --git a/clutter/clutter/clutter-snap-constraint.c b/clutter/clutter/clutter-snap-constraint.c index 867cfae38..cea614590 100644 --- a/clutter/clutter/clutter-snap-constraint.c +++ b/clutter/clutter/clutter-snap-constraint.c @@ -311,9 +311,7 @@ clutter_snap_constraint_class_init (ClutterSnapConstraintClass *klass) * The [class@Actor] used as the source for the constraint */ obj_props[PROP_SOURCE] = - g_param_spec_object ("source", - P_("Source"), - P_("The source of the constraint"), + g_param_spec_object ("source", NULL, NULL, CLUTTER_TYPE_ACTOR, CLUTTER_PARAM_READWRITE | G_PARAM_CONSTRUCT); @@ -323,9 +321,7 @@ clutter_snap_constraint_class_init (ClutterSnapConstraintClass *klass) * The edge of the [class@Actor] that should be snapped */ obj_props[PROP_FROM_EDGE] = - g_param_spec_enum ("from-edge", - P_("From Edge"), - P_("The edge of the actor that should be snapped"), + g_param_spec_enum ("from-edge", NULL, NULL, CLUTTER_TYPE_SNAP_EDGE, CLUTTER_SNAP_EDGE_RIGHT, CLUTTER_PARAM_READWRITE | G_PARAM_CONSTRUCT); @@ -336,9 +332,7 @@ clutter_snap_constraint_class_init (ClutterSnapConstraintClass *klass) * The edge of the [property@SnapConstraint:source] that should be snapped */ obj_props[PROP_TO_EDGE] = - g_param_spec_enum ("to-edge", - P_("To Edge"), - P_("The edge of the source that should be snapped"), + g_param_spec_enum ("to-edge", NULL, NULL, CLUTTER_TYPE_SNAP_EDGE, CLUTTER_SNAP_EDGE_RIGHT, CLUTTER_PARAM_READWRITE | G_PARAM_CONSTRUCT); @@ -350,9 +344,7 @@ clutter_snap_constraint_class_init (ClutterSnapConstraintClass *klass) * and [property@SnapConstraint:to-edge] */ obj_props[PROP_OFFSET] = - g_param_spec_float ("offset", - P_("Offset"), - P_("The offset in pixels to apply to the constraint"), + g_param_spec_float ("offset", NULL, NULL, -G_MAXFLOAT, G_MAXFLOAT, 0.0f, CLUTTER_PARAM_READWRITE | G_PARAM_CONSTRUCT); diff --git a/clutter/clutter/clutter-stage-manager.c b/clutter/clutter/clutter-stage-manager.c index 879cc9c35..4f400a91d 100644 --- a/clutter/clutter/clutter-stage-manager.c +++ b/clutter/clutter/clutter-stage-manager.c @@ -108,9 +108,7 @@ clutter_stage_manager_class_init (ClutterStageManagerClass *klass) */ g_object_class_install_property (gobject_class, PROP_DEFAULT_STAGE, - g_param_spec_object ("default-stage", - "Default Stage", - "The default stage", + g_param_spec_object ("default-stage", NULL, NULL, CLUTTER_TYPE_STAGE, CLUTTER_PARAM_READABLE)); diff --git a/clutter/clutter/clutter-stage-view.c b/clutter/clutter/clutter-stage-view.c index 556b0177a..5b326f2bb 100644 --- a/clutter/clutter/clutter-stage-view.c +++ b/clutter/clutter/clutter-stage-view.c @@ -1535,81 +1535,63 @@ clutter_stage_view_class_init (ClutterStageViewClass *klass) object_class->finalize = clutter_stage_view_finalize; obj_props[PROP_NAME] = - g_param_spec_string ("name", - "Name", - "Name of view", + g_param_spec_string ("name", NULL, NULL, NULL, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS); obj_props[PROP_STAGE] = - g_param_spec_object ("stage", - "The stage", - "The ClutterStage", + g_param_spec_object ("stage", NULL, NULL, CLUTTER_TYPE_STAGE, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS); obj_props[PROP_LAYOUT] = - g_param_spec_boxed ("layout", - "View layout", - "The view layout on the screen", + g_param_spec_boxed ("layout", NULL, NULL, CAIRO_GOBJECT_TYPE_RECTANGLE_INT, G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS); obj_props[PROP_FRAMEBUFFER] = - g_param_spec_object ("framebuffer", - "View framebuffer", - "The front buffer of the view", + g_param_spec_object ("framebuffer", NULL, NULL, COGL_TYPE_FRAMEBUFFER, G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS); obj_props[PROP_OFFSCREEN] = - g_param_spec_object ("offscreen", - "Offscreen buffer", - "Framebuffer used as intermediate buffer", + g_param_spec_object ("offscreen", NULL, NULL, COGL_TYPE_OFFSCREEN, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS); obj_props[PROP_USE_SHADOWFB] = - g_param_spec_boolean ("use-shadowfb", - "Use shadowfb", - "Whether to use one or more shadow framebuffers", + g_param_spec_boolean ("use-shadowfb", NULL, NULL, FALSE, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS); obj_props[PROP_SCALE] = - g_param_spec_float ("scale", - "View scale", - "The view scale", + g_param_spec_float ("scale", NULL, NULL, 0.5, G_MAXFLOAT, 1.0, G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS); obj_props[PROP_REFRESH_RATE] = - g_param_spec_float ("refresh-rate", - "Refresh rate", - "Update refresh rate", + g_param_spec_float ("refresh-rate", NULL, NULL, 1.0, G_MAXFLOAT, 60.0, G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS); obj_props[PROP_VBLANK_DURATION_US] = - g_param_spec_int64 ("vblank-duration-us", - "Vblank duration (µs)", - "The vblank duration", + g_param_spec_int64 ("vblank-duration-us", NULL, NULL, 0, G_MAXINT64, 0, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | diff --git a/clutter/clutter/clutter-stage.c b/clutter/clutter/clutter-stage.c index 92876f11f..26873f04a 100644 --- a/clutter/clutter/clutter-stage.c +++ b/clutter/clutter/clutter-stage.c @@ -1352,9 +1352,7 @@ clutter_stage_class_init (ClutterStageClass *klass) * coordinates to 2D */ obj_props[PROP_PERSPECTIVE] = - g_param_spec_boxed ("perspective", - P_("Perspective"), - P_("Perspective projection parameters"), + g_param_spec_boxed ("perspective", NULL, NULL, CLUTTER_TYPE_PERSPECTIVE, CLUTTER_PARAM_READABLE | G_PARAM_EXPLICIT_NOTIFY); @@ -1365,9 +1363,7 @@ clutter_stage_class_init (ClutterStageClass *klass) * The stage's title - usually displayed in stage windows title decorations. */ obj_props[PROP_TITLE] = - g_param_spec_string ("title", - P_("Title"), - P_("Stage Title"), + g_param_spec_string ("title", NULL, NULL, NULL, CLUTTER_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY); @@ -1381,9 +1377,7 @@ clutter_stage_class_init (ClutterStageClass *klass) * If %NULL, the #ClutterStage will receive the events. */ obj_props[PROP_KEY_FOCUS] = - g_param_spec_object ("key-focus", - P_("Key Focus"), - P_("The currently key focused actor"), + g_param_spec_object ("key-focus", NULL, NULL, CLUTTER_TYPE_ACTOR, CLUTTER_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY); diff --git a/clutter/clutter/clutter-text-buffer.c b/clutter/clutter/clutter-text-buffer.c index 200053f78..4c0231d96 100644 --- a/clutter/clutter/clutter-text-buffer.c +++ b/clutter/clutter/clutter-text-buffer.c @@ -339,9 +339,7 @@ clutter_text_buffer_class_init (ClutterTextBufferClass *klass) * The contents of the buffer. */ obj_props[PROP_TEXT] = - g_param_spec_string ("text", - P_("Text"), - P_("The contents of the buffer"), + g_param_spec_string ("text", NULL, NULL, "", G_PARAM_READABLE | G_PARAM_STATIC_STRINGS); @@ -351,9 +349,7 @@ clutter_text_buffer_class_init (ClutterTextBufferClass *klass) * The length (in characters) of the text in buffer. */ obj_props[PROP_LENGTH] = - g_param_spec_uint ("length", - P_("Text length"), - P_("Length of the text currently in the buffer"), + g_param_spec_uint ("length", NULL, NULL, 0, CLUTTER_TEXT_BUFFER_MAX_SIZE, 0, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS); @@ -363,9 +359,7 @@ clutter_text_buffer_class_init (ClutterTextBufferClass *klass) * The maximum length (in characters) of the text in the buffer. */ obj_props[PROP_MAX_LENGTH] = - g_param_spec_int ("max-length", - P_("Maximum length"), - P_("Maximum number of characters for this entry. Zero if no maximum"), + g_param_spec_int ("max-length", NULL, NULL, 0, CLUTTER_TEXT_BUFFER_MAX_SIZE, 0, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); diff --git a/clutter/clutter/clutter-text.c b/clutter/clutter/clutter-text.c index 8b2076866..4c8c50587 100644 --- a/clutter/clutter/clutter-text.c +++ b/clutter/clutter/clutter-text.c @@ -3846,9 +3846,7 @@ clutter_text_class_init (ClutterTextClass *klass) * * If set to %NULL, a default buffer will be created. */ - pspec = g_param_spec_object ("buffer", - P_("Buffer"), - P_("The buffer for the text"), + pspec = g_param_spec_object ("buffer", NULL, NULL, CLUTTER_TYPE_TEXT_BUFFER, CLUTTER_PARAM_READWRITE); obj_props[PROP_BUFFER] = pspec; @@ -3862,9 +3860,7 @@ clutter_text_class_init (ClutterTextClass *klass) * * If set to %NULL, the default system font will be used instead. */ - pspec = g_param_spec_string ("font-name", - P_("Font Name"), - P_("The font to be used by the text"), + pspec = g_param_spec_string ("font-name", NULL, NULL, NULL, CLUTTER_PARAM_READWRITE); obj_props[PROP_FONT_NAME] = pspec; @@ -3878,9 +3874,7 @@ clutter_text_class_init (ClutterTextClass *klass) * If you have a string describing the font then you should look at * [property@Text:font-name] instead */ - pspec = g_param_spec_boxed ("font-description", - P_("Font Description"), - P_("The font description to be used"), + pspec = g_param_spec_boxed ("font-description", NULL, NULL, PANGO_TYPE_FONT_DESCRIPTION, CLUTTER_PARAM_READWRITE); obj_props[PROP_FONT_DESCRIPTION] = pspec; @@ -3893,9 +3887,7 @@ clutter_text_class_init (ClutterTextClass *klass) * * The text to render inside the actor. */ - pspec = g_param_spec_string ("text", - P_("Text"), - P_("The text to render"), + pspec = g_param_spec_string ("text", NULL, NULL, "", CLUTTER_PARAM_READWRITE); obj_props[PROP_TEXT] = pspec; @@ -3906,9 +3898,7 @@ clutter_text_class_init (ClutterTextClass *klass) * * The color used to render the text. */ - pspec = clutter_param_spec_color ("color", - P_("Font Color"), - P_("Color of the font used by the text"), + pspec = clutter_param_spec_color ("color", NULL, NULL, &default_text_color, CLUTTER_PARAM_READWRITE | CLUTTER_PARAM_ANIMATABLE); @@ -3920,9 +3910,7 @@ clutter_text_class_init (ClutterTextClass *klass) * * Whether key events delivered to the actor causes editing. */ - pspec = g_param_spec_boolean ("editable", - P_("Editable"), - P_("Whether the text is editable"), + pspec = g_param_spec_boolean ("editable", NULL, NULL, FALSE, G_PARAM_READWRITE); obj_props[PROP_EDITABLE] = pspec; @@ -3937,9 +3925,7 @@ clutter_text_class_init (ClutterTextClass *klass) * This property depends on the [property@Actor:reactive] property being * set to %TRUE. */ - pspec = g_param_spec_boolean ("selectable", - P_("Selectable"), - P_("Whether the text is selectable"), + pspec = g_param_spec_boolean ("selectable", NULL, NULL, TRUE, G_PARAM_READWRITE); obj_props[PROP_SELECTABLE] = pspec; @@ -3950,9 +3936,7 @@ clutter_text_class_init (ClutterTextClass *klass) * * Toggles whether return invokes the activate signal or not. */ - pspec = g_param_spec_boolean ("activatable", - P_("Activatable"), - P_("Whether pressing return causes the activate signal to be emitted"), + pspec = g_param_spec_boolean ("activatable", NULL, NULL, TRUE, G_PARAM_READWRITE); obj_props[PROP_ACTIVATABLE] = pspec; @@ -3967,9 +3951,7 @@ clutter_text_class_init (ClutterTextClass *klass) * the [property@Text:editable] or the [property@Text:selectable] properties * are set to %TRUE. */ - pspec = g_param_spec_boolean ("cursor-visible", - P_("Cursor Visible"), - P_("Whether the input cursor is visible"), + pspec = g_param_spec_boolean ("cursor-visible", NULL, NULL, TRUE, CLUTTER_PARAM_READWRITE); obj_props[PROP_CURSOR_VISIBLE] = pspec; @@ -3980,9 +3962,7 @@ clutter_text_class_init (ClutterTextClass *klass) * * The color of the cursor. */ - pspec = clutter_param_spec_color ("cursor-color", - P_("Cursor Color"), - P_("Cursor Color"), + pspec = clutter_param_spec_color ("cursor-color", NULL, NULL, &default_cursor_color, CLUTTER_PARAM_READWRITE | CLUTTER_PARAM_ANIMATABLE); @@ -3994,9 +3974,7 @@ clutter_text_class_init (ClutterTextClass *klass) * * Will be set to %TRUE if [property@Text:cursor-color] has been set. */ - pspec = g_param_spec_boolean ("cursor-color-set", - P_("Cursor Color Set"), - P_("Whether the cursor color has been set"), + pspec = g_param_spec_boolean ("cursor-color-set", NULL, NULL, FALSE, CLUTTER_PARAM_READABLE); obj_props[PROP_CURSOR_COLOR_SET] = pspec; @@ -4008,9 +3986,7 @@ clutter_text_class_init (ClutterTextClass *klass) * The size of the cursor, in pixels. If set to -1 the size used will * be the default cursor size of 2 pixels. */ - pspec = g_param_spec_int ("cursor-size", - P_("Cursor Size"), - P_("The width of the cursor, in pixels"), + pspec = g_param_spec_int ("cursor-size", NULL, NULL, -1, G_MAXINT, DEFAULT_CURSOR_SIZE, CLUTTER_PARAM_READWRITE); obj_props[PROP_CURSOR_SIZE] = pspec; @@ -4023,9 +3999,7 @@ clutter_text_class_init (ClutterTextClass *klass) * * Deprecated: 1.12: Use [property@Text:cursor-position] instead. */ - pspec = g_param_spec_int ("position", - P_("Cursor Position"), - P_("The cursor position"), + pspec = g_param_spec_int ("position", NULL, NULL, -1, G_MAXINT, -1, G_PARAM_READWRITE | @@ -4039,9 +4013,7 @@ clutter_text_class_init (ClutterTextClass *klass) * * The current input cursor position. -1 is taken to be the end of the text */ - pspec = g_param_spec_int ("cursor-position", - P_("Cursor Position"), - P_("The cursor position"), + pspec = g_param_spec_int ("cursor-position", NULL, NULL, -1, G_MAXINT, -1, CLUTTER_PARAM_READWRITE); @@ -4053,9 +4025,7 @@ clutter_text_class_init (ClutterTextClass *klass) * * The current input cursor position. -1 is taken to be the end of the text */ - pspec = g_param_spec_int ("selection-bound", - P_("Selection-bound"), - P_("The cursor position of the other end of the selection"), + pspec = g_param_spec_int ("selection-bound", NULL, NULL, -1, G_MAXINT, -1, CLUTTER_PARAM_READWRITE); @@ -4067,9 +4037,7 @@ clutter_text_class_init (ClutterTextClass *klass) * * The color of the selection. */ - pspec = clutter_param_spec_color ("selection-color", - P_("Selection Color"), - P_("Selection Color"), + pspec = clutter_param_spec_color ("selection-color", NULL, NULL, &default_selection_color, CLUTTER_PARAM_READWRITE | CLUTTER_PARAM_ANIMATABLE); @@ -4081,9 +4049,7 @@ clutter_text_class_init (ClutterTextClass *klass) * * Will be set to %TRUE if [property@Text:selection-color] has been set. */ - pspec = g_param_spec_boolean ("selection-color-set", - P_("Selection Color Set"), - P_("Whether the selection color has been set"), + pspec = g_param_spec_boolean ("selection-color-set", NULL, NULL, FALSE, CLUTTER_PARAM_READABLE); obj_props[PROP_SELECTION_COLOR_SET] = pspec; @@ -4095,9 +4061,7 @@ clutter_text_class_init (ClutterTextClass *klass) * A list of `PangoStyleAttribute`s to be applied to the * contents of the #ClutterText actor. */ - pspec = g_param_spec_boxed ("attributes", - P_("Attributes"), - P_("A list of style attributes to apply to the contents of the actor"), + pspec = g_param_spec_boxed ("attributes", NULL, NULL, PANGO_TYPE_ATTR_LIST, CLUTTER_PARAM_READWRITE); obj_props[PROP_ATTRIBUTES] = pspec; @@ -4116,9 +4080,7 @@ clutter_text_class_init (ClutterTextClass *klass) * a #ClutterText actor with [property@Text:use-markup] set to %TRUE, the markup * is stripped from the string. */ - pspec = g_param_spec_boolean ("use-markup", - P_("Use markup"), - P_("Whether or not the text includes Pango markup"), + pspec = g_param_spec_boolean ("use-markup", NULL, NULL, FALSE, CLUTTER_PARAM_READWRITE); obj_props[PROP_USE_MARKUP] = pspec; @@ -4131,9 +4093,7 @@ clutter_text_class_init (ClutterTextClass *klass) * exceed the available allocation. The wrapping strategy is * controlled by the [property@Text:line-wrap-mode] property. */ - pspec = g_param_spec_boolean ("line-wrap", - P_("Line wrap"), - P_("If set, wrap the lines if the text becomes too wide"), + pspec = g_param_spec_boolean ("line-wrap", NULL, NULL, FALSE, CLUTTER_PARAM_READWRITE); obj_props[PROP_LINE_WRAP] = pspec; @@ -4145,9 +4105,7 @@ clutter_text_class_init (ClutterTextClass *klass) * If [property@Text:line-wrap] is set to %TRUE, this property will * control how the text is wrapped. */ - pspec = g_param_spec_enum ("line-wrap-mode", - P_("Line wrap mode"), - P_("Control how line-wrapping is done"), + pspec = g_param_spec_enum ("line-wrap-mode", NULL, NULL, PANGO_TYPE_WRAP_MODE, PANGO_WRAP_WORD, CLUTTER_PARAM_READWRITE); @@ -4159,9 +4117,7 @@ clutter_text_class_init (ClutterTextClass *klass) * * The preferred place to ellipsize the contents of the #ClutterText actor */ - pspec = g_param_spec_enum ("ellipsize", - P_("Ellipsize"), - P_("The preferred place to ellipsize the string"), + pspec = g_param_spec_enum ("ellipsize", NULL, NULL, PANGO_TYPE_ELLIPSIZE_MODE, PANGO_ELLIPSIZE_NONE, CLUTTER_PARAM_READWRITE); @@ -4174,9 +4130,7 @@ clutter_text_class_init (ClutterTextClass *klass) * The preferred alignment for the text. This property controls * the alignment of multi-line paragraphs. */ - pspec = g_param_spec_enum ("line-alignment", - P_("Line Alignment"), - P_("The preferred alignment for the string, for multi-line text"), + pspec = g_param_spec_enum ("line-alignment", NULL, NULL, PANGO_TYPE_ALIGNMENT, PANGO_ALIGN_LEFT, CLUTTER_PARAM_READWRITE); @@ -4189,9 +4143,7 @@ clutter_text_class_init (ClutterTextClass *klass) * Whether the contents of the #ClutterText should be justified * on both margins. */ - pspec = g_param_spec_boolean ("justify", - P_("Justify"), - P_("Whether the text should be justified"), + pspec = g_param_spec_boolean ("justify", NULL, NULL, FALSE, CLUTTER_PARAM_READWRITE); obj_props[PROP_JUSTIFY] = pspec; @@ -4203,9 +4155,7 @@ clutter_text_class_init (ClutterTextClass *klass) * If non-zero, the character that should be used in place of * the actual text in a password text actor. */ - pspec = g_param_spec_unichar ("password-char", - P_("Password Character"), - P_("If non-zero, use this character to display the actor's contents"), + pspec = g_param_spec_unichar ("password-char", NULL, NULL, 0, CLUTTER_PARAM_READWRITE); obj_props[PROP_PASSWORD_CHAR] = pspec; @@ -4216,9 +4166,7 @@ clutter_text_class_init (ClutterTextClass *klass) * * The maximum length of the contents of the #ClutterText actor. */ - pspec = g_param_spec_int ("max-length", - P_("Max Length"), - P_("Maximum length of the text inside the actor"), + pspec = g_param_spec_int ("max-length", NULL, NULL, -1, G_MAXINT, 0, CLUTTER_PARAM_READWRITE); obj_props[PROP_MAX_LENGTH] = pspec; @@ -4238,9 +4186,7 @@ clutter_text_class_init (ClutterTextClass *klass) * The [property@Text:single-line-mode] property is used only if the * [property@Text:editable] property is set to %TRUE. */ - pspec = g_param_spec_boolean ("single-line-mode", - P_("Single Line Mode"), - P_("Whether the text should be a single line"), + pspec = g_param_spec_boolean ("single-line-mode", NULL, NULL, FALSE, CLUTTER_PARAM_READWRITE); obj_props[PROP_SINGLE_LINE_MODE] = pspec; @@ -4251,9 +4197,7 @@ clutter_text_class_init (ClutterTextClass *klass) * * The color of selected text. */ - pspec = clutter_param_spec_color ("selected-text-color", - P_("Selected Text Color"), - P_("Selected Text Color"), + pspec = clutter_param_spec_color ("selected-text-color", NULL, NULL, &default_selected_text_color, CLUTTER_PARAM_READWRITE | CLUTTER_PARAM_ANIMATABLE); @@ -4265,25 +4209,19 @@ clutter_text_class_init (ClutterTextClass *klass) * * Will be set to %TRUE if [property@Text:selected-text-color] has been set. */ - pspec = g_param_spec_boolean ("selected-text-color-set", - P_("Selected Text Color Set"), - P_("Whether the selected text color has been set"), + pspec = g_param_spec_boolean ("selected-text-color-set", NULL, NULL, FALSE, CLUTTER_PARAM_READABLE); obj_props[PROP_SELECTED_TEXT_COLOR_SET] = pspec; g_object_class_install_property (gobject_class, PROP_SELECTED_TEXT_COLOR_SET, pspec); - pspec = g_param_spec_flags ("input-hints", - P_("Input hints"), - P_("Input hints"), + pspec = g_param_spec_flags ("input-hints", NULL, NULL, CLUTTER_TYPE_INPUT_CONTENT_HINT_FLAGS, 0, CLUTTER_PARAM_READWRITE); obj_props[PROP_INPUT_HINTS] = pspec; g_object_class_install_property (gobject_class, PROP_INPUT_HINTS, pspec); - pspec = g_param_spec_enum ("input-purpose", - P_("Input purpose"), - P_("Input purpose"), + pspec = g_param_spec_enum ("input-purpose", NULL, NULL, CLUTTER_TYPE_INPUT_CONTENT_PURPOSE, 0, CLUTTER_PARAM_READWRITE); obj_props[PROP_INPUT_PURPOSE] = pspec; diff --git a/clutter/clutter/clutter-timeline.c b/clutter/clutter/clutter-timeline.c index 059ef5d04..c01f2ce0a 100644 --- a/clutter/clutter/clutter-timeline.c +++ b/clutter/clutter/clutter-timeline.c @@ -791,9 +791,7 @@ clutter_timeline_class_init (ClutterTimelineClass *klass) * clock will drive it. */ obj_props[PROP_ACTOR] = - g_param_spec_object ("actor", - P_("Actor"), - P_("Associated ClutterActor"), + g_param_spec_object ("actor", NULL, NULL, CLUTTER_TYPE_ACTOR, G_PARAM_CONSTRUCT | CLUTTER_PARAM_READWRITE); /** @@ -803,9 +801,7 @@ clutter_timeline_class_init (ClutterTimelineClass *klass) * timeline before actually starting. */ obj_props[PROP_DELAY] = - g_param_spec_uint ("delay", - P_("Delay"), - P_("Delay before start"), + g_param_spec_uint ("delay", NULL, NULL, 0, G_MAXUINT, 0, CLUTTER_PARAM_READWRITE); @@ -817,9 +813,7 @@ clutter_timeline_class_init (ClutterTimelineClass *klass) * [property@Timeline:frame-clock] value. */ obj_props[PROP_DURATION] = - g_param_spec_uint ("duration", - P_("Duration"), - P_("Duration of the timeline in milliseconds"), + g_param_spec_uint ("duration", NULL, NULL, 0, G_MAXUINT, 1000, CLUTTER_PARAM_READWRITE); @@ -831,9 +825,7 @@ clutter_timeline_class_init (ClutterTimelineClass *klass) * %CLUTTER_TIMELINE_BACKWARD. */ obj_props[PROP_DIRECTION] = - g_param_spec_enum ("direction", - P_("Direction"), - P_("Direction of the timeline"), + g_param_spec_enum ("direction", NULL, NULL, CLUTTER_TYPE_TIMELINE_DIRECTION, CLUTTER_TIMELINE_FORWARD, CLUTTER_PARAM_READWRITE); @@ -845,9 +837,7 @@ clutter_timeline_class_init (ClutterTimelineClass *klass) * when reaching the end. */ obj_props[PROP_AUTO_REVERSE] = - g_param_spec_boolean ("auto-reverse", - P_("Auto Reverse"), - P_("Whether the direction should be reversed when reaching the end"), + g_param_spec_boolean ("auto-reverse", NULL, NULL, FALSE, CLUTTER_PARAM_READWRITE); @@ -862,9 +852,7 @@ clutter_timeline_class_init (ClutterTimelineClass *klass) * stopped. */ obj_props[PROP_REPEAT_COUNT] = - g_param_spec_int ("repeat-count", - P_("Repeat Count"), - P_("How many times the timeline should repeat"), + g_param_spec_int ("repeat-count", NULL, NULL, -1, G_MAXINT, 0, CLUTTER_PARAM_READWRITE); @@ -875,9 +863,7 @@ clutter_timeline_class_init (ClutterTimelineClass *klass) * Controls the way a #ClutterTimeline computes the normalized progress. */ obj_props[PROP_PROGRESS_MODE] = - g_param_spec_enum ("progress-mode", - P_("Progress Mode"), - P_("How the timeline should compute the progress"), + g_param_spec_enum ("progress-mode", NULL, NULL, CLUTTER_TYPE_ANIMATION_MODE, CLUTTER_LINEAR, CLUTTER_PARAM_READWRITE); @@ -888,9 +874,7 @@ clutter_timeline_class_init (ClutterTimelineClass *klass) * The frame clock driving the timeline. */ obj_props[PROP_FRAME_CLOCK] = - g_param_spec_object ("frame-clock", - "Frame clock", - "Frame clock driving the timeline", + g_param_spec_object ("frame-clock", NULL, NULL, CLUTTER_TYPE_FRAME_CLOCK, G_PARAM_CONSTRUCT | CLUTTER_PARAM_READWRITE); diff --git a/clutter/clutter/clutter-transition.c b/clutter/clutter/clutter-transition.c index 99d802fc2..f454b9d48 100644 --- a/clutter/clutter/clutter-transition.c +++ b/clutter/clutter/clutter-transition.c @@ -235,9 +235,7 @@ clutter_transition_class_init (ClutterTransitionClass *klass) * of the transition. */ obj_props[PROP_INTERVAL] = - g_param_spec_object ("interval", - P_("Interval"), - P_("The interval of values to transition"), + g_param_spec_object ("interval", NULL, NULL, CLUTTER_TYPE_INTERVAL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); @@ -248,9 +246,7 @@ clutter_transition_class_init (ClutterTransitionClass *klass) * The [iface@Animatable] instance currently being animated. */ obj_props[PROP_ANIMATABLE] = - g_param_spec_object ("animatable", - P_("Animatable"), - P_("The animatable object"), + g_param_spec_object ("animatable", NULL, NULL, CLUTTER_TYPE_ANIMATABLE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); @@ -268,9 +264,7 @@ clutter_transition_class_init (ClutterTransitionClass *klass) * repeating. */ obj_props[PROP_REMOVE_ON_COMPLETE] = - g_param_spec_boolean ("remove-on-complete", - P_("Remove on Complete"), - P_("Detach the transition when completed"), + g_param_spec_boolean ("remove-on-complete", NULL, NULL, FALSE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); diff --git a/clutter/clutter/clutter-units.c b/clutter/clutter/clutter-units.c index 0f8e67ecb..ccec0c190 100644 --- a/clutter/clutter/clutter-units.c +++ b/clutter/clutter/clutter-units.c @@ -44,9 +44,7 @@ * ```c * GParamSpec *pspec; * - * pspec = clutter_param_spec_units ("active-width", - * "Width", - * "Width of the active area, in millimeters", + * pspec = clutter_param_spec_units ("active-width", NULL, NULL, * CLUTTER_UNIT_MM, * 0.0, 12.0, * 12.0, diff --git a/clutter/clutter/clutter-virtual-input-device.c b/clutter/clutter/clutter-virtual-input-device.c index 0a0f0b679..605b2ef59 100644 --- a/clutter/clutter/clutter-virtual-input-device.c +++ b/clutter/clutter/clutter-virtual-input-device.c @@ -280,15 +280,11 @@ clutter_virtual_input_device_class_init (ClutterVirtualInputDeviceClass *klass) object_class->set_property = clutter_virtual_input_device_set_property; obj_props[PROP_SEAT] = - g_param_spec_object ("seat", - P_("Seat"), - P_("Seat"), + g_param_spec_object ("seat", NULL, NULL, CLUTTER_TYPE_SEAT, CLUTTER_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY); obj_props[PROP_DEVICE_TYPE] = - g_param_spec_enum ("device-type", - P_("Device type"), - P_("Device type"), + g_param_spec_enum ("device-type", NULL, NULL, CLUTTER_TYPE_INPUT_DEVICE_TYPE, CLUTTER_POINTER_DEVICE, CLUTTER_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY); diff --git a/cogl/cogl-pango/cogl-pango-render.c b/cogl/cogl-pango/cogl-pango-render.c index 108925aeb..639992883 100644 --- a/cogl/cogl-pango/cogl-pango-render.c +++ b/cogl/cogl-pango/cogl-pango-render.c @@ -269,9 +269,7 @@ cogl_pango_renderer_class_init (CoglPangoRendererClass *klass) object_class->dispose = cogl_pango_renderer_dispose; object_class->finalize = cogl_pango_renderer_finalize; - pspec = g_param_spec_pointer ("context", - "Context", - "The Cogl Context", + pspec = g_param_spec_pointer ("context", NULL, NULL, G_PARAM_WRITABLE | G_PARAM_STATIC_STRINGS | G_PARAM_CONSTRUCT_ONLY); diff --git a/cogl/cogl/cogl-framebuffer-driver.c b/cogl/cogl/cogl-framebuffer-driver.c index bd99a795d..d175ceea7 100644 --- a/cogl/cogl/cogl-framebuffer-driver.c +++ b/cogl/cogl/cogl-framebuffer-driver.c @@ -213,9 +213,7 @@ cogl_framebuffer_driver_class_init (CoglFramebufferDriverClass *klass) object_class->set_property = cogl_framebuffer_driver_set_property; obj_props[PROP_FRAMEBUFFER] = - g_param_spec_object ("framebuffer", - "framebuffer", - "CoglFramebuffer", + g_param_spec_object ("framebuffer", NULL, NULL, COGL_TYPE_FRAMEBUFFER, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | diff --git a/cogl/cogl/cogl-framebuffer.c b/cogl/cogl/cogl-framebuffer.c index ecc624000..dc61dec08 100644 --- a/cogl/cogl/cogl-framebuffer.c +++ b/cogl/cogl/cogl-framebuffer.c @@ -379,32 +379,24 @@ cogl_framebuffer_class_init (CoglFramebufferClass *klass) object_class->set_property = cogl_framebuffer_set_property; obj_props[PROP_CONTEXT] = - g_param_spec_boxed ("context", - "context", - "CoglContext", + g_param_spec_boxed ("context", NULL, NULL, COGL_TYPE_HANDLE, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS); obj_props[PROP_DRIVER_CONFIG] = - g_param_spec_pointer ("driver-config", - "driver-config", - "CoglFramebufferDriverConfig", + g_param_spec_pointer ("driver-config", NULL, NULL, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS); obj_props[PROP_WIDTH] = - g_param_spec_int ("width", - "width", - "framebuffer width", + g_param_spec_int ("width", NULL, NULL, -1, INT_MAX, -1, G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS); obj_props[PROP_HEIGHT] = - g_param_spec_int ("height", - "height", - "framebuffer height", + g_param_spec_int ("height", NULL, NULL, -1, INT_MAX, -1, G_PARAM_READWRITE | G_PARAM_CONSTRUCT | diff --git a/src/backends/meta-backend.c b/src/backends/meta-backend.c index 24951b4d9..28317db97 100644 --- a/src/backends/meta-backend.c +++ b/src/backends/meta-backend.c @@ -896,17 +896,13 @@ meta_backend_class_init (MetaBackendClass *klass) klass->is_headless = meta_backend_real_is_headless; obj_props[PROP_CONTEXT] = - g_param_spec_object ("context", - "context", - "MetaContext", + g_param_spec_object ("context", NULL, NULL, META_TYPE_CONTEXT, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS); obj_props[PROP_CAPABILITIES] = - g_param_spec_flags ("capabilities", - "capabilities", - "Backend capabilities", + g_param_spec_flags ("capabilities", NULL, NULL, META_TYPE_BACKEND_CAPABILITIES, META_BACKEND_CAPABILITY_NONE, G_PARAM_READABLE | diff --git a/src/backends/meta-barrier.c b/src/backends/meta-barrier.c index 4338d808f..58f5108bc 100644 --- a/src/backends/meta-barrier.c +++ b/src/backends/meta-barrier.c @@ -308,17 +308,13 @@ meta_barrier_class_init (MetaBarrierClass *klass) object_class->constructed = meta_barrier_constructed; obj_props[PROP_BACKEND] = - g_param_spec_object ("backend", - "backend", - "The backend", + g_param_spec_object ("backend", NULL, NULL, META_TYPE_BACKEND, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS); obj_props[PROP_DISPLAY] = - g_param_spec_object ("display", - "Display", - "The display to construct the pointer barrier on", + g_param_spec_object ("display", NULL, NULL, META_TYPE_DISPLAY, G_PARAM_DEPRECATED | G_PARAM_READWRITE | @@ -326,45 +322,35 @@ meta_barrier_class_init (MetaBarrierClass *klass) G_PARAM_STATIC_STRINGS); obj_props[PROP_X1] = - g_param_spec_int ("x1", - "X1", - "The first X coordinate of the barrier", + g_param_spec_int ("x1", NULL, NULL, 0, G_MAXSHORT, 0, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS); obj_props[PROP_Y1] = - g_param_spec_int ("y1", - "Y1", - "The first Y coordinate of the barrier", + g_param_spec_int ("y1", NULL, NULL, 0, G_MAXSHORT, 0, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS); obj_props[PROP_X2] = - g_param_spec_int ("x2", - "X2", - "The second X coordinate of the barrier", + g_param_spec_int ("x2", NULL, NULL, 0, G_MAXSHORT, G_MAXSHORT, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS); obj_props[PROP_Y2] = - g_param_spec_int ("y2", - "Y2", - "The second Y coordinate of the barrier", + g_param_spec_int ("y2", NULL, NULL, 0, G_MAXSHORT, G_MAXSHORT, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS); obj_props[PROP_DIRECTIONS] = - g_param_spec_flags ("directions", - "Directions", - "A set of directions to let the pointer through", + g_param_spec_flags ("directions", NULL, NULL, META_TYPE_BARRIER_DIRECTION, 0, G_PARAM_READWRITE | diff --git a/src/backends/meta-color-manager.c b/src/backends/meta-color-manager.c index 5e866a150..1b6b3b613 100644 --- a/src/backends/meta-color-manager.c +++ b/src/backends/meta-color-manager.c @@ -507,9 +507,7 @@ meta_color_manager_class_init (MetaColorManagerClass *klass) object_class->get_property = meta_color_manager_get_property; obj_props[PROP_BACKEND] = - g_param_spec_object ("backend", - "backend", - "MetaBackend", + g_param_spec_object ("backend", NULL, NULL, META_TYPE_BACKEND, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | diff --git a/src/backends/meta-crtc-mode.c b/src/backends/meta-crtc-mode.c index 6d2de4b74..ad29a6d0a 100644 --- a/src/backends/meta-crtc-mode.c +++ b/src/backends/meta-crtc-mode.c @@ -173,25 +173,19 @@ meta_crtc_mode_class_init (MetaCrtcModeClass *klass) object_class->finalize = meta_crtc_mode_finalize; obj_props[PROP_ID] = - g_param_spec_uint64 ("id", - "id", - "CRTC mode id", + g_param_spec_uint64 ("id", NULL, NULL, 0, UINT64_MAX, 0, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS); obj_props[PROP_NAME] = - g_param_spec_string ("name", - "name", - "Name of CRTC mode", + g_param_spec_string ("name", NULL, NULL, NULL, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS); obj_props[PROP_INFO] = - g_param_spec_boxed ("info", - "info", - "MetaOutputInfo", + g_param_spec_boxed ("info", NULL, NULL, META_TYPE_CRTC_MODE_INFO, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | diff --git a/src/backends/meta-crtc.c b/src/backends/meta-crtc.c index 33c31d098..5f59c06d0 100644 --- a/src/backends/meta-crtc.c +++ b/src/backends/meta-crtc.c @@ -377,33 +377,25 @@ meta_crtc_class_init (MetaCrtcClass *klass) object_class->finalize = meta_crtc_finalize; obj_props[PROP_ID] = - g_param_spec_uint64 ("id", - "id", - "CRTC id", + g_param_spec_uint64 ("id", NULL, NULL, 0, UINT64_MAX, 0, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS); obj_props[PROP_BACKEND] = - g_param_spec_object ("backend", - "backend", - "MetaBackend", + g_param_spec_object ("backend", NULL, NULL, META_TYPE_BACKEND, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS); obj_props[PROP_GPU] = - g_param_spec_object ("gpu", - "gpu", - "MetaGpu", + g_param_spec_object ("gpu", NULL, NULL, META_TYPE_GPU, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS); obj_props[PROP_ALL_TRANSFORMS] = - g_param_spec_uint ("all-transforms", - "all-transforms", - "All transforms", + g_param_spec_uint ("all-transforms", NULL, NULL, 0, META_MONITOR_ALL_TRANSFORMS, META_MONITOR_ALL_TRANSFORMS, diff --git a/src/backends/meta-cursor-renderer.c b/src/backends/meta-cursor-renderer.c index df25108a9..31f758c76 100644 --- a/src/backends/meta-cursor-renderer.c +++ b/src/backends/meta-cursor-renderer.c @@ -295,17 +295,13 @@ meta_cursor_renderer_class_init (MetaCursorRendererClass *klass) klass->update_cursor = meta_cursor_renderer_real_update_cursor; obj_props[PROP_BACKEND] = - g_param_spec_object ("backend", - "backend", - "MetaBackend", + g_param_spec_object ("backend", NULL, NULL, META_TYPE_BACKEND, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS); obj_props[PROP_DEVICE] = - g_param_spec_object ("device", - "device", - "Input device", + g_param_spec_object ("device", NULL, NULL, CLUTTER_TYPE_INPUT_DEVICE, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | diff --git a/src/backends/meta-cursor-tracker.c b/src/backends/meta-cursor-tracker.c index 7249287a3..e29526f8a 100644 --- a/src/backends/meta-cursor-tracker.c +++ b/src/backends/meta-cursor-tracker.c @@ -283,9 +283,7 @@ meta_cursor_tracker_class_init (MetaCursorTrackerClass *klass) meta_cursor_tracker_real_get_sprite; obj_props[PROP_BACKEND] = - g_param_spec_object ("backend", - "backend", - "MetaBackend", + g_param_spec_object ("backend", NULL, NULL, META_TYPE_BACKEND, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | diff --git a/src/backends/meta-cursor.c b/src/backends/meta-cursor.c index 53f2cdf4b..ee67f2722 100644 --- a/src/backends/meta-cursor.c +++ b/src/backends/meta-cursor.c @@ -315,9 +315,7 @@ meta_cursor_sprite_class_init (MetaCursorSpriteClass *klass) object_class->set_property = meta_cursor_tracker_set_property; obj_props[PROP_CURSOR_TRACKER] = - g_param_spec_object ("cursor-tracker", - "cursor tracker", - "MetaCursorTracker", + g_param_spec_object ("cursor-tracker", NULL, NULL, META_TYPE_CURSOR_TRACKER, G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY | diff --git a/src/backends/meta-dbus-session-manager.c b/src/backends/meta-dbus-session-manager.c index 1fd0b7777..7bbce4e28 100644 --- a/src/backends/meta-dbus-session-manager.c +++ b/src/backends/meta-dbus-session-manager.c @@ -231,41 +231,31 @@ meta_dbus_session_manager_class_init (MetaDbusSessionManagerClass *klass) object_class->get_property = meta_dbus_session_manager_get_property; obj_props[PROP_BACKEND] = - g_param_spec_object ("backend", - "backend", - "MetaBackend", + g_param_spec_object ("backend", NULL, NULL, META_TYPE_BACKEND, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS); obj_props[PROP_SERVICE_NAME] = - g_param_spec_string ("service-name", - "service name", - "Service name", + g_param_spec_string ("service-name", NULL, NULL, NULL, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS); obj_props[PROP_SERVICE_PATH] = - g_param_spec_string ("service-path", - "service path", - "Service path", + g_param_spec_string ("service-path", NULL, NULL, NULL, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS); obj_props[PROP_SESSION_GTYPE] = - g_param_spec_gtype ("session-gtype", - "session gtype", - "GType to construct for a session", + g_param_spec_gtype ("session-gtype", NULL, NULL, G_TYPE_NONE, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS); obj_props[PROP_INTERFACE_SKELETON] = - g_param_spec_object ("interface-skeleton", - "interface skeleton", - "GDBusInterfaceSkeleton", + g_param_spec_object ("interface-skeleton", NULL, NULL, G_TYPE_DBUS_INTERFACE_SKELETON, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | diff --git a/src/backends/meta-dbus-session-watcher.c b/src/backends/meta-dbus-session-watcher.c index df074ce35..5ef88d300 100644 --- a/src/backends/meta-dbus-session-watcher.c +++ b/src/backends/meta-dbus-session-watcher.c @@ -208,27 +208,21 @@ meta_dbus_session_default_init (MetaDbusSessionInterface *iface) { g_object_interface_install_property ( iface, - g_param_spec_object ("session-manager", - "session manager", - "D-Bus session manager", + g_param_spec_object ("session-manager", NULL, NULL, META_TYPE_DBUS_SESSION_MANAGER, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS)); g_object_interface_install_property ( iface, - g_param_spec_string ("peer-name", - "peer name", - "D-Bus peer name", + g_param_spec_string ("peer-name", NULL, NULL, NULL, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS)); g_object_interface_install_property ( iface, - g_param_spec_string ("id", - "session id", - "Unique ID of the session", + g_param_spec_string ("id", NULL, NULL, NULL, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | diff --git a/src/backends/meta-gpu.c b/src/backends/meta-gpu.c index ce4353bf0..66def77de 100644 --- a/src/backends/meta-gpu.c +++ b/src/backends/meta-gpu.c @@ -215,9 +215,7 @@ meta_gpu_class_init (MetaGpuClass *klass) object_class->finalize = meta_gpu_finalize; obj_props[PROP_BACKEND] = - g_param_spec_object ("backend", - "backend", - "MetaBackend", + g_param_spec_object ("backend", NULL, NULL, META_TYPE_BACKEND, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | diff --git a/src/backends/meta-idle-monitor.c b/src/backends/meta-idle-monitor.c index 7ec63c310..03f356187 100644 --- a/src/backends/meta-idle-monitor.c +++ b/src/backends/meta-idle-monitor.c @@ -152,9 +152,7 @@ meta_idle_monitor_class_init (MetaIdleMonitorClass *klass) * The device to listen to idletime on. */ obj_props[PROP_DEVICE] = - g_param_spec_object ("device", - "Device", - "The device to listen to idletime on", + g_param_spec_object ("device", NULL, NULL, CLUTTER_TYPE_INPUT_DEVICE, G_PARAM_STATIC_STRINGS | G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY); diff --git a/src/backends/meta-input-device.c b/src/backends/meta-input-device.c index 13cbac57a..1c8a91e87 100644 --- a/src/backends/meta-input-device.c +++ b/src/backends/meta-input-device.c @@ -144,17 +144,13 @@ meta_input_device_class_init (MetaInputDeviceClass *klass) object_class->get_property = meta_input_device_get_property; props[PROP_BACKEND] = - g_param_spec_object ("backend", - "backend", - "MetaBackend", + g_param_spec_object ("backend", NULL, NULL, META_TYPE_BACKEND, G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS); props[PROP_WACOM_DEVICE] = - g_param_spec_pointer ("wacom-device", - "Wacom device", - "Wacom device", + g_param_spec_pointer ("wacom-device", NULL, NULL, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS); diff --git a/src/backends/meta-input-mapper.c b/src/backends/meta-input-mapper.c index 362f7d057..684ab2d59 100644 --- a/src/backends/meta-input-mapper.c +++ b/src/backends/meta-input-mapper.c @@ -785,9 +785,7 @@ meta_input_mapper_class_init (MetaInputMapperClass *klass) object_class->get_property = meta_input_mapper_get_property; obj_props[PROP_BACKEND] = - g_param_spec_object ("backend", - "backend", - "MetaBackend", + g_param_spec_object ("backend", NULL, NULL, META_TYPE_BACKEND, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | diff --git a/src/backends/meta-input-settings.c b/src/backends/meta-input-settings.c index d6b361d40..9b8deabb3 100644 --- a/src/backends/meta-input-settings.c +++ b/src/backends/meta-input-settings.c @@ -1734,9 +1734,7 @@ meta_input_settings_class_init (MetaInputSettingsClass *klass) object_class->set_property = meta_input_settings_set_property; props[PROP_BACKEND] = - g_param_spec_object ("backend", - "backend", - "MetaBackend", + g_param_spec_object ("backend", NULL, NULL, META_TYPE_BACKEND, G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY | diff --git a/src/backends/meta-monitor-config-store.c b/src/backends/meta-monitor-config-store.c index 7650334ed..8a191a533 100644 --- a/src/backends/meta-monitor-config-store.c +++ b/src/backends/meta-monitor-config-store.c @@ -1966,9 +1966,7 @@ meta_monitor_config_store_class_init (MetaMonitorConfigStoreClass *klass) object_class->set_property = meta_monitor_config_store_set_property; obj_props[PROP_MONITOR_MANAGER] = - g_param_spec_object ("monitor-manager", - "MetaMonitorManager", - "MetaMonitorManager", + g_param_spec_object ("monitor-manager", NULL, NULL, META_TYPE_MONITOR_MANAGER, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | diff --git a/src/backends/meta-monitor-manager.c b/src/backends/meta-monitor-manager.c index 90a70a566..103770abf 100644 --- a/src/backends/meta-monitor-manager.c +++ b/src/backends/meta-monitor-manager.c @@ -1500,45 +1500,35 @@ meta_monitor_manager_class_init (MetaMonitorManagerClass *klass) G_TYPE_NONE, 2, META_TYPE_LOGICAL_MONITOR, G_TYPE_BOOLEAN); obj_props[PROP_BACKEND] = - g_param_spec_object ("backend", - "backend", - "MetaBackend", + g_param_spec_object ("backend", NULL, NULL, META_TYPE_BACKEND, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS); obj_props[PROP_PANEL_ORIENTATION_MANAGED] = - g_param_spec_boolean ("panel-orientation-managed", - "Panel orientation managed", - "Panel orientation is managed", + g_param_spec_boolean ("panel-orientation-managed", NULL, NULL, FALSE, G_PARAM_READABLE | G_PARAM_EXPLICIT_NOTIFY | G_PARAM_STATIC_STRINGS); obj_props[PROP_HAS_BUILTIN_PANEL] = - g_param_spec_boolean ("has-builtin-panel", - "Has builtin panel", - "The system has a built in panel", + g_param_spec_boolean ("has-builtin-panel", NULL, NULL, FALSE, G_PARAM_READABLE | G_PARAM_EXPLICIT_NOTIFY | G_PARAM_STATIC_STRINGS); obj_props[PROP_NIGHT_LIGHT_SUPPORTED] = - g_param_spec_boolean ("night-light-supported", - "Night light supported", - "Night light is supported", + g_param_spec_boolean ("night-light-supported", NULL, NULL, FALSE, G_PARAM_READABLE | G_PARAM_EXPLICIT_NOTIFY | G_PARAM_STATIC_STRINGS); obj_props[PROP_EXPERIMENTAL_HDR] = - g_param_spec_string ("experimental-hdr", - "Experimental HDR", - "Experimental HDR settings string", + g_param_spec_string ("experimental-hdr", NULL, NULL, NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); diff --git a/src/backends/meta-orientation-manager.c b/src/backends/meta-orientation-manager.c index 88aa184c0..9dad11e3d 100644 --- a/src/backends/meta-orientation-manager.c +++ b/src/backends/meta-orientation-manager.c @@ -352,9 +352,7 @@ meta_orientation_manager_class_init (MetaOrientationManagerClass *klass) G_TYPE_NONE, 0); props[PROP_HAS_ACCELEROMETER] = - g_param_spec_boolean ("has-accelerometer", - "Has accelerometer", - "Has accelerometer", + g_param_spec_boolean ("has-accelerometer", NULL, NULL, FALSE, G_PARAM_READABLE | G_PARAM_EXPLICIT_NOTIFY | diff --git a/src/backends/meta-output.c b/src/backends/meta-output.c index 48c209e99..1889165c4 100644 --- a/src/backends/meta-output.c +++ b/src/backends/meta-output.c @@ -662,33 +662,25 @@ meta_output_class_init (MetaOutputClass *klass) object_class->finalize = meta_output_finalize; obj_props[PROP_ID] = - g_param_spec_uint64 ("id", - "id", - "CRTC id", + g_param_spec_uint64 ("id", NULL, NULL, 0, UINT64_MAX, 0, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS); obj_props[PROP_GPU] = - g_param_spec_object ("gpu", - "gpu", - "MetaGpu", + g_param_spec_object ("gpu", NULL, NULL, META_TYPE_GPU, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS); obj_props[PROP_INFO] = - g_param_spec_boxed ("info", - "info", - "MetaOutputInfo", + g_param_spec_boxed ("info", NULL, NULL, META_TYPE_OUTPUT_INFO, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS); obj_props[PROP_IS_PRIVACY_SCREEN_ENABLED] = - g_param_spec_boolean ("is-privacy-screen-enabled", - "is-privacy-screen-enabled", - "Is privacy screen enabled", + g_param_spec_boolean ("is-privacy-screen-enabled", NULL, NULL, FALSE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); diff --git a/src/backends/meta-remote-access-controller.c b/src/backends/meta-remote-access-controller.c index db0d1bd5d..3689c3930 100644 --- a/src/backends/meta-remote-access-controller.c +++ b/src/backends/meta-remote-access-controller.c @@ -263,9 +263,7 @@ meta_remote_access_handle_class_init (MetaRemoteAccessHandleClass *klass) G_TYPE_NONE, 0); obj_props[PROP_IS_RECORDING] = - g_param_spec_boolean ("is-recording", - "is-recording", - "Is a screen recording", + g_param_spec_boolean ("is-recording", NULL, NULL, FALSE, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | diff --git a/src/backends/meta-renderer-view.c b/src/backends/meta-renderer-view.c index 6f3422bbf..7ffe9e736 100644 --- a/src/backends/meta-renderer-view.c +++ b/src/backends/meta-renderer-view.c @@ -203,9 +203,7 @@ meta_renderer_view_class_init (MetaRendererViewClass *klass) object_class->set_property = meta_renderer_view_set_property; obj_props[PROP_TRANSFORM] = - g_param_spec_uint ("transform", - "Transform", - "Transform to apply to the view", + g_param_spec_uint ("transform", NULL, NULL, META_MONITOR_TRANSFORM_NORMAL, META_MONITOR_TRANSFORM_FLIPPED_270, META_MONITOR_TRANSFORM_NORMAL, @@ -214,9 +212,7 @@ meta_renderer_view_class_init (MetaRendererViewClass *klass) G_PARAM_STATIC_STRINGS); obj_props[PROP_CRTC] = - g_param_spec_object ("crtc", - "MetaCrtc", - "MetaCrtc", + g_param_spec_object ("crtc", NULL, NULL, META_TYPE_CRTC, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | diff --git a/src/backends/meta-renderer.c b/src/backends/meta-renderer.c index e94902e78..bb93c0d84 100644 --- a/src/backends/meta-renderer.c +++ b/src/backends/meta-renderer.c @@ -398,9 +398,7 @@ meta_renderer_class_init (MetaRendererClass *klass) klass->get_views_for_monitor = meta_renderer_real_get_views_for_monitor; obj_props[PROP_BACKEND] = - g_param_spec_object ("backend", - "backend", - "MetaBackend", + g_param_spec_object ("backend", NULL, NULL, META_TYPE_BACKEND, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | diff --git a/src/backends/meta-screen-cast-monitor-stream.c b/src/backends/meta-screen-cast-monitor-stream.c index c55a9917c..d4d5a6e28 100644 --- a/src/backends/meta-screen-cast-monitor-stream.c +++ b/src/backends/meta-screen-cast-monitor-stream.c @@ -291,9 +291,7 @@ meta_screen_cast_monitor_stream_class_init (MetaScreenCastMonitorStreamClass *kl g_object_class_install_property (object_class, PROP_MONITOR, - g_param_spec_object ("monitor", - "monitor", - "MetaMonitor", + g_param_spec_object ("monitor", NULL, NULL, META_TYPE_MONITOR, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | diff --git a/src/backends/meta-screen-cast-session.c b/src/backends/meta-screen-cast-session.c index c6d8ad59c..5187810ff 100644 --- a/src/backends/meta-screen-cast-session.c +++ b/src/backends/meta-screen-cast-session.c @@ -864,9 +864,7 @@ meta_screen_cast_session_class_init (MetaScreenCastSessionClass *klass) object_class->get_property = meta_screen_cast_session_get_property; obj_props[PROP_SESSION_TYPE] = - g_param_spec_enum ("session-type", - "session type", - "The type of screen cast session", + g_param_spec_enum ("session-type", NULL, NULL, META_TYPE_SCREEN_CAST_SESSION_TYPE, META_SCREEN_CAST_SESSION_TYPE_NORMAL, G_PARAM_READWRITE | diff --git a/src/backends/meta-screen-cast-stream-src.c b/src/backends/meta-screen-cast-stream-src.c index 0fa68e37b..37d0bffe4 100644 --- a/src/backends/meta-screen-cast-stream-src.c +++ b/src/backends/meta-screen-cast-stream-src.c @@ -1594,9 +1594,7 @@ meta_screen_cast_stream_src_class_init (MetaScreenCastStreamSrcClass *klass) g_object_class_install_property (object_class, PROP_STREAM, - g_param_spec_object ("stream", - "stream", - "MetaScreenCastStream", + g_param_spec_object ("stream", NULL, NULL, META_TYPE_SCREEN_CAST_STREAM, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | diff --git a/src/backends/meta-screen-cast-stream.c b/src/backends/meta-screen-cast-stream.c index bf8648ab6..2815c715e 100644 --- a/src/backends/meta-screen-cast-stream.c +++ b/src/backends/meta-screen-cast-stream.c @@ -404,9 +404,7 @@ meta_screen_cast_stream_class_init (MetaScreenCastStreamClass *klass) g_object_class_install_property (object_class, PROP_SESSION, - g_param_spec_object ("session", - "session", - "MetaScreenSession", + g_param_spec_object ("session", NULL, NULL, META_TYPE_SCREEN_CAST_SESSION, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | @@ -414,9 +412,7 @@ meta_screen_cast_stream_class_init (MetaScreenCastStreamClass *klass) g_object_class_install_property (object_class, PROP_CONNECTION, - g_param_spec_object ("connection", - "connection", - "GDBus connection", + g_param_spec_object ("connection", NULL, NULL, G_TYPE_DBUS_CONNECTION, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | @@ -424,9 +420,7 @@ meta_screen_cast_stream_class_init (MetaScreenCastStreamClass *klass) g_object_class_install_property (object_class, PROP_CURSOR_MODE, - g_param_spec_uint ("cursor-mode", - "cursor-mode", - "Cursor mode", + g_param_spec_uint ("cursor-mode", NULL, NULL, META_SCREEN_CAST_CURSOR_MODE_HIDDEN, META_SCREEN_CAST_CURSOR_MODE_METADATA, META_SCREEN_CAST_CURSOR_MODE_HIDDEN, @@ -436,9 +430,7 @@ meta_screen_cast_stream_class_init (MetaScreenCastStreamClass *klass) g_object_class_install_property (object_class, PROP_FLAGS, - g_param_spec_flags ("flags", - "flags", - "Screen cast flags", + g_param_spec_flags ("flags", NULL, NULL, META_TYPE_SCREEN_CAST_FLAG, META_SCREEN_CAST_FLAG_NONE, G_PARAM_READWRITE | diff --git a/src/backends/meta-screen-cast-window-stream.c b/src/backends/meta-screen-cast-window-stream.c index 6ba9465b2..d9c1b049b 100644 --- a/src/backends/meta-screen-cast-window-stream.c +++ b/src/backends/meta-screen-cast-window-stream.c @@ -295,9 +295,7 @@ meta_screen_cast_window_stream_class_init (MetaScreenCastWindowStreamClass *klas g_object_class_install_property (object_class, PROP_WINDOW, - g_param_spec_object ("window", - "window", - "MetaWindow", + g_param_spec_object ("window", NULL, NULL, META_TYPE_WINDOW, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | diff --git a/src/backends/meta-stage-impl.c b/src/backends/meta-stage-impl.c index db94c7e40..db0cc8e2f 100644 --- a/src/backends/meta-stage-impl.c +++ b/src/backends/meta-stage-impl.c @@ -851,17 +851,13 @@ meta_stage_impl_class_init (MetaStageImplClass *klass) gobject_class->set_property = meta_stage_impl_set_property; obj_props[PROP_WRAPPER] = - g_param_spec_object ("wrapper", - "Wrapper", - "Back pointer to the Stage actor", + g_param_spec_object ("wrapper", NULL, NULL, CLUTTER_TYPE_STAGE, G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS); obj_props[PROP_BACKEND] = - g_param_spec_object ("backend", - "MetaBackend", - "MetaBackend", + g_param_spec_object ("backend", NULL, NULL, META_TYPE_BACKEND, G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY | diff --git a/src/backends/meta-virtual-monitor.c b/src/backends/meta-virtual-monitor.c index 9774a9e65..da9087368 100644 --- a/src/backends/meta-virtual-monitor.c +++ b/src/backends/meta-virtual-monitor.c @@ -207,24 +207,18 @@ meta_virtual_monitor_class_init (MetaVirtualMonitorClass *klass) object_class->dispose = meta_virtual_monitor_dispose; obj_props[PROP_CRTC] = - g_param_spec_object ("crtc", - "crtc", - "The virtual CRTC", + g_param_spec_object ("crtc", NULL, NULL, META_TYPE_CRTC, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS); obj_props[PROP_CRTC_MODE] = - g_param_spec_object ("crtc-mode", - "crtc-mode", - "The virtual CRTC mode", + g_param_spec_object ("crtc-mode", NULL, NULL, META_TYPE_CRTC_MODE, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); obj_props[PROP_OUTPUT] = - g_param_spec_object ("output", - "output", - "The virtual output", + g_param_spec_object ("output", NULL, NULL, META_TYPE_OUTPUT, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | diff --git a/src/backends/native/meta-backend-native.c b/src/backends/native/meta-backend-native.c index 7aa66b683..1296e9512 100644 --- a/src/backends/native/meta-backend-native.c +++ b/src/backends/native/meta-backend-native.c @@ -885,9 +885,7 @@ meta_backend_native_class_init (MetaBackendNativeClass *klass) backend_class->is_headless = meta_backend_native_is_headless; obj_props[PROP_MODE] = - g_param_spec_enum ("mode", - "mode", - "mode", + g_param_spec_enum ("mode", NULL, NULL, META_TYPE_BACKEND_NATIVE_MODE, META_BACKEND_NATIVE_MODE_DEFAULT, G_PARAM_WRITABLE | diff --git a/src/backends/native/meta-drm-buffer.c b/src/backends/native/meta-drm-buffer.c index e6aaeff8f..94c045725 100644 --- a/src/backends/native/meta-drm-buffer.c +++ b/src/backends/native/meta-drm-buffer.c @@ -327,16 +327,12 @@ meta_drm_buffer_class_init (MetaDrmBufferClass *klass) object_class->finalize = meta_drm_buffer_finalize; obj_props[PROP_DEVICE_FILE] = - g_param_spec_pointer ("device-file", - "device file", - "MetaDeviceFile", + g_param_spec_pointer ("device-file", NULL, NULL, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS); obj_props[PROP_FLAGS] = - g_param_spec_flags ("flags", - "flags", - "MetaDrmBufferFlags", + g_param_spec_flags ("flags", NULL, NULL, META_TYPE_DRM_BUFFER_FLAGS, META_DRM_BUFFER_FLAG_NONE, G_PARAM_READWRITE | diff --git a/src/backends/native/meta-input-device-native.c b/src/backends/native/meta-input-device-native.c index 849694942..ab215ed7b 100644 --- a/src/backends/native/meta-input-device-native.c +++ b/src/backends/native/meta-input-device-native.c @@ -1270,15 +1270,11 @@ meta_input_device_native_class_init (MetaInputDeviceNativeClass *klass) device_class->get_dimensions = meta_input_device_native_get_dimensions; obj_props[PROP_DEVICE_MATRIX] = - g_param_spec_boxed ("device-matrix", - "Device input matrix", - "Device input matrix", + g_param_spec_boxed ("device-matrix", NULL, NULL, CAIRO_GOBJECT_TYPE_MATRIX, CLUTTER_PARAM_READWRITE); obj_props[PROP_OUTPUT_ASPECT_RATIO] = - g_param_spec_double ("output-aspect-ratio", - "Output aspect ratio", - "Output aspect ratio", + g_param_spec_double ("output-aspect-ratio", NULL, NULL, 0, G_MAXDOUBLE, 0, CLUTTER_PARAM_READWRITE); diff --git a/src/backends/native/meta-input-settings-native.c b/src/backends/native/meta-input-settings-native.c index 6a76e54be..0a0eb9e80 100644 --- a/src/backends/native/meta-input-settings-native.c +++ b/src/backends/native/meta-input-settings-native.c @@ -816,9 +816,7 @@ meta_input_settings_native_class_init (MetaInputSettingsNativeClass *klass) input_settings_class->has_two_finger_scroll = meta_input_settings_native_has_two_finger_scroll; props[PROP_SEAT_IMPL] = - g_param_spec_object ("seat-impl", - "Seat Impl", - "Seat Impl", + g_param_spec_object ("seat-impl", NULL, NULL, META_TYPE_SEAT_IMPL, CLUTTER_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY); diff --git a/src/backends/native/meta-kms-impl-device.c b/src/backends/native/meta-kms-impl-device.c index d225c635e..f13ce5429 100644 --- a/src/backends/native/meta-kms-impl-device.c +++ b/src/backends/native/meta-kms-impl-device.c @@ -1935,33 +1935,25 @@ meta_kms_impl_device_class_init (MetaKmsImplDeviceClass *klass) object_class->finalize = meta_kms_impl_device_finalize; obj_props[PROP_DEVICE] = - g_param_spec_object ("device", - "device", - "MetaKmsDevice", + g_param_spec_object ("device", NULL, NULL, META_TYPE_KMS_DEVICE, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS); obj_props[PROP_IMPL] = - g_param_spec_object ("impl", - "impl", - "MetaKmsImpl", + g_param_spec_object ("impl", NULL, NULL, META_TYPE_KMS_IMPL, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS); obj_props[PROP_PATH] = - g_param_spec_string ("path", - "path", - "Device path", + g_param_spec_string ("path", NULL, NULL, NULL, G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS); obj_props[PROP_FLAGS] = - g_param_spec_flags ("flags", - "flags", - "KMS impl device flags", + g_param_spec_flags ("flags", NULL, NULL, META_TYPE_KMS_DEVICE_FLAG, META_KMS_DEVICE_FLAG_NONE, G_PARAM_READWRITE | diff --git a/src/backends/native/meta-monitor-manager-native.c b/src/backends/native/meta-monitor-manager-native.c index 0fd084dba..899e292bb 100644 --- a/src/backends/native/meta-monitor-manager-native.c +++ b/src/backends/native/meta-monitor-manager-native.c @@ -746,9 +746,7 @@ meta_monitor_manager_native_class_init (MetaMonitorManagerNativeClass *klass) meta_monitor_manager_native_create_virtual_monitor; obj_props[PROP_NEED_OUTPUTS] = - g_param_spec_boolean ("needs-outputs", - "needs-outputs", - "Whether any outputs are needed for operation", + g_param_spec_boolean ("needs-outputs", NULL, NULL, TRUE, G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY | diff --git a/src/backends/native/meta-render-device.c b/src/backends/native/meta-render-device.c index 65e482ad9..ef7df44a8 100644 --- a/src/backends/native/meta-render-device.c +++ b/src/backends/native/meta-render-device.c @@ -271,17 +271,13 @@ meta_render_device_class_init (MetaRenderDeviceClass *klass) object_class->finalize = meta_render_device_finalize; obj_props[PROP_BACKEND] = - g_param_spec_object ("backend", - "backend", - "MetaBackend", + g_param_spec_object ("backend", NULL, NULL, META_TYPE_BACKEND, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS); obj_props[PROP_DEVICE_FILE] = - g_param_spec_pointer ("device-file", - "device file", - "MetaDeviceFile", + g_param_spec_pointer ("device-file", NULL, NULL, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS); diff --git a/src/backends/native/meta-seat-impl.c b/src/backends/native/meta-seat-impl.c index f55f78260..90fc569b6 100644 --- a/src/backends/native/meta-seat-impl.c +++ b/src/backends/native/meta-seat-impl.c @@ -3592,26 +3592,20 @@ meta_seat_impl_class_init (MetaSeatImplClass *klass) object_class->finalize = meta_seat_impl_finalize; props[PROP_SEAT] = - g_param_spec_object ("seat", - "Seat", - "Seat", + g_param_spec_object ("seat", NULL, NULL, META_TYPE_SEAT_NATIVE, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS); props[PROP_SEAT_ID] = - g_param_spec_string ("seat-id", - "Seat ID", - "Seat ID", + g_param_spec_string ("seat-id", NULL, NULL, NULL, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY); props[PROP_FLAGS] = - g_param_spec_flags ("flags", - "Flags", - "Flags", + g_param_spec_flags ("flags", NULL, NULL, META_TYPE_SEAT_NATIVE_FLAG, META_SEAT_NATIVE_FLAG_NONE, G_PARAM_READWRITE | diff --git a/src/backends/native/meta-seat-native.c b/src/backends/native/meta-seat-native.c index f6c28fd67..75ea77fd9 100644 --- a/src/backends/native/meta-seat-native.c +++ b/src/backends/native/meta-seat-native.c @@ -389,26 +389,20 @@ meta_seat_native_class_init (MetaSeatNativeClass *klass) seat_class->query_state = meta_seat_native_query_state; props[PROP_SEAT_ID] = - g_param_spec_string ("seat-id", - "Seat ID", - "Seat ID", + g_param_spec_string ("seat-id", NULL, NULL, NULL, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY); props[PROP_FLAGS] = - g_param_spec_flags ("flags", - "Flags", - "Flags", + g_param_spec_flags ("flags", NULL, NULL, META_TYPE_SEAT_NATIVE_FLAG, META_SEAT_NATIVE_FLAG_NONE, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY); props[PROP_BACKEND] = - g_param_spec_object ("backend", - "Backend", - "Backend", + g_param_spec_object ("backend", NULL, NULL, META_TYPE_BACKEND, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY); diff --git a/src/backends/native/meta-virtual-input-device-native.c b/src/backends/native/meta-virtual-input-device-native.c index 0e97b8fc6..60ddba993 100644 --- a/src/backends/native/meta-virtual-input-device-native.c +++ b/src/backends/native/meta-virtual-input-device-native.c @@ -1109,14 +1109,10 @@ meta_virtual_input_device_native_class_init (MetaVirtualInputDeviceNativeClass * virtual_input_device_class->notify_touch_motion = meta_virtual_input_device_native_notify_touch_motion; virtual_input_device_class->notify_touch_up = meta_virtual_input_device_native_notify_touch_up; - obj_props[PROP_SEAT] = g_param_spec_pointer ("seat", - "Seat", - "Seat", + obj_props[PROP_SEAT] = g_param_spec_pointer ("seat", NULL, NULL, CLUTTER_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY); - obj_props[PROP_SLOT_BASE] = g_param_spec_uint ("slot-base", - "Slot base", - "Base for touch slots", + obj_props[PROP_SLOT_BASE] = g_param_spec_uint ("slot-base", NULL, NULL, 0, G_MAXUINT, 0, CLUTTER_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY); diff --git a/src/backends/x11/cm/meta-backend-x11-cm.c b/src/backends/x11/cm/meta-backend-x11-cm.c index 2bd4caf34..41c4c6a9a 100644 --- a/src/backends/x11/cm/meta-backend-x11-cm.c +++ b/src/backends/x11/cm/meta-backend-x11-cm.c @@ -555,9 +555,7 @@ meta_backend_x11_cm_class_init (MetaBackendX11CmClass *klass) backend_x11_class->translate_crossing_event = meta_backend_x11_cm_translate_crossing_event; obj_props[PROP_DISPLAY_NAME] = - g_param_spec_string ("display-name", - "display name", - "X11 display name", + g_param_spec_string ("display-name", NULL, NULL, NULL, G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY | diff --git a/src/backends/x11/cm/meta-cursor-sprite-xfixes.c b/src/backends/x11/cm/meta-cursor-sprite-xfixes.c index 2847cd295..45aca3009 100644 --- a/src/backends/x11/cm/meta-cursor-sprite-xfixes.c +++ b/src/backends/x11/cm/meta-cursor-sprite-xfixes.c @@ -223,9 +223,7 @@ meta_cursor_sprite_xfixes_class_init (MetaCursorSpriteXfixesClass *klass) cursor_sprite_class->is_animated = meta_cursor_sprite_xfixes_is_animated; obj_props[PROP_DISPLAY] = - g_param_spec_object ("display", - "display", - "MetaDisplay", + g_param_spec_object ("display", NULL, NULL, META_TYPE_DISPLAY, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | diff --git a/src/backends/x11/meta-input-device-x11.c b/src/backends/x11/meta-input-device-x11.c index ebf1609d2..5f0c582b1 100644 --- a/src/backends/x11/meta-input-device-x11.c +++ b/src/backends/x11/meta-input-device-x11.c @@ -365,9 +365,7 @@ meta_input_device_x11_class_init (MetaInputDeviceX11Class *klass) device_class->get_dimensions = meta_input_device_x11_get_dimensions; props[PROP_ID] = - g_param_spec_int ("id", - "Id", - "Unique identifier of the device", + g_param_spec_int ("id", NULL, NULL, -1, G_MAXINT, 0, CLUTTER_PARAM_READWRITE | diff --git a/src/backends/x11/meta-keymap-x11.c b/src/backends/x11/meta-keymap-x11.c index 26cee40fd..e06a7c128 100644 --- a/src/backends/x11/meta-keymap-x11.c +++ b/src/backends/x11/meta-keymap-x11.c @@ -549,9 +549,7 @@ meta_keymap_x11_class_init (MetaKeymapX11Class *klass) ClutterKeymapClass *keymap_class = CLUTTER_KEYMAP_CLASS (klass); obj_props[PROP_BACKEND] = - g_param_spec_object ("backend", - "Backend", - "The backend", + g_param_spec_object ("backend", NULL, NULL, META_TYPE_BACKEND, G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY); diff --git a/src/backends/x11/meta-seat-x11.c b/src/backends/x11/meta-seat-x11.c index 37f069a70..7231acdb0 100644 --- a/src/backends/x11/meta-seat-x11.c +++ b/src/backends/x11/meta-seat-x11.c @@ -1891,30 +1891,22 @@ meta_seat_x11_class_init (MetaSeatX11Class *klass) seat_class->ungrab = meta_seat_x11_ungrab; props[PROP_BACKEND] = - g_param_spec_object ("backend", - "MetaBackend", - "MetaBackend", + g_param_spec_object ("backend", NULL, NULL, META_TYPE_BACKEND, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY); props[PROP_OPCODE] = - g_param_spec_int ("opcode", - "Opcode", - "Opcode", + g_param_spec_int ("opcode", NULL, NULL, 0, G_MAXINT, 0, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY); props[PROP_POINTER_ID] = - g_param_spec_int ("pointer-id", - "Pointer ID", - "Pointer ID", + g_param_spec_int ("pointer-id", NULL, NULL, 2, G_MAXINT, 2, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY); props[PROP_KEYBOARD_ID] = - g_param_spec_int ("keyboard-id", - "Keyboard ID", - "Keyboard ID", + g_param_spec_int ("keyboard-id", NULL, NULL, 2, G_MAXINT, 2, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY); diff --git a/src/compositor/compositor.c b/src/compositor/compositor.c index c951011af..5ebe7c530 100644 --- a/src/compositor/compositor.c +++ b/src/compositor/compositor.c @@ -1298,17 +1298,13 @@ meta_compositor_class_init (MetaCompositorClass *klass) klass->after_paint = meta_compositor_real_after_paint; obj_props[PROP_DISPLAY] = - g_param_spec_object ("display", - "display", - "MetaDisplay", + g_param_spec_object ("display", NULL, NULL, META_TYPE_DISPLAY, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS); obj_props[PROP_BACKEND] = - g_param_spec_object ("backend", - "backend", - "MetaBackend", + g_param_spec_object ("backend", NULL, NULL, META_TYPE_BACKEND, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | diff --git a/src/compositor/meta-background-actor.c b/src/compositor/meta-background-actor.c index 105f94259..5ae3333d8 100644 --- a/src/compositor/meta-background-actor.c +++ b/src/compositor/meta-background-actor.c @@ -115,9 +115,7 @@ meta_background_actor_class_init (MetaBackgroundActorClass *klass) object_class->set_property = meta_background_actor_set_property; object_class->get_property = meta_background_actor_get_property; - param_spec = g_param_spec_object ("meta-display", - "MetaDisplay", - "MetaDisplay", + param_spec = g_param_spec_object ("meta-display", NULL, NULL, META_TYPE_DISPLAY, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY); @@ -125,9 +123,7 @@ meta_background_actor_class_init (MetaBackgroundActorClass *klass) PROP_META_DISPLAY, param_spec); - param_spec = g_param_spec_int ("monitor", - "monitor", - "monitor", + param_spec = g_param_spec_int ("monitor", NULL, NULL, 0, G_MAXINT, 0, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY); diff --git a/src/compositor/meta-background-content.c b/src/compositor/meta-background-content.c index 93719f3ca..46d708a90 100644 --- a/src/compositor/meta-background-content.c +++ b/src/compositor/meta-background-content.c @@ -956,72 +956,52 @@ meta_background_content_class_init (MetaBackgroundContentClass *klass) object_class->get_property = meta_background_content_get_property; properties[PROP_META_DISPLAY] = - g_param_spec_object ("meta-display", - "MetaDisplay", - "MetaDisplay", + g_param_spec_object ("meta-display", NULL, NULL, META_TYPE_DISPLAY, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY); properties[PROP_MONITOR] = - g_param_spec_int ("monitor", - "monitor", - "monitor", + g_param_spec_int ("monitor", NULL, NULL, 0, G_MAXINT, 0, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY); properties[PROP_BACKGROUND] = - g_param_spec_object ("background", - "Background", - "MetaBackground object holding background parameters", + g_param_spec_object ("background", NULL, NULL, META_TYPE_BACKGROUND, G_PARAM_READWRITE); properties[PROP_GRADIENT] = - g_param_spec_boolean ("gradient", - "Gradient", - "Whether gradient effect is enabled", + g_param_spec_boolean ("gradient", NULL, NULL, FALSE, G_PARAM_READWRITE); properties[PROP_GRADIENT_HEIGHT] = - g_param_spec_int ("gradient-height", - "Gradient Height", - "Height of gradient effect", + g_param_spec_int ("gradient-height", NULL, NULL, 0, G_MAXINT, 0, G_PARAM_READWRITE); properties[PROP_GRADIENT_MAX_DARKNESS] = - g_param_spec_double ("gradient-max-darkness", - "Gradient Max Darkness", - "How dark is the gradient initially", + g_param_spec_double ("gradient-max-darkness", NULL, NULL, 0.0, 1.0, 0.0, G_PARAM_READWRITE); properties[PROP_VIGNETTE] = - g_param_spec_boolean ("vignette", - "Vignette", - "Whether vignette effect is enabled", + g_param_spec_boolean ("vignette", NULL, NULL, FALSE, G_PARAM_READWRITE); properties[PROP_VIGNETTE_BRIGHTNESS] = - g_param_spec_double ("brightness", - "Vignette Brightness", - "Brightness of vignette effect", + g_param_spec_double ("brightness", NULL, NULL, 0.0, 1.0, 1.0, G_PARAM_READWRITE); properties[PROP_VIGNETTE_SHARPNESS] = - g_param_spec_double ("vignette-sharpness", - "Vignette Sharpness", - "Sharpness of vignette effect", + g_param_spec_double ("vignette-sharpness", NULL, NULL, 0.0, G_MAXDOUBLE, 0.0, G_PARAM_READWRITE); properties[PROP_ROUNDED_CLIP_RADIUS] = - g_param_spec_float ("rounded-clip-radius", - "Rounded clip radius", - "Rounded clip radius", + g_param_spec_float ("rounded-clip-radius", NULL, NULL, 0.0, G_MAXFLOAT, 0.0, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | diff --git a/src/compositor/meta-background.c b/src/compositor/meta-background.c index 7aab04254..77e0cb800 100644 --- a/src/compositor/meta-background.c +++ b/src/compositor/meta-background.c @@ -352,9 +352,7 @@ meta_background_class_init (MetaBackgroundClass *klass) NULL, NULL, NULL, G_TYPE_NONE, 0); - param_spec = g_param_spec_object ("meta-display", - "MetaDisplay", - "MetaDisplay", + param_spec = g_param_spec_object ("meta-display", NULL, NULL, META_TYPE_DISPLAY, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY); diff --git a/src/compositor/meta-compositor-view.c b/src/compositor/meta-compositor-view.c index 6ce622424..cd13b24e1 100644 --- a/src/compositor/meta-compositor-view.c +++ b/src/compositor/meta-compositor-view.c @@ -184,9 +184,7 @@ meta_compositor_view_class_init (MetaCompositorViewClass *klass) object_class->finalize = meta_compositor_view_finalize; obj_props[PROP_STAGE_VIEW] = - g_param_spec_object ("stage-view", - "stage-view", - "ClutterStageView", + g_param_spec_object ("stage-view", NULL, NULL, CLUTTER_TYPE_STAGE_VIEW, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | diff --git a/src/compositor/meta-dnd-actor.c b/src/compositor/meta-dnd-actor.c index 106bb8943..6206d7e31 100644 --- a/src/compositor/meta-dnd-actor.c +++ b/src/compositor/meta-dnd-actor.c @@ -111,9 +111,7 @@ meta_dnd_actor_class_init (MetaDnDActorClass *klass) object_class->set_property = meta_dnd_actor_set_property; object_class->get_property = meta_dnd_actor_get_property; - pspec = g_param_spec_object ("drag-origin", - "Drag origin", - "The origin of the DnD operation", + pspec = g_param_spec_object ("drag-origin", NULL, NULL, CLUTTER_TYPE_ACTOR, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY); @@ -121,9 +119,7 @@ meta_dnd_actor_class_init (MetaDnDActorClass *klass) PROP_DRAG_ORIGIN, pspec); - pspec = g_param_spec_int ("drag-start-x", - "Drag start X", - "The X axis of the drag start point", + pspec = g_param_spec_int ("drag-start-x", NULL, NULL, 0, G_MAXINT, 0, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY); @@ -131,9 +127,7 @@ meta_dnd_actor_class_init (MetaDnDActorClass *klass) PROP_DRAG_START_X, pspec); - pspec = g_param_spec_int ("drag-start-y", - "Drag start Y", - "The Y axis of the drag start point", + pspec = g_param_spec_int ("drag-start-y", NULL, NULL, 0, G_MAXINT, 0, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY); diff --git a/src/compositor/meta-feedback-actor.c b/src/compositor/meta-feedback-actor.c index 114e87699..35749fba0 100644 --- a/src/compositor/meta-feedback-actor.c +++ b/src/compositor/meta-feedback-actor.c @@ -161,9 +161,7 @@ meta_feedback_actor_class_init (MetaFeedbackActorClass *klass) object_class->set_property = meta_feedback_actor_set_property; object_class->get_property = meta_feedback_actor_get_property; - pspec = g_param_spec_object ("compositor", - "compositor", - "The compositor instance", + pspec = g_param_spec_object ("compositor", NULL, NULL, META_TYPE_COMPOSITOR, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | @@ -173,9 +171,7 @@ meta_feedback_actor_class_init (MetaFeedbackActorClass *klass) PROP_COMPOSITOR, pspec); - pspec = g_param_spec_float ("anchor-x", - "Anchor X", - "The X axis of the anchor point", + pspec = g_param_spec_float ("anchor-x", NULL, NULL, 0, G_MAXFLOAT, 0, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); @@ -184,9 +180,7 @@ meta_feedback_actor_class_init (MetaFeedbackActorClass *klass) PROP_ANCHOR_X, pspec); - pspec = g_param_spec_float ("anchor-y", - "Anchor Y", - "The Y axis of the anchor point", + pspec = g_param_spec_float ("anchor-y", NULL, NULL, 0, G_MAXFLOAT, 0, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); diff --git a/src/compositor/meta-module.c b/src/compositor/meta-module.c index a8ed15bae..ca7ea05b8 100644 --- a/src/compositor/meta-module.c +++ b/src/compositor/meta-module.c @@ -169,9 +169,7 @@ meta_module_class_init (MetaModuleClass *klass) g_object_class_install_property (gobject_class, PROP_PATH, - g_param_spec_string ("path", - "Path", - "Load path", + g_param_spec_string ("path", NULL, NULL, NULL, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY)); diff --git a/src/compositor/meta-window-actor-x11.c b/src/compositor/meta-window-actor-x11.c index 82faee899..354cd2bef 100644 --- a/src/compositor/meta-window-actor-x11.c +++ b/src/compositor/meta-window-actor-x11.c @@ -1604,9 +1604,7 @@ meta_window_actor_x11_class_init (MetaWindowActorX11Class *klass) object_class->dispose = meta_window_actor_x11_dispose; object_class->finalize = meta_window_actor_x11_finalize; - pspec = g_param_spec_enum ("shadow-mode", - "Shadow mode", - "Decides when to paint shadows", + pspec = g_param_spec_enum ("shadow-mode", NULL, NULL, META_TYPE_SHADOW_MODE, META_SHADOW_MODE_AUTO, G_PARAM_READWRITE); @@ -1615,9 +1613,7 @@ meta_window_actor_x11_class_init (MetaWindowActorX11Class *klass) PROP_SHADOW_MODE, pspec); - pspec = g_param_spec_string ("shadow-class", - "Name of the shadow class for this window.", - "NULL means to use the default shadow class for this window type", + pspec = g_param_spec_string ("shadow-class", NULL, NULL, NULL, G_PARAM_READWRITE); diff --git a/src/compositor/meta-window-actor.c b/src/compositor/meta-window-actor.c index 843696bb9..a8c2d41e1 100644 --- a/src/compositor/meta-window-actor.c +++ b/src/compositor/meta-window-actor.c @@ -198,9 +198,7 @@ meta_window_actor_class_init (MetaWindowActorClass *klass) NULL, NULL, NULL, G_TYPE_NONE, 0); - pspec = g_param_spec_object ("meta-window", - "MetaWindow", - "The displayed MetaWindow", + pspec = g_param_spec_object ("meta-window", NULL, NULL, META_TYPE_WINDOW, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY); diff --git a/src/compositor/meta-window-drag.c b/src/compositor/meta-window-drag.c index ad61181a6..455ea50eb 100644 --- a/src/compositor/meta-window-drag.c +++ b/src/compositor/meta-window-drag.c @@ -236,16 +236,12 @@ meta_window_drag_class_init (MetaWindowDragClass *klass) object_class->set_property = meta_window_drag_set_property; object_class->get_property = meta_window_drag_get_property; - props[PROP_WINDOW] = g_param_spec_object ("window", - "Window", - "Window", + props[PROP_WINDOW] = g_param_spec_object ("window", NULL, NULL, META_TYPE_WINDOW, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS); - props[PROP_GRAB_OP] = g_param_spec_uint ("grab-op", - "Grab op", - "Grab op", + props[PROP_GRAB_OP] = g_param_spec_uint ("grab-op", NULL, NULL, 0, G_MAXUINT, META_GRAB_OP_NONE, G_PARAM_READWRITE | diff --git a/src/core/display.c b/src/core/display.c index 7997ebe70..60b3ef898 100644 --- a/src/core/display.c +++ b/src/core/display.c @@ -566,18 +566,14 @@ meta_display_class_init (MetaDisplayClass *klass) g_object_class_install_property (object_class, PROP_COMPOSITOR_MODIFIERS, - g_param_spec_flags ("compositor-modifiers", - "Compositor modifiers", - "Modifiers reserved for compositor actions", + g_param_spec_flags ("compositor-modifiers", NULL, NULL, CLUTTER_TYPE_MODIFIER_TYPE, 0, G_PARAM_READABLE)); g_object_class_install_property (object_class, PROP_FOCUS_WINDOW, - g_param_spec_object ("focus-window", - "Focus window", - "Currently focused window", + g_param_spec_object ("focus-window", NULL, NULL, META_TYPE_WINDOW, G_PARAM_READABLE)); diff --git a/src/core/meta-close-dialog.c b/src/core/meta-close-dialog.c index 6d24fa570..35b4264ec 100644 --- a/src/core/meta-close-dialog.c +++ b/src/core/meta-close-dialog.c @@ -41,9 +41,7 @@ static void meta_close_dialog_default_init (MetaCloseDialogInterface *iface) { g_object_interface_install_property (iface, - g_param_spec_object ("window", - "Window", - "Window", + g_param_spec_object ("window", NULL, NULL, META_TYPE_WINDOW, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY)); diff --git a/src/core/meta-context.c b/src/core/meta-context.c index 6f1a676d5..573f024fb 100644 --- a/src/core/meta-context.c +++ b/src/core/meta-context.c @@ -787,17 +787,13 @@ meta_context_class_init (MetaContextClass *klass) klass->setup = meta_context_real_setup; obj_props[PROP_NAME] = - g_param_spec_string ("name", - "name", - "Human readable name", + g_param_spec_string ("name", NULL, NULL, NULL, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS); obj_props[PROP_UNSAFE_MODE] = - g_param_spec_boolean ("unsafe-mode", - "unsafe mode", - "Unsafe mode", + g_param_spec_boolean ("unsafe-mode", NULL, NULL, FALSE, G_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY | diff --git a/src/core/meta-gesture-tracker.c b/src/core/meta-gesture-tracker.c index 55e8e487a..3365e8fe4 100644 --- a/src/core/meta-gesture-tracker.c +++ b/src/core/meta-gesture-tracker.c @@ -157,9 +157,7 @@ meta_gesture_tracker_class_init (MetaGestureTrackerClass *klass) object_class->set_property = meta_gesture_tracker_set_property; object_class->get_property = meta_gesture_tracker_get_property; - obj_props[PROP_AUTODENY_TIMEOUT] = g_param_spec_uint ("autodeny-timeout", - "Auto-deny timeout", - "Auto-deny timeout", + obj_props[PROP_AUTODENY_TIMEOUT] = g_param_spec_uint ("autodeny-timeout", NULL, NULL, 0, G_MAXUINT, DEFAULT_AUTODENY_TIMEOUT, G_PARAM_STATIC_STRINGS | G_PARAM_READWRITE | diff --git a/src/core/meta-inhibit-shortcuts-dialog.c b/src/core/meta-inhibit-shortcuts-dialog.c index d5b4e5a05..7c2249834 100644 --- a/src/core/meta-inhibit-shortcuts-dialog.c +++ b/src/core/meta-inhibit-shortcuts-dialog.c @@ -36,9 +36,7 @@ static void meta_inhibit_shortcuts_dialog_default_init (MetaInhibitShortcutsDialogInterface *iface) { g_object_interface_install_property (iface, - g_param_spec_object ("window", - "Window", - "Window", + g_param_spec_object ("window", NULL, NULL, META_TYPE_WINDOW, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | diff --git a/src/core/meta-launch-context.c b/src/core/meta-launch-context.c index 7eaf05e38..549ade28b 100644 --- a/src/core/meta-launch-context.c +++ b/src/core/meta-launch-context.c @@ -224,21 +224,15 @@ meta_launch_context_class_init (MetaLaunchContextClass *klass) ctx_class->launch_failed = meta_launch_context_launch_failed; props[PROP_DISPLAY] = - g_param_spec_object ("display", - "display", - "Display", + g_param_spec_object ("display", NULL, NULL, META_TYPE_DISPLAY, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY); props[PROP_WORKSPACE] = - g_param_spec_object ("workspace", - "workspace", - "Workspace", + g_param_spec_object ("workspace", NULL, NULL, META_TYPE_WORKSPACE, G_PARAM_READWRITE); props[PROP_TIMESTAMP] = - g_param_spec_uint ("timestamp", - "timestamp", - "Timestamp", + g_param_spec_uint ("timestamp", NULL, NULL, 0, G_MAXUINT32, 0, G_PARAM_READWRITE); diff --git a/src/core/meta-workspace-manager.c b/src/core/meta-workspace-manager.c index 0279ab23d..d805e51d3 100644 --- a/src/core/meta-workspace-manager.c +++ b/src/core/meta-workspace-manager.c @@ -180,25 +180,19 @@ meta_workspace_manager_class_init (MetaWorkspaceManagerClass *klass) g_object_class_install_property (object_class, PROP_LAYOUT_COLUMNS, - g_param_spec_int ("layout-columns", - "Layout columns", - "Number of columns in layout", + g_param_spec_int ("layout-columns", NULL, NULL, -1, G_MAXINT, 1, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (object_class, PROP_LAYOUT_ROWS, - g_param_spec_int ("layout-rows", - "Layout rows", - "Number of rows in layout", + g_param_spec_int ("layout-rows", NULL, NULL, -1, G_MAXINT, -1, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); g_object_class_install_property (object_class, PROP_N_WORKSPACES, - g_param_spec_int ("n-workspaces", - "N Workspaces", - "Number of workspaces", + g_param_spec_int ("n-workspaces", NULL, NULL, 1, G_MAXINT, 1, G_PARAM_READABLE)); } diff --git a/src/core/stack.c b/src/core/stack.c index a91dca18d..d1f7aae7b 100644 --- a/src/core/stack.c +++ b/src/core/stack.c @@ -236,9 +236,7 @@ meta_stack_class_init (MetaStackClass *klass) G_TYPE_NONE, 1, META_TYPE_WINDOW); pspecs[PROP_DISPLAY] = - g_param_spec_object ("display", - "Display", - "Display", + g_param_spec_object ("display", NULL, NULL, META_TYPE_DISPLAY, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY); diff --git a/src/core/startup-notification.c b/src/core/startup-notification.c index 21b88dea8..69b059d06 100644 --- a/src/core/startup-notification.c +++ b/src/core/startup-notification.c @@ -320,58 +320,42 @@ meta_startup_sequence_class_init (MetaStartupSequenceClass *klass) G_TYPE_NONE, 0); seq_props[PROP_SEQ_DISPLAY] = - g_param_spec_object ("display", - "Display", - "Display", + g_param_spec_object ("display", NULL, NULL, META_TYPE_DISPLAY, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY); seq_props[PROP_SEQ_ID] = - g_param_spec_string ("id", - "ID", - "ID", + g_param_spec_string ("id", NULL, NULL, NULL, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY); seq_props[PROP_SEQ_TIMESTAMP] = - g_param_spec_uint64 ("timestamp", - "Timestamp", - "Timestamp", + g_param_spec_uint64 ("timestamp", NULL, NULL, 0, G_MAXUINT64, 0, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY); seq_props[PROP_SEQ_ICON_NAME] = - g_param_spec_string ("icon-name", - "Icon name", - "Icon name", + g_param_spec_string ("icon-name", NULL, NULL, NULL, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY); seq_props[PROP_SEQ_APPLICATION_ID] = - g_param_spec_string ("application-id", - "Application ID", - "Application ID", + g_param_spec_string ("application-id", NULL, NULL, NULL, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY); seq_props[PROP_SEQ_WMCLASS] = - g_param_spec_string ("wmclass", - "WM class", - "WM class", + g_param_spec_string ("wmclass", NULL, NULL, NULL, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY); seq_props[PROP_SEQ_WORKSPACE] = - g_param_spec_int ("workspace", - "Workspace", - "Workspace", + g_param_spec_int ("workspace", NULL, NULL, G_MININT, G_MAXINT, -1, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY); seq_props[PROP_SEQ_NAME] = - g_param_spec_string ("name", - "Name", - "Name", + g_param_spec_string ("name", NULL, NULL, NULL, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY); @@ -733,9 +717,7 @@ meta_startup_notification_class_init (MetaStartupNotificationClass *klass) object_class->get_property = meta_startup_notification_get_property; sn_props[PROP_DISPLAY] = - g_param_spec_object ("display", - "Display", - "Display", + g_param_spec_object ("display", NULL, NULL, META_TYPE_DISPLAY, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS); diff --git a/src/core/window.c b/src/core/window.c index 038aaa907..ec9f73e4e 100644 --- a/src/core/window.c +++ b/src/core/window.c @@ -487,184 +487,126 @@ meta_window_class_init (MetaWindowClass *klass) klass->get_client_pid = meta_window_real_get_client_pid; obj_props[PROP_TITLE] = - g_param_spec_string ("title", - "Title", - "The title of the window", + g_param_spec_string ("title", NULL, NULL, NULL, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS); obj_props[PROP_ICON] = - g_param_spec_pointer ("icon", - "Icon", - "Normal icon, usually 96x96 pixels", + g_param_spec_pointer ("icon", NULL, NULL, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS); obj_props[PROP_MINI_ICON] = - g_param_spec_pointer ("mini-icon", - "Mini Icon", - "Mini icon, usually 16x16 pixels", + g_param_spec_pointer ("mini-icon", NULL, NULL, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS); obj_props[PROP_DECORATED] = - g_param_spec_boolean ("decorated", - "Decorated", - "Whether window is decorated", + g_param_spec_boolean ("decorated", NULL, NULL, TRUE, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS); obj_props[PROP_FULLSCREEN] = - g_param_spec_boolean ("fullscreen", - "Fullscreen", - "Whether window is fullscreened", + g_param_spec_boolean ("fullscreen", NULL, NULL, FALSE, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS); obj_props[PROP_MAXIMIZED_HORIZONTALLY] = - g_param_spec_boolean ("maximized-horizontally", - "Maximized horizontally", - "Whether window is maximized horizontally", + g_param_spec_boolean ("maximized-horizontally", NULL, NULL, FALSE, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS); obj_props[PROP_MAXIMIZED_VERTICALLY] = - g_param_spec_boolean ("maximized-vertically", - "Maximizing vertically", - "Whether window is maximized vertically", + g_param_spec_boolean ("maximized-vertically", NULL, NULL, FALSE, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS); obj_props[PROP_MINIMIZED] = - g_param_spec_boolean ("minimized", - "Minimizing", - "Whether window is minimized", + g_param_spec_boolean ("minimized", NULL, NULL, FALSE, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS); obj_props[PROP_WINDOW_TYPE] = - g_param_spec_enum ("window-type", - "Window Type", - "The type of the window", + g_param_spec_enum ("window-type", NULL, NULL, META_TYPE_WINDOW_TYPE, META_WINDOW_NORMAL, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS); obj_props[PROP_USER_TIME] = - g_param_spec_uint ("user-time", - "User time", - "Timestamp of last user interaction", + g_param_spec_uint ("user-time", NULL, NULL, 0, G_MAXUINT, 0, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS); obj_props[PROP_DEMANDS_ATTENTION] = - g_param_spec_boolean ("demands-attention", - "Demands Attention", - "Whether the window has _NET_WM_STATE_DEMANDS_ATTENTION set", + g_param_spec_boolean ("demands-attention", NULL, NULL, FALSE, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS); obj_props[PROP_URGENT] = - g_param_spec_boolean ("urgent", - "Urgent", - "Whether the urgent flag of WM_HINTS is set", + g_param_spec_boolean ("urgent", NULL, NULL, FALSE, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS); obj_props[PROP_SKIP_TASKBAR] = - g_param_spec_boolean ("skip-taskbar", - "Skip taskbar", - "Whether the skip-taskbar flag of WM_HINTS is set", + g_param_spec_boolean ("skip-taskbar", NULL, NULL, FALSE, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS); obj_props[PROP_MUTTER_HINTS] = - g_param_spec_string ("mutter-hints", - "_MUTTER_HINTS", - "Contents of the _MUTTER_HINTS property of this window", + g_param_spec_string ("mutter-hints", NULL, NULL, NULL, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS); obj_props[PROP_APPEARS_FOCUSED] = - g_param_spec_boolean ("appears-focused", - "Appears focused", - "Whether the window is drawn as being focused", + g_param_spec_boolean ("appears-focused", NULL, NULL, FALSE, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS); obj_props[PROP_RESIZEABLE] = - g_param_spec_boolean ("resizeable", - "Resizeable", - "Whether the window can be resized", + g_param_spec_boolean ("resizeable", NULL, NULL, FALSE, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS); obj_props[PROP_ABOVE] = - g_param_spec_boolean ("above", - "Above", - "Whether the window is shown as always-on-top", + g_param_spec_boolean ("above", NULL, NULL, FALSE, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS); obj_props[PROP_WM_CLASS] = - g_param_spec_string ("wm-class", - "WM_CLASS", - "Contents of the WM_CLASS property of this window", + g_param_spec_string ("wm-class", NULL, NULL, NULL, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS); obj_props[PROP_GTK_APPLICATION_ID] = - g_param_spec_string ("gtk-application-id", - "_GTK_APPLICATION_ID", - "Contents of the _GTK_APPLICATION_ID property of this window", + g_param_spec_string ("gtk-application-id", NULL, NULL, NULL, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS); obj_props[PROP_GTK_UNIQUE_BUS_NAME] = - g_param_spec_string ("gtk-unique-bus-name", - "_GTK_UNIQUE_BUS_NAME", - "Contents of the _GTK_UNIQUE_BUS_NAME property of this window", + g_param_spec_string ("gtk-unique-bus-name", NULL, NULL, NULL, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS); obj_props[PROP_GTK_APPLICATION_OBJECT_PATH] = - g_param_spec_string ("gtk-application-object-path", - "_GTK_APPLICATION_OBJECT_PATH", - "Contents of the _GTK_APPLICATION_OBJECT_PATH property of this window", + g_param_spec_string ("gtk-application-object-path", NULL, NULL, NULL, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS); obj_props[PROP_GTK_WINDOW_OBJECT_PATH] = - g_param_spec_string ("gtk-window-object-path", - "_GTK_WINDOW_OBJECT_PATH", - "Contents of the _GTK_WINDOW_OBJECT_PATH property of this window", + g_param_spec_string ("gtk-window-object-path", NULL, NULL, NULL, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS); obj_props[PROP_GTK_APP_MENU_OBJECT_PATH] = - g_param_spec_string ("gtk-app-menu-object-path", - "_GTK_APP_MENU_OBJECT_PATH", - "Contents of the _GTK_APP_MENU_OBJECT_PATH property of this window", + g_param_spec_string ("gtk-app-menu-object-path", NULL, NULL, NULL, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS); obj_props[PROP_GTK_MENUBAR_OBJECT_PATH] = - g_param_spec_string ("gtk-menubar-object-path", - "_GTK_MENUBAR_OBJECT_PATH", - "Contents of the _GTK_MENUBAR_OBJECT_PATH property of this window", + g_param_spec_string ("gtk-menubar-object-path", NULL, NULL, NULL, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS); obj_props[PROP_ON_ALL_WORKSPACES] = - g_param_spec_boolean ("on-all-workspaces", - "On all workspaces", - "Whether the window is set to appear on all workspaces", + g_param_spec_boolean ("on-all-workspaces", NULL, NULL, FALSE, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS); obj_props[PROP_IS_ALIVE] = - g_param_spec_boolean ("is-alive", - "Is alive", - "Whether the window responds to pings", + g_param_spec_boolean ("is-alive", NULL, NULL, TRUE, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS); obj_props[PROP_DISPLAY] = - g_param_spec_object ("display", - "Display", - "The display the window is attached to", + g_param_spec_object ("display", NULL, NULL, META_TYPE_DISPLAY, G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE); obj_props[PROP_EFFECT] = - g_param_spec_int ("effect", - "Compositor effect", - "The compositor effect", + g_param_spec_int ("effect", NULL, NULL, META_COMP_EFFECT_CREATE, META_COMP_EFFECT_NONE, META_COMP_EFFECT_NONE, G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE); obj_props[PROP_XWINDOW] = - g_param_spec_ulong ("xwindow", - "X Window", - "The corresponding X Window", + g_param_spec_ulong ("xwindow", NULL, NULL, 0, G_MAXULONG, 0, G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE); diff --git a/src/core/workspace.c b/src/core/workspace.c index 75915a9e6..65706fca0 100644 --- a/src/core/workspace.c +++ b/src/core/workspace.c @@ -214,19 +214,13 @@ meta_workspace_class_init (MetaWorkspaceClass *klass) G_TYPE_NONE, 1, META_TYPE_WINDOW); - obj_props[PROP_N_WINDOWS] = g_param_spec_uint ("n-windows", - "N Windows", - "Number of windows", + obj_props[PROP_N_WINDOWS] = g_param_spec_uint ("n-windows", NULL, NULL, 0, G_MAXUINT, 0, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS); - obj_props[PROP_WORKSPACE_INDEX] = g_param_spec_uint ("workspace-index", - "Workspace index", - "The workspace's index", + obj_props[PROP_WORKSPACE_INDEX] = g_param_spec_uint ("workspace-index", NULL, NULL, 0, G_MAXUINT, 0, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS); - obj_props[PROP_ACTIVE] = g_param_spec_boolean ("active", - "Active", - "Whether the workspace is currently active", + obj_props[PROP_ACTIVE] = g_param_spec_boolean ("active", NULL, NULL, FALSE, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS); diff --git a/src/frames/meta-frame-content.c b/src/frames/meta-frame-content.c index c8dc7b28b..139662506 100644 --- a/src/frames/meta-frame-content.c +++ b/src/frames/meta-frame-content.c @@ -150,18 +150,14 @@ meta_frame_content_class_init (MetaFrameContentClass *klass) widget_class->measure = meta_frame_content_measure; widget_class->size_allocate = meta_frame_content_size_allocate; - props[PROP_XWINDOW] = g_param_spec_ulong ("xwindow", - "X window", - "X window", + props[PROP_XWINDOW] = g_param_spec_ulong ("xwindow", NULL, NULL, 0, G_MAXULONG, 0, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB); - props[PROP_BORDER] = g_param_spec_boxed ("border", - "Border", - "Border", + props[PROP_BORDER] = g_param_spec_boxed ("border", NULL, NULL, GTK_TYPE_BORDER, G_PARAM_READABLE | G_PARAM_EXPLICIT_NOTIFY | diff --git a/src/frames/meta-window-tracker.c b/src/frames/meta-window-tracker.c index e241e568e..8460f9007 100644 --- a/src/frames/meta-window-tracker.c +++ b/src/frames/meta-window-tracker.c @@ -406,9 +406,7 @@ meta_window_tracker_class_init (MetaWindowTrackerClass *klass) object_class->constructed = meta_window_tracker_constructed; object_class->finalize = meta_window_tracker_finalize; - props[PROP_DISPLAY] = g_param_spec_object ("display", - "Display", - "Display", + props[PROP_DISPLAY] = g_param_spec_object ("display", NULL, NULL, GDK_TYPE_DISPLAY, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | diff --git a/src/tests/clutter/conform/script-parser.c b/src/tests/clutter/conform/script-parser.c index c51329e13..3ae800c35 100644 --- a/src/tests/clutter/conform/script-parser.c +++ b/src/tests/clutter/conform/script-parser.c @@ -86,7 +86,7 @@ test_group_meta_class_init (TestGroupMetaClass *klass) gobject_class->set_property = test_group_meta_set_property; gobject_class->get_property = test_group_meta_get_property; - pspec = g_param_spec_boolean ("focus", "Focus", "Focus", + pspec = g_param_spec_boolean ("focus", NULL, NULL, FALSE, G_PARAM_READWRITE); g_object_class_install_property (gobject_class, PROP_META_FOCUS, pspec); diff --git a/src/tests/clutter/interactive/test-layout.c b/src/tests/clutter/interactive/test-layout.c index c484f65a0..091213920 100644 --- a/src/tests/clutter/interactive/test-layout.c +++ b/src/tests/clutter/interactive/test-layout.c @@ -386,27 +386,21 @@ my_thing_class_init (MyThingClass *klass) g_object_class_install_property (gobject_class, PROP_SPACING, - g_param_spec_float ("spacing", - "Spacing", - "Spacing of the thing", + g_param_spec_float ("spacing", NULL, NULL, 0, G_MAXFLOAT, 0, G_PARAM_READWRITE)); g_object_class_install_property (gobject_class, PROP_PADDING, - g_param_spec_float ("padding", - "Padding", - "Padding around the thing", + g_param_spec_float ("padding", NULL, NULL, 0, G_MAXFLOAT, 0, G_PARAM_READWRITE)); g_object_class_install_property (gobject_class, PROP_USE_TRANSFORMED_BOX, - g_param_spec_boolean ("use-transformed-box", - "Use Transformed Box", - "Use transformed box when allocating", + g_param_spec_boolean ("use-transformed-box", NULL, NULL, FALSE, G_PARAM_READWRITE)); } diff --git a/src/wayland/meta-pointer-confinement-wayland.c b/src/wayland/meta-pointer-confinement-wayland.c index e1d344466..2a93e3799 100644 --- a/src/wayland/meta-pointer-confinement-wayland.c +++ b/src/wayland/meta-pointer-confinement-wayland.c @@ -269,9 +269,7 @@ meta_pointer_confinement_wayland_class_init (MetaPointerConfinementWaylandClass klass->create_constraint = meta_pointer_confinement_wayland_create_constraint; props[PROP_WAYLAND_POINTER_CONSTRAINT] = - g_param_spec_object ("wayland-pointer-constraint", - "Wayland pointer constraint", - "Wayland pointer constraint", + g_param_spec_object ("wayland-pointer-constraint", NULL, NULL, META_TYPE_WAYLAND_POINTER_CONSTRAINT, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | diff --git a/src/wayland/meta-wayland-data-source.c b/src/wayland/meta-wayland-data-source.c index d4d9520d6..dc0155a46 100644 --- a/src/wayland/meta-wayland-data-source.c +++ b/src/wayland/meta-wayland-data-source.c @@ -224,9 +224,7 @@ meta_wayland_data_source_class_init (MetaWaylandDataSourceClass *klass) klass->drag_finished = meta_wayland_data_source_real_drag_finished; props[PROP_COMPOSITOR] = - g_param_spec_object ("compositor", - "compositor", - "MetaWaylandCompositor", + g_param_spec_object ("compositor", NULL, NULL, META_TYPE_WAYLAND_COMPOSITOR, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | diff --git a/src/wayland/meta-wayland-input-device.c b/src/wayland/meta-wayland-input-device.c index b82f204cf..11da2eb5f 100644 --- a/src/wayland/meta-wayland-input-device.c +++ b/src/wayland/meta-wayland-input-device.c @@ -119,9 +119,7 @@ meta_wayland_input_device_class_init (MetaWaylandInputDeviceClass *klass) object_class->set_property = meta_wayland_input_device_set_property; object_class->get_property = meta_wayland_input_device_get_property; - pspec = g_param_spec_pointer ("seat", - "MetaWaylandSeat", - "The seat", + pspec = g_param_spec_pointer ("seat", NULL, NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_CONSTRUCT_ONLY); diff --git a/src/wayland/meta-wayland-surface.c b/src/wayland/meta-wayland-surface.c index 611d3b32d..91c8b1f8b 100644 --- a/src/wayland/meta-wayland-surface.c +++ b/src/wayland/meta-wayland-surface.c @@ -1790,9 +1790,7 @@ meta_wayland_surface_class_init (MetaWaylandSurfaceClass *klass) object_class->get_property = meta_wayland_surface_get_property; obj_props[PROP_SCANOUT_CANDIDATE] = - g_param_spec_object ("scanout-candidate", - "scanout-candidate", - "Scanout candidate for given CRTC", + g_param_spec_object ("scanout-candidate", NULL, NULL, META_TYPE_CRTC, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS); @@ -1910,9 +1908,7 @@ meta_wayland_surface_role_class_init (MetaWaylandSurfaceRoleClass *klass) g_object_class_install_property (object_class, SURFACE_ROLE_PROP_SURFACE, - g_param_spec_object ("surface", - "MetaWaylandSurface", - "The MetaWaylandSurface instance", + g_param_spec_object ("surface", NULL, NULL, META_TYPE_WAYLAND_SURFACE, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | diff --git a/src/wayland/meta-wayland-xdg-shell.c b/src/wayland/meta-wayland-xdg-shell.c index 77d0d5423..1233c9859 100644 --- a/src/wayland/meta-wayland-xdg-shell.c +++ b/src/wayland/meta-wayland-xdg-shell.c @@ -1919,17 +1919,13 @@ meta_wayland_xdg_surface_class_init (MetaWaylandXdgSurfaceClass *klass) meta_wayland_xdg_surface_real_shell_client_destroyed; klass->reset = meta_wayland_xdg_surface_real_reset; - pspec = g_param_spec_pointer ("shell-client", - "MetaWaylandXdgShellClient", - "The shell client instance", + pspec = g_param_spec_pointer ("shell-client", NULL, NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); g_object_class_install_property (object_class, XDG_SURFACE_PROP_SHELL_CLIENT, pspec); - pspec = g_param_spec_pointer ("xdg-surface-resource", - "xdg_surface wl_resource", - "The xdg_surface wl_resource instance", + pspec = g_param_spec_pointer ("xdg-surface-resource", NULL, NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); g_object_class_install_property (object_class, diff --git a/src/wayland/meta-window-wayland.c b/src/wayland/meta-window-wayland.c index cc655d10d..35e7a8734 100644 --- a/src/wayland/meta-window-wayland.c +++ b/src/wayland/meta-window-wayland.c @@ -915,9 +915,7 @@ meta_window_wayland_class_init (MetaWindowWaylandClass *klass) window_class->get_wayland_surface = meta_window_wayland_get_wayland_surface; obj_props[PROP_SURFACE] = - g_param_spec_object ("surface", - "Surface", - "The corresponding Wayland surface", + g_param_spec_object ("surface", NULL, NULL, META_TYPE_WAYLAND_SURFACE, G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE); diff --git a/src/wayland/meta-window-xwayland.c b/src/wayland/meta-window-xwayland.c index fcb593348..57b639315 100644 --- a/src/wayland/meta-window-xwayland.c +++ b/src/wayland/meta-window-xwayland.c @@ -335,16 +335,12 @@ meta_window_xwayland_class_init (MetaWindowXwaylandClass *klass) gobject_class->set_property = meta_window_xwayland_set_property; obj_props[PROP_XWAYLAND_MAY_GRAB_KEYBOARD] = - g_param_spec_boolean ("xwayland-may-grab-keyboard", - "Xwayland may use keyboard grabs", - "Whether the client may use Xwayland keyboard grabs on this window", + g_param_spec_boolean ("xwayland-may-grab-keyboard", NULL, NULL, FALSE, G_PARAM_READWRITE); obj_props[PROP_SURFACE] = - g_param_spec_object ("surface", - "Surface", - "The corresponding Wayland surface", + g_param_spec_object ("surface", NULL, NULL, META_TYPE_WAYLAND_SURFACE, G_PARAM_CONSTRUCT | G_PARAM_READWRITE | diff --git a/src/x11/meta-startup-notification-x11.c b/src/x11/meta-startup-notification-x11.c index d92639bea..91ab52b13 100644 --- a/src/x11/meta-startup-notification-x11.c +++ b/src/x11/meta-startup-notification-x11.c @@ -140,9 +140,7 @@ meta_startup_sequence_x11_class_init (MetaStartupSequenceX11Class *klass) object_class->get_property = meta_startup_sequence_x11_get_property; seq_x11_props[PROP_SEQ_X11_SEQ] = - g_param_spec_pointer ("seq", - "Sequence", - "Sequence", + g_param_spec_pointer ("seq", NULL, NULL, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY); diff --git a/src/x11/meta-x11-stack.c b/src/x11/meta-x11-stack.c index d41fef78e..95cefc1e5 100644 --- a/src/x11/meta-x11-stack.c +++ b/src/x11/meta-x11-stack.c @@ -337,9 +337,7 @@ meta_x11_stack_class_init (MetaX11StackClass *klass) object_class->finalize = meta_x11_stack_finalize; pspecs[PROP_DISPLAY] = - g_param_spec_object ("display", - "Display", - "Display", + g_param_spec_object ("display", NULL, NULL, META_TYPE_X11_DISPLAY, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY); diff --git a/src/x11/window-x11.c b/src/x11/window-x11.c index ff358f4f0..0209c7c52 100644 --- a/src/x11/window-x11.c +++ b/src/x11/window-x11.c @@ -2232,9 +2232,7 @@ meta_window_x11_class_init (MetaWindowX11Class *klass) klass->process_property_notify = meta_window_x11_impl_process_property_notify; obj_props[PROP_ATTRIBUTES] = - g_param_spec_pointer ("attributes", - "Attributes", - "The corresponding attributes", + g_param_spec_pointer ("attributes", NULL, NULL, G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE); g_object_class_install_properties (object_class, PROP_LAST, obj_props);