~ubuntu-branches/ubuntu/saucy/gnome-shell/saucy-proposed

« back to all changes in this revision

Viewing changes to js/ui/dateMenu.js

Tags: upstream-3.3.90
ImportĀ upstreamĀ versionĀ 3.3.90

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
    cr.stroke();
41
41
};
42
42
 
43
 
function DateMenuButton() {
44
 
    this._init.apply(this, arguments);
45
 
}
46
 
 
47
 
DateMenuButton.prototype = {
48
 
    __proto__: PanelMenu.Button.prototype,
 
43
const DateMenuButton = new Lang.Class({
 
44
    Name: 'DateMenuButton',
 
45
    Extends: PanelMenu.Button,
49
46
 
50
47
    _init: function(params) {
51
48
        params = Params.parse(params, { showEvents: true });
57
54
        let menuAlignment = 0.25;
58
55
        if (St.Widget.get_default_direction() == St.TextDirection.RTL)
59
56
            menuAlignment = 1.0 - menuAlignment;
60
 
        PanelMenu.Button.prototype._init.call(this, menuAlignment);
 
57
        this.parent(menuAlignment);
61
58
 
62
59
        this._clock = new St.Label();
63
60
        this.actor.add_actor(this._clock);
72
69
 
73
70
        // Date
74
71
        this._date = new St.Label();
 
72
        this.actor.label_actor = this._date;
75
73
        this._date.style_class = 'datemenu-date-label';
76
74
        vbox.add(this._date);
77
75
 
239
237
            }
240
238
        }
241
239
    }
242
 
};
 
240
});