File tree Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -123,23 +123,22 @@ class CinnamonNotificationsApplet extends Applet.TextIconApplet {
123
123
}
124
124
125
125
_arrangeDisplay ( ) {
126
- // Remove menu actors so we can put tham back in a different order according
127
- // to orientation
126
+ // Remove menu actors so we can put them back in a different order according to orientation.
128
127
this . menu . box . remove_all_children ( ) ;
129
128
130
129
if ( this . _orientation == St . Side . BOTTOM ) {
131
- this . menu . box . add ( this . menu_label . actor ) ;
130
+ this . menu . addActor ( this . menu_label . actor ) ;
132
131
this . menu . addActor ( this . _maincontainer ) ;
133
- this . menu . box . add ( this . clear_separator . actor ) ;
134
- this . menu . box . add ( this . clear_action . actor ) ;
132
+ this . menu . addActor ( this . clear_separator . actor ) ;
133
+ this . menu . addActor ( this . clear_action . actor ) ;
135
134
} else {
136
- this . menu . box . add ( this . clear_action . actor ) ;
137
- this . menu . box . add ( this . clear_separator . actor ) ;
138
- this . menu . box . add ( this . menu_label . actor ) ;
135
+ this . menu . addActor ( this . clear_action . actor ) ;
136
+ this . menu . addActor ( this . clear_separator . actor ) ;
137
+ this . menu . addActor ( this . menu_label . actor ) ;
139
138
this . menu . addActor ( this . _maincontainer ) ;
140
139
}
141
140
142
- this . menu . box . add ( this . settingsMenuItem . actor ) ;
141
+ this . menu . addActor ( this . settingsMenuItem . actor ) ;
143
142
}
144
143
145
144
_notification_added ( mtray , notification ) { // Notification event handler.
You can’t perform that action at this time.
0 commit comments