Replace double-click by menu item

master
Frank Ploss 9 years ago
parent 2589f9280e
commit b02ccfe8bc

@ -10,6 +10,8 @@ Suppose beta status.
## TODO
* Add other authentication methods
* Make configurable (host/port to use)
* Use async communication with Tor server, making it possible to react to
signals from the server
## Ideas
* Add option for switching identity regularly

@ -48,10 +48,10 @@ const TorButton = new Lang.Class({
});
this.actor.add_child(this._icon);
this.actor.connect('button-press-event', Lang.bind(this, function(actor, event) {
if (event.get_click_count() >= 2) {
this._switchTorIdentity();
}
this.menu.addAction('Switch Tor Identity', Lang.bind(this, function(event) {
this._switchTorIdentity();
log('Switched to a new Tor identity!');
}));
},

Loading…
Cancel
Save