dateMenu: Force min-width 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 there 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.  We don't currently ever hide
the events area, but we will in the future.

This commit moves the min-width restriction from the menu
specifically to the events area.

https://bugzilla.gnome.org/show_bug.cgi?id=657082
This commit is contained in:
Ray Strode 2011-06-28 08:57:19 -04:00
parent 388cfa3695
commit 5be9326192
2 changed files with 6 additions and 6 deletions

View File

@ -836,9 +836,9 @@ StTooltip StLabel {
/* Calendar popup */ /* Calendar popup */
#calendarArea { #calendarEventsArea {
/* this is the width of the entire popup */ /* this is the width of the second column of the popup */
min-width: 600px; min-width: 400px;
} }
.calendar-vertical-separator { .calendar-vertical-separator {

View File

@ -61,7 +61,7 @@ DateMenuButton.prototype = {
this._clock = new St.Label(); this._clock = new St.Label();
this.actor.set_child(this._clock); this.actor.set_child(this._clock);
hbox = new St.BoxLayout({name: 'calendarArea'}); hbox = new St.BoxLayout({name: 'calendarArea' });
this.menu.addActor(hbox); this.menu.addActor(hbox);
// Fill up the first column // Fill up the first column
@ -101,8 +101,8 @@ DateMenuButton.prototype = {
hbox.add(item); hbox.add(item);
// Fill up the second column // Fill up the second column
vbox = new St.BoxLayout({name: 'calendarEventsArea',
vbox = new St.BoxLayout({vertical: true}); vertical: true});
hbox.add(vbox, { expand: true }); hbox.add(vbox, { expand: true });
// Event list // Event list