[gnome-shell] dateMenu: Update visibility syncing for new dateMenu layout
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] dateMenu: Update visibility syncing for new dateMenu layout
- Date: Mon, 24 Jun 2013 19:14:14 +0000 (UTC)
commit 929636ebd0b8f428fbedb771e4123dc04f7242a1
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Mon Jun 24 15:03:29 2013 -0400
dateMenu: Update visibility syncing for new dateMenu layout
The code here before was trying to play hierarchy tricks to
figure out how to show / hide the events list, which broke
when we rearranged how the date menu was laid out. Simplify
the code here to not be so tricky, and update the CSS to
match the new designs.
https://bugzilla.gnome.org/show_bug.cgi?id=702849
data/theme/gnome-shell.css | 5 -----
js/ui/dateMenu.js | 13 ++++++-------
2 files changed, 6 insertions(+), 12 deletions(-)
---
diff --git a/data/theme/gnome-shell.css b/data/theme/gnome-shell.css
index 0216846..72e1477 100644
--- a/data/theme/gnome-shell.css
+++ b/data/theme/gnome-shell.css
@@ -1154,11 +1154,6 @@ StScrollBar StButton#vhandle:active {
/* Calendar popup */
-#calendarArea {
- /* this is the total width of the popup */
- width: 720px;
-}
-
.calendar-vertical-separator {
-stipple-width: 1px;
-stipple-color: #505050;
diff --git a/js/ui/dateMenu.js b/js/ui/dateMenu.js
index 08c644a..85a0ade 100644
--- a/js/ui/dateMenu.js
+++ b/js/ui/dateMenu.js
@@ -153,15 +153,14 @@ const DateMenuButton = new Lang.Class({
this._openClocksItem.actor.visible = visible &&
(this._getClockApp() != null);
this._separator.visible = visible;
+ this._eventList.actor.visible = visible;
if (visible) {
- let alignment = 0.25;
- if (Clutter.get_default_text_direction() == Clutter.TextDirection.RTL)
- alignment = 1.0 - alignment;
- this.menu._arrowAlignment = alignment;
- this._eventList.actor.get_parent().show();
+ let alignment = 0.25;
+ if (Clutter.get_default_text_direction() == Clutter.TextDirection.RTL)
+ alignment = 1.0 - alignment;
+ this.menu._arrowAlignment = alignment;
} else {
- this.menu._arrowAlignment = 0.5;
- this._eventList.actor.get_parent().hide();
+ this.menu._arrowAlignment = 0.5;
}
},
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]