[polari] entryArea: Remove spell checking support
- From: Marge Bot <marge-bot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [polari] entryArea: Remove spell checking support
- Date: Fri, 3 Sep 2021 09:45:13 +0000 (UTC)
commit 2ff3c33c6531d6d9756f473a058bee6f7bd2217c
Author: Florian Müllner <fmuellner gnome org>
Date: Mon Sep 21 17:18:08 2020 +0200
entryArea: Remove spell checking support
Gspell is unmaintained and doesn't support GTK4;
don't let it hold us back.
Part-of: <https://gitlab.gnome.org/GNOME/polari/-/merge_requests/225>
flatpak/gspell-gettext-fix.patch | 48 --------------------------
flatpak/gspell-no-code-coverage.patch | 64 -----------------------------------
flatpak/org.gnome.Polari.json | 27 ---------------
src/entryArea.js | 13 -------
src/main.js | 1 -
5 files changed, 153 deletions(-)
---
diff --git a/flatpak/org.gnome.Polari.json b/flatpak/org.gnome.Polari.json
index 127ce363..b3e0a471 100644
--- a/flatpak/org.gnome.Polari.json
+++ b/flatpak/org.gnome.Polari.json
@@ -175,33 +175,6 @@
"/share/dbus-1"
]
},
- {
- "name": "gspell",
- "config-opts": [
- "--disable-vala",
- "--disable-static",
- "--disable-gtk-doc"
- ],
- "sources": [
- {
- "type": "git",
- "url": "https://gitlab.gnome.org/GNOME/gspell.git",
- "tag": "1.8.1",
- "commit": "ba03499234037861e01ce1e83075e8a32b9790f3"
- },
- {
- "type": "patch",
- "path": "gspell-no-code-coverage.patch"
- },
- {
- "type": "patch",
- "path": "gspell-gettext-fix.patch"
- }
- ],
- "cleanup": [
- "/bin"
- ]
- },
{
"name": "polari",
"buildsystem": "meson",
diff --git a/src/entryArea.js b/src/entryArea.js
index 5c126628..4836a30c 100644
--- a/src/entryArea.js
+++ b/src/entryArea.js
@@ -3,7 +3,6 @@ import GdkPixbuf from 'gi://GdkPixbuf';
import Gio from 'gi://Gio';
import GLib from 'gi://GLib';
import GObject from 'gi://GObject';
-import Gspell from 'gi://Gspell';
import Gtk from 'gi://Gtk';
import Tp from 'gi://TelepathyGLib';
@@ -29,12 +28,6 @@ export const ChatEntry = GObject.registerClass({
'file-pasted': { param_types: [Gio.File.$gtype] },
},
}, class ChatEntry extends Gtk.Entry {
- static get _checker() {
- if (!this.__checker)
- this.__checker = new Gspell.Checker();
- return this.__checker;
- }
-
_init(params) {
super._init(params);
@@ -47,12 +40,6 @@ export const ChatEntry = GObject.registerClass({
this.emit('insert-emoji');
});
- let buffer = Gspell.EntryBuffer.get_from_gtk_entry_buffer(this.buffer);
- buffer.set_spell_checker(ChatEntry._checker);
-
- let spellEntry = Gspell.Entry.get_from_gtk_entry(this);
- spellEntry.set_inline_spell_checking(true);
-
this._useDefaultHandler = false;
}
diff --git a/src/main.js b/src/main.js
index 7d3be87d..bf2cf104 100755
--- a/src/main.js
+++ b/src/main.js
@@ -28,7 +28,6 @@ pkg.require({
});
pkg.requireSymbol('Gio', '2.0', 'Application.send_notification');
pkg.requireSymbol('GLib', '2.0', 'log_variant');
-pkg.requireSymbol('Gspell', '1', 'Entry');
pkg.requireSymbol('Gtk', '3.0', 'ScrolledWindow.propagate_natural_width');
if (!pkg.checkSymbol('Soup', '3.0'))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]