messageTray: Remove addBody as a public API
As it's unused.
This commit is contained in:
parent
a6aabb1d3a
commit
a07e8bbf37
@ -444,15 +444,14 @@ const NotificationApplicationPolicy = new Lang.Class({
|
|||||||
// unless 'customContent' parameter with the value 'true' is specified
|
// unless 'customContent' parameter with the value 'true' is specified
|
||||||
// in @params.
|
// in @params.
|
||||||
//
|
//
|
||||||
// Additional notification content can be added with addActor() and
|
// Additional notification content can be added with addActor(). The
|
||||||
// addBody() methods. The notification content is put inside a
|
// notification content is put inside a scrollview, so if it gets too
|
||||||
// scrollview, so if it gets too tall, the notification will scroll
|
// tall, the notification will scroll rather than continue to grow.
|
||||||
// rather than continue to grow. In addition to this main content
|
// In addition to this main content area, there is also a single-row
|
||||||
// area, there is also a single-row action area, which is not
|
// action area, which is not scrolled and can contain a single actor.
|
||||||
// scrolled and can contain a single actor. The action area can
|
// The action area can be set by calling setActionArea() method. There
|
||||||
// be set by calling setActionArea() method. There is also a
|
// is also a convenience method addButton() for adding a button to the
|
||||||
// convenience method addButton() for adding a button to the action
|
// action area.
|
||||||
// area.
|
|
||||||
//
|
//
|
||||||
// If @params contains a 'customContent' parameter with the value %true,
|
// If @params contains a 'customContent' parameter with the value %true,
|
||||||
// then @banner will not be shown in the body of the notification when the
|
// then @banner will not be shown in the body of the notification when the
|
||||||
@ -710,25 +709,11 @@ const Notification = new Lang.Class({
|
|||||||
this.updated();
|
this.updated();
|
||||||
},
|
},
|
||||||
|
|
||||||
// addBody:
|
|
||||||
// @text: the text
|
|
||||||
// @markup: %true if @text contains pango markup
|
|
||||||
// @style: style to use when adding the actor containing the text
|
|
||||||
//
|
|
||||||
// Adds a multi-line label containing @text to the notification.
|
|
||||||
//
|
|
||||||
// Return value: the newly-added label
|
|
||||||
addBody: function(text, markup, style) {
|
|
||||||
let label = new URLHighlighter(text, true, markup);
|
|
||||||
|
|
||||||
this.addActor(label.actor, style);
|
|
||||||
return label.actor;
|
|
||||||
},
|
|
||||||
|
|
||||||
_addBannerBody: function() {
|
_addBannerBody: function() {
|
||||||
if (this.bannerBodyText && !this._bannerBodyAdded) {
|
if (this.bannerBodyText && !this._bannerBodyAdded) {
|
||||||
|
let label = new URLHighlighter(this.bannerBodyText, true, this.bannerBodyMarkup);
|
||||||
|
this.addActor(label.actor);
|
||||||
this._bannerBodyAdded = true;
|
this._bannerBodyAdded = true;
|
||||||
this.addBody(this.bannerBodyText, this.bannerBodyMarkup);
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user