Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6094c21634 | ||
|
|
5052c6d350 | ||
|
|
f38d61b4c9 | ||
|
|
8ba3bedd20 | ||
|
|
d903f1f15b | ||
|
|
8628addfc9 |
7
NEWS
7
NEWS
@@ -1,3 +1,10 @@
|
||||
3.9.1
|
||||
=====
|
||||
* updates to window-list, xrandr-indicator,
|
||||
workspace-indicator, windowsNavigator for gnome-shell
|
||||
changes
|
||||
* translation updates (cs, es, lt, pl, pt_BR, sl)
|
||||
|
||||
3.8.1
|
||||
=====
|
||||
* many improvements to window-list:
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
AC_PREREQ(2.63)
|
||||
AC_INIT([gnome-shell-extensions],[3.8.1],[https://bugzilla.gnome.org/enter_bug.cgi?product=gnome-shell&component=extensions])
|
||||
AC_INIT([gnome-shell-extensions],[3.9.1],[https://bugzilla.gnome.org/enter_bug.cgi?product=gnome-shell&component=extensions])
|
||||
|
||||
AC_CONFIG_MACRO_DIR([m4])
|
||||
AC_CONFIG_AUX_DIR([config])
|
||||
|
||||
@@ -390,8 +390,7 @@ const WorkspaceIndicator = new Lang.Class({
|
||||
this.workspacesItems = [];
|
||||
|
||||
this._screenSignals = [];
|
||||
this._screenSignals.push(global.screen.connect_after('workspace-added', Lang.bind(this,this._updateMenu)));
|
||||
this._screenSignals.push(global.screen.connect_after('workspace-removed', Lang.bind(this,this._updateMenu)));
|
||||
this._screenSignals.push(global.screen.connect('notify::n-workspaces', Lang.bind(this,this._updateMenu)));
|
||||
this._screenSignals.push(global.screen.connect_after('workspace-switched', Lang.bind(this,this._updateIndicator)));
|
||||
|
||||
this.actor.connect('scroll-event', Lang.bind(this, this._onScrollEvent));
|
||||
@@ -414,9 +413,9 @@ const WorkspaceIndicator = new Lang.Class({
|
||||
},
|
||||
|
||||
_updateIndicator: function() {
|
||||
this.workspacesItems[this._currentWorkspace].setShowDot(false);
|
||||
this.workspacesItems[this._currentWorkspace].setOrnament(PopupMenu.Ornament.NONE);
|
||||
this._currentWorkspace = global.screen.get_active_workspace().index();
|
||||
this.workspacesItems[this._currentWorkspace].setShowDot(true);
|
||||
this.workspacesItems[this._currentWorkspace].setOrnament(PopupMenu.Ornament.DOT);
|
||||
|
||||
this.statusLabel.set_text(this._getStatusText());
|
||||
},
|
||||
@@ -443,7 +442,7 @@ const WorkspaceIndicator = new Lang.Class({
|
||||
}));
|
||||
|
||||
if (i == this._currentWorkspace)
|
||||
item.setShowDot(true);
|
||||
item.setOrnament(PopupMenu.Ornament.DOT);
|
||||
|
||||
this.menu.addMenuItem(item);
|
||||
this.workspacesItems[i] = item;
|
||||
|
||||
@@ -47,11 +47,23 @@ function enable() {
|
||||
winInjections['hideTooltip'] = undefined;
|
||||
|
||||
Workspace.Workspace.prototype.showTooltip = function() {
|
||||
if (this._tip == null)
|
||||
if (this._tip == null || this._actualGeometry == null)
|
||||
return;
|
||||
this._tip.text = (this.metaWorkspace.index() + 1).toString();
|
||||
this._tip.x = this._x;
|
||||
this._tip.y = this._y;
|
||||
|
||||
// Hand code this instead of using _getSpacingAndPadding
|
||||
// because that fails on empty workspaces
|
||||
let node = this.actor.get_theme_node();
|
||||
let padding = {
|
||||
left: node.get_padding(St.Side.LEFT),
|
||||
top: node.get_padding(St.Side.TOP),
|
||||
bottom: node.get_padding(St.Side.BOTTOM),
|
||||
right: node.get_padding(St.Side.RIGHT),
|
||||
};
|
||||
|
||||
let area = Workspace.padArea(this._actualGeometry, padding);
|
||||
this._tip.x = area.x;
|
||||
this._tip.y = area.y;
|
||||
this._tip.show();
|
||||
this._tip.raise_top();
|
||||
}
|
||||
|
||||
@@ -66,9 +66,9 @@ const WorkspaceIndicator = new Lang.Class({
|
||||
},
|
||||
|
||||
_updateIndicator: function() {
|
||||
this.workspacesItems[this._currentWorkspace].setShowDot(false);
|
||||
this.workspacesItems[this._currentWorkspace].setOrnament(PopupMenu.Ornament.NONE);
|
||||
this._currentWorkspace = global.screen.get_active_workspace().index();
|
||||
this.workspacesItems[this._currentWorkspace].setShowDot(true);
|
||||
this.workspacesItems[this._currentWorkspace].setOrnament(PopupMenu.Ornament.DOT);
|
||||
|
||||
this.statusLabel.set_text(this._labelText());
|
||||
},
|
||||
@@ -98,7 +98,7 @@ const WorkspaceIndicator = new Lang.Class({
|
||||
}));
|
||||
|
||||
if (i == this._currentWorkspace)
|
||||
this.workspacesItems[i].setShowDot(true);
|
||||
this.workspacesItems[i].setOrnament(PopupMenu.Ornament.DOT);
|
||||
}
|
||||
|
||||
this.statusLabel.set_text(this._labelText());
|
||||
|
||||
@@ -94,7 +94,7 @@ const Indicator = new Lang.Class({
|
||||
if (bitmask & allowedRotations) {
|
||||
let item = new PopupMenu.PopupMenuItem(Gettext.gettext(name));
|
||||
if (bitmask & currentRotation)
|
||||
item.setShowDot(true);
|
||||
item.setOrnament(PopupMenu.Ornament.DOT);
|
||||
item.connect('activate', Lang.bind(this, function(item, event) {
|
||||
/* ensure config is saved so we get a backup if anything goes wrong */
|
||||
config.save();
|
||||
|
||||
Reference in New Issue
Block a user