File tree 1 file changed +6
-4
lines changed
1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -56,15 +56,16 @@ if (shell_Version < '3.36') {
56
56
super ( {
57
57
reactive : false
58
58
} ) ;
59
+ super . _init ( ) ;
60
+ this . actor . connect ( 'button-press-event' , openUserAccount ) ;
61
+
59
62
var box = new St . BoxLayout ( {
60
63
x_align : Clutter . ActorAlign . CENTER ,
61
64
} ) ;
62
65
this . actor . add ( box , {
63
66
expand : true
64
67
} ) ;
65
- this . actor . connect ( 'button-press-event' , openUserAccount ) ;
66
-
67
- }
68
+ }
68
69
}
69
70
} else {
70
71
var UserIconMenuItem = GObject . registerClass (
@@ -74,13 +75,14 @@ if (shell_Version < '3.36') {
74
75
class UserIconMenuItem extends PopupMenu . PopupBaseMenuItem {
75
76
_init ( ) {
76
77
super . _init ( ) ;
78
+ this . actor . connect ( 'button-press-event' , openUserAccount ) ;
79
+
77
80
var box = new St . BoxLayout ( {
78
81
x_align : Clutter . ActorAlign . CENTER ,
79
82
} ) ;
80
83
this . actor . add ( box , {
81
84
expand : true
82
85
} ) ;
83
- this . actor . connect ( 'button-press-event' , openUserAccount ) ;
84
86
}
85
87
}
86
88
) ;
You can’t perform that action at this time.
0 commit comments