[gnome-shell] extensions-app: Enable/disable an extension by activating the row
- From: Marge Bot <marge-bot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] extensions-app: Enable/disable an extension by activating the row
- Date: Sat, 12 Feb 2022 14:58:28 +0000 (UTC)
commit 77bd26fe0719855f81cbf0aecc00a232842bc6a4
Author: Romain Vigier <romain romainvigier fr>
Date: Tue Jan 18 13:04:55 2022 +0100
extensions-app: Enable/disable an extension by activating the row
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2114>
subprojects/extensions-app/data/ui/extension-row.ui | 1 -
subprojects/extensions-app/js/main.js | 6 ++++++
2 files changed, 6 insertions(+), 1 deletion(-)
---
diff --git a/subprojects/extensions-app/data/ui/extension-row.ui
b/subprojects/extensions-app/data/ui/extension-row.ui
index 608e360aa0..37acb68d37 100644
--- a/subprojects/extensions-app/data/ui/extension-row.ui
+++ b/subprojects/extensions-app/data/ui/extension-row.ui
@@ -1,7 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<template class="ExtensionRow" parent="GtkListBoxRow">
- <property name="activatable">false</property>
<style>
<class name="extension"/>
</style>
diff --git a/subprojects/extensions-app/js/main.js b/subprojects/extensions-app/js/main.js
index 15f881d17a..6ff8bb12e2 100644
--- a/subprojects/extensions-app/js/main.js
+++ b/subprojects/extensions-app/js/main.js
@@ -134,6 +134,7 @@ var ExtensionsWindow = GObject.registerClass({
margin_top: 12,
margin_bottom: 12,
}));
+ this._userList.connect('row-activated', (_list, row) => row.activate());
this._systemList.set_sort_func(this._sortList.bind(this));
this._systemList.set_filter_func(this._filterList.bind(this));
@@ -144,6 +145,7 @@ var ExtensionsWindow = GObject.registerClass({
margin_top: 12,
margin_bottom: 12,
}));
+ this._systemList.connect('row-activated', (_list, row) => row.activate());
this._shellProxy.connectSignal('ExtensionStateChanged',
this._onExtensionStateChanged.bind(this));
@@ -425,6 +427,10 @@ var ExtensionRow = GObject.registerClass({
this._updateState();
}
+ vfunc_activate() {
+ this._switch.mnemonic_activate(false);
+ }
+
get uuid() {
return this._extension.uuid;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]