|
Lines 446-452
Notification.prototype = {
Link Here
|
| 446 |
this._imageBin = null; |
446 |
this._imageBin = null; |
| 447 |
this._timestamp = new Date(); |
447 |
this._timestamp = new Date(); |
| 448 |
this._inNotificationBin = false; |
448 |
this._inNotificationBin = false; |
| 449 |
this.dateFormat = _("%l:%M %p"); |
|
|
| 450 |
|
449 |
|
| 451 |
this.enter_id = 0; |
450 |
this.enter_id = 0; |
| 452 |
this.leave_id = 0; |
451 |
this.leave_id = 0; |
|
Lines 588-594
Notification.prototype = {
Link Here
|
| 588 |
this.title = title; |
587 |
this.title = title; |
| 589 |
title = title ? _fixMarkup(title.replace(/\n/g, ' '), params.titleMarkup) : ''; |
588 |
title = title ? _fixMarkup(title.replace(/\n/g, ' '), params.titleMarkup) : ''; |
| 590 |
this._titleLabel.clutter_text.set_markup('<b>' + title + '</b>'); |
589 |
this._titleLabel.clutter_text.set_markup('<b>' + title + '</b>'); |
| 591 |
this._timeLabel.clutter_text.set_markup(this._timestamp.toLocaleTimeString(this.dateFormat)); |
590 |
this._timeLabel.clutter_text.set_markup(this._timestamp.toLocaleTimeString()); |
| 592 |
this._timeLabel.hide(); |
591 |
this._timeLabel.hide(); |
| 593 |
if (Pango.find_base_dir(title, -1) == Pango.Direction.RTL) |
592 |
if (Pango.find_base_dir(title, -1) == Pango.Direction.RTL) |
| 594 |
this._titleDirection = St.TextDirection.RTL; |
593 |
this._titleDirection = St.TextDirection.RTL; |