[gnome-shell/wip/gdm-shell: 3/6] wip: don't require calendar to be 600px wide in one column mode
- From: Ray Strode <halfline src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/gdm-shell: 3/6] wip: don't require calendar to be 600px wide in one column mode
- Date: Thu, 30 Jun 2011 02:05:46 +0000 (UTC)
commit eb411d654c1ddbdae580e39bbbfcf9f286b3715d
Author: Ray Strode <rstrode redhat com>
Date: Tue Jun 28 08:57:19 2011 -0400
wip: don't require calendar to be 600px wide in one column mode
data/theme/gnome-shell.css | 6 +++---
js/ui/dateMenu.js | 5 +++--
2 files changed, 6 insertions(+), 5 deletions(-)
---
diff --git a/data/theme/gnome-shell.css b/data/theme/gnome-shell.css
index c63c362..d90f3d3 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 708ed77..91812ad 100644
--- a/js/ui/dateMenu.js
+++ b/js/ui/dateMenu.js
@@ -62,7 +62,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
@@ -107,7 +107,8 @@ DateMenuButton.prototype = {
// 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]