[gnome-shell/datetime] Hard-code width of calendar popup to 600px and fix ellipsis for events



commit 858e1b7f5b99ab4adbc8e9cfdfea89dc429fed67
Author: David Zeuthen <davidz redhat com>
Date:   Wed Jan 26 14:34:13 2011 -0500

    Hard-code width of calendar popup to 600px and fix ellipsis for events
    
    We might want the width to be expressed in em or in % of the available
    monitor width. Or perhaps a combination of all three. I don't know.
    
    Signed-off-by: David Zeuthen <davidz redhat com>

 data/theme/gnome-shell.css |    7 +++++--
 js/ui/dateMenu.js          |    2 +-
 2 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/data/theme/gnome-shell.css b/data/theme/gnome-shell.css
index d8ff013..f16e337 100644
--- a/data/theme/gnome-shell.css
+++ b/data/theme/gnome-shell.css
@@ -674,6 +674,11 @@ StTooltip StLabel {
 
 /* Calendar popup */
 
+#calendarArea {
+    /* this is the width of the entire popup */
+    width: 600px;
+}
+
 .calendar-vertical-separator {
     -stipple-width: 1px;
     -stipple-color: #505050;
@@ -810,7 +815,6 @@ StTooltip StLabel {
 
 .events-header-vbox {
     spacing: 10px;
-    width: 300px;
 }
 
 .events-header {
@@ -854,7 +858,6 @@ StTooltip StLabel {
 }
 
 .events-event-box {
-    width: 200px;
 }
 
 .open-calendar {
diff --git a/js/ui/dateMenu.js b/js/ui/dateMenu.js
index fd65c1f..b790e11 100644
--- a/js/ui/dateMenu.js
+++ b/js/ui/dateMenu.js
@@ -65,7 +65,7 @@ DateMenuButton.prototype = {
         this._clock = new St.Label();
         this.actor.set_child(this._clock);
 
-        hbox = new St.BoxLayout();
+        hbox = new St.BoxLayout({name: 'calendarArea'});
         this.menu.addActor(hbox);
 
         // Fill up the first column



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]