[polari/wip/dmoelgaard/initial-setup: 8/12] connections: Add activateSelected()
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [polari/wip/dmoelgaard/initial-setup: 8/12] connections: Add activateSelected()
- Date: Mon, 7 Aug 2017 03:25:16 +0000 (UTC)
commit abc41b1fed2f081ff8aeb075fe31e1a02442acda
Author: Florian Müllner <fmuellner gnome org>
Date: Wed Aug 2 01:46:08 2017 +0100
connections: Add activateSelected()
src/connections.js | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/connections.js b/src/connections.js
index 9033b13..c05b78a 100644
--- a/src/connections.js
+++ b/src/connections.js
@@ -139,6 +139,12 @@ var ConnectionsList = new Lang.Class({
row.activate();
},
+ activateSelected: function() {
+ let row = this._list.get_selected_row();
+ if (row)
+ row.activate();
+ },
+
_filterRows: function(row) {
let matchTerms = this._networksManager.getNetworkMatchTerms(row.id);
return this._filterTerms.every(term => {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]