@@ -92,7 +92,7 @@ ClassicSwitcher.prototype = {
9292 alloc . natural_size = global . screen_height ;
9393 } ,
9494
95- _allocate : function ( actor , box , flags ) {
95+ _allocate : function ( actor , box ) {
9696 let childBox = new Clutter . ActorBox ( ) ;
9797 let monitor = this . _activeMonitor ;
9898
@@ -110,7 +110,7 @@ ClassicSwitcher.prototype = {
110110 childBox . x2 = Math . min ( monitor . x + monitor . width - rightPadding , childBox . x1 + childNaturalWidth ) ;
111111 childBox . y1 = monitor . y + Math . floor ( ( monitor . height - childNaturalHeight ) / 2 ) ;
112112 childBox . y2 = childBox . y1 + childNaturalHeight ;
113- this . _appList . actor . allocate ( childBox , flags ) ;
113+ this . _appList . actor . allocate ( childBox ) ;
114114
115115 // Allocate the thumbnails
116116 // We try to avoid overflowing the screen so we base the resulting size on
@@ -133,7 +133,7 @@ ClassicSwitcher.prototype = {
133133 this . _thumbnails . addClones ( monitor . y + monitor . height - bottomPadding - childBox . y1 ) ;
134134 let [ childMinHeight , childNaturalHeight ] = this . _thumbnails . actor . get_preferred_height ( - 1 ) ;
135135 childBox . y2 = childBox . y1 + childNaturalHeight ;
136- this . _thumbnails . actor . allocate ( childBox , flags ) ;
136+ this . _thumbnails . actor . allocate ( childBox ) ;
137137 }
138138 } ,
139139
@@ -518,7 +518,7 @@ SwitcherList.prototype = {
518518 this . _activeMonitor = activeMonitor ;
519519 } ,
520520
521- _allocateTop : function ( actor , box , flags ) {
521+ _allocateTop : function ( actor , box ) {
522522 if ( this . _list . spacing === - 1 ) {
523523 this . _list . spacing = this . _list . get_theme_node ( ) . get_length ( 'spacing' ) ;
524524 }
@@ -529,20 +529,20 @@ SwitcherList.prototype = {
529529 let childBox = new Clutter . ActorBox ( ) ;
530530 let scrollable = this . _minSize > box . x2 - box . x1 ;
531531
532- this . _clipBin . allocate ( box , flags ) ;
532+ this . _clipBin . allocate ( box ) ;
533533
534534 childBox . x1 = 0 ;
535535 childBox . y1 = 0 ;
536536 childBox . x2 = this . _leftGradient . width ;
537537 childBox . y2 = this . actor . height ;
538- this . _leftGradient . allocate ( childBox , flags ) ;
538+ this . _leftGradient . allocate ( childBox ) ;
539539 this . _leftGradient . opacity = ( this . _scrollableLeft && scrollable ) ? 255 : 0 ;
540540
541541 childBox . x1 = ( this . actor . allocation . x2 - this . actor . allocation . x1 ) - this . _rightGradient . width ;
542542 childBox . y1 = 0 ;
543543 childBox . x2 = childBox . x1 + this . _rightGradient . width ;
544544 childBox . y2 = this . actor . height ;
545- this . _rightGradient . allocate ( childBox , flags ) ;
545+ this . _rightGradient . allocate ( childBox ) ;
546546 this . _rightGradient . opacity = ( this . _scrollableRight && scrollable ) ? 255 : 0 ;
547547
548548 let arrowWidth = Math . floor ( leftPadding / 3 ) ;
@@ -551,7 +551,7 @@ SwitcherList.prototype = {
551551 childBox . y1 = this . actor . height / 2 - arrowWidth ;
552552 childBox . x2 = childBox . x1 + arrowWidth ;
553553 childBox . y2 = childBox . y1 + arrowHeight ;
554- this . _leftArrow . allocate ( childBox , flags ) ;
554+ this . _leftArrow . allocate ( childBox ) ;
555555 this . _leftArrow . opacity = this . _leftGradient . opacity ;
556556
557557 arrowWidth = Math . floor ( rightPadding / 3 ) ;
@@ -560,7 +560,7 @@ SwitcherList.prototype = {
560560 childBox . y1 = this . actor . height / 2 - arrowWidth ;
561561 childBox . x2 = childBox . x1 + arrowWidth ;
562562 childBox . y2 = childBox . y1 + arrowHeight ;
563- this . _rightArrow . allocate ( childBox , flags ) ;
563+ this . _rightArrow . allocate ( childBox ) ;
564564 this . _rightArrow . opacity = this . _rightGradient . opacity ;
565565 } ,
566566
@@ -699,7 +699,7 @@ SwitcherList.prototype = {
699699 alloc . natural_size = maxChildNat ;
700700 } ,
701701
702- _allocate : function ( actor , box , flags ) {
702+ _allocate : function ( actor , box ) {
703703 let childHeight = box . y2 - box . y1 ;
704704
705705 let [ maxChildMin , maxChildNat ] = this . _maxChildWidth ( ) ;
@@ -730,7 +730,7 @@ SwitcherList.prototype = {
730730 childBox . y1 = vSpacing ;
731731 childBox . x2 = x + childWidth ;
732732 childBox . y2 = childBox . y1 + childNat ;
733- children [ i ] . allocate ( childBox , flags ) ;
733+ children [ i ] . allocate ( childBox ) ;
734734
735735 x += this . _list . spacing + childWidth ;
736736 } else {
0 commit comments