forked from cromer/pamac-classic
fix #244
This commit is contained in:
parent
ea783f09c5
commit
5daa7abd50
@ -46,11 +46,18 @@ namespace Pamac {
|
||||
msg.destroy ();
|
||||
} else {
|
||||
manager_window = new ManagerWindow (this);
|
||||
// quit accel
|
||||
var action = new SimpleAction ("quit", null);
|
||||
action.activate.connect (() => {this.quit ();});
|
||||
this.add_action (action);
|
||||
string[] accels = {"<Control>Q", "<Control>W"};
|
||||
this.set_accels_for_action ("app.quit", accels);
|
||||
// back accel
|
||||
action = new SimpleAction ("back", null);
|
||||
action.activate.connect (() => {manager_window.on_button_back_clicked ();});
|
||||
this.add_action (action);
|
||||
accels = {"<Alt>Left"};
|
||||
this.set_accels_for_action ("app.back", accels);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1052,7 +1052,7 @@ namespace Pamac {
|
||||
}
|
||||
|
||||
[GtkCallback]
|
||||
void on_button_back_clicked () {
|
||||
public void on_button_back_clicked () {
|
||||
string? pkgname = display_package_queue.pop_tail ();
|
||||
if (pkgname != null) {
|
||||
AlpmPackage pkg = transaction.get_installed_pkg (pkgname);
|
||||
|
Loading…
Reference in New Issue
Block a user