[gnome-shell/wip/gdm-shell: 1/4] dateMenu: force min size of events area, not whole menu
- From: Ray Strode <halfline src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/gdm-shell: 1/4] dateMenu: force min size of events area, not whole menu
- Date: Wed, 6 Jul 2011 05:22:33 +0000 (UTC)
commit e9468ea4d3cbf5aa8e9004bd7bb716c3376d467d
Author: Ray Strode <rstrode redhat com>
Date: Tue Jun 28 08:57:19 2011 -0400
dateMenu: force min size of events area, not whole menu
The theme currently hard codes the minimum size of the calendar
menu to make sure there's a designated area for events
(even if their isn't anything currently scheduled).
A side-effect of the hard coded minimum width is that
if the events area is hidden, the menu ends up much
bigger than the calendar.
This commit moves the min-width restriction from the menu
specifically to the events area.
data/theme/gnome-shell.css | 6 +++---
js/ui/dateMenu.js | 6 +++---
2 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/data/theme/gnome-shell.css b/data/theme/gnome-shell.css
index 7e7e786..4c6ae9e 100644
--- a/data/theme/gnome-shell.css
+++ b/data/theme/gnome-shell.css
@@ -797,9 +797,9 @@ StTooltip StLabel {
/* Calendar popup */
-#calendarArea {
- /* this is the width of the entire popup */
- min-width: 600px;
+#calendarEventsArea {
+ /* this is the width of the second column of the popup */
+ min-width: 400px;
}
.calendar-vertical-separator {
diff --git a/js/ui/dateMenu.js b/js/ui/dateMenu.js
index a6a5196..41f56f0 100644
--- a/js/ui/dateMenu.js
+++ b/js/ui/dateMenu.js
@@ -60,7 +60,7 @@ DateMenuButton.prototype = {
this._clock = new St.Label();
this.actor.set_child(this._clock);
- hbox = new St.BoxLayout({name: 'calendarArea'});
+ hbox = new St.BoxLayout();
this.menu.addActor(hbox);
// Fill up the first column
@@ -99,8 +99,8 @@ DateMenuButton.prototype = {
hbox.add(item);
// Fill up the second column
-
- vbox = new St.BoxLayout({vertical: true});
+ vbox = new St.BoxLayout({ name: 'calendarEventsArea',
+ vertical: true});
hbox.add(vbox, { expand: true });
// Event list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]