Use NULL for nick/blurb in GObject params

As they are only used by gstreamer for gst-inspect & other tools.
Projects like Mutter/gtk have completely dropped them as well, so follow
their path

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3505>
This commit is contained in:
Bilal Elmoussaoui
2024-10-16 11:51:23 +02:00
committed by Marge Bot
parent 91a9409b1d
commit aa0f2c4915
70 changed files with 293 additions and 537 deletions

View File

@ -670,8 +670,7 @@ gtk_action_muxer_class_init (GObjectClass *class)
accel_signal = g_signal_new ("primary-accel-changed", GTK_TYPE_ACTION_MUXER, G_SIGNAL_RUN_LAST,
0, NULL, NULL, NULL, G_TYPE_NONE, 2, G_TYPE_STRING, G_TYPE_STRING);
properties[PROP_PARENT] = g_param_spec_object ("parent", "Parent",
"The parent muxer",
properties[PROP_PARENT] = g_param_spec_object ("parent", NULL, NULL,
GTK_TYPE_ACTION_MUXER,
G_PARAM_READWRITE |
G_PARAM_STATIC_STRINGS);

View File

@ -537,9 +537,7 @@ shell_mime_sniffer_class_init (ShellMimeSnifferClass *klass)
oclass->set_property = shell_mime_sniffer_set_property;
properties[PROP_FILE] =
g_param_spec_object ("file",
"File",
"The loaded file",
g_param_spec_object ("file", NULL, NULL,
G_TYPE_FILE,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS);

View File

@ -1770,9 +1770,7 @@ shell_app_class_init(ShellAppClass *klass)
* running or not, or transitioning between those states.
*/
props[PROP_STATE] =
g_param_spec_enum ("state",
"State",
"Application state",
g_param_spec_enum ("state", NULL, NULL,
SHELL_TYPE_APP_STATE,
SHELL_APP_STATE_STOPPED,
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS);
@ -1783,9 +1781,7 @@ shell_app_class_init(ShellAppClass *klass)
* Whether the application has marked itself as busy.
*/
props[PROP_BUSY] =
g_param_spec_boolean ("busy",
"Busy",
"Busy state",
g_param_spec_boolean ("busy", NULL, NULL,
FALSE,
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS);
@ -1796,9 +1792,7 @@ shell_app_class_init(ShellAppClass *klass)
* like window:0xabcd1234)
*/
props[PROP_ID] =
g_param_spec_string ("id",
"Application id",
"The desktop file id of this ShellApp",
g_param_spec_string ("id", NULL, NULL,
NULL,
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS);
@ -1808,9 +1802,7 @@ shell_app_class_init(ShellAppClass *klass)
* The #GIcon representing this ShellApp
*/
props[PROP_ICON] =
g_param_spec_object ("icon",
"GIcon",
"The GIcon representing this app",
g_param_spec_object ("icon", NULL, NULL,
G_TYPE_ICON,
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS);
@ -1821,9 +1813,7 @@ shell_app_class_init(ShellAppClass *klass)
* documentation of #GApplication and #GActionGroup for details.
*/
props[PROP_ACTION_GROUP] =
g_param_spec_object ("action-group",
"Application Action Group",
"The action group exported by the remote application",
g_param_spec_object ("action-group", NULL, NULL,
G_TYPE_ACTION_GROUP,
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS);
@ -1833,9 +1823,7 @@ shell_app_class_init(ShellAppClass *klass)
* The #GDesktopAppInfo associated with this ShellApp, if any.
*/
props[PROP_APP_INFO] =
g_param_spec_object ("app-info",
"DesktopAppInfo",
"The DesktopAppInfo associated with this app",
g_param_spec_object ("app-info", NULL, NULL,
G_TYPE_DESKTOP_APP_INFO,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS);

View File

@ -775,23 +775,17 @@ shell_blur_effect_class_init (ShellBlurEffectClass *klass)
effect_class->paint_node = shell_blur_effect_paint_node;
properties[PROP_RADIUS] =
g_param_spec_int ("radius",
"Radius",
"Radius in pixels",
g_param_spec_int ("radius", NULL, NULL,
0, G_MAXINT, 0,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
properties[PROP_BRIGHTNESS] =
g_param_spec_float ("brightness",
"Brightness",
"Brightness",
g_param_spec_float ("brightness", NULL, NULL,
0.f, 1.f, 1.f,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
properties[PROP_MODE] =
g_param_spec_enum ("mode",
"Blur mode",
"Blur mode",
g_param_spec_enum ("mode", NULL, NULL,
SHELL_TYPE_BLUR_MODE,
SHELL_BLUR_MODE_ACTOR,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);

View File

@ -417,9 +417,7 @@ shell_camera_monitor_class_init (ShellCameraMonitorClass *klass)
object_class->get_property = shell_camera_monitor_get_property;
obj_props[PROP_CAMERAS_IN_USE] =
g_param_spec_boolean ("cameras-in-use",
"Cameras in use",
"Whether any camera is currently used by an app",
g_param_spec_boolean ("cameras-in-use", NULL, NULL,
FALSE,
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS);

View File

@ -550,156 +550,112 @@ shell_global_class_init (ShellGlobalClass *klass)
G_TYPE_NONE, 0);
props[PROP_SESSION_MODE] =
g_param_spec_string ("session-mode",
"Session Mode",
"The session mode to use",
g_param_spec_string ("session-mode", NULL, NULL,
"user",
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS);
props[PROP_SCREEN_WIDTH] =
g_param_spec_int ("screen-width",
"Screen Width",
"Screen width, in pixels",
g_param_spec_int ("screen-width", NULL, NULL,
0, G_MAXINT, 1,
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS);
props[PROP_SCREEN_HEIGHT] =
g_param_spec_int ("screen-height",
"Screen Height",
"Screen height, in pixels",
g_param_spec_int ("screen-height", NULL, NULL,
0, G_MAXINT, 1,
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS);
props[PROP_BACKEND] =
g_param_spec_object ("backend",
"Backend",
"MetaBackend object",
g_param_spec_object ("backend", NULL, NULL,
META_TYPE_BACKEND,
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS);
props[PROP_CONTEXT] =
g_param_spec_object ("context",
"Context",
"MetaContext object",
g_param_spec_object ("context", NULL, NULL,
META_TYPE_CONTEXT,
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS);
props[PROP_DISPLAY] =
g_param_spec_object ("display",
"Display",
"Metacity display object for the shell",
g_param_spec_object ("display", NULL, NULL,
META_TYPE_DISPLAY,
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS);
props[PROP_COMPOSITOR] =
g_param_spec_object ("compositor",
"Compositor",
"MetaCompositor object",
g_param_spec_object ("compositor", NULL, NULL,
META_TYPE_COMPOSITOR,
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS);
props[PROP_WORKSPACE_MANAGER] =
g_param_spec_object ("workspace-manager",
"Workspace manager",
"Workspace manager",
g_param_spec_object ("workspace-manager", NULL, NULL,
META_TYPE_WORKSPACE_MANAGER,
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS);
props[PROP_STAGE] =
g_param_spec_object ("stage",
"Stage",
"Stage holding the desktop scene graph",
g_param_spec_object ("stage", NULL, NULL,
CLUTTER_TYPE_ACTOR,
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS);
props[PROP_WINDOW_GROUP] =
g_param_spec_object ("window-group",
"Window Group",
"Actor holding window actors",
g_param_spec_object ("window-group", NULL, NULL,
CLUTTER_TYPE_ACTOR,
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS);
props[PROP_TOP_WINDOW_GROUP] =
g_param_spec_object ("top-window-group",
"Top Window Group",
"Actor holding override-redirect windows",
g_param_spec_object ("top-window-group", NULL, NULL,
CLUTTER_TYPE_ACTOR,
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS);
props[PROP_WINDOW_MANAGER] =
g_param_spec_object ("window-manager",
"Window Manager",
"Window management interface",
g_param_spec_object ("window-manager", NULL, NULL,
SHELL_TYPE_WM,
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS);
props[PROP_SETTINGS] =
g_param_spec_object ("settings",
"Settings",
"GSettings instance for gnome-shell configuration",
g_param_spec_object ("settings", NULL, NULL,
G_TYPE_SETTINGS,
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS);
props[PROP_DATADIR] =
g_param_spec_string ("datadir",
"Data directory",
"Directory containing gnome-shell data files",
g_param_spec_string ("datadir", NULL, NULL,
NULL,
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS);
props[PROP_IMAGEDIR] =
g_param_spec_string ("imagedir",
"Image directory",
"Directory containing gnome-shell image files",
g_param_spec_string ("imagedir", NULL, NULL,
NULL,
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS);
props[PROP_USERDATADIR] =
g_param_spec_string ("userdatadir",
"User data directory",
"Directory containing gnome-shell user data",
g_param_spec_string ("userdatadir", NULL, NULL,
NULL,
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS);
props[PROP_FOCUS_MANAGER] =
g_param_spec_object ("focus-manager",
"Focus manager",
"The shell's StFocusManager",
g_param_spec_object ("focus-manager", NULL, NULL,
ST_TYPE_FOCUS_MANAGER,
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS);
props[PROP_FRAME_TIMESTAMPS] =
g_param_spec_boolean ("frame-timestamps",
"Frame Timestamps",
"Whether to log frame timestamps in the performance log",
g_param_spec_boolean ("frame-timestamps", NULL, NULL,
FALSE,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
props[PROP_FRAME_FINISH_TIMESTAMP] =
g_param_spec_boolean ("frame-finish-timestamp",
"Frame Finish Timestamps",
"Whether at the end of a frame to call glFinish and log paintCompletedTimestamp",
g_param_spec_boolean ("frame-finish-timestamp", NULL, NULL,
FALSE,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
props[PROP_SWITCHEROO_CONTROL] =
g_param_spec_object ("switcheroo-control",
"switcheroo-control",
"D-Bus Proxy for switcheroo-control daemon",
g_param_spec_object ("switcheroo-control", NULL, NULL,
G_TYPE_DBUS_PROXY,
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS);
props[PROP_FORCE_ANIMATIONS] =
g_param_spec_boolean ("force-animations",
"force-animations",
"Force animations to be enabled",
g_param_spec_boolean ("force-animations", NULL, NULL,
FALSE,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT| G_PARAM_STATIC_STRINGS);
props[PROP_AUTOMATION_SCRIPT] =
g_param_spec_object ("automation-script",
"automation-script",
"Automation script to run after startup",
g_param_spec_object ("automation-script", NULL, NULL,
G_TYPE_FILE,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS);

View File

@ -353,9 +353,7 @@ shell_keyring_prompt_class_init (ShellKeyringPromptClass *klass)
* Whether the password entry is visible or not.
*/
props[PROP_PASSWORD_VISIBLE] =
g_param_spec_boolean ("password-visible",
"Password visible",
"Password field is visible",
g_param_spec_boolean ("password-visible", NULL, NULL,
FALSE,
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS);
@ -365,9 +363,7 @@ shell_keyring_prompt_class_init (ShellKeyringPromptClass *klass)
* Whether the password confirm entry is visible or not.
*/
props[PROP_CONFIRM_VISIBLE] =
g_param_spec_boolean ("confirm-visible",
"Confirm visible",
"Confirm field is visible",
g_param_spec_boolean ("confirm-visible", NULL, NULL,
FALSE,
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS);
@ -377,9 +373,7 @@ shell_keyring_prompt_class_init (ShellKeyringPromptClass *klass)
* Whether the warning label is visible or not.
*/
props[PROP_WARNING_VISIBLE] =
g_param_spec_boolean ("warning-visible",
"Warning visible",
"Warning is visible",
g_param_spec_boolean ("warning-visible", NULL, NULL,
FALSE,
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS);
@ -389,9 +383,7 @@ shell_keyring_prompt_class_init (ShellKeyringPromptClass *klass)
* Whether the choice check box is visible or not.
*/
props[PROP_CHOICE_VISIBLE] =
g_param_spec_boolean ("choice-visible",
"Choice visible",
"Choice is visible",
g_param_spec_boolean ("choice-visible", NULL, NULL,
FALSE,
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS);
@ -401,9 +393,7 @@ shell_keyring_prompt_class_init (ShellKeyringPromptClass *klass)
* Text field for password
*/
props[PROP_PASSWORD_ACTOR] =
g_param_spec_object ("password-actor",
"Password actor",
"Text field for password",
g_param_spec_object ("password-actor", NULL, NULL,
CLUTTER_TYPE_TEXT,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);
@ -413,9 +403,7 @@ shell_keyring_prompt_class_init (ShellKeyringPromptClass *klass)
* Text field for confirmation password
*/
props[PROP_CONFIRM_ACTOR] =
g_param_spec_object ("confirm-actor",
"Confirm actor",
"Text field for confirming password",
g_param_spec_object ("confirm-actor", NULL, NULL,
CLUTTER_TYPE_TEXT,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_EXPLICIT_NOTIFY);

View File

@ -208,23 +208,17 @@ shell_tray_icon_class_init (ShellTrayIconClass *klass)
g_object_class_install_property (object_class,
PROP_PID,
g_param_spec_uint ("pid",
"PID",
"The PID of the icon's application",
g_param_spec_uint ("pid", NULL, NULL,
0, G_MAXUINT, 0,
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (object_class,
PROP_TITLE,
g_param_spec_string ("title",
"Title",
"The icon's window title",
g_param_spec_string ("title", NULL, NULL,
NULL,
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
g_object_class_install_property (object_class,
PROP_WM_CLASS,
g_param_spec_string ("wm-class",
"WM Class",
"The icon's window WM_CLASS",
g_param_spec_string ("wm-class", NULL, NULL,
NULL,
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
}

View File

@ -173,9 +173,7 @@ shell_tray_manager_class_init (ShellTrayManagerClass *klass)
*/
g_object_class_install_property (gobject_class,
PROP_BG_COLOR,
g_param_spec_boxed ("bg-color",
"BG Color",
"Background color (only if we don't have transparency)",
g_param_spec_boxed ("bg-color", NULL, NULL,
COGL_TYPE_COLOR,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY));
}

View File

@ -337,9 +337,7 @@ shell_window_preview_layout_class_init (ShellWindowPreviewLayoutClass *klass)
* ShellWindowPreviewLayout:bounding-box:
*/
obj_props[PROP_BOUNDING_BOX] =
g_param_spec_boxed ("bounding-box",
"Bounding Box",
"Bounding Box",
g_param_spec_boxed ("bounding-box", NULL, NULL,
CLUTTER_TYPE_ACTOR_BOX,
G_PARAM_READABLE |
G_PARAM_STATIC_STRINGS);

View File

@ -165,9 +165,7 @@ shell_window_preview_class_init (ShellWindowPreviewClass *klass)
* ShellWindowPreview:window-container:
*/
obj_props[PROP_WINDOW_CONTAINER] =
g_param_spec_object ("window-container",
"window-container",
"window-container",
g_param_spec_object ("window-container", NULL, NULL,
CLUTTER_TYPE_ACTOR,
G_PARAM_READWRITE |
G_PARAM_EXPLICIT_NOTIFY |

View File

@ -105,9 +105,7 @@ shell_window_tracker_class_init (ShellWindowTrackerClass *klass)
gobject_class->finalize = shell_window_tracker_finalize;
props[PROP_FOCUS_APP] =
g_param_spec_object ("focus-app",
"Focus App",
"Focused application",
g_param_spec_object ("focus-app", NULL, NULL,
SHELL_TYPE_APP,
G_PARAM_READABLE | G_PARAM_STATIC_STRINGS);

View File

@ -195,7 +195,7 @@ shell_workspace_background_class_init (ShellWorkspaceBackgroundClass *klass)
* ShellWorkspaceBackground:monitor-index:
*/
obj_props[PROP_MONITOR_INDEX] =
g_param_spec_int ("monitor-index", "", "",
g_param_spec_int ("monitor-index", NULL, NULL,
0, G_MAXINT, 0,
G_PARAM_READWRITE |
G_PARAM_CONSTRUCT_ONLY |
@ -206,7 +206,7 @@ shell_workspace_background_class_init (ShellWorkspaceBackgroundClass *klass)
* ShellWorkspaceBackground:state-adjustment-value:
*/
obj_props[PROP_STATE_ADJUSTMENT_VALUE] =
g_param_spec_double ("state-adjustment-value", "", "",
g_param_spec_double ("state-adjustment-value", NULL, NULL,
-G_MAXDOUBLE, G_MAXDOUBLE, 0.0,
G_PARAM_READWRITE |
G_PARAM_STATIC_STRINGS |

View File

@ -329,7 +329,7 @@ st_adjustment_class_init (StAdjustmentClass *klass)
* monitor should drive the animation.
*/
props[PROP_ACTOR] =
g_param_spec_object ("actor", "Actor", "Actor",
g_param_spec_object ("actor", NULL, NULL,
CLUTTER_TYPE_ACTOR,
ST_PARAM_READWRITE |
G_PARAM_EXPLICIT_NOTIFY);
@ -340,7 +340,7 @@ st_adjustment_class_init (StAdjustmentClass *klass)
* The minimum value of the adjustment.
*/
props[PROP_LOWER] =
g_param_spec_double ("lower", "Lower", "Lower bound",
g_param_spec_double ("lower", NULL, NULL,
-G_MAXDOUBLE, G_MAXDOUBLE, 0.0,
ST_PARAM_READWRITE |
G_PARAM_CONSTRUCT |
@ -355,7 +355,7 @@ st_adjustment_class_init (StAdjustmentClass *klass)
* #StAdjustment:page-size is non-zero.
*/
props[PROP_UPPER] =
g_param_spec_double ("upper", "Upper", "Upper bound",
g_param_spec_double ("upper", NULL, NULL,
-G_MAXDOUBLE, G_MAXDOUBLE, 0.0,
ST_PARAM_READWRITE |
G_PARAM_CONSTRUCT |
@ -367,7 +367,7 @@ st_adjustment_class_init (StAdjustmentClass *klass)
* The value of the adjustment.
*/
props[PROP_VALUE] =
g_param_spec_double ("value", "Value", "Current value",
g_param_spec_double ("value", NULL, NULL,
-G_MAXDOUBLE, G_MAXDOUBLE, 0.0,
ST_PARAM_READWRITE |
G_PARAM_CONSTRUCT |
@ -379,7 +379,7 @@ st_adjustment_class_init (StAdjustmentClass *klass)
* The step increment of the adjustment.
*/
props[PROP_STEP_INC] =
g_param_spec_double ("step-increment", "Step Increment", "Step increment",
g_param_spec_double ("step-increment", NULL, NULL,
0.0, G_MAXDOUBLE, 0.0,
ST_PARAM_READWRITE |
G_PARAM_CONSTRUCT |
@ -391,7 +391,7 @@ st_adjustment_class_init (StAdjustmentClass *klass)
* The page increment of the adjustment.
*/
props[PROP_PAGE_INC] =
g_param_spec_double ("page-increment", "Page Increment", "Page increment",
g_param_spec_double ("page-increment", NULL, NULL,
0.0, G_MAXDOUBLE, 0.0,
ST_PARAM_READWRITE |
G_PARAM_CONSTRUCT |
@ -406,7 +406,7 @@ st_adjustment_class_init (StAdjustmentClass *klass)
* adjustment is used for a simple scalar value.
*/
props[PROP_PAGE_SIZE] =
g_param_spec_double ("page-size", "Page Size", "Page size",
g_param_spec_double ("page-size", NULL, NULL,
0.0, G_MAXDOUBLE, 0.0,
ST_PARAM_READWRITE |
G_PARAM_CONSTRUCT |

View File

@ -207,9 +207,7 @@ st_bin_class_init (StBinClass *klass)
* The child #ClutterActor of the #StBin container.
*/
props[PROP_CHILD] =
g_param_spec_object ("child",
"Child",
"The child of the Bin",
g_param_spec_object ("child", NULL, NULL,
CLUTTER_TYPE_ACTOR,
ST_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);

View File

@ -183,10 +183,7 @@ st_box_layout_class_init (StBoxLayoutClass *klass)
* internal layout for #StBoxLayout.
*/
props[PROP_VERTICAL] =
g_param_spec_boolean ("vertical",
"Vertical",
"Whether the layout should be vertical, rather"
"than horizontal",
g_param_spec_boolean ("vertical", NULL, NULL,
FALSE,
ST_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
@ -197,9 +194,7 @@ st_box_layout_class_init (StBoxLayoutClass *klass)
* internal layout for #StBoxLayout.
*/
props[PROP_PACK_START] =
g_param_spec_boolean ("pack-start",
"Pack Start",
"Whether to pack items at the start of the box",
g_param_spec_boolean ("pack-start", NULL, NULL,
FALSE,
ST_PARAM_READWRITE | G_PARAM_DEPRECATED);

View File

@ -495,9 +495,7 @@ st_button_class_init (StButtonClass *klass)
* The label of the #StButton.
*/
props[PROP_LABEL] =
g_param_spec_string ("label",
"Label",
"Label of the button",
g_param_spec_string ("label", NULL, NULL,
NULL,
ST_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
@ -507,9 +505,7 @@ st_button_class_init (StButtonClass *klass)
* The icon name of the #StButton.
*/
props[PROP_ICON_NAME] =
g_param_spec_string ("icon-name",
"Icon name",
"Icon name of the button",
g_param_spec_string ("icon-name", NULL, NULL,
NULL,
ST_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
@ -519,9 +515,7 @@ st_button_class_init (StButtonClass *klass)
* Which buttons will trigger the #StButton::clicked signal.
*/
props[PROP_BUTTON_MASK] =
g_param_spec_flags ("button-mask",
"Button mask",
"Which buttons trigger the 'clicked' signal",
g_param_spec_flags ("button-mask", NULL, NULL,
ST_TYPE_BUTTON_MASK, ST_BUTTON_ONE,
ST_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
@ -531,9 +525,7 @@ st_button_class_init (StButtonClass *klass)
* Whether the #StButton is operating in toggle mode (on/off).
*/
props[PROP_TOGGLE_MODE] =
g_param_spec_boolean ("toggle-mode",
"Toggle Mode",
"Enable or disable toggling",
g_param_spec_boolean ("toggle-mode", NULL, NULL,
FALSE,
ST_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
@ -547,9 +539,7 @@ st_button_class_init (StButtonClass *klass)
* pseudo-class set.
*/
props[PROP_CHECKED] =
g_param_spec_boolean ("checked",
"Checked",
"Indicates if a toggle button is \"on\" or \"off\"",
g_param_spec_boolean ("checked", NULL, NULL,
FALSE,
ST_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
@ -560,9 +550,7 @@ st_button_class_init (StButtonClass *klass)
* #StButton is being actively pressed, rather than just in the "on" state.
*/
props[PROP_PRESSED] =
g_param_spec_boolean ("pressed",
"Pressed",
"Indicates if the button is pressed in",
g_param_spec_boolean ("pressed", NULL, NULL,
FALSE,
ST_PARAM_READABLE);

View File

@ -912,9 +912,7 @@ st_entry_class_init (StEntryClass *klass)
* The internal #ClutterText actor supporting the #StEntry.
*/
props[PROP_CLUTTER_TEXT] =
g_param_spec_object ("clutter-text",
"Clutter Text",
"Internal ClutterText actor",
g_param_spec_object ("clutter-text", NULL, NULL,
CLUTTER_TYPE_TEXT,
ST_PARAM_READABLE);
@ -924,9 +922,7 @@ st_entry_class_init (StEntryClass *klass)
* The #ClutterActor acting as the primary icon at the start of the #StEntry.
*/
props[PROP_PRIMARY_ICON] =
g_param_spec_object ("primary-icon",
"Primary Icon",
"Primary Icon actor",
g_param_spec_object ("primary-icon", NULL, NULL,
CLUTTER_TYPE_ACTOR,
ST_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
@ -936,9 +932,7 @@ st_entry_class_init (StEntryClass *klass)
* The #ClutterActor acting as the secondary icon at the end of the #StEntry.
*/
props[PROP_SECONDARY_ICON] =
g_param_spec_object ("secondary-icon",
"Secondary Icon",
"Secondary Icon actor",
g_param_spec_object ("secondary-icon", NULL, NULL,
CLUTTER_TYPE_ACTOR,
ST_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
@ -949,10 +943,7 @@ st_entry_class_init (StEntryClass *klass)
* will replace the actor of #StEntry::hint-actor.
*/
props[PROP_HINT_TEXT] =
g_param_spec_string ("hint-text",
"Hint Text",
"Text to display when the entry is not focused "
"and the text property is empty",
g_param_spec_string ("hint-text", NULL, NULL,
NULL,
ST_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
@ -963,10 +954,7 @@ st_entry_class_init (StEntryClass *klass)
* this will replace the actor displaying #StEntry:hint-text.
*/
props[PROP_HINT_ACTOR] =
g_param_spec_object ("hint-actor",
"Hint Actor",
"An actor to display when the entry is not focused "
"and the text property is empty",
g_param_spec_object ("hint-actor", NULL, NULL,
CLUTTER_TYPE_ACTOR,
ST_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
@ -976,9 +964,7 @@ st_entry_class_init (StEntryClass *klass)
* The current text value of the #StEntry.
*/
props[PROP_TEXT] =
g_param_spec_string ("text",
"Text",
"Text of the entry",
g_param_spec_string ("text", NULL, NULL,
NULL,
ST_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
@ -989,9 +975,7 @@ st_entry_class_init (StEntryClass *klass)
* input methods to decide which keys should be presented to the user.
*/
props[PROP_INPUT_PURPOSE] =
g_param_spec_enum ("input-purpose",
"Purpose",
"Purpose of the text field",
g_param_spec_enum ("input-purpose", NULL, NULL,
CLUTTER_TYPE_INPUT_CONTENT_PURPOSE,
CLUTTER_INPUT_CONTENT_PURPOSE_NORMAL,
ST_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
@ -1004,9 +988,7 @@ st_entry_class_init (StEntryClass *klass)
* behaviour.
*/
props[PROP_INPUT_HINTS] =
g_param_spec_flags ("input-hints",
"hints",
"Hints for the text field behaviour",
g_param_spec_flags ("input-hints", NULL, NULL,
CLUTTER_TYPE_INPUT_CONTENT_HINT_FLAGS,
0,
ST_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);

View File

@ -309,9 +309,7 @@ st_icon_class_init (StIconClass *klass)
* The #GIcon being displayed by this #StIcon.
*/
props[PROP_GICON] =
g_param_spec_object ("gicon",
"GIcon",
"The GIcon shown by this icon actor",
g_param_spec_object ("gicon", NULL, NULL,
G_TYPE_ICON,
ST_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
@ -321,9 +319,7 @@ st_icon_class_init (StIconClass *klass)
* The fallback #GIcon to display if #StIcon:gicon fails to load.
*/
props[PROP_FALLBACK_GICON] =
g_param_spec_object ("fallback-gicon",
"Fallback GIcon",
"The fallback GIcon shown if the normal icon fails to load",
g_param_spec_object ("fallback-gicon", NULL, NULL,
G_TYPE_ICON,
ST_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
@ -333,9 +329,7 @@ st_icon_class_init (StIconClass *klass)
* The name of the icon if the icon being displayed is a #GThemedIcon.
*/
props[PROP_ICON_NAME] =
g_param_spec_string ("icon-name",
"Icon name",
"An icon name",
g_param_spec_string ("icon-name", NULL, NULL,
NULL,
ST_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
@ -346,9 +340,7 @@ st_icon_class_init (StIconClass *klass)
* from the current style.
*/
props[PROP_ICON_SIZE] =
g_param_spec_int ("icon-size",
"Icon size",
"The size if the icon, if positive. Otherwise the size will be derived from the current style",
g_param_spec_int ("icon-size", NULL, NULL,
-1, G_MAXINT, -1,
ST_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
@ -359,9 +351,7 @@ st_icon_class_init (StIconClass *klass)
* for details.
*/
props[PROP_FALLBACK_ICON_NAME] =
g_param_spec_string ("fallback-icon-name",
"Fallback icon name",
"A fallback icon name",
g_param_spec_string ("fallback-icon-name", NULL, NULL,
NULL,
ST_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
@ -371,9 +361,7 @@ st_icon_class_init (StIconClass *klass)
* Whether the #StIcon is symbolic.
*/
props[PROP_IS_SYMBOLIC] =
g_param_spec_boolean ("is-symbolic",
"Is Symbolic",
"Whether the icon is symbolic",
g_param_spec_boolean ("is-symbolic", NULL, NULL,
FALSE,
ST_PARAM_READABLE | G_PARAM_EXPLICIT_NOTIFY);

View File

@ -133,16 +133,12 @@ st_image_content_class_init (StImageContentClass *klass)
object_class->get_property = st_image_content_get_property;
object_class->set_property = st_image_content_set_property;
pspec = g_param_spec_int ("preferred-width",
"Preferred Width",
"Preferred Width of the Content when painted",
pspec = g_param_spec_int ("preferred-width", NULL, NULL,
-1, G_MAXINT, -1,
G_PARAM_CONSTRUCT_ONLY | ST_PARAM_READWRITE);
g_object_class_install_property (object_class, PROP_PREFERRED_WIDTH, pspec);
pspec = g_param_spec_int ("preferred-height",
"Preferred Height",
"Preferred Height of the Content when painted",
pspec = g_param_spec_int ("preferred-height", NULL, NULL,
-1, G_MAXINT, -1,
G_PARAM_CONSTRUCT_ONLY | ST_PARAM_READWRITE);
g_object_class_install_property (object_class, PROP_PREFERRED_HEIGHT, pspec);

View File

@ -289,9 +289,7 @@ st_label_class_init (StLabelClass *klass)
* The internal #ClutterText actor supporting the label
*/
props[PROP_CLUTTER_TEXT] =
g_param_spec_object ("clutter-text",
"Clutter Text",
"Internal ClutterText actor",
g_param_spec_object ("clutter-text", NULL, NULL,
CLUTTER_TYPE_TEXT,
ST_PARAM_READABLE);
@ -301,9 +299,7 @@ st_label_class_init (StLabelClass *klass)
* The current text being display in the #StLabel.
*/
props[PROP_TEXT] =
g_param_spec_string ("text",
"Text",
"Text of the label",
g_param_spec_string ("text", NULL, NULL,
NULL,
ST_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);

View File

@ -151,9 +151,7 @@ st_password_entry_class_init (StPasswordEntryClass *klass)
*
* Whether the text in the entry is masked for privacy.
*/
props[PROP_PASSWORD_VISIBLE] = g_param_spec_boolean ("password-visible",
"Password visible",
"Whether the text in the entry is masked or not",
props[PROP_PASSWORD_VISIBLE] = g_param_spec_boolean ("password-visible", NULL, NULL,
FALSE,
ST_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
@ -163,9 +161,7 @@ st_password_entry_class_init (StPasswordEntryClass *klass)
* Whether to display an icon button to toggle the masking enabled by the
* #StPasswordEntry:password-visible property.
*/
props[PROP_SHOW_PEEK_ICON] = g_param_spec_boolean ("show-peek-icon",
"Show peek icon",
"Whether to show the password peek icon",
props[PROP_SHOW_PEEK_ICON] = g_param_spec_boolean ("show-peek-icon", NULL, NULL,
TRUE,
ST_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);

View File

@ -533,7 +533,7 @@ st_scroll_bar_class_init (StScrollBarClass *klass)
* The #StAdjustment controlling the #StScrollBar.
*/
props[PROP_ADJUSTMENT] =
g_param_spec_object ("adjustment", "Adjustment", "The adjustment",
g_param_spec_object ("adjustment", NULL, NULL,
ST_TYPE_ADJUSTMENT,
ST_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
@ -543,9 +543,7 @@ st_scroll_bar_class_init (StScrollBarClass *klass)
* Whether the #StScrollBar is vertical. If %FALSE it is horizontal.
*/
props[PROP_VERTICAL] =
g_param_spec_boolean ("vertical",
"Vertical Orientation",
"Vertical Orientation",
g_param_spec_boolean ("vertical", NULL, NULL,
FALSE,
ST_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);

View File

@ -380,9 +380,7 @@ st_scroll_view_fade_class_init (StScrollViewFadeClass *klass)
* The margins widths that are faded.
*/
props[PROP_FADE_MARGINS] =
g_param_spec_boxed ("fade-margins",
"Fade margins",
"The margin widths that are faded",
g_param_spec_boxed ("fade-margins", NULL, NULL,
CLUTTER_TYPE_MARGIN,
ST_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
@ -392,9 +390,7 @@ st_scroll_view_fade_class_init (StScrollViewFadeClass *klass)
* Whether the faded area should extend to the edges of the #StScrollViewFade.
*/
props[PROP_FADE_EDGES] =
g_param_spec_boolean ("fade-edges",
"Fade Edges",
"Whether the faded area should extend to the edges",
g_param_spec_boolean ("fade-edges", NULL, NULL,
FALSE,
ST_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
@ -404,9 +400,7 @@ st_scroll_view_fade_class_init (StScrollViewFadeClass *klass)
* Whether faded edges should extend beyond the faded area of the #StScrollViewFade.
*/
props[PROP_EXTEND_FADE_AREA] =
g_param_spec_boolean ("extend-fade-area",
"Extend Fade Area",
"Whether faded edges should extend beyond the faded area",
g_param_spec_boolean ("extend-fade-area", NULL, NULL,
FALSE,
ST_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);

View File

@ -874,9 +874,7 @@ st_scroll_view_class_init (StScrollViewClass *klass)
* The horizontal #StScrollBar for the #StScrollView.
*/
props[PROP_HSCROLL] =
g_param_spec_object ("hscroll",
"StScrollBar",
"Horizontal scroll indicator",
g_param_spec_object ("hscroll", NULL, NULL,
ST_TYPE_SCROLL_BAR,
ST_PARAM_READABLE | G_PARAM_DEPRECATED);
@ -886,9 +884,7 @@ st_scroll_view_class_init (StScrollViewClass *klass)
* The vertical #StScrollBar for the #StScrollView.
*/
props[PROP_VSCROLL] =
g_param_spec_object ("vscroll",
"StScrollBar",
"Vertical scroll indicator",
g_param_spec_object ("vscroll", NULL, NULL,
ST_TYPE_SCROLL_BAR,
ST_PARAM_READABLE | G_PARAM_DEPRECATED);
@ -898,9 +894,7 @@ st_scroll_view_class_init (StScrollViewClass *klass)
* The horizontal #StAdjustment for the #StScrollView.
*/
props[PROP_HADJUSTMENT] =
g_param_spec_object ("hadjustment",
"StAdjustment",
"Horizontal scroll adjustment",
g_param_spec_object ("hadjustment", NULL, NULL,
ST_TYPE_ADJUSTMENT,
ST_PARAM_READABLE);
@ -910,9 +904,7 @@ st_scroll_view_class_init (StScrollViewClass *klass)
* The vertical #StAdjustment for the #StScrollView.
*/
props[PROP_VADJUSTMENT] =
g_param_spec_object ("vadjustment",
"StAdjustment",
"Vertical scroll adjustment",
g_param_spec_object ("vadjustment", NULL, NULL,
ST_TYPE_ADJUSTMENT,
ST_PARAM_READABLE);
@ -922,9 +914,7 @@ st_scroll_view_class_init (StScrollViewClass *klass)
* The #StPolicyType for when to show the vertical #StScrollBar.
*/
props[PROP_VSCROLLBAR_POLICY] =
g_param_spec_enum ("vscrollbar-policy",
"Vertical Scrollbar Policy",
"When the vertical scrollbar is displayed",
g_param_spec_enum ("vscrollbar-policy", NULL, NULL,
ST_TYPE_POLICY_TYPE,
ST_POLICY_AUTOMATIC,
ST_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
@ -935,9 +925,7 @@ st_scroll_view_class_init (StScrollViewClass *klass)
* The #StPolicyType for when to show the horizontal #StScrollBar.
*/
props[PROP_HSCROLLBAR_POLICY] =
g_param_spec_enum ("hscrollbar-policy",
"Horizontal Scrollbar Policy",
"When the horizontal scrollbar is displayed",
g_param_spec_enum ("hscrollbar-policy", NULL, NULL,
ST_TYPE_POLICY_TYPE,
ST_POLICY_NEVER,
ST_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
@ -948,9 +936,7 @@ st_scroll_view_class_init (StScrollViewClass *klass)
* Whether the horizontal #StScrollBar is visible.
*/
props[PROP_HSCROLLBAR_VISIBLE] =
g_param_spec_boolean ("hscrollbar-visible",
"Horizontal Scrollbar Visibility",
"Whether the horizontal scrollbar is visible",
g_param_spec_boolean ("hscrollbar-visible", NULL, NULL,
TRUE,
ST_PARAM_READABLE);
@ -960,9 +946,7 @@ st_scroll_view_class_init (StScrollViewClass *klass)
* Whether the vertical #StScrollBar is visible.
*/
props[PROP_VSCROLLBAR_VISIBLE] =
g_param_spec_boolean ("vscrollbar-visible",
"Vertical Scrollbar Visibility",
"Whether the vertical scrollbar is visible",
g_param_spec_boolean ("vscrollbar-visible", NULL, NULL,
TRUE,
ST_PARAM_READABLE);
@ -972,9 +956,7 @@ st_scroll_view_class_init (StScrollViewClass *klass)
* Whether to enable automatic mouse wheel scrolling.
*/
props[PROP_MOUSE_SCROLL] =
g_param_spec_boolean ("enable-mouse-scrolling",
"Enable Mouse Scrolling",
"Enable automatic mouse wheel scrolling",
g_param_spec_boolean ("enable-mouse-scrolling", NULL, NULL,
TRUE,
ST_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
@ -984,9 +966,7 @@ st_scroll_view_class_init (StScrollViewClass *klass)
* Whether scrollbars are painted on top of the content.
*/
props[PROP_OVERLAY_SCROLLBARS] =
g_param_spec_boolean ("overlay-scrollbars",
"Use Overlay Scrollbars",
"Overlay scrollbars over the content",
g_param_spec_boolean ("overlay-scrollbars", NULL, NULL,
FALSE,
ST_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);

View File

@ -121,9 +121,7 @@ st_scrollable_default_init (StScrollableInterface *g_iface)
* ]|
*/
g_object_interface_install_property (g_iface,
g_param_spec_object ("hadjustment",
"StAdjustment",
"Horizontal adjustment",
g_param_spec_object ("hadjustment", NULL, NULL,
ST_TYPE_ADJUSTMENT,
ST_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY));
@ -139,9 +137,7 @@ st_scrollable_default_init (StScrollableInterface *g_iface)
* property in JavaScript code.
*/
g_object_interface_install_property (g_iface,
g_param_spec_object ("vadjustment",
"StAdjustment",
"Vertical adjustment",
g_param_spec_object ("vadjustment", NULL, NULL,
ST_TYPE_ADJUSTMENT,
ST_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY));

View File

@ -226,9 +226,7 @@ st_settings_class_init (StSettingsClass *klass)
*
* Whether animations are enabled.
*/
props[PROP_ENABLE_ANIMATIONS] = g_param_spec_boolean ("enable-animations",
"Enable animations",
"Enable animations",
props[PROP_ENABLE_ANIMATIONS] = g_param_spec_boolean ("enable-animations", NULL, NULL,
TRUE,
ST_PARAM_READABLE);
@ -238,9 +236,7 @@ st_settings_class_init (StSettingsClass *klass)
* Whether pasting from the `PRIMARY` selection is supported (eg. middle-click
* paste).
*/
props[PROP_PRIMARY_PASTE] = g_param_spec_boolean ("primary-paste",
"Primary paste",
"Primary paste",
props[PROP_PRIMARY_PASTE] = g_param_spec_boolean ("primary-paste", NULL, NULL,
TRUE,
ST_PARAM_READABLE);
@ -249,9 +245,7 @@ st_settings_class_init (StSettingsClass *klass)
*
* The threshold before a drag operation begins.
*/
props[PROP_DRAG_THRESHOLD] = g_param_spec_int ("drag-threshold",
"Drag threshold",
"Drag threshold",
props[PROP_DRAG_THRESHOLD] = g_param_spec_int ("drag-threshold", NULL, NULL,
0, G_MAXINT, 8,
ST_PARAM_READABLE);
@ -260,9 +254,7 @@ st_settings_class_init (StSettingsClass *klass)
*
* The current font name.
*/
props[PROP_FONT_NAME] = g_param_spec_string ("font-name",
"font name",
"font name",
props[PROP_FONT_NAME] = g_param_spec_string ("font-name", NULL, NULL,
"",
ST_PARAM_READABLE);
@ -271,9 +263,7 @@ st_settings_class_init (StSettingsClass *klass)
*
* Whether the accessibility high contrast mode is enabled.
*/
props[PROP_HIGH_CONTRAST] = g_param_spec_boolean ("high-contrast",
"High contrast",
"High contrast",
props[PROP_HIGH_CONTRAST] = g_param_spec_boolean ("high-contrast", NULL, NULL,
FALSE,
ST_PARAM_READABLE);
@ -282,9 +272,7 @@ st_settings_class_init (StSettingsClass *klass)
*
* The current GTK icon theme
*/
props[PROP_GTK_ICON_THEME] = g_param_spec_string ("gtk-icon-theme",
"GTK Icon Theme",
"GTK Icon Theme",
props[PROP_GTK_ICON_THEME] = g_param_spec_string ("gtk-icon-theme", NULL, NULL,
"",
ST_PARAM_READABLE);
@ -293,9 +281,7 @@ st_settings_class_init (StSettingsClass *klass)
*
* The preferred color-scheme
*/
props[PROP_COLOR_SCHEME] = g_param_spec_enum ("color-scheme",
"Color scheme",
"Color scheme",
props[PROP_COLOR_SCHEME] = g_param_spec_enum ("color-scheme", NULL, NULL,
ST_TYPE_SYSTEM_COLOR_SCHEME,
ST_SYSTEM_COLOR_SCHEME_DEFAULT,
ST_PARAM_READABLE);
@ -305,9 +291,7 @@ st_settings_class_init (StSettingsClass *klass)
*
* The current accent color.
*/
props[PROP_ACCENT_COLOR] = g_param_spec_enum ("accent-color",
"accent color",
"accent color",
props[PROP_ACCENT_COLOR] = g_param_spec_enum ("accent-color", NULL, NULL,
ST_TYPE_SYSTEM_ACCENT_COLOR,
ST_SYSTEM_ACCENT_COLOR_BLUE,
ST_PARAM_READABLE);
@ -317,9 +301,7 @@ st_settings_class_init (StSettingsClass *klass)
*
* Whether the accessibility magnifier is active.
*/
props[PROP_MAGNIFIER_ACTIVE] = g_param_spec_boolean("magnifier-active",
"Magnifier is active",
"Whether the a11y magnifier is active",
props[PROP_MAGNIFIER_ACTIVE] = g_param_spec_boolean("magnifier-active", NULL, NULL,
FALSE,
ST_PARAM_READABLE);
@ -328,9 +310,7 @@ st_settings_class_init (StSettingsClass *klass)
*
* The slow-down factor applied to all animation durations.
*/
props[PROP_SLOW_DOWN_FACTOR] = g_param_spec_double("slow-down-factor",
"Slow down factor",
"Factor applied to all animation durations",
props[PROP_SLOW_DOWN_FACTOR] = g_param_spec_double("slow-down-factor", NULL, NULL,
EPSILON, G_MAXDOUBLE, 1.0,
ST_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
@ -339,9 +319,7 @@ st_settings_class_init (StSettingsClass *klass)
*
* Whether password showing can be locked down
*/
props[PROP_DISABLE_SHOW_PASSWORD] = g_param_spec_boolean("disable-show-password",
"'Show Password' is disabled",
"Whether user can request to see their password",
props[PROP_DISABLE_SHOW_PASSWORD] = g_param_spec_boolean("disable-show-password", NULL, NULL,
FALSE,
ST_PARAM_READABLE);

View File

@ -157,9 +157,7 @@ st_theme_context_class_init (StThemeContextClass *klass)
* The scaling factor used for HiDPI scaling.
*/
props[PROP_SCALE_FACTOR] =
g_param_spec_int ("scale-factor",
"Scale factor",
"Integer scale factor used for HiDPI scaling",
g_param_spec_int ("scale-factor", NULL, NULL,
0, G_MAXINT, 1,
ST_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);

View File

@ -133,9 +133,7 @@ st_theme_class_init (StThemeClass *klass)
*/
g_object_class_install_property (object_class,
PROP_APPLICATION_STYLESHEET,
g_param_spec_object ("application-stylesheet",
"Application Stylesheet",
"Stylesheet with application-specific styling",
g_param_spec_object ("application-stylesheet", NULL, NULL,
G_TYPE_FILE,
ST_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY));
@ -147,9 +145,7 @@ st_theme_class_init (StThemeClass *klass)
*/
g_object_class_install_property (object_class,
PROP_THEME_STYLESHEET,
g_param_spec_object ("theme-stylesheet",
"Theme Stylesheet",
"Stylesheet with theme-specific styling",
g_param_spec_object ("theme-stylesheet", NULL, NULL,
G_TYPE_FILE,
ST_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY));
@ -161,9 +157,7 @@ st_theme_class_init (StThemeClass *klass)
*/
g_object_class_install_property (object_class,
PROP_DEFAULT_STYLESHEET,
g_param_spec_object ("default-stylesheet",
"Default Stylesheet",
"Stylesheet with global default styling",
g_param_spec_object ("default-stylesheet", NULL, NULL,
G_TYPE_FILE,
ST_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY));

View File

@ -586,9 +586,7 @@ st_viewport_class_init (StViewportClass *klass)
actor_class->pick = st_viewport_pick;
props[PROP_CLIP_TO_VIEW] =
g_param_spec_boolean ("clip-to-view",
"Clip to view",
"Clip to view",
g_param_spec_boolean ("clip-to-view", NULL, NULL,
TRUE,
ST_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);

View File

@ -894,9 +894,7 @@ st_widget_class_init (StWidgetClass *klass)
* "focus".
*/
props[PROP_PSEUDO_CLASS] =
g_param_spec_string ("pseudo-class",
"Pseudo Class",
"Pseudo class for styling",
g_param_spec_string ("pseudo-class", NULL, NULL,
"",
ST_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
@ -906,9 +904,7 @@ st_widget_class_init (StWidgetClass *klass)
* The style-class of the actor for use in styling.
*/
props[PROP_STYLE_CLASS] =
g_param_spec_string ("style-class",
"Style Class",
"Style class for styling",
g_param_spec_string ("style-class", NULL, NULL,
"",
ST_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
@ -919,9 +915,7 @@ st_widget_class_init (StWidgetClass *klass)
* CSS properties.
*/
props[PROP_STYLE] =
g_param_spec_string ("style",
"Style",
"Inline style string",
g_param_spec_string ("style", NULL, NULL,
"",
ST_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
@ -935,9 +929,7 @@ st_widget_class_init (StWidgetClass *klass)
* widget.
*/
props[PROP_TRACK_HOVER] =
g_param_spec_boolean ("track-hover",
"Track hover",
"Determines whether the widget tracks hover state",
g_param_spec_boolean ("track-hover", NULL, NULL,
FALSE,
ST_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
@ -949,9 +941,7 @@ st_widget_class_init (StWidgetClass *klass)
* adjust it manually in any case.
*/
props[PROP_HOVER] =
g_param_spec_boolean ("hover",
"Hover",
"Whether the pointer is hovering over the widget",
g_param_spec_boolean ("hover", NULL, NULL,
FALSE,
ST_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
@ -961,9 +951,7 @@ st_widget_class_init (StWidgetClass *klass)
* Whether or not the widget can be focused via keyboard navigation.
*/
props[PROP_CAN_FOCUS] =
g_param_spec_boolean ("can-focus",
"Can focus",
"Whether the widget can be focused via keyboard navigation",
g_param_spec_boolean ("can-focus", NULL, NULL,
FALSE,
ST_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);
@ -973,9 +961,7 @@ st_widget_class_init (StWidgetClass *klass)
* An actor that labels this widget.
*/
props[PROP_LABEL_ACTOR] =
g_param_spec_object ("label-actor",
"Label",
"Label that identifies this widget",
g_param_spec_object ("label-actor", NULL, NULL,
CLUTTER_TYPE_ACTOR,
ST_PARAM_READWRITE | G_PARAM_EXPLICIT_NOTIFY);

View File

@ -175,9 +175,7 @@ na_tray_manager_class_init (NaTrayManagerClass *klass)
G_TYPE_NONE, 0);
props[PROP_X11_DISPLAY] =
g_param_spec_object ("x11-display",
"x11-display",
"x11-display",
g_param_spec_object ("x11-display", NULL, NULL,
META_TYPE_X11_DISPLAY,
G_PARAM_READWRITE |
G_PARAM_CONSTRUCT_ONLY);

View File

@ -719,9 +719,7 @@ na_xembed_class_init (NaXembedClass *klass)
G_TYPE_NONE, 0);
props[PROP_X11_DISPLAY] =
g_param_spec_object ("x11-display",
"x11-display",
"x11-display",
g_param_spec_object ("x11-display", NULL, NULL,
META_TYPE_X11_DISPLAY,
G_PARAM_READWRITE |
G_PARAM_CONSTRUCT_ONLY);