overview: Replace InfoBar with message tray notifications
The layout of recent mockups occupies the space previously reserved for the info bar with the view selector. As the bar's purpose is mainly to provide the user with feedback, it makes sense to use the existing message tray facility instead of moving the bar elsewhere. https://bugzilla.gnome.org/show_bug.cgi?id=634948
This commit is contained in:
@ -226,7 +226,7 @@ GenericWorkspacesView.prototype = {
|
||||
|
||||
addWorkspace: function() {
|
||||
if (!this.canAddWorkspace()) {
|
||||
Main.overview.infoBar.setMessage(_("Can't add a new workspace because maximum workspaces limit has been reached."));
|
||||
Main.overview.shellInfo.setMessage(_("Can't add a new workspace because maximum workspaces limit has been reached."));
|
||||
return null;
|
||||
}
|
||||
|
||||
@ -243,7 +243,7 @@ GenericWorkspacesView.prototype = {
|
||||
|
||||
removeWorkspace: function() {
|
||||
if (!this.canRemoveWorkspace()) {
|
||||
Main.overview.infoBar.setMessage(_("Can't remove the first workspace."));
|
||||
Main.overview.shellInfo.setMessage(_("Can't remove the first workspace."));
|
||||
return;
|
||||
}
|
||||
let index = this._getWorkspaceIndexToRemove();
|
||||
|
Reference in New Issue
Block a user