[gtksourceview] region: fix function parameters alignment
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview] region: fix function parameters alignment
- Date: Sat, 2 Apr 2016 09:58:10 +0000 (UTC)
commit c66750e46786aae240eaa236ae0f91ca380e7dcb
Author: Sébastien Wilmet <swilmet gnome org>
Date: Sat Apr 2 11:41:18 2016 +0200
region: fix function parameters alignment
GtkTextRegion has been renamed to GtkSourceRegion, so the type has a
different length and some function parameters were no longer correctly
aligned.
The lineup-parameters script that I used has also changed the alignment
for other functions.
.../words/gtksourcecompletionwordsbuffer.c | 24 ++++++++++----------
gtksourceview/gtksourcesearchcontext.c | 14 +++++-----
2 files changed, 19 insertions(+), 19 deletions(-)
---
diff --git a/gtksourceview/completion-providers/words/gtksourcecompletionwordsbuffer.c
b/gtksourceview/completion-providers/words/gtksourcecompletionwordsbuffer.c
index ab7b8e2..4762e6e 100644
--- a/gtksourceview/completion-providers/words/gtksourcecompletionwordsbuffer.c
+++ b/gtksourceview/completion-providers/words/gtksourcecompletionwordsbuffer.c
@@ -72,8 +72,8 @@ proposal_cache_free (ProposalCache *cache)
static void
remove_proposal_cache (const gchar *key,
- ProposalCache *cache,
- GtkSourceCompletionWordsBuffer *buffer)
+ ProposalCache *cache,
+ GtkSourceCompletionWordsBuffer *buffer)
{
guint i;
@@ -200,7 +200,7 @@ scan_line (GtkSourceCompletionWordsBuffer *buffer,
static void
remove_word (GtkSourceCompletionWordsBuffer *buffer,
- const gchar *word)
+ const gchar *word)
{
ProposalCache *cache = g_hash_table_lookup (buffer->priv->words, word);
@@ -224,7 +224,7 @@ remove_word (GtkSourceCompletionWordsBuffer *buffer,
static void
add_words (GtkSourceCompletionWordsBuffer *buffer,
- GSList *words)
+ GSList *words)
{
GSList *item;
@@ -436,7 +436,7 @@ remove_words_in_subregion (GtkSourceCompletionWordsBuffer *buffer,
static void
remove_words_in_region (GtkSourceCompletionWordsBuffer *buffer,
- GtkSourceRegion *region)
+ GtkSourceRegion *region)
{
GtkSourceRegionIter region_iter;
@@ -496,8 +496,8 @@ compute_remove_region (GtkSourceCompletionWordsBuffer *buffer,
*/
static void
invalidate_region (GtkSourceCompletionWordsBuffer *buffer,
- const GtkTextIter *start,
- const GtkTextIter *end)
+ const GtkTextIter *start,
+ const GtkTextIter *end)
{
GtkTextIter start_iter = *start;
GtkTextIter end_iter = *end;
@@ -513,8 +513,8 @@ invalidate_region (GtkSourceCompletionWordsBuffer *buffer,
static void
add_to_scan_region (GtkSourceCompletionWordsBuffer *buffer,
- const GtkTextIter *start,
- const GtkTextIter *end)
+ const GtkTextIter *start,
+ const GtkTextIter *end)
{
GtkTextIter start_iter = *start;
GtkTextIter end_iter = *end;
@@ -676,7 +676,7 @@ on_library_unlock (GtkSourceCompletionWordsBuffer *buffer)
GtkSourceCompletionWordsBuffer *
gtk_source_completion_words_buffer_new (GtkSourceCompletionWordsLibrary *library,
- GtkTextBuffer *buffer)
+ GtkTextBuffer *buffer)
{
GtkSourceCompletionWordsBuffer *ret;
@@ -717,7 +717,7 @@ gtk_source_completion_words_buffer_get_buffer (GtkSourceCompletionWordsBuffer *b
void
gtk_source_completion_words_buffer_set_scan_batch_size (GtkSourceCompletionWordsBuffer *buffer,
- guint size)
+ guint size)
{
g_return_if_fail (GTK_SOURCE_IS_COMPLETION_WORDS_BUFFER (buffer));
g_return_if_fail (size != 0);
@@ -727,7 +727,7 @@ gtk_source_completion_words_buffer_set_scan_batch_size (GtkSourceCompletionWords
void
gtk_source_completion_words_buffer_set_minimum_word_size (GtkSourceCompletionWordsBuffer *buffer,
- guint size)
+ guint size)
{
g_return_if_fail (GTK_SOURCE_IS_COMPLETION_WORDS_BUFFER (buffer));
g_return_if_fail (size != 0);
diff --git a/gtksourceview/gtksourcesearchcontext.c b/gtksourceview/gtksourcesearchcontext.c
index 6b47307..c8634da 100644
--- a/gtksourceview/gtksourcesearchcontext.c
+++ b/gtksourceview/gtksourcesearchcontext.c
@@ -463,8 +463,8 @@ is_text_region_empty (GtkSourceRegion *region)
*/
static gboolean
get_first_subregion (GtkSourceRegion *region,
- GtkTextIter *start,
- GtkTextIter *end)
+ GtkTextIter *start,
+ GtkTextIter *end)
{
GtkSourceRegionIter region_iter;
@@ -498,8 +498,8 @@ get_first_subregion (GtkSourceRegion *region,
*/
static gboolean
get_last_subregion (GtkSourceRegion *region,
- GtkTextIter *start,
- GtkTextIter *end)
+ GtkTextIter *start,
+ GtkTextIter *end)
{
GtkSourceRegionIter region_iter;
gboolean found = FALSE;
@@ -1617,7 +1617,7 @@ scan_subregion (GtkSourceSearchContext *search,
static void
scan_all_region (GtkSourceSearchContext *search,
- GtkSourceRegion *region_to_highlight)
+ GtkSourceRegion *region_to_highlight)
{
guint nb_subregions = gtk_source_region_subregions (region_to_highlight);
GtkTextIter start_search;
@@ -1655,7 +1655,7 @@ scan_all_region (GtkSourceSearchContext *search,
*/
static void
scan_region_forward (GtkSourceSearchContext *search,
- GtkSourceRegion *region)
+ GtkSourceRegion *region)
{
gint nb_remaining_lines = SCAN_BATCH_SIZE;
GtkTextIter start;
@@ -1689,7 +1689,7 @@ scan_region_forward (GtkSourceSearchContext *search,
/* Same as scan_region_forward(), but begins the scan at the end of the region. */
static void
scan_region_backward (GtkSourceSearchContext *search,
- GtkSourceRegion *region)
+ GtkSourceRegion *region)
{
gint nb_remaining_lines = SCAN_BATCH_SIZE;
GtkTextIter start;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]