[gedit/wip/spell-checking] auto-spell: fix indentation



commit da30038acfce61f1dcf2f9c46429160e849fecc0
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Sat Jul 11 17:12:52 2015 +0200

    auto-spell: fix indentation

 plugins/spell/gedit-automatic-spell-checker.c |   34 +++++++++++++-----------
 1 files changed, 18 insertions(+), 16 deletions(-)
---
diff --git a/plugins/spell/gedit-automatic-spell-checker.c b/plugins/spell/gedit-automatic-spell-checker.c
index 8f8ae28..ea8e932 100644
--- a/plugins/spell/gedit-automatic-spell-checker.c
+++ b/plugins/spell/gedit-automatic-spell-checker.c
@@ -33,18 +33,20 @@
 #include <glib/gi18n.h>
 #include "gedit-spell-utils.h"
 
-struct _GeditAutomaticSpellChecker {
-       GeditDocument           *doc;
-       GSList                  *views;
+struct _GeditAutomaticSpellChecker
+{
+       GeditDocument *doc;
+       GSList *views;
+
+       GtkTextMark *mark_insert_start;
+       GtkTextMark *mark_insert_end;
 
-       GtkTextMark             *mark_insert_start;
-       GtkTextMark             *mark_insert_end;
-       gboolean                 deferred_check;
+       GtkTextTag *tag_highlight;
+       GtkTextMark *mark_click;
 
-       GtkTextTag              *tag_highlight;
-       GtkTextMark             *mark_click;
+       GeditSpellChecker *spell_checker;
 
-               GeditSpellChecker       *spell_checker;
+       guint deferred_check : 1;
 };
 
 static GQuark automatic_spell_checker_id = 0;
@@ -602,8 +604,8 @@ clear_session_cb (GeditSpellChecker          *checker,
  * since that prevents the use of edit functions on the context menu.
  */
 static gboolean
-button_press_event (GtkTextView *view,
-                   GdkEventButton *event,
+button_press_event (GtkTextView                *view,
+                   GdkEventButton             *event,
                    GeditAutomaticSpellChecker *spell)
 {
        if (event->button == GDK_BUTTON_SECONDARY)
@@ -614,7 +616,7 @@ button_press_event (GtkTextView *view,
                GtkTextBuffer *buffer = gtk_text_view_get_buffer (view);
 
                /* handle deferred check if it exists */
-               if (spell->deferred_check)
+               if (spell->deferred_check)
                        check_deferred_range (spell, TRUE);
 
                gtk_text_view_window_to_buffer_coords (view,
@@ -682,16 +684,16 @@ tag_changed (GtkTextTagTable            *table,
 
 static void
 highlight_updated (GtkSourceBuffer            *buffer,
-                   GtkTextIter                *start,
-                   GtkTextIter                *end,
-                   GeditAutomaticSpellChecker *spell)
+                  GtkTextIter                *start,
+                  GtkTextIter                *end,
+                  GeditAutomaticSpellChecker *spell)
 {
        check_range (spell, *start, *end, FALSE);
 }
 
 static void
 spell_tag_destroyed (GeditAutomaticSpellChecker *spell,
-                     GObject                    *where_the_object_was)
+                    GObject                    *where_the_object_was)
 {
        spell->tag_highlight = NULL;
 }


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