[gnome-builder] spellchecker: fix coding style



commit cc12f9026e070b056e244a5cc9f015cbe98f42c3
Author: Sebastien Lafargue <slafargue gnome org>
Date:   Sun Jul 30 10:02:43 2017 +0200

    spellchecker: fix coding style

 plugins/spellcheck/gbp-spell-buffer-addin.c |   14 +++----
 plugins/spellcheck/gbp-spell-navigator.c    |    4 +-
 plugins/spellcheck/gbp-spell-private.h      |   50 +++++++++++++-------------
 3 files changed, 33 insertions(+), 35 deletions(-)
---
diff --git a/plugins/spellcheck/gbp-spell-buffer-addin.c b/plugins/spellcheck/gbp-spell-buffer-addin.c
index e93c69f..256ccf5 100644
--- a/plugins/spellcheck/gbp-spell-buffer-addin.c
+++ b/plugins/spellcheck/gbp-spell-buffer-addin.c
@@ -22,11 +22,11 @@
 
 struct _GbpSpellBufferAddin
 {
-  GObject parent_instance;
+  GObject        parent_instance;
 
   /* Unowned reference to buffer */
-  IdeBuffer *buffer;
-  GtkTextTag *misspelled_tag;
+  IdeBuffer     *buffer;
+  GtkTextTag    *misspelled_tag;
 
   /* Owned spellchecker instance */
   GspellChecker *spellchecker;
@@ -36,10 +36,10 @@ struct _GbpSpellBufferAddin
    * the buffer if it has manually been enabled (see @enabled) or if
    * this value is >= 1.
    */
-  gint count;
+  gint           count;
 
   /* Manual enabling of inline checking */
-  guint enabled : 1;
+  guint          enabled : 1;
 };
 
 enum {
@@ -157,7 +157,7 @@ gbp_spell_buffer_addin_unload (IdeBufferAddin *addin,
                                         G_CALLBACK (update_style_scheme),
                                         self);
   gtk_text_tag_table_remove (gtk_text_buffer_get_tag_table (GTK_TEXT_BUFFER (buffer)),
-                            self->misspelled_tag);
+                             self->misspelled_tag);
   self->misspelled_tag = NULL;
 
   self->buffer = NULL;
@@ -299,8 +299,6 @@ gbp_spell_buffer_addin_begin_checking (GbpSpellBufferAddin *self)
  *
  * Completes a spellcheck operation. The buffer will return to it's original
  * state. Thay may mean inline checking is disabled.
- *
- * Returns:
  */
 void
 gbp_spell_buffer_addin_end_checking (GbpSpellBufferAddin *self)
diff --git a/plugins/spellcheck/gbp-spell-navigator.c b/plugins/spellcheck/gbp-spell-navigator.c
index 1c7f45b..eaf4c29 100644
--- a/plugins/spellcheck/gbp-spell-navigator.c
+++ b/plugins/spellcheck/gbp-spell-navigator.c
@@ -186,8 +186,8 @@ gbp_spell_navigator_words_count_cb (WordsCountState *state)
 /* Always process start and end by init_boudaries before */
 static GHashTable *
 gbp_spell_navigator_count_words (GbpSpellNavigator *self,
-                                        GtkTextIter             *start,
-                                        GtkTextIter             *end)
+                                 GtkTextIter       *start,
+                                 GtkTextIter       *end)
 {
   GHashTable *table;
   GtkSourceRegion *words_count_region;
diff --git a/plugins/spellcheck/gbp-spell-private.h b/plugins/spellcheck/gbp-spell-private.h
index 595ba96..e4bfa02 100644
--- a/plugins/spellcheck/gbp-spell-private.h
+++ b/plugins/spellcheck/gbp-spell-private.h
@@ -38,7 +38,7 @@ typedef enum
 
 struct _GbpSpellWidget
 {
-  GtkBin                 parent_instance;
+  GtkBin                   parent_instance;
 
   /* Owned references */
   IdeEditorView           *editor;
@@ -48,38 +48,38 @@ struct _GbpSpellWidget
   GbpSpellDict            *dict;
 
   /* Borrowed references */
-  const GspellLanguage  *language;
+  const GspellLanguage    *language;
 
   /* Template references */
-  GtkLabel              *word_label;
-  GtkLabel              *count_label;
-  GtkEntry              *word_entry;
-  GtkListBox            *suggestions_box;
-  GtkBox                *count_box;
-  GtkWidget             *dict_word_entry;
-  GtkWidget             *dict_add_button;
-  GtkWidget             *dict_words_list;
-  GtkButton             *language_chooser_button;
-  GtkWidget             *placeholder;
+  GtkLabel                *word_label;
+  GtkLabel                *count_label;
+  GtkEntry                *word_entry;
+  GtkListBox              *suggestions_box;
+  GtkBox                  *count_box;
+  GtkWidget               *dict_word_entry;
+  GtkWidget               *dict_add_button;
+  GtkWidget               *dict_words_list;
+  GtkButton               *language_chooser_button;
+  GtkWidget               *placeholder;
 
   /* GSource identifiers */
-  guint                  check_word_timeout_id;
-  guint                  dict_check_word_timeout_id;
+  guint                    check_word_timeout_id;
+  guint                    dict_check_word_timeout_id;
 
-  guint                  current_word_count;
-  CheckWordState         check_word_state;
-  CheckWordState         dict_check_word_state;
+  guint                    current_word_count;
+  CheckWordState           check_word_state;
+  CheckWordState           dict_check_word_state;
 
-  guint                  is_checking_word : 1;
-  guint                  is_check_word_invalid : 1;
-  guint                  is_check_word_idle : 1;
-  guint                  is_word_entry_valid : 1;
+  guint                    is_checking_word : 1;
+  guint                    is_check_word_invalid : 1;
+  guint                    is_check_word_idle : 1;
+  guint                    is_word_entry_valid : 1;
 
-  guint                  is_dict_checking_word : 1;
-  guint                  is_dict_check_word_invalid : 1;
-  guint                  is_dict_check_word_idle : 1;
+  guint                    is_dict_checking_word : 1;
+  guint                    is_dict_check_word_invalid : 1;
+  guint                    is_dict_check_word_idle : 1;
 
-  guint                  spellchecking_status : 1;
+  guint                    spellchecking_status : 1;
 };
 
 void       _gbp_spell_widget_init_actions   (GbpSpellWidget *self);


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