[gnome-text-editor] spellcheck: make invalidate all helper public



commit f2e300a2a1ba6b1531ce8515dd7d6e1cfd09cd3c
Author: Christian Hergert <chergert redhat com>
Date:   Fri Jul 16 19:59:01 2021 -0700

    spellcheck: make invalidate all helper public

 src/editor-text-buffer-spell-adapter.c |  2 +-
 src/editor-text-buffer-spell-adapter.h | 43 +++++++++++++++++-----------------
 2 files changed, 23 insertions(+), 22 deletions(-)
---
diff --git a/src/editor-text-buffer-spell-adapter.c b/src/editor-text-buffer-spell-adapter.c
index 62573a1..adf7381 100644
--- a/src/editor-text-buffer-spell-adapter.c
+++ b/src/editor-text-buffer-spell-adapter.c
@@ -274,7 +274,7 @@ editor_text_buffer_spell_adapter_queue_update (EditorTextBufferSpellAdapter *sel
     self->update_source = editor_buffer_scheduler_add (editor_text_buffer_spell_adapter_run, self);
 }
 
-static void
+void
 editor_text_buffer_spell_adapter_invalidate_all (EditorTextBufferSpellAdapter *self)
 {
   gsize length;
diff --git a/src/editor-text-buffer-spell-adapter.h b/src/editor-text-buffer-spell-adapter.h
index 10637e4..3ee674a 100644
--- a/src/editor-text-buffer-spell-adapter.h
+++ b/src/editor-text-buffer-spell-adapter.h
@@ -32,26 +32,27 @@ G_DECLARE_FINAL_TYPE (EditorTextBufferSpellAdapter, editor_text_buffer_spell_ada
 
 EditorTextBufferSpellAdapter *editor_text_buffer_spell_adapter_new                 (GtkTextBuffer            
    *buffer,
                                                                                     EditorSpellChecker       
    *checker);
-GtkTextBuffer                *editor_text_buffer_spell_adapter_get_buffer          
(EditorTextBufferSpellAdapter *self);
-EditorSpellChecker           *editor_text_buffer_spell_adapter_get_checker         
(EditorTextBufferSpellAdapter *self);
-void                          editor_text_buffer_spell_adapter_set_checker         
(EditorTextBufferSpellAdapter *self,
-                                                                                    EditorSpellChecker       
    *checker);
-void                          editor_text_buffer_spell_adapter_before_insert_text  
(EditorTextBufferSpellAdapter *self,
-                                                                                    guint                    
     offset,
-                                                                                    guint                    
     len);
-void                          editor_text_buffer_spell_adapter_after_insert_text   
(EditorTextBufferSpellAdapter *self,
-                                                                                    guint                    
     offset,
-                                                                                    guint                    
     len);
-void                          editor_text_buffer_spell_adapter_before_delete_range 
(EditorTextBufferSpellAdapter *self,
-                                                                                    guint                    
     offset,
-                                                                                    guint                    
     len);
-void                          editor_text_buffer_spell_adapter_after_delete_range  
(EditorTextBufferSpellAdapter *self,
-                                                                                    guint                    
     offset,
-                                                                                    guint                    
     len);
-void                          editor_text_buffer_spell_adapter_cursor_moved        
(EditorTextBufferSpellAdapter *self,
-                                                                                    guint                    
     position);
-const char                   *editor_text_buffer_spell_adapter_get_language        
(EditorTextBufferSpellAdapter *self);
-void                          editor_text_buffer_spell_adapter_set_language        
(EditorTextBufferSpellAdapter *self,
-                                                                                    const char               
    *language);
+GtkTextBuffer      *editor_text_buffer_spell_adapter_get_buffer          (EditorTextBufferSpellAdapter 
*self);
+EditorSpellChecker *editor_text_buffer_spell_adapter_get_checker         (EditorTextBufferSpellAdapter 
*self);
+void                editor_text_buffer_spell_adapter_set_checker         (EditorTextBufferSpellAdapter *self,
+                                                                          EditorSpellChecker           
*checker);
+void                editor_text_buffer_spell_adapter_before_insert_text  (EditorTextBufferSpellAdapter *self,
+                                                                          guint                         
offset,
+                                                                          guint                         len);
+void                editor_text_buffer_spell_adapter_after_insert_text   (EditorTextBufferSpellAdapter *self,
+                                                                          guint                         
offset,
+                                                                          guint                         len);
+void                editor_text_buffer_spell_adapter_before_delete_range (EditorTextBufferSpellAdapter *self,
+                                                                          guint                         
offset,
+                                                                          guint                         len);
+void                editor_text_buffer_spell_adapter_after_delete_range  (EditorTextBufferSpellAdapter *self,
+                                                                          guint                         
offset,
+                                                                          guint                         len);
+void                editor_text_buffer_spell_adapter_cursor_moved        (EditorTextBufferSpellAdapter *self,
+                                                                          guint                         
position);
+const char         *editor_text_buffer_spell_adapter_get_language        (EditorTextBufferSpellAdapter 
*self);
+void                editor_text_buffer_spell_adapter_set_language        (EditorTextBufferSpellAdapter *self,
+                                                                          const char                   
*language);
+void                editor_text_buffer_spell_adapter_invalidate_all      (EditorTextBufferSpellAdapter 
*self);
 
 G_END_DECLS


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