[gnome-software: 88/110] Remove GSpell




commit d26245c2a9bfbdf529634382228d1ad8922df2e2
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Thu Aug 26 14:24:01 2021 -0300

    Remove GSpell
    
    GSpell depends on GTK3.

 meson.build            |  5 -----
 meson_options.txt      |  1 -
 src/gs-review-dialog.c | 18 ------------------
 src/meson.build        |  4 ----
 4 files changed, 28 deletions(-)
---
diff --git a/meson.build b/meson.build
index 73304c28e..bb39e8304 100644
--- a/meson.build
+++ b/meson.build
@@ -174,11 +174,6 @@ if gsettings_desktop_schemas.found()
   conf.set('HAVE_GSETTINGS_DESKTOP_SCHEMAS', 1)
 endif
 
-if get_option('gspell')
-  gspell = dependency('gspell-1')
-  conf.set('HAVE_GSPELL', 1)
-endif
-
 if get_option('polkit')
   polkit = dependency('polkit-gobject-1')
   conf.set('HAVE_POLKIT', 1)
diff --git a/meson_options.txt b/meson_options.txt
index 7da9da130..587b9cca9 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -1,5 +1,4 @@
 option('tests', type : 'boolean', value : true, description : 'enable tests')
-option('gspell', type : 'boolean', value : true, description : 'enable gspell')
 option('gsettings_desktop_schemas', type : 'feature', value : 'enabled', description : 'enable integration 
with GNOME desktop preferences')
 option('man', type : 'boolean', value : true, description : 'enable man pages')
 option('packagekit', type : 'boolean', value : true, description : 'enable PackageKit support')
diff --git a/src/gs-review-dialog.c b/src/gs-review-dialog.c
index 8446f0568..178bef58a 100644
--- a/src/gs-review-dialog.c
+++ b/src/gs-review-dialog.c
@@ -11,10 +11,6 @@
 #include <glib/gi18n.h>
 #include <gtk/gtk.h>
 
-#ifdef HAVE_GSPELL
-#include <gspell/gspell.h>
-#endif
-
 #include "gs-review-dialog.h"
 #include "gs-star-widget.h"
 
@@ -165,20 +161,6 @@ gs_review_dialog_init (GsReviewDialog *dialog)
        GtkTextBuffer *buffer;
        gtk_widget_init_template (GTK_WIDGET (dialog));
 
-#ifdef HAVE_GSPELL
-       /* allow checking spelling */
-       {
-               GspellEntry *gspell_entry;
-               GspellTextView *gspell_view;
-
-               gspell_entry = gspell_entry_get_from_gtk_entry (GTK_ENTRY (dialog->summary_entry));
-               gspell_entry_basic_setup (gspell_entry);
-
-               gspell_view = gspell_text_view_get_from_gtk_text_view (GTK_TEXT_VIEW (dialog->text_view));
-               gspell_text_view_basic_setup (gspell_view);
-       }
-#endif
-
        /* require the user to spend at least 30 seconds on writing a review */
        dialog->timer_id = g_timeout_add_seconds (WRITING_TIME_MIN,
                                                  gs_review_dialog_timeout_cb,
diff --git a/src/meson.build b/src/meson.build
index a214c7abd..9a93ef8f1 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -127,10 +127,6 @@ if gsettings_desktop_schemas.found()
   gnome_software_dependencies += [gsettings_desktop_schemas]
 endif
 
-if get_option('gspell')
-  gnome_software_dependencies += [gspell]
-endif
-
 if get_option('mogwai')
   gnome_software_dependencies += [mogwai_schedule_client]
 endif


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]