Add ISO week dates to the calendar
This patch adds ISO week dates to the calendar. Week dates are an often used feature in business and government offices. Can be turned on through gconf, off by default. https://bugzilla.gnome.org/show_bug.cgi?id=603532
This commit is contained in:

committed by
Florian Müllner

parent
155bee388d
commit
e3eaa69948
@ -1268,6 +1268,7 @@ CalendarPopup.prototype = {
|
||||
Main.chrome.addActor(this.actor, { visibleInOverview: true,
|
||||
affectsStruts: false });
|
||||
this.actor.y = (panelActor.y + panelActor.height - this.actor.height);
|
||||
this.calendar.actor.connect('notify::width', Lang.bind(this, this._centerPopup));
|
||||
},
|
||||
|
||||
show: function() {
|
||||
@ -1276,7 +1277,7 @@ CalendarPopup.prototype = {
|
||||
// Reset the calendar to today's date
|
||||
this.calendar.setDate(new Date());
|
||||
|
||||
this.actor.x = Math.round(panelActor.x + (panelActor.width - this.actor.width) / 2);
|
||||
this._centerPopup();
|
||||
this.actor.lower(panelActor);
|
||||
this.actor.show();
|
||||
Tweener.addTween(this.actor,
|
||||
@ -1296,5 +1297,10 @@ CalendarPopup.prototype = {
|
||||
onComplete: function() { this.actor.hide(); },
|
||||
onCompleteScope: this
|
||||
});
|
||||
},
|
||||
|
||||
_centerPopup: function() {
|
||||
let panelActor = Main.panel.actor;
|
||||
this.actor.x = Math.round(panelActor.x + (panelActor.width - this.actor.width) / 2);
|
||||
}
|
||||
};
|
||||
|
Reference in New Issue
Block a user