Background button: Implement mnemonic activation
This commit is contained in:
@@ -80,6 +80,10 @@ var BackgroundButton = GObject.registerClass({
|
|||||||
this.add_controller(dropTarget);
|
this.add_controller(dropTarget);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
vfunc_mnemonic_activate() {
|
||||||
|
this.openFileChooser();
|
||||||
|
}
|
||||||
|
|
||||||
openFileChooser() {
|
openFileChooser() {
|
||||||
this._filechooser.transient_for = this.get_root();
|
this._filechooser.transient_for = this.get_root();
|
||||||
this._filechooser.show();
|
this._filechooser.show();
|
||||||
|
|||||||
Reference in New Issue
Block a user