Compare commits

...

6 Commits

Author SHA1 Message Date
Giovanni Campagna 6094c21634 Bump version to 3.9.1
To go along GNOME Shell 3.9.1
2013-05-01 00:46:47 +02:00
Giovanni Campagna 5052c6d350 windowsNavigator: update for gnome-shell changes
The position of a workspace is not part of a geometry object.
2013-05-01 00:45:06 +02:00
Florian Müllner f38d61b4c9 window-list: Use notify::n-workspaces to recreate workspace menu
When the number of workspaces changes, we clear the existing menu
and recreate it based on the screen::n-workspaces property, so it
is slightly more correct to track changes to the property directly
instead of using the workspace-added/workspace-removed signals.
This change also fixes a corner case, where changes to the property
before workspaces are initialized are missed and we end up with the
wrong number of workspaces.

https://bugzilla.gnome.org/show_bug.cgi?id=699350
2013-04-30 21:54:05 +02:00
Florian Müllner 8ba3bedd20 workspace-indicator: Adjust to PopupMenu API change
setShowDot() has become setOrnament()

https://bugzilla.gnome.org/show_bug.cgi?id=699335
2013-04-30 17:49:49 +02:00
Florian Müllner d903f1f15b xrandr-indicator: Adjust to PopupMenu API change
setShowDot() has become setOrnament()

https://bugzilla.gnome.org/show_bug.cgi?id=699335
2013-04-30 17:49:49 +02:00
Florian Müllner 8628addfc9 window-list: Adjust to PopupMenu API change
setShowDot() has become setOrnament().

https://bugzilla.gnome.org/show_bug.cgi?id=699335
2013-04-30 17:49:48 +02:00
6 changed files with 31 additions and 13 deletions
+7
View File
@@ -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 3.8.1
===== =====
* many improvements to window-list: * many improvements to window-list:
+1 -1
View File
@@ -1,5 +1,5 @@
AC_PREREQ(2.63) 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_MACRO_DIR([m4])
AC_CONFIG_AUX_DIR([config]) AC_CONFIG_AUX_DIR([config])
+4 -5
View File
@@ -390,8 +390,7 @@ const WorkspaceIndicator = new Lang.Class({
this.workspacesItems = []; this.workspacesItems = [];
this._screenSignals = []; this._screenSignals = [];
this._screenSignals.push(global.screen.connect_after('workspace-added', 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-removed', Lang.bind(this,this._updateMenu)));
this._screenSignals.push(global.screen.connect_after('workspace-switched', Lang.bind(this,this._updateIndicator))); this._screenSignals.push(global.screen.connect_after('workspace-switched', Lang.bind(this,this._updateIndicator)));
this.actor.connect('scroll-event', Lang.bind(this, this._onScrollEvent)); this.actor.connect('scroll-event', Lang.bind(this, this._onScrollEvent));
@@ -414,9 +413,9 @@ const WorkspaceIndicator = new Lang.Class({
}, },
_updateIndicator: function() { _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._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()); this.statusLabel.set_text(this._getStatusText());
}, },
@@ -443,7 +442,7 @@ const WorkspaceIndicator = new Lang.Class({
})); }));
if (i == this._currentWorkspace) if (i == this._currentWorkspace)
item.setShowDot(true); item.setOrnament(PopupMenu.Ornament.DOT);
this.menu.addMenuItem(item); this.menu.addMenuItem(item);
this.workspacesItems[i] = item; this.workspacesItems[i] = item;
+15 -3
View File
@@ -47,11 +47,23 @@ function enable() {
winInjections['hideTooltip'] = undefined; winInjections['hideTooltip'] = undefined;
Workspace.Workspace.prototype.showTooltip = function() { Workspace.Workspace.prototype.showTooltip = function() {
if (this._tip == null) if (this._tip == null || this._actualGeometry == null)
return; return;
this._tip.text = (this.metaWorkspace.index() + 1).toString(); 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.show();
this._tip.raise_top(); this._tip.raise_top();
} }
+3 -3
View File
@@ -66,9 +66,9 @@ const WorkspaceIndicator = new Lang.Class({
}, },
_updateIndicator: function() { _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._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()); this.statusLabel.set_text(this._labelText());
}, },
@@ -98,7 +98,7 @@ const WorkspaceIndicator = new Lang.Class({
})); }));
if (i == this._currentWorkspace) if (i == this._currentWorkspace)
this.workspacesItems[i].setShowDot(true); this.workspacesItems[i].setOrnament(PopupMenu.Ornament.DOT);
} }
this.statusLabel.set_text(this._labelText()); this.statusLabel.set_text(this._labelText());
+1 -1
View File
@@ -94,7 +94,7 @@ const Indicator = new Lang.Class({
if (bitmask & allowedRotations) { if (bitmask & allowedRotations) {
let item = new PopupMenu.PopupMenuItem(Gettext.gettext(name)); let item = new PopupMenu.PopupMenuItem(Gettext.gettext(name));
if (bitmask & currentRotation) if (bitmask & currentRotation)
item.setShowDot(true); item.setOrnament(PopupMenu.Ornament.DOT);
item.connect('activate', Lang.bind(this, function(item, event) { item.connect('activate', Lang.bind(this, function(item, event) {
/* ensure config is saved so we get a backup if anything goes wrong */ /* ensure config is saved so we get a backup if anything goes wrong */
config.save(); config.save();