Compare commits

..

3 Commits
3.9.1 ... 3.8.2

Author SHA1 Message Date
Giovanni Campagna
3c100c393a Bump version to 3.8.2
To go along GNOME Shell 3.8.2
2013-05-14 07:16:36 +02:00
Florian Müllner
2e1856ab34 window-list: Make bottom panel taller in classic mode
Consider additional borders in classic styling for the panel height.

https://bugzilla.gnome.org/show_bug.cgi?id=698169
2013-05-13 22:02:27 +02:00
Florian Müllner
0861745de4 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:54 +02:00
7 changed files with 16 additions and 27 deletions

7
NEWS
View File

@@ -1,8 +1,7 @@
3.9.1
3.8.2
=====
* updates to window-list, xrandr-indicator,
workspace-indicator, windowsNavigator for gnome-shell
changes
* window-list: fix styling in classic mode
* window-list: code cleanups
* translation updates (cs, es, lt, pl, pt_BR, sl)
3.8.1

View File

@@ -1,5 +1,5 @@
AC_PREREQ(2.63)
AC_INIT([gnome-shell-extensions],[3.9.1],[https://bugzilla.gnome.org/enter_bug.cgi?product=gnome-shell&component=extensions])
AC_INIT([gnome-shell-extensions],[3.8.2],[https://bugzilla.gnome.org/enter_bug.cgi?product=gnome-shell&component=extensions])
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_AUX_DIR([config])

View File

@@ -3,6 +3,7 @@
#panel.bottom-panel {
border-top-width: 1px;
border-bottom-width: 0px;
height: 32px !important;
}
.bottom-panel .window-button > StWidget {
@@ -11,6 +12,7 @@
background-gradient-end: #d0d0d0;
color: #555 !important;
border-radius: 2px !important;
padding: 4px 6px 2px !important;
text-shadow: 0 0 transparent;
box-shadow: inset -1px -1px 1px rgba(0,0,0,0.5) !important;
}

View File

@@ -413,9 +413,9 @@ const WorkspaceIndicator = new Lang.Class({
},
_updateIndicator: function() {
this.workspacesItems[this._currentWorkspace].setOrnament(PopupMenu.Ornament.NONE);
this.workspacesItems[this._currentWorkspace].setShowDot(false);
this._currentWorkspace = global.screen.get_active_workspace().index();
this.workspacesItems[this._currentWorkspace].setOrnament(PopupMenu.Ornament.DOT);
this.workspacesItems[this._currentWorkspace].setShowDot(true);
this.statusLabel.set_text(this._getStatusText());
},
@@ -442,7 +442,7 @@ const WorkspaceIndicator = new Lang.Class({
}));
if (i == this._currentWorkspace)
item.setOrnament(PopupMenu.Ornament.DOT);
item.setShowDot(true);
this.menu.addMenuItem(item);
this.workspacesItems[i] = item;

View File

@@ -47,23 +47,11 @@ function enable() {
winInjections['hideTooltip'] = undefined;
Workspace.Workspace.prototype.showTooltip = function() {
if (this._tip == null || this._actualGeometry == null)
if (this._tip == null)
return;
this._tip.text = (this.metaWorkspace.index() + 1).toString();
// 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.x = this._x;
this._tip.y = this._y;
this._tip.show();
this._tip.raise_top();
}

View File

@@ -66,9 +66,9 @@ const WorkspaceIndicator = new Lang.Class({
},
_updateIndicator: function() {
this.workspacesItems[this._currentWorkspace].setOrnament(PopupMenu.Ornament.NONE);
this.workspacesItems[this._currentWorkspace].setShowDot(false);
this._currentWorkspace = global.screen.get_active_workspace().index();
this.workspacesItems[this._currentWorkspace].setOrnament(PopupMenu.Ornament.DOT);
this.workspacesItems[this._currentWorkspace].setShowDot(true);
this.statusLabel.set_text(this._labelText());
},
@@ -98,7 +98,7 @@ const WorkspaceIndicator = new Lang.Class({
}));
if (i == this._currentWorkspace)
this.workspacesItems[i].setOrnament(PopupMenu.Ornament.DOT);
this.workspacesItems[i].setShowDot(true);
}
this.statusLabel.set_text(this._labelText());

View File

@@ -94,7 +94,7 @@ const Indicator = new Lang.Class({
if (bitmask & allowedRotations) {
let item = new PopupMenu.PopupMenuItem(Gettext.gettext(name));
if (bitmask & currentRotation)
item.setOrnament(PopupMenu.Ornament.DOT);
item.setShowDot(true);
item.connect('activate', Lang.bind(this, function(item, event) {
/* ensure config is saved so we get a backup if anything goes wrong */
config.save();