[sushi/gnome-41-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/gnome-41-text-viewer-enable-context-menu] text: Allow right-clicks to show context menu for GtkSourceView
- Date: Tue, 21 Sep 2021 13:27:33 +0000 (UTC)
commit 3d9de8e39a64a9d5728c762eba31f404543dffa5
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]