@@ -262,12 +262,10 @@ var Notification = class Notification {
262262 this . _actionArea = null ;
263263 this . _imageBin = null ;
264264 this . _timestamp = new Date ( ) ;
265- this . _inNotificationBin = false ;
266265
267266 source . connect ( 'destroy' , ( source , reason ) => { this . destroy ( reason ) } ) ;
268267
269268 this . actor = new St . Button ( { accessible_role : Atk . Role . NOTIFICATION } ) ;
270- this . actor . _parent_container = null ;
271269 this . actor . connect ( 'clicked' , ( ) => this . _onClicked ( ) ) ;
272270 this . actor . connect ( 'destroy' , ( ) => this . _onDestroy ( ) ) ;
273271
@@ -348,7 +346,6 @@ var Notification = class Notification {
348346 */
349347 update ( title , body , params ) {
350348 this . _timestamp = new Date ( ) ;
351- this . _inNotificationBin = false ;
352349 params = Params . parse ( params , {
353350 icon : null ,
354351 titleMarkup : false ,
@@ -929,8 +926,8 @@ MessageTray.prototype = {
929926
930927 _showNotification : function ( ) {
931928 this . _notification = this . _notificationQueue . shift ( ) ;
932- if ( this . _notification . actor . _parent_container ) {
933- this . _notification . actor . _parent_container . remove_actor ( this . _notification . actor ) ;
929+ if ( this . _notification . actor . get_parent ( ) ) {
930+ this . _notification . actor . get_parent ( ) . remove_actor ( this . _notification . actor ) ;
934931 }
935932
936933 this . _notificationBin . child = this . _notification . actor ;
0 commit comments