Skip to content

Commit

Permalink
Remove non-working shortcut editor
Browse files Browse the repository at this point in the history
  • Loading branch information
ferdnyc committed May 4, 2024
1 parent 43258f9 commit f010f00
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 480 deletions.
1 change: 0 additions & 1 deletion data/org.gnome.Shell.Extensions.GSConnect.gresource.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ SPDX-License-Identifier: GPL-2.0-or-later
<file compressed="true" preprocess="xml-stripblanks">ui/preferences-command-editor.ui</file>
<file compressed="true" preprocess="xml-stripblanks">ui/preferences-device-panel.ui</file>
<file compressed="true" preprocess="xml-stripblanks">ui/preferences-section-row.ui</file>
<file compressed="true" preprocess="xml-stripblanks">ui/preferences-shortcut-editor.ui</file>
<file compressed="true" preprocess="xml-stripblanks">ui/preferences-window.ui</file>
<file compressed="true" preprocess="xml-stripblanks">ui/service-device-chooser.ui</file>
<file compressed="true" preprocess="xml-stripblanks">ui/service-error-dialog.ui</file>
Expand Down
1 change: 0 additions & 1 deletion data/ui/preferences-device-panel.ui
Original file line number Diff line number Diff line change
Expand Up @@ -1803,7 +1803,6 @@ SPDX-License-Identifier: GPL-2.0-or-later
<property name="can_focus">False</property>
<property name="hexpand">True</property>
<property name="selection_mode">none</property>
<signal name="row-activated" handler="_onShortcutRowActivated" swapped="no"/>
<accessibility>
<relation type="labelled-by" target="action-shortcuts-label"/>
</accessibility>
Expand Down
142 changes: 0 additions & 142 deletions data/ui/preferences-shortcut-editor.ui

This file was deleted.

22 changes: 0 additions & 22 deletions src/preferences/device.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import Pango from 'gi://Pango';

import Config from '../config.js';
import plugins from '../service/plugins/index.js';
import * as Keybindings from './keybindings.js';


// Build a list of plugins and shortcuts for devices
Expand Down Expand Up @@ -989,27 +988,6 @@ export const Panel = GObject.registerClass({
);
}

async _onShortcutRowActivated(box, row) {
try {
const keybindings = this.settings.get_value('keybindings').deepUnpack();
let accel = keybindings[row.action] || null;

accel = await Keybindings.getAccelerator(row.title, accel);

if (accel)
keybindings[row.action] = accel;
else
delete keybindings[row.action];

this.settings.set_value(
'keybindings',
new GLib.Variant('a{ss}', keybindings)
);
} catch (e) {
logError(e);
}
}

/**
* Advanced Page
*/
Expand Down
Loading

0 comments on commit f010f00

Please sign in to comment.