Compare commits

..

3 Commits

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
+3 -4
View File
@@ -1,8 +1,7 @@
3.9.1 3.8.2
===== =====
* updates to window-list, xrandr-indicator, * window-list: fix styling in classic mode
workspace-indicator, windowsNavigator for gnome-shell * window-list: code cleanups
changes
* translation updates (cs, es, lt, pl, pt_BR, sl) * translation updates (cs, es, lt, pl, pt_BR, sl)
3.8.1 3.8.1
+1 -1
View File
@@ -1,5 +1,5 @@
AC_PREREQ(2.63) 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_MACRO_DIR([m4])
AC_CONFIG_AUX_DIR([config]) AC_CONFIG_AUX_DIR([config])
+2
View File
@@ -3,6 +3,7 @@
#panel.bottom-panel { #panel.bottom-panel {
border-top-width: 1px; border-top-width: 1px;
border-bottom-width: 0px; border-bottom-width: 0px;
height: 32px !important;
} }
.bottom-panel .window-button > StWidget { .bottom-panel .window-button > StWidget {
@@ -11,6 +12,7 @@
background-gradient-end: #d0d0d0; background-gradient-end: #d0d0d0;
color: #555 !important; color: #555 !important;
border-radius: 2px !important; border-radius: 2px !important;
padding: 4px 6px 2px !important;
text-shadow: 0 0 transparent; text-shadow: 0 0 transparent;
box-shadow: inset -1px -1px 1px rgba(0,0,0,0.5) !important; box-shadow: inset -1px -1px 1px rgba(0,0,0,0.5) !important;
} }
+3 -3
View File
@@ -413,9 +413,9 @@ const WorkspaceIndicator = new Lang.Class({
}, },
_updateIndicator: function() { _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._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()); this.statusLabel.set_text(this._getStatusText());
}, },
@@ -442,7 +442,7 @@ const WorkspaceIndicator = new Lang.Class({
})); }));
if (i == this._currentWorkspace) if (i == this._currentWorkspace)
item.setOrnament(PopupMenu.Ornament.DOT); item.setShowDot(true);
this.menu.addMenuItem(item); this.menu.addMenuItem(item);
this.workspacesItems[i] = item; this.workspacesItems[i] = item;
+3 -15
View File
@@ -47,23 +47,11 @@ function enable() {
winInjections['hideTooltip'] = undefined; winInjections['hideTooltip'] = undefined;
Workspace.Workspace.prototype.showTooltip = function() { Workspace.Workspace.prototype.showTooltip = function() {
if (this._tip == null || this._actualGeometry == null) if (this._tip == null)
return; return;
this._tip.text = (this.metaWorkspace.index() + 1).toString(); this._tip.text = (this.metaWorkspace.index() + 1).toString();
this._tip.x = this._x;
// Hand code this instead of using _getSpacingAndPadding this._tip.y = this._y;
// 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].setOrnament(PopupMenu.Ornament.NONE); this.workspacesItems[this._currentWorkspace].setShowDot(false);
this._currentWorkspace = global.screen.get_active_workspace().index(); 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()); 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].setOrnament(PopupMenu.Ornament.DOT); this.workspacesItems[i].setShowDot(true);
} }
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.setOrnament(PopupMenu.Ornament.DOT); item.setShowDot(true);
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();