Инструменты пользователя

Инструменты сайта


сисадмин:удалить_кнопку_suspend_в_gnome-shell

Удалить кнопку suspend в gnome-shell

gnome-shell 3.10.4
файл /usr/share/gnome-shell/js/ui/status/system.js
this._suspendAction = this._createActionButton('media-playback-pause-symbolic', _("Suspend"));
this._suspendAction.connect('clicked', Lang.bind(this, this._onSuspendClicked));
 
this._powerOffAction = this._createActionButton('system-shutdown-symbolic', _("Power Off"));
this._powerOffAction.connect('clicked', Lang.bind(this, this._onPowerOffClicked));
 
this._altSwitcher = new AltSwitcher(this._powerOffAction, this._suspendAction);
 
- item.actor.add(this._altSwitcher.actor, { expand: true, x_fill: false });
+ item.actor.add(this._powerOffAction, { expand: true, x_fill: false });
сисадмин/удалить_кнопку_suspend_в_gnome-shell.txt · Последнее изменение: 2015.02.23 22:15 — 127.0.0.1