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:
parent
91a9409b1d
commit
aa0f2c4915
@ -106,11 +106,11 @@ const ModemBase = GObject.registerClass({
|
||||
GTypeFlags: GObject.TypeFlags.ABSTRACT,
|
||||
Properties: {
|
||||
'operator-name': GObject.ParamSpec.string(
|
||||
'operator-name', 'operator-name', 'operator-name',
|
||||
'operator-name', null, null,
|
||||
GObject.ParamFlags.READABLE,
|
||||
null),
|
||||
'signal-quality': GObject.ParamSpec.int(
|
||||
'signal-quality', 'signal-quality', 'signal-quality',
|
||||
'signal-quality', null, null,
|
||||
GObject.ParamFlags.READABLE,
|
||||
0, 100, 0),
|
||||
},
|
||||
@ -234,7 +234,7 @@ const BroadbandModemCdmaProxy = Gio.DBusProxy.makeProxyWrapper(BroadbandModemCdm
|
||||
export const BroadbandModem = GObject.registerClass({
|
||||
Properties: {
|
||||
'capabilities': GObject.ParamSpec.flags(
|
||||
'capabilities', 'capabilities', 'capabilities',
|
||||
'capabilities', null, null,
|
||||
GObject.ParamFlags.READWRITE | GObject.ParamFlags.CONSTRUCT_ONLY,
|
||||
NM.DeviceModemCapabilities.$gtype,
|
||||
NM.DeviceModemCapabilities.NONE),
|
||||
|
@ -42,35 +42,35 @@ export function getDefault() {
|
||||
const SystemActions = GObject.registerClass({
|
||||
Properties: {
|
||||
'can-power-off': GObject.ParamSpec.boolean(
|
||||
'can-power-off', 'can-power-off', 'can-power-off',
|
||||
'can-power-off', null, null,
|
||||
GObject.ParamFlags.READABLE,
|
||||
false),
|
||||
'can-restart': GObject.ParamSpec.boolean(
|
||||
'can-restart', 'can-restart', 'can-restart',
|
||||
'can-restart', null, null,
|
||||
GObject.ParamFlags.READABLE,
|
||||
false),
|
||||
'can-suspend': GObject.ParamSpec.boolean(
|
||||
'can-suspend', 'can-suspend', 'can-suspend',
|
||||
'can-suspend', null, null,
|
||||
GObject.ParamFlags.READABLE,
|
||||
false),
|
||||
'can-lock-screen': GObject.ParamSpec.boolean(
|
||||
'can-lock-screen', 'can-lock-screen', 'can-lock-screen',
|
||||
'can-lock-screen', null, null,
|
||||
GObject.ParamFlags.READABLE,
|
||||
false),
|
||||
'can-switch-user': GObject.ParamSpec.boolean(
|
||||
'can-switch-user', 'can-switch-user', 'can-switch-user',
|
||||
'can-switch-user', null, null,
|
||||
GObject.ParamFlags.READABLE,
|
||||
false),
|
||||
'can-logout': GObject.ParamSpec.boolean(
|
||||
'can-logout', 'can-logout', 'can-logout',
|
||||
'can-logout', null, null,
|
||||
GObject.ParamFlags.READABLE,
|
||||
false),
|
||||
'can-lock-orientation': GObject.ParamSpec.boolean(
|
||||
'can-lock-orientation', 'can-lock-orientation', 'can-lock-orientation',
|
||||
'can-lock-orientation', null, null,
|
||||
GObject.ParamFlags.READABLE,
|
||||
false),
|
||||
'orientation-lock-icon': GObject.ParamSpec.string(
|
||||
'orientation-lock-icon', 'orientation-lock-icon', 'orientation-lock-icon',
|
||||
'orientation-lock-icon', null, null,
|
||||
GObject.ParamFlags.READWRITE,
|
||||
null),
|
||||
},
|
||||
|
@ -159,7 +159,7 @@ function _findBestFolderName(apps) {
|
||||
export const AppGrid = GObject.registerClass({
|
||||
Properties: {
|
||||
'indicators-padding': GObject.ParamSpec.boxed('indicators-padding',
|
||||
'Indicators padding', 'Indicators padding',
|
||||
null, null,
|
||||
GObject.ParamFlags.READWRITE,
|
||||
Clutter.Margin.$gtype),
|
||||
},
|
||||
@ -484,7 +484,7 @@ var BaseAppView = GObject.registerClass({
|
||||
GTypeFlags: GObject.TypeFlags.ABSTRACT,
|
||||
Properties: {
|
||||
'gesture-modes': GObject.ParamSpec.flags(
|
||||
'gesture-modes', 'gesture-modes', 'gesture-modes',
|
||||
'gesture-modes', null, null,
|
||||
GObject.ParamFlags.READWRITE | GObject.ParamFlags.CONSTRUCT_ONLY,
|
||||
Shell.ActionMode, Shell.ActionMode.OVERVIEW),
|
||||
},
|
||||
|
@ -6,15 +6,15 @@ import St from 'gi://St';
|
||||
export const BarLevel = GObject.registerClass({
|
||||
Properties: {
|
||||
'value': GObject.ParamSpec.double(
|
||||
'value', 'value', 'value',
|
||||
'value', null, null,
|
||||
GObject.ParamFlags.READWRITE,
|
||||
0, 2, 0),
|
||||
'maximum-value': GObject.ParamSpec.double(
|
||||
'maximum-value', 'maximum-value', 'maximum-value',
|
||||
'maximum-value', null, null,
|
||||
GObject.ParamFlags.READWRITE,
|
||||
1, 2, 1),
|
||||
'overdrive-start': GObject.ParamSpec.double(
|
||||
'overdrive-start', 'overdrive-start', 'overdrive-start',
|
||||
'overdrive-start', null, null,
|
||||
GObject.ParamFlags.READWRITE,
|
||||
1, 2, 1),
|
||||
},
|
||||
|
@ -95,11 +95,11 @@ export const EventSourceBase = GObject.registerClass({
|
||||
GTypeFlags: GObject.TypeFlags.ABSTRACT,
|
||||
Properties: {
|
||||
'has-calendars': GObject.ParamSpec.boolean(
|
||||
'has-calendars', 'has-calendars', 'has-calendars',
|
||||
'has-calendars', null, null,
|
||||
GObject.ParamFlags.READABLE,
|
||||
false),
|
||||
'is-loading': GObject.ParamSpec.boolean(
|
||||
'is-loading', 'is-loading', 'is-loading',
|
||||
'is-loading', null, null,
|
||||
GObject.ParamFlags.READABLE,
|
||||
false),
|
||||
},
|
||||
|
@ -159,12 +159,12 @@ class Dialog extends St.Widget {
|
||||
export const MessageDialogContent = GObject.registerClass({
|
||||
Properties: {
|
||||
'title': GObject.ParamSpec.string(
|
||||
'title', 'title', 'title',
|
||||
'title', null, null,
|
||||
GObject.ParamFlags.READWRITE |
|
||||
GObject.ParamFlags.CONSTRUCT,
|
||||
null),
|
||||
'description': GObject.ParamSpec.string(
|
||||
'description', 'description', 'description',
|
||||
'description', null, null,
|
||||
GObject.ParamFlags.READWRITE |
|
||||
GObject.ParamFlags.CONSTRUCT,
|
||||
null),
|
||||
@ -251,7 +251,7 @@ export const MessageDialogContent = GObject.registerClass({
|
||||
export const ListSection = GObject.registerClass({
|
||||
Properties: {
|
||||
'title': GObject.ParamSpec.string(
|
||||
'title', 'title', 'title',
|
||||
'title', null, null,
|
||||
GObject.ParamFlags.READWRITE |
|
||||
GObject.ParamFlags.CONSTRUCT,
|
||||
null),
|
||||
@ -295,16 +295,16 @@ export const ListSection = GObject.registerClass({
|
||||
export const ListSectionItem = GObject.registerClass({
|
||||
Properties: {
|
||||
'icon-actor': GObject.ParamSpec.object(
|
||||
'icon-actor', 'icon-actor', 'Icon actor',
|
||||
'icon-actor', null, null,
|
||||
GObject.ParamFlags.READWRITE,
|
||||
Clutter.Actor.$gtype),
|
||||
'title': GObject.ParamSpec.string(
|
||||
'title', 'title', 'title',
|
||||
'title', null, null,
|
||||
GObject.ParamFlags.READWRITE |
|
||||
GObject.ParamFlags.CONSTRUCT,
|
||||
null),
|
||||
'description': GObject.ParamSpec.string(
|
||||
'description', 'description', 'description',
|
||||
'description', null, null,
|
||||
GObject.ParamFlags.READWRITE |
|
||||
GObject.ParamFlags.CONSTRUCT,
|
||||
null),
|
||||
|
@ -245,65 +245,63 @@ function swap(value, length) {
|
||||
export const IconGridLayout = GObject.registerClass({
|
||||
Properties: {
|
||||
'allow-incomplete-pages': GObject.ParamSpec.boolean('allow-incomplete-pages',
|
||||
'Allow incomplete pages', 'Allow incomplete pages',
|
||||
null, null,
|
||||
GObject.ParamFlags.READWRITE,
|
||||
true),
|
||||
'column-spacing': GObject.ParamSpec.int('column-spacing',
|
||||
'Column spacing', 'Column spacing',
|
||||
null, null,
|
||||
GObject.ParamFlags.READWRITE,
|
||||
0, GLib.MAXINT32, 0),
|
||||
'columns-per-page': GObject.ParamSpec.int('columns-per-page',
|
||||
'Columns per page', 'Columns per page',
|
||||
null, null,
|
||||
GObject.ParamFlags.READWRITE,
|
||||
1, GLib.MAXINT32, 6),
|
||||
'fixed-icon-size': GObject.ParamSpec.int('fixed-icon-size',
|
||||
'Fixed icon size', 'Fixed icon size',
|
||||
null, null,
|
||||
GObject.ParamFlags.READWRITE,
|
||||
-1, GLib.MAXINT32, -1),
|
||||
'icon-size': GObject.ParamSpec.int('icon-size',
|
||||
'Icon size', 'Icon size',
|
||||
null, null,
|
||||
GObject.ParamFlags.READABLE,
|
||||
0, GLib.MAXINT32, 0),
|
||||
'last-row-align': GObject.ParamSpec.enum('last-row-align',
|
||||
'Last row align', 'Last row align',
|
||||
null, null,
|
||||
GObject.ParamFlags.READWRITE,
|
||||
Clutter.ActorAlign.$gtype,
|
||||
Clutter.ActorAlign.FILL),
|
||||
'max-column-spacing': GObject.ParamSpec.int('max-column-spacing',
|
||||
'Maximum column spacing', 'Maximum column spacing',
|
||||
null, null,
|
||||
GObject.ParamFlags.READWRITE,
|
||||
-1, GLib.MAXINT32, -1),
|
||||
'max-row-spacing': GObject.ParamSpec.int('max-row-spacing',
|
||||
'Maximum row spacing', 'Maximum row spacing',
|
||||
null, null,
|
||||
GObject.ParamFlags.READWRITE,
|
||||
-1, GLib.MAXINT32, -1),
|
||||
'orientation': GObject.ParamSpec.enum('orientation',
|
||||
'Orientation', 'Orientation',
|
||||
null, null,
|
||||
GObject.ParamFlags.READWRITE,
|
||||
Clutter.Orientation.$gtype,
|
||||
Clutter.Orientation.VERTICAL),
|
||||
'page-halign': GObject.ParamSpec.enum('page-halign',
|
||||
'Horizontal page align',
|
||||
'Horizontal page align',
|
||||
null, null,
|
||||
GObject.ParamFlags.READWRITE,
|
||||
Clutter.ActorAlign.$gtype,
|
||||
Clutter.ActorAlign.FILL),
|
||||
'page-padding': GObject.ParamSpec.boxed('page-padding',
|
||||
'Page padding', 'Page padding',
|
||||
null, null,
|
||||
GObject.ParamFlags.READWRITE,
|
||||
Clutter.Margin.$gtype),
|
||||
'page-valign': GObject.ParamSpec.enum('page-valign',
|
||||
'Vertical page align',
|
||||
'Vertical page align',
|
||||
null, null,
|
||||
GObject.ParamFlags.READWRITE,
|
||||
Clutter.ActorAlign.$gtype,
|
||||
Clutter.ActorAlign.FILL),
|
||||
'row-spacing': GObject.ParamSpec.int('row-spacing',
|
||||
'Row spacing', 'Row spacing',
|
||||
null, null,
|
||||
GObject.ParamFlags.READWRITE,
|
||||
0, GLib.MAXINT32, 0),
|
||||
'rows-per-page': GObject.ParamSpec.int('rows-per-page',
|
||||
'Rows per page', 'Rows per page',
|
||||
null, null,
|
||||
GObject.ParamFlags.READWRITE,
|
||||
1, GLib.MAXINT32, 4),
|
||||
},
|
||||
|
@ -587,7 +587,7 @@ class FocusTracker extends Signals.EventEmitter {
|
||||
const EmojiPager = GObject.registerClass({
|
||||
Properties: {
|
||||
'delta': GObject.ParamSpec.int(
|
||||
'delta', 'delta', 'delta',
|
||||
'delta', null, null,
|
||||
GObject.ParamFlags.READWRITE,
|
||||
GLib.MININT32, GLib.MAXINT32, 0),
|
||||
},
|
||||
|
@ -39,15 +39,15 @@ function isPopupMetaWindow(actor) {
|
||||
export const MonitorConstraint = GObject.registerClass({
|
||||
Properties: {
|
||||
'primary': GObject.ParamSpec.boolean(
|
||||
'primary', 'Primary', 'Track primary monitor',
|
||||
'primary', null, null,
|
||||
GObject.ParamFlags.READABLE | GObject.ParamFlags.WRITABLE,
|
||||
false),
|
||||
'index': GObject.ParamSpec.int(
|
||||
'index', 'Monitor index', 'Track specific monitor',
|
||||
'index', null, null,
|
||||
GObject.ParamFlags.READABLE | GObject.ParamFlags.WRITABLE,
|
||||
-1, 64, -1),
|
||||
'work-area': GObject.ParamSpec.boolean(
|
||||
'work-area', 'Work-area', 'Track monitor\'s work-area',
|
||||
'work-area', null, null,
|
||||
GObject.ParamFlags.READABLE | GObject.ParamFlags.WRITABLE,
|
||||
false),
|
||||
},
|
||||
|
@ -29,11 +29,11 @@ cogl_color_out.a += (rand(position) - 0.5) / 100.0; \n';
|
||||
const RadialShaderEffect = GObject.registerClass({
|
||||
Properties: {
|
||||
'brightness': GObject.ParamSpec.float(
|
||||
'brightness', 'brightness', 'brightness',
|
||||
'brightness', null, null,
|
||||
GObject.ParamFlags.READWRITE,
|
||||
0, 1, 1),
|
||||
'sharpness': GObject.ParamSpec.float(
|
||||
'sharpness', 'sharpness', 'sharpness',
|
||||
'sharpness', null, null,
|
||||
GObject.ParamFlags.READWRITE,
|
||||
0, 1, 0),
|
||||
},
|
||||
@ -89,7 +89,7 @@ const RadialShaderEffect = GObject.registerClass({
|
||||
export const Lightbox = GObject.registerClass({
|
||||
Properties: {
|
||||
'active': GObject.ParamSpec.boolean(
|
||||
'active', 'active', 'active', GObject.ParamFlags.READABLE, false),
|
||||
'active', null, null, GObject.ParamFlags.READABLE, false),
|
||||
},
|
||||
}, class Lightbox extends St.Bin {
|
||||
/**
|
||||
|
@ -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),
|
||||
},
|
||||
|
@ -138,21 +138,21 @@ export const NotificationPolicy = GObject.registerClass({
|
||||
GTypeFlags: GObject.TypeFlags.ABSTRACT,
|
||||
Properties: {
|
||||
'enable': GObject.ParamSpec.boolean(
|
||||
'enable', 'enable', 'enable', GObject.ParamFlags.READABLE, true),
|
||||
'enable', null, null, GObject.ParamFlags.READABLE, true),
|
||||
'enable-sound': GObject.ParamSpec.boolean(
|
||||
'enable-sound', 'enable-sound', 'enable-sound',
|
||||
'enable-sound', null, null,
|
||||
GObject.ParamFlags.READABLE, true),
|
||||
'show-banners': GObject.ParamSpec.boolean(
|
||||
'show-banners', 'show-banners', 'show-banners',
|
||||
'show-banners', null, null,
|
||||
GObject.ParamFlags.READABLE, true),
|
||||
'force-expanded': GObject.ParamSpec.boolean(
|
||||
'force-expanded', 'force-expanded', 'force-expanded',
|
||||
'force-expanded', null, null,
|
||||
GObject.ParamFlags.READABLE, false),
|
||||
'show-in-lock-screen': GObject.ParamSpec.boolean(
|
||||
'show-in-lock-screen', 'show-in-lock-screen', 'show-in-lock-screen',
|
||||
'show-in-lock-screen', null, null,
|
||||
GObject.ParamFlags.READABLE, false),
|
||||
'details-in-lock-screen': GObject.ParamSpec.boolean(
|
||||
'details-in-lock-screen', 'details-in-lock-screen', 'details-in-lock-screen',
|
||||
'details-in-lock-screen', null, null,
|
||||
GObject.ParamFlags.READABLE, false),
|
||||
},
|
||||
}, class NotificationPolicy extends GObject.Object {
|
||||
@ -485,11 +485,11 @@ export class Notification extends GObject.Object {
|
||||
export const Source = GObject.registerClass({
|
||||
Properties: {
|
||||
'count': GObject.ParamSpec.int(
|
||||
'count', 'count', 'count',
|
||||
'count', null, null,
|
||||
GObject.ParamFlags.READABLE,
|
||||
0, GLib.MAXINT32, 0),
|
||||
'policy': GObject.ParamSpec.object(
|
||||
'policy', 'policy', 'policy',
|
||||
'policy', null, null,
|
||||
GObject.ParamFlags.READWRITE,
|
||||
NotificationPolicy.$gtype),
|
||||
},
|
||||
@ -608,63 +608,63 @@ SignalTracker.registerDestroyableType(Source);
|
||||
GObject.registerClass({
|
||||
Properties: {
|
||||
'source': GObject.ParamSpec.object(
|
||||
'source', 'source', 'source',
|
||||
'source', null, null,
|
||||
GObject.ParamFlags.READWRITE | GObject.ParamFlags.CONSTRUCT_ONLY,
|
||||
Source),
|
||||
'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),
|
||||
'gicon': GObject.ParamSpec.object(
|
||||
'gicon', 'gicon', 'gicon',
|
||||
'gicon', 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),
|
||||
'sound': GObject.ParamSpec.object(
|
||||
'sound', 'sound', 'sound',
|
||||
'sound', null, null,
|
||||
GObject.ParamFlags.READWRITE,
|
||||
Sound),
|
||||
'datetime': GObject.ParamSpec.boxed(
|
||||
'datetime', 'datetime', 'datetime',
|
||||
'datetime', null, null,
|
||||
GObject.ParamFlags.READWRITE,
|
||||
GLib.DateTime),
|
||||
// Unfortunately we can't register new enum types in GJS
|
||||
// See: https://gitlab.gnome.org/GNOME/gjs/-/issues/573
|
||||
'privacy-scope': GObject.ParamSpec.int(
|
||||
'privacy-scope', 'privacy-scope', 'privacy-scope',
|
||||
'privacy-scope', null, null,
|
||||
GObject.ParamFlags.READWRITE | GObject.ParamFlags.CONSTRUCT,
|
||||
0, GLib.MAXINT32,
|
||||
PrivacyScope.User),
|
||||
'urgency': GObject.ParamSpec.int(
|
||||
'urgency', 'urgency', 'urgency',
|
||||
'urgency', null, null,
|
||||
GObject.ParamFlags.READWRITE | GObject.ParamFlags.CONSTRUCT,
|
||||
0, GLib.MAXINT32,
|
||||
Urgency.NORMAL),
|
||||
'acknowledged': GObject.ParamSpec.boolean(
|
||||
'acknowledged', 'acknowledged', 'acknowledged',
|
||||
'acknowledged', null, null,
|
||||
GObject.ParamFlags.READWRITE,
|
||||
false),
|
||||
'resident': GObject.ParamSpec.boolean(
|
||||
'resident', 'resident', 'resident',
|
||||
'resident', null, null,
|
||||
GObject.ParamFlags.READWRITE,
|
||||
false),
|
||||
'for-feedback': GObject.ParamSpec.boolean(
|
||||
'for-feedback', 'for-feedback', 'for-feedback',
|
||||
'for-feedback', null, null,
|
||||
GObject.ParamFlags.READWRITE,
|
||||
false),
|
||||
'is-transient': GObject.ParamSpec.boolean(
|
||||
'is-transient', 'is-transient', 'is-transient',
|
||||
'is-transient', null, null,
|
||||
GObject.ParamFlags.READWRITE,
|
||||
false),
|
||||
},
|
||||
|
@ -25,7 +25,7 @@ export const State = {
|
||||
export const ModalDialog = GObject.registerClass({
|
||||
Properties: {
|
||||
'state': GObject.ParamSpec.int(
|
||||
'state', 'Dialog state', 'state',
|
||||
'state', null, null,
|
||||
GObject.ParamFlags.READABLE,
|
||||
Math.min(...Object.values(State)),
|
||||
Math.max(...Object.values(State)),
|
||||
|
@ -259,7 +259,7 @@ class ControlsManagerLayout extends Clutter.LayoutManager {
|
||||
export const OverviewAdjustment = GObject.registerClass({
|
||||
Properties: {
|
||||
'gesture-in-progress': GObject.ParamSpec.boolean(
|
||||
'gesture-in-progress', 'Gesture in progress', 'Gesture in progress',
|
||||
'gesture-in-progress', null, null,
|
||||
GObject.ParamFlags.READWRITE,
|
||||
false),
|
||||
},
|
||||
|
@ -291,15 +291,15 @@ const ActionEditor = GObject.registerClass({
|
||||
const PadDiagram = GObject.registerClass({
|
||||
Properties: {
|
||||
'left-handed': GObject.ParamSpec.boolean(
|
||||
'left-handed', 'left-handed', 'Left handed',
|
||||
'left-handed', null, null,
|
||||
GObject.ParamFlags.READWRITE | GObject.ParamFlags.CONSTRUCT_ONLY,
|
||||
false),
|
||||
'image': GObject.ParamSpec.string(
|
||||
'image', 'image', 'Image',
|
||||
'image', null, null,
|
||||
GObject.ParamFlags.READWRITE | GObject.ParamFlags.CONSTRUCT_ONLY,
|
||||
null),
|
||||
'editor-actor': GObject.ParamSpec.object(
|
||||
'editor-actor', 'editor-actor', 'Editor actor',
|
||||
'editor-actor', null, null,
|
||||
GObject.ParamFlags.READWRITE | GObject.ParamFlags.CONSTRUCT_ONLY,
|
||||
Clutter.Actor.$gtype),
|
||||
},
|
||||
|
@ -260,11 +260,11 @@ const AppMenuButton = GObject.registerClass({
|
||||
|
||||
const WorkspaceDot = GObject.registerClass({
|
||||
Properties: {
|
||||
'expansion': GObject.ParamSpec.double('expansion', '', '',
|
||||
'expansion': GObject.ParamSpec.double('expansion', null, null,
|
||||
GObject.ParamFlags.READWRITE,
|
||||
0.0, 1.0, 0.0),
|
||||
'width-multiplier': GObject.ParamSpec.double(
|
||||
'width-multiplier', '', '',
|
||||
'width-multiplier', null, null,
|
||||
GObject.ParamFlags.READWRITE,
|
||||
1.0, 10.0, 1.0),
|
||||
},
|
||||
|
@ -10,7 +10,7 @@ const SUCCESS_ZOOM_OUT_DURATION = 150;
|
||||
const PieTimer = GObject.registerClass({
|
||||
Properties: {
|
||||
'angle': GObject.ParamSpec.double(
|
||||
'angle', 'angle', 'angle',
|
||||
'angle', null, null,
|
||||
GObject.ParamFlags.READWRITE,
|
||||
0, 2 * Math.PI, 0),
|
||||
},
|
||||
|
@ -65,11 +65,11 @@ export function arrowIcon(side) {
|
||||
export const PopupBaseMenuItem = GObject.registerClass({
|
||||
Properties: {
|
||||
'active': GObject.ParamSpec.boolean(
|
||||
'active', 'active', 'active',
|
||||
'active', null, null,
|
||||
GObject.ParamFlags.READWRITE,
|
||||
false),
|
||||
'sensitive': GObject.ParamSpec.boolean(
|
||||
'sensitive', 'sensitive', 'sensitive',
|
||||
'sensitive', null, null,
|
||||
GObject.ParamFlags.READWRITE,
|
||||
true),
|
||||
},
|
||||
@ -330,7 +330,7 @@ class PopupSeparatorMenuItem extends PopupBaseMenuItem {
|
||||
export const Switch = GObject.registerClass({
|
||||
Properties: {
|
||||
'state': GObject.ParamSpec.boolean(
|
||||
'state', 'state', 'state',
|
||||
'state', null, null,
|
||||
GObject.ParamFlags.READWRITE,
|
||||
false),
|
||||
},
|
||||
|
@ -22,7 +22,7 @@ const MENU_BUTTON_BRIGHTNESS = 0.1;
|
||||
export const QuickSettingsItem = GObject.registerClass({
|
||||
Properties: {
|
||||
'has-menu': GObject.ParamSpec.boolean(
|
||||
'has-menu', 'has-menu', 'has-menu',
|
||||
'has-menu', null, null,
|
||||
GObject.ParamFlags.READWRITE |
|
||||
GObject.ParamFlags.CONSTRUCT_ONLY,
|
||||
false),
|
||||
@ -43,14 +43,14 @@ export const QuickSettingsItem = GObject.registerClass({
|
||||
|
||||
export const QuickToggle = GObject.registerClass({
|
||||
Properties: {
|
||||
'title': GObject.ParamSpec.string('title', '', '',
|
||||
'title': GObject.ParamSpec.string('title', null, null,
|
||||
GObject.ParamFlags.READWRITE,
|
||||
null),
|
||||
'subtitle': GObject.ParamSpec.string('subtitle', '', '',
|
||||
'subtitle': GObject.ParamSpec.string('subtitle', null, null,
|
||||
GObject.ParamFlags.READWRITE,
|
||||
null),
|
||||
'icon-name': GObject.ParamSpec.override('icon-name', St.Button),
|
||||
'gicon': GObject.ParamSpec.object('gicon', '', '',
|
||||
'gicon': GObject.ParamSpec.object('gicon', null, null,
|
||||
GObject.ParamFlags.READWRITE,
|
||||
Gio.Icon),
|
||||
},
|
||||
@ -145,18 +145,18 @@ export const QuickToggle = GObject.registerClass({
|
||||
|
||||
export const QuickMenuToggle = GObject.registerClass({
|
||||
Properties: {
|
||||
'title': GObject.ParamSpec.string('title', '', '',
|
||||
'title': GObject.ParamSpec.string('title', null, null,
|
||||
GObject.ParamFlags.READWRITE,
|
||||
null),
|
||||
'subtitle': GObject.ParamSpec.string('subtitle', '', '',
|
||||
'subtitle': GObject.ParamSpec.string('subtitle', null, null,
|
||||
GObject.ParamFlags.READWRITE,
|
||||
null),
|
||||
'icon-name': GObject.ParamSpec.override('icon-name', St.Button),
|
||||
'gicon': GObject.ParamSpec.object('gicon', '', '',
|
||||
'gicon': GObject.ParamSpec.object('gicon', null, null,
|
||||
GObject.ParamFlags.READWRITE,
|
||||
Gio.Icon),
|
||||
'menu-enabled': GObject.ParamSpec.boolean(
|
||||
'menu-enabled', '', '',
|
||||
'menu-enabled', null, null,
|
||||
GObject.ParamFlags.READWRITE,
|
||||
true),
|
||||
},
|
||||
@ -237,19 +237,19 @@ export const QuickMenuToggle = GObject.registerClass({
|
||||
export const QuickSlider = GObject.registerClass({
|
||||
Properties: {
|
||||
'icon-name': GObject.ParamSpec.override('icon-name', St.Button),
|
||||
'gicon': GObject.ParamSpec.object('gicon', '', '',
|
||||
'gicon': GObject.ParamSpec.object('gicon', null, null,
|
||||
GObject.ParamFlags.READWRITE,
|
||||
Gio.Icon),
|
||||
'icon-reactive': GObject.ParamSpec.boolean(
|
||||
'icon-reactive', '', '',
|
||||
'icon-reactive', null, null,
|
||||
GObject.ParamFlags.READWRITE,
|
||||
false),
|
||||
'icon-label': GObject.ParamSpec.string(
|
||||
'icon-label', '', '',
|
||||
'icon-label', null, null,
|
||||
GObject.ParamFlags.READWRITE,
|
||||
''),
|
||||
'menu-enabled': GObject.ParamSpec.boolean(
|
||||
'menu-enabled', '', '',
|
||||
'menu-enabled', null, null,
|
||||
GObject.ParamFlags.READWRITE,
|
||||
false),
|
||||
},
|
||||
@ -522,7 +522,7 @@ class QuickToggleMenu extends PopupMenu.PopupMenuBase {
|
||||
const QuickSettingsLayoutMeta = GObject.registerClass({
|
||||
Properties: {
|
||||
'column-span': GObject.ParamSpec.int(
|
||||
'column-span', '', '',
|
||||
'column-span', null, null,
|
||||
GObject.ParamFlags.READWRITE,
|
||||
1, GLib.MAXINT32, 1),
|
||||
},
|
||||
@ -531,15 +531,15 @@ const QuickSettingsLayoutMeta = GObject.registerClass({
|
||||
const QuickSettingsLayout = GObject.registerClass({
|
||||
Properties: {
|
||||
'row-spacing': GObject.ParamSpec.int(
|
||||
'row-spacing', 'row-spacing', 'row-spacing',
|
||||
'row-spacing', null, null,
|
||||
GObject.ParamFlags.READWRITE,
|
||||
0, GLib.MAXINT32, 0),
|
||||
'column-spacing': GObject.ParamSpec.int(
|
||||
'column-spacing', 'column-spacing', 'column-spacing',
|
||||
'column-spacing', null, null,
|
||||
GObject.ParamFlags.READWRITE,
|
||||
0, GLib.MAXINT32, 0),
|
||||
'n-columns': GObject.ParamSpec.int(
|
||||
'n-columns', 'n-columns', 'n-columns',
|
||||
'n-columns', null, null,
|
||||
GObject.ParamFlags.READWRITE,
|
||||
1, GLib.MAXINT32, 1),
|
||||
},
|
||||
|
@ -1061,9 +1061,7 @@ const ScreencastPhase = {
|
||||
export const ScreenshotUI = GObject.registerClass({
|
||||
Properties: {
|
||||
'screencast-in-progress': GObject.ParamSpec.boolean(
|
||||
'screencast-in-progress',
|
||||
'screencast-in-progress',
|
||||
'screencast-in-progress',
|
||||
'screencast-in-progress', null, null,
|
||||
GObject.ParamFlags.READABLE,
|
||||
false),
|
||||
},
|
||||
@ -2873,19 +2871,19 @@ class SelectArea extends St.Widget {
|
||||
const RecolorEffect = GObject.registerClass({
|
||||
Properties: {
|
||||
color: GObject.ParamSpec.boxed(
|
||||
'color', 'color', 'replacement color',
|
||||
'color', null, null,
|
||||
GObject.ParamFlags.WRITABLE,
|
||||
Cogl.Color.$gtype),
|
||||
chroma: GObject.ParamSpec.boxed(
|
||||
'chroma', 'chroma', 'color to replace',
|
||||
'chroma', null, null,
|
||||
GObject.ParamFlags.WRITABLE,
|
||||
Cogl.Color.$gtype),
|
||||
threshold: GObject.ParamSpec.float(
|
||||
'threshold', 'threshold', 'threshold',
|
||||
'threshold', null, null,
|
||||
GObject.ParamFlags.WRITABLE,
|
||||
0.0, 1.0, 0.0),
|
||||
smoothing: GObject.ParamSpec.float(
|
||||
'smoothing', 'smoothing', 'smoothing',
|
||||
'smoothing', null, null,
|
||||
GObject.ParamFlags.WRITABLE,
|
||||
0.0, 1.0, 0.0),
|
||||
},
|
||||
|
@ -151,7 +151,7 @@ const SearchResultsBase = GObject.registerClass({
|
||||
GTypeFlags: GObject.TypeFlags.ABSTRACT,
|
||||
Properties: {
|
||||
'focus-child': GObject.ParamSpec.object(
|
||||
'focus-child', 'focus-child', 'focus-child',
|
||||
'focus-child', null, null,
|
||||
GObject.ParamFlags.READABLE,
|
||||
Clutter.Actor.$gtype),
|
||||
},
|
||||
@ -339,7 +339,7 @@ class ListSearchResults extends SearchResultsBase {
|
||||
|
||||
const GridSearchResultsLayout = GObject.registerClass({
|
||||
Properties: {
|
||||
'spacing': GObject.ParamSpec.int('spacing', 'Spacing', 'Spacing',
|
||||
'spacing': GObject.ParamSpec.int('spacing', null, null,
|
||||
GObject.ParamFlags.READWRITE, 0, GLib.MAXINT32, 0),
|
||||
},
|
||||
}, class GridSearchResultsLayout extends Clutter.LayoutManager {
|
||||
|
@ -26,7 +26,7 @@ function getTermsForSearchString(searchString) {
|
||||
export const SearchController = GObject.registerClass({
|
||||
Properties: {
|
||||
'search-active': GObject.ParamSpec.boolean(
|
||||
'search-active', 'search-active', 'search-active',
|
||||
'search-active', null, null,
|
||||
GObject.ParamFlags.READABLE,
|
||||
false),
|
||||
},
|
||||
|
@ -25,10 +25,10 @@ Gio._promisify(Gio.DBusConnection.prototype, 'call');
|
||||
|
||||
const BackgroundAppMenuItem = GObject.registerClass({
|
||||
Properties: {
|
||||
'app': GObject.ParamSpec.object('app', '', '',
|
||||
'app': GObject.ParamSpec.object('app', null, null,
|
||||
GObject.ParamFlags.READWRITE,
|
||||
Shell.App),
|
||||
'message': GObject.ParamSpec.string('message', '', '',
|
||||
'message': GObject.ParamSpec.string('message', null, null,
|
||||
GObject.ParamFlags.READWRITE,
|
||||
null),
|
||||
},
|
||||
|
@ -21,7 +21,7 @@ const BrightnessProxy = Gio.DBusProxy.makeProxyWrapper(BrightnessInterface);
|
||||
const SliderItem = GObject.registerClass({
|
||||
Properties: {
|
||||
'value': GObject.ParamSpec.int(
|
||||
'value', '', '',
|
||||
'value', null, null,
|
||||
GObject.ParamFlags.READWRITE,
|
||||
0, 100, 0),
|
||||
},
|
||||
@ -60,11 +60,11 @@ const SliderItem = GObject.registerClass({
|
||||
const DiscreteItem = GObject.registerClass({
|
||||
Properties: {
|
||||
'value': GObject.ParamSpec.int(
|
||||
'value', '', '',
|
||||
'value', null, null,
|
||||
GObject.ParamFlags.READWRITE,
|
||||
0, 100, 0),
|
||||
'n-levels': GObject.ParamSpec.int(
|
||||
'n-levels', '', '',
|
||||
'n-levels', null, null,
|
||||
GObject.ParamFlags.READWRITE,
|
||||
1, 3, 1),
|
||||
},
|
||||
|
@ -27,13 +27,13 @@ const STATE_CHANGE_FAILED_TIMEOUT_MS = 30 * 1000;
|
||||
|
||||
const BtClient = GObject.registerClass({
|
||||
Properties: {
|
||||
'available': GObject.ParamSpec.boolean('available', '', '',
|
||||
'available': GObject.ParamSpec.boolean('available', null, null,
|
||||
GObject.ParamFlags.READABLE,
|
||||
false),
|
||||
'active': GObject.ParamSpec.boolean('active', '', '',
|
||||
'active': GObject.ParamSpec.boolean('active', null, null,
|
||||
GObject.ParamFlags.READABLE,
|
||||
false),
|
||||
'adapter-state': GObject.ParamSpec.enum('adapter-state', '', '',
|
||||
'adapter-state': GObject.ParamSpec.enum('adapter-state', null, null,
|
||||
GObject.ParamFlags.READABLE,
|
||||
AdapterState, AdapterState.ABSENT),
|
||||
},
|
||||
|
@ -57,15 +57,15 @@ export function getGeoclueAgent() {
|
||||
const GeoclueAgent = GObject.registerClass({
|
||||
Properties: {
|
||||
'enabled': GObject.ParamSpec.boolean(
|
||||
'enabled', 'Enabled', 'Enabled',
|
||||
'enabled', null, null,
|
||||
GObject.ParamFlags.READWRITE,
|
||||
false),
|
||||
'in-use': GObject.ParamSpec.boolean(
|
||||
'in-use', 'In use', 'In use',
|
||||
'in-use', null, null,
|
||||
GObject.ParamFlags.READABLE,
|
||||
false),
|
||||
'max-accuracy-level': GObject.ParamSpec.int(
|
||||
'max-accuracy-level', 'Max accuracy level', 'Max accuracy level',
|
||||
'max-accuracy-level', null, null,
|
||||
GObject.ParamFlags.READABLE,
|
||||
0, 8, 0),
|
||||
},
|
||||
|
@ -159,16 +159,16 @@ class ItemSorter {
|
||||
|
||||
const NMMenuItem = GObject.registerClass({
|
||||
Properties: {
|
||||
'radio-mode': GObject.ParamSpec.boolean('radio-mode', '', '',
|
||||
'radio-mode': GObject.ParamSpec.boolean('radio-mode', null, null,
|
||||
GObject.ParamFlags.READWRITE,
|
||||
false),
|
||||
'is-active': GObject.ParamSpec.boolean('is-active', '', '',
|
||||
'is-active': GObject.ParamSpec.boolean('is-active', null, null,
|
||||
GObject.ParamFlags.READABLE,
|
||||
false),
|
||||
'name': GObject.ParamSpec.string('name', '', '',
|
||||
'name': GObject.ParamSpec.string('name', null, null,
|
||||
GObject.ParamFlags.READWRITE,
|
||||
''),
|
||||
'icon-name': GObject.ParamSpec.string('icon-name', '', '',
|
||||
'icon-name': GObject.ParamSpec.string('icon-name', null, null,
|
||||
GObject.ParamFlags.READWRITE,
|
||||
''),
|
||||
},
|
||||
@ -219,7 +219,7 @@ const NMMenuItem = GObject.registerClass({
|
||||
*/
|
||||
const NMSectionItem = GObject.registerClass({
|
||||
Properties: {
|
||||
'use-submenu': GObject.ParamSpec.boolean('use-submenu', '', '',
|
||||
'use-submenu': GObject.ParamSpec.boolean('use-submenu', null, null,
|
||||
GObject.ParamFlags.READWRITE,
|
||||
false),
|
||||
},
|
||||
@ -398,7 +398,7 @@ class NMConnectionItem extends NMMenuItem {
|
||||
|
||||
const NMDeviceConnectionItem = GObject.registerClass({
|
||||
Properties: {
|
||||
'device-name': GObject.ParamSpec.string('device-name', '', '',
|
||||
'device-name': GObject.ParamSpec.string('device-name', null, null,
|
||||
GObject.ParamFlags.READWRITE,
|
||||
''),
|
||||
},
|
||||
@ -421,7 +421,7 @@ const NMDeviceConnectionItem = GObject.registerClass({
|
||||
|
||||
const NMDeviceItem = GObject.registerClass({
|
||||
Properties: {
|
||||
'single-device-mode': GObject.ParamSpec.boolean('single-device-mode', '', '',
|
||||
'single-device-mode': GObject.ParamSpec.boolean('single-device-mode', null, null,
|
||||
GObject.ParamFlags.READWRITE,
|
||||
false),
|
||||
},
|
||||
@ -735,23 +735,23 @@ class NMBluetoothDeviceItem extends NMDeviceItem {
|
||||
const WirelessNetwork = GObject.registerClass({
|
||||
Properties: {
|
||||
'name': GObject.ParamSpec.string(
|
||||
'name', '', '',
|
||||
'name', null, null,
|
||||
GObject.ParamFlags.READABLE,
|
||||
''),
|
||||
'icon-name': GObject.ParamSpec.string(
|
||||
'icon-name', '', '',
|
||||
'icon-name', null, null,
|
||||
GObject.ParamFlags.READABLE,
|
||||
''),
|
||||
'secure': GObject.ParamSpec.boolean(
|
||||
'secure', '', '',
|
||||
'secure', null, null,
|
||||
GObject.ParamFlags.READABLE,
|
||||
false),
|
||||
'is-active': GObject.ParamSpec.boolean(
|
||||
'is-active', '', '',
|
||||
'is-active', null, null,
|
||||
GObject.ParamFlags.READABLE,
|
||||
false),
|
||||
'signal-strength': GObject.ParamSpec.uint(
|
||||
'signal-strength', '', '',
|
||||
'signal-strength', null, null,
|
||||
GObject.ParamFlags.READABLE,
|
||||
0),
|
||||
},
|
||||
@ -1065,10 +1065,10 @@ class NMWirelessNetworkItem extends PopupMenu.PopupBaseMenuItem {
|
||||
|
||||
const NMWirelessDeviceItem = GObject.registerClass({
|
||||
Properties: {
|
||||
'is-hotspot': GObject.ParamSpec.boolean('is-hotspot', '', '',
|
||||
'is-hotspot': GObject.ParamSpec.boolean('is-hotspot', null, null,
|
||||
GObject.ParamFlags.READABLE,
|
||||
false),
|
||||
'single-device-mode': GObject.ParamSpec.boolean('single-device-mode', '', '',
|
||||
'single-device-mode': GObject.ParamSpec.boolean('single-device-mode', null, null,
|
||||
GObject.ParamFlags.READWRITE,
|
||||
false),
|
||||
},
|
||||
|
@ -15,15 +15,15 @@ const rfkillManagerInfo = Gio.DBusInterfaceInfo.new_for_xml(RfkillManagerInterfa
|
||||
const RfkillManager = GObject.registerClass({
|
||||
Properties: {
|
||||
'airplane-mode': GObject.ParamSpec.boolean(
|
||||
'airplane-mode', '', '',
|
||||
'airplane-mode', null, null,
|
||||
GObject.ParamFlags.READWRITE,
|
||||
false),
|
||||
'hw-airplane-mode': GObject.ParamSpec.boolean(
|
||||
'hw-airplane-mode', '', '',
|
||||
'hw-airplane-mode', null, null,
|
||||
GObject.ParamFlags.READABLE,
|
||||
false),
|
||||
'show-airplane-mode': GObject.ParamSpec.boolean(
|
||||
'show-airplane-mode', '', '',
|
||||
'show-airplane-mode', null, null,
|
||||
GObject.ParamFlags.READABLE,
|
||||
false),
|
||||
},
|
||||
|
@ -26,7 +26,7 @@ const SHOW_BATTERY_PERCENTAGE = 'show-battery-percentage';
|
||||
|
||||
const PowerToggle = GObject.registerClass({
|
||||
Properties: {
|
||||
'fallback-icon-name': GObject.ParamSpec.string('fallback-icon-name', '', '',
|
||||
'fallback-icon-name': GObject.ParamSpec.string('fallback-icon-name', null, null,
|
||||
GObject.ParamFlags.READWRITE,
|
||||
''),
|
||||
},
|
||||
|
@ -89,11 +89,11 @@ const EventHistory = class {
|
||||
const TouchpadSwipeGesture = GObject.registerClass({
|
||||
Properties: {
|
||||
'enabled': GObject.ParamSpec.boolean(
|
||||
'enabled', 'enabled', 'enabled',
|
||||
'enabled', null, null,
|
||||
GObject.ParamFlags.READWRITE,
|
||||
true),
|
||||
'orientation': GObject.ParamSpec.enum(
|
||||
'orientation', 'orientation', 'orientation',
|
||||
'orientation', null, null,
|
||||
GObject.ParamFlags.READWRITE,
|
||||
Clutter.Orientation, Clutter.Orientation.HORIZONTAL),
|
||||
},
|
||||
@ -211,11 +211,11 @@ const TouchpadSwipeGesture = GObject.registerClass({
|
||||
const TouchSwipeGesture = GObject.registerClass({
|
||||
Properties: {
|
||||
'distance': GObject.ParamSpec.double(
|
||||
'distance', 'distance', 'distance',
|
||||
'distance', null, null,
|
||||
GObject.ParamFlags.READWRITE,
|
||||
0, Infinity, 0),
|
||||
'orientation': GObject.ParamSpec.enum(
|
||||
'orientation', 'orientation', 'orientation',
|
||||
'orientation', null, null,
|
||||
GObject.ParamFlags.READWRITE,
|
||||
Clutter.Orientation, Clutter.Orientation.HORIZONTAL),
|
||||
},
|
||||
@ -302,15 +302,15 @@ const TouchSwipeGesture = GObject.registerClass({
|
||||
const ScrollGesture = GObject.registerClass({
|
||||
Properties: {
|
||||
'enabled': GObject.ParamSpec.boolean(
|
||||
'enabled', 'enabled', 'enabled',
|
||||
'enabled', null, null,
|
||||
GObject.ParamFlags.READWRITE,
|
||||
true),
|
||||
'orientation': GObject.ParamSpec.enum(
|
||||
'orientation', 'orientation', 'orientation',
|
||||
'orientation', null, null,
|
||||
GObject.ParamFlags.READWRITE,
|
||||
Clutter.Orientation, Clutter.Orientation.HORIZONTAL),
|
||||
'scroll-modifiers': GObject.ParamSpec.flags(
|
||||
'scroll-modifiers', 'scroll-modifiers', 'scroll-modifiers',
|
||||
'scroll-modifiers', null, null,
|
||||
GObject.ParamFlags.READWRITE,
|
||||
Clutter.ModifierType, 0),
|
||||
},
|
||||
@ -430,23 +430,23 @@ const ScrollGesture = GObject.registerClass({
|
||||
export const SwipeTracker = GObject.registerClass({
|
||||
Properties: {
|
||||
'enabled': GObject.ParamSpec.boolean(
|
||||
'enabled', 'enabled', 'enabled',
|
||||
'enabled', null, null,
|
||||
GObject.ParamFlags.READWRITE,
|
||||
true),
|
||||
'orientation': GObject.ParamSpec.enum(
|
||||
'orientation', 'orientation', 'orientation',
|
||||
'orientation', null, null,
|
||||
GObject.ParamFlags.READWRITE,
|
||||
Clutter.Orientation, Clutter.Orientation.HORIZONTAL),
|
||||
'distance': GObject.ParamSpec.double(
|
||||
'distance', 'distance', 'distance',
|
||||
'distance', null, null,
|
||||
GObject.ParamFlags.READWRITE,
|
||||
0, Infinity, 0),
|
||||
'allow-long-swipes': GObject.ParamSpec.boolean(
|
||||
'allow-long-swipes', 'allow-long-swipes', 'allow-long-swipes',
|
||||
'allow-long-swipes', null, null,
|
||||
GObject.ParamFlags.READWRITE,
|
||||
false),
|
||||
'scroll-modifiers': GObject.ParamSpec.flags(
|
||||
'scroll-modifiers', 'scroll-modifiers', 'scroll-modifiers',
|
||||
'scroll-modifiers', null, null,
|
||||
GObject.ParamFlags.READWRITE,
|
||||
Clutter.ModifierType, 0),
|
||||
},
|
||||
|
@ -29,7 +29,7 @@ const ICON_TITLE_SPACING = 6;
|
||||
export const WindowPreview = GObject.registerClass({
|
||||
Properties: {
|
||||
'overlay-enabled': GObject.ParamSpec.boolean(
|
||||
'overlay-enabled', 'overlay-enabled', 'overlay-enabled',
|
||||
'overlay-enabled', null, null,
|
||||
GObject.ParamFlags.READWRITE,
|
||||
true),
|
||||
},
|
||||
|
@ -401,11 +401,11 @@ function animateAllocation(actor, box) {
|
||||
export const WorkspaceLayout = GObject.registerClass({
|
||||
Properties: {
|
||||
'spacing': GObject.ParamSpec.double(
|
||||
'spacing', 'Spacing', 'Spacing',
|
||||
'spacing', null, null,
|
||||
GObject.ParamFlags.READWRITE,
|
||||
0, Infinity, 20),
|
||||
'layout-frozen': GObject.ParamSpec.boolean(
|
||||
'layout-frozen', 'Layout frozen', 'Layout frozen',
|
||||
'layout-frozen', null, null,
|
||||
GObject.ParamFlags.READWRITE,
|
||||
false),
|
||||
},
|
||||
|
@ -149,7 +149,7 @@ class WorkspaceGroup extends Clutter.Actor {
|
||||
export const MonitorGroup = GObject.registerClass({
|
||||
Properties: {
|
||||
'progress': GObject.ParamSpec.double(
|
||||
'progress', 'progress', 'progress',
|
||||
'progress', null, null,
|
||||
GObject.ParamFlags.READWRITE,
|
||||
-Infinity, Infinity, 0),
|
||||
},
|
||||
|
@ -224,11 +224,11 @@ export const ThumbnailState = {
|
||||
export const WorkspaceThumbnail = GObject.registerClass({
|
||||
Properties: {
|
||||
'collapse-fraction': GObject.ParamSpec.double(
|
||||
'collapse-fraction', 'collapse-fraction', 'collapse-fraction',
|
||||
'collapse-fraction', null, null,
|
||||
GObject.ParamFlags.READWRITE,
|
||||
0, 1, 0),
|
||||
'slide-position': GObject.ParamSpec.double(
|
||||
'slide-position', 'slide-position', 'slide-position',
|
||||
'slide-position', null, null,
|
||||
GObject.ParamFlags.READWRITE,
|
||||
0, 1, 0),
|
||||
},
|
||||
@ -574,15 +574,15 @@ export const WorkspaceThumbnail = GObject.registerClass({
|
||||
export const ThumbnailsBox = GObject.registerClass({
|
||||
Properties: {
|
||||
'expand-fraction': GObject.ParamSpec.double(
|
||||
'expand-fraction', 'expand-fraction', 'expand-fraction',
|
||||
'expand-fraction', null, null,
|
||||
GObject.ParamFlags.READWRITE,
|
||||
0, 1, 1),
|
||||
'scale': GObject.ParamSpec.double(
|
||||
'scale', 'scale', 'scale',
|
||||
'scale', null, null,
|
||||
GObject.ParamFlags.READWRITE,
|
||||
0, Infinity, 0),
|
||||
'should-show': GObject.ParamSpec.boolean(
|
||||
'should-show', 'should-show', 'should-show',
|
||||
'should-show', null, null,
|
||||
GObject.ParamFlags.READABLE,
|
||||
true),
|
||||
},
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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));
|
||||
}
|
||||
|
@ -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));
|
||||
}
|
||||
|
@ -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);
|
||||
|
@ -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 |
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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 |
|
||||
|
@ -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 |
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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));
|
||||
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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));
|
||||
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -151,9 +151,7 @@ shew_external_window_class_init (ShewExternalWindowClass *klass)
|
||||
|
||||
g_object_class_install_property (object_class,
|
||||
PROP_DISPLAY,
|
||||
g_param_spec_object ("display",
|
||||
"GdkDisplay",
|
||||
"The GdkDisplay instance",
|
||||
g_param_spec_object ("display", NULL, NULL,
|
||||
GDK_TYPE_DISPLAY,
|
||||
G_PARAM_READWRITE |
|
||||
G_PARAM_CONSTRUCT_ONLY |
|
||||
|
@ -212,9 +212,7 @@ shew_window_exporter_class_init (ShewWindowExporterClass *klass)
|
||||
|
||||
g_object_class_install_property (object_class,
|
||||
PROP_WINDOW,
|
||||
g_param_spec_object ("window",
|
||||
"GtkWindow",
|
||||
"The GtkWindow to export",
|
||||
g_param_spec_object ("window", NULL, NULL,
|
||||
GTK_TYPE_WINDOW,
|
||||
G_PARAM_READWRITE |
|
||||
G_PARAM_CONSTRUCT_ONLY |
|
||||
|
@ -21,7 +21,7 @@ class Object1 {
|
||||
class GObject1 extends GObject.Object {
|
||||
static [GObject.properties] = {
|
||||
'plonked': GObject.ParamSpec.boolean(
|
||||
'plonked', '', '',
|
||||
'plonked', null, null,
|
||||
GObject.ParamFlags.READWRITE,
|
||||
false),
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user