File tree 3 files changed +10
-6
lines changed
3 files changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -568,7 +568,7 @@ class PanelButton extends PanelMenu.Button {
568
568
tapAction . connect ( "tap" , onClick ) ;
569
569
icon . add_action ( tapAction ) ;
570
570
571
- const oldIcon = this . menuControls . find_child_by_name ( options . name ) ;
571
+ const oldIcon = this . menuControls . get_child_at_index ( options . menuProps . index ) ;
572
572
573
573
if ( oldIcon ?. get_parent ( ) === this . menuControls ) {
574
574
this . menuControls . replace_child ( oldIcon , icon ) ;
@@ -716,7 +716,7 @@ class PanelButton extends PanelMenu.Button {
716
716
717
717
icon . add_action ( tapAction ) ;
718
718
719
- const oldIcon = this . buttonControls . find_child_by_name ( options . name ) ;
719
+ const oldIcon = this . buttonControls . get_child_at_index ( options . panelProps . index ) ;
720
720
721
721
if ( oldIcon != null ) {
722
722
this . buttonControls . replace_child ( oldIcon , icon ) ;
@@ -726,7 +726,7 @@ class PanelButton extends PanelMenu.Button {
726
726
}
727
727
728
728
private removeButtonControlIcon ( options : ControlIconOptions ) {
729
- const icon = this . buttonControls . find_child_by_name ( options . name ) ;
729
+ const icon = this . buttonControls . get_child_at_index ( options . menuProps . index ) ;
730
730
731
731
if ( icon != null ) {
732
732
this . buttonControls . remove_child ( icon ) ;
Original file line number Diff line number Diff line change @@ -64,7 +64,11 @@ class ScrollingLabel extends St.ScrollView {
64
64
65
65
this . onShowChangedId = this . label . connect ( "show" , this . onShowChanged . bind ( this ) ) ;
66
66
this . box . add_child ( this . label ) ;
67
- this . add_actor ( this . box ) ;
67
+ if ( Clutter . Container === undefined ) {
68
+ this . add_child ( this . box ) ;
69
+ } else {
70
+ this . add_actor ( this . box ) ;
71
+ }
68
72
}
69
73
70
74
public pauseScrolling ( ) {
Original file line number Diff line number Diff line change 5
5
"url" : " https://github.com/cliffniff/media-controls" ,
6
6
"settings-schema" : " org.gnome.shell.extensions.mediacontrols" ,
7
7
"gettext-domain" :
" [email protected] " ,
8
- "version-name" : " 2.0.0 " ,
9
- "shell-version" : [" 45" ]
8
+ "version-name" : " 2.0.1 " ,
9
+ "shell-version" : [" 45" , " 46 " ]
10
10
}
You can’t perform that action at this time.
0 commit comments