[sushi/text-viewer-enable-context-menu] text: Allow right-clicks to show context menu for GtkSourceView
- From: Felipe Borges <felipeborges src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [sushi/text-viewer-enable-context-menu] text: Allow right-clicks to show context menu for GtkSourceView
- Date: Tue, 21 Sep 2021 13:12:21 +0000 (UTC)
commit a37e1a73fa14263e29376c008e32b027720ad85f
Author: Felipe Borges <felipeborges gnome org>
Date: Tue Sep 21 15:05:30 2021 +0200
text: Allow right-clicks to show context menu for GtkSourceView
Git archeology led me to commit adea213e which indicates that at
some point the previous maintainers wanted to block the context
menu for some reason which is unclear to me.
Fixes #70
src/viewers/text.js | 8 --------
1 file changed, 8 deletions(-)
---
diff --git a/src/viewers/text.js b/src/viewers/text.js
index c621efd..4c16fb5 100644
--- a/src/viewers/text.js
+++ b/src/viewers/text.js
@@ -56,14 +56,6 @@ var Klass = GObject.registerClass({
monospace: true,
show_line_numbers: !!buffer.language });
this._view.set_can_focus(false);
- this._view.connect('button-press-event', (view, event) => {
- let [, button] = event.get_button();
- if (button == Gdk.BUTTON_SECONDARY)
- return true;
-
- return false;
- });
-
this.add(this._view);
this.isReady();
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]