[polari/wip/bastianilso/irc-url-handling: 4/5] app: if no match found, open connection properties
- From: Bastian Ilsø Hougaard <bastianilso src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [polari/wip/bastianilso/irc-url-handling: 4/5] app: if no match found, open connection properties
- Date: Sat, 13 Feb 2016 11:40:52 +0000 (UTC)
commit 9d57fabf21c839aa28e91e8a6b88a4784330d5af
Author: Bastian Ilsø <hougaard junior gmail com>
Date: Thu Feb 11 21:00:22 2016 +0100
app: if no match found, open connection properties
src/application.js | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/src/application.js b/src/application.js
index 63c205d..8397c3c 100644
--- a/src/application.js
+++ b/src/application.js
@@ -184,6 +184,16 @@ const Application = new Lang.Class({
});
if (!matches.length) {
+ let detailsDialog = new Connections.ConnectionDetailsDialog(null);
+ detailsDialog.server_entry = port ? server + ':' + port : server;
+ //detailsDialog.room = room;
+ detailsDialog.widget.transient_for = this._window.window;
+ detailsDialog.widget.show();
+ detailsDialog.widget.connect('response',
+ Lang.bind(this, function(widget) {
+ widget.destroy();
+ }));
+
log("No matching account");
return;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]