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

@ -192,7 +192,7 @@ class ScaleLayout extends Clutter.BinLayout {
const LabelExpanderLayout = GObject.registerClass({
Properties: {
'expansion': GObject.ParamSpec.double(
'expansion', 'Expansion', 'Expansion',
'expansion', null, null,
GObject.ParamFlags.READABLE | GObject.ParamFlags.WRITABLE,
0, 1, 0),
},
@ -249,15 +249,15 @@ const LabelExpanderLayout = GObject.registerClass({
export const Source = GObject.registerClass({
Properties: {
'title': GObject.ParamSpec.string(
'title', 'title', 'title',
'title', null, null,
GObject.ParamFlags.READWRITE,
null),
'icon': GObject.ParamSpec.object(
'icon', 'icon', 'icon',
'icon', null, null,
GObject.ParamFlags.READWRITE,
Gio.Icon),
'icon-name': GObject.ParamSpec.string(
'icon-name', 'icon-name', 'icon-name',
'icon-name', null, null,
GObject.ParamFlags.READWRITE,
null),
},
@ -386,23 +386,23 @@ class MessageHeader extends St.BoxLayout {
export const Message = GObject.registerClass({
Properties: {
'title': GObject.ParamSpec.string(
'title', 'title', 'title',
'title', null, null,
GObject.ParamFlags.READWRITE,
null),
'body': GObject.ParamSpec.string(
'body', 'body', 'body',
'body', null, null,
GObject.ParamFlags.READWRITE,
null),
'use-body-markup': GObject.ParamSpec.boolean(
'use-body-markup', 'use-body-markup', 'use-body-markup',
'use-body-markup', null, null,
GObject.ParamFlags.READWRITE,
false),
'icon': GObject.ParamSpec.object(
'icon', 'icon', 'icon',
'icon', null, null,
GObject.ParamFlags.READWRITE,
Gio.Icon),
'datetime': GObject.ParamSpec.boxed(
'datetime', 'datetime', 'datetime',
'datetime', null, null,
GObject.ParamFlags.READWRITE,
GLib.DateTime),
},
@ -659,11 +659,11 @@ export const Message = GObject.registerClass({
export const MessageListSection = GObject.registerClass({
Properties: {
'can-clear': GObject.ParamSpec.boolean(
'can-clear', 'can-clear', 'can-clear',
'can-clear', null, null,
GObject.ParamFlags.READABLE,
false),
'empty': GObject.ParamSpec.boolean(
'empty', 'empty', 'empty',
'empty', null, null,
GObject.ParamFlags.READABLE,
true),
},