@@ -257,12 +257,10 @@ var Notification = class Notification {
257257 this . _actionArea = null ;
258258 this . _imageBin = null ;
259259 this . _timestamp = new Date ( ) ;
260- this . _inNotificationBin = false ;
261260
262261 source . connect ( 'destroy' , ( source , reason ) => { this . destroy ( reason ) } ) ;
263262
264263 this . actor = new St . Button ( { accessible_role : Atk . Role . NOTIFICATION } ) ;
265- this . actor . _parent_container = null ;
266264 this . actor . connect ( 'clicked' , ( ) => this . _onClicked ( ) ) ;
267265 this . actor . connect ( 'destroy' , ( ) => this . _onDestroy ( ) ) ;
268266
@@ -343,7 +341,6 @@ var Notification = class Notification {
343341 */
344342 update ( title , body , params ) {
345343 this . _timestamp = new Date ( ) ;
346- this . _inNotificationBin = false ;
347344 params = Params . parse ( params , {
348345 icon : null ,
349346 titleMarkup : false ,
@@ -924,8 +921,8 @@ MessageTray.prototype = {
924921
925922 _showNotification : function ( ) {
926923 this . _notification = this . _notificationQueue . shift ( ) ;
927- if ( this . _notification . actor . _parent_container ) {
928- this . _notification . actor . _parent_container . remove_actor ( this . _notification . actor ) ;
924+ if ( this . _notification . actor . get_parent ( ) ) {
925+ this . _notification . actor . get_parent ( ) . remove_actor ( this . _notification . actor ) ;
929926 }
930927
931928 this . _notificationBin . child = this . _notification . actor ;
0 commit comments