[gnome-shell] panel-buttons: Remove transitions for corner buttons
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] panel-buttons: Remove transitions for corner buttons
- Date: Mon, 21 Feb 2011 16:55:38 +0000 (UTC)
commit 526384320ebc8155dcdefd039c7b6a0928f95381
Author: Florian Müllner <fmuellner gnome org>
Date: Fri Feb 18 02:33:41 2011 +0100
panel-buttons: Remove transitions for corner buttons
So far transitions do not work for the custom drawn corners, so to
avoid a visible glitch when transitioning a button in the panel corner
while updating the style of the apparently attached corner instantly,
remove transition of those panel buttons until we make it work for the
custom drawn parts as well.
https://bugzilla.gnome.org/show_bug.cgi?id=642697
data/theme/gnome-shell.css | 6 ++++++
js/ui/panel.js | 1 +
2 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/data/theme/gnome-shell.css b/data/theme/gnome-shell.css
index 843587b..729c51f 100644
--- a/data/theme/gnome-shell.css
+++ b/data/theme/gnome-shell.css
@@ -269,10 +269,16 @@ StTooltip StLabel {
icon-shadow: black 0px 2px 2px;
}
+/* The rounded panel corners we draw don't
+ * support transitions, so disable transitions
+ * for the buttons at the left/right edges
+ */
#panelActivities {
+ transition-duration: 0;
}
#panelStatus {
+ transition-duration: 0;
}
#panelStatusMenu {
diff --git a/js/ui/panel.js b/js/ui/panel.js
index c1da9e4..f45af43 100644
--- a/js/ui/panel.js
+++ b/js/ui/panel.js
@@ -871,6 +871,7 @@ Panel.prototype = {
this._rightBox.add(this._statusBox);
this._statusmenu = new StatusMenu.StatusMenuButton();
+ this._statusmenu.actor.name = 'panelStatus';
this._menus.addMenu(this._statusmenu.menu);
this._rightBox.add(this._statusmenu.actor);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]