summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVadim Barkov <[email protected]>2017-01-08 16:51:21 +0300
committerVadim Barkov <[email protected]>2017-01-08 16:58:00 +0300
commitdf3b18c149e4e410988242153b2d3f26b1601d0f (patch)
treeb9479dd4765aa1cca62662671d57fd0b0ae97264
parent98c44e3c9455581f90c4f6a70fc42adf986d8206 (diff)
downloadpluma-df3b18c149e4e410988242153b2d3f26b1601d0f.tar.bz2
pluma-df3b18c149e4e410988242153b2d3f26b1601d0f.tar.xz
Fixed wrong formatting
-rwxr-xr-xpluma/dialogs/pluma-search-dialog.h2
-rw-r--r--pluma/pluma-utils.c38
2 files changed, 20 insertions, 20 deletions
diff --git a/pluma/dialogs/pluma-search-dialog.h b/pluma/dialogs/pluma-search-dialog.h
index e397b258..e6ebe8dc 100755
--- a/pluma/dialogs/pluma-search-dialog.h
+++ b/pluma/dialogs/pluma-search-dialog.h
@@ -112,7 +112,7 @@ void pluma_search_dialog_set_match_case (PlumaSearchDialog *dialog,
gboolean pluma_search_dialog_get_match_case (PlumaSearchDialog *dialog);
void pluma_search_dialog_set_match_regex (PlumaSearchDialog *dialog,
- gboolean match_case);
+ gboolean match_case);
gboolean pluma_search_dialog_get_match_regex (PlumaSearchDialog *dialog);
void pluma_search_dialog_set_entire_word (PlumaSearchDialog *dialog,
diff --git a/pluma/pluma-utils.c b/pluma/pluma-utils.c
index ff872e09..d1c701ea 100644
--- a/pluma/pluma-utils.c
+++ b/pluma/pluma-utils.c
@@ -1606,49 +1606,49 @@ pluma_gtk_text_iter_regex_search (const GtkTextIter *iter,
if (regex == NULL)
return FALSE;
- begin_iter=gtk_text_iter_copy(iter);
+ begin_iter = gtk_text_iter_copy (iter);
if (limit == NULL)
{
- end_iter=gtk_text_iter_copy(begin_iter);
- if(forward_search)
+ end_iter = gtk_text_iter_copy (begin_iter);
+ if (forward_search)
{
- gtk_text_buffer_get_end_iter(gtk_text_iter_get_buffer(begin_iter),
+ gtk_text_buffer_get_end_iter (gtk_text_iter_get_buffer(begin_iter),
end_iter);
}
else
{
- gtk_text_buffer_get_start_iter(gtk_text_iter_get_buffer(begin_iter),
+ gtk_text_buffer_get_start_iter (gtk_text_iter_get_buffer (begin_iter),
end_iter);
}
}
else
{
- end_iter=gtk_text_iter_copy(limit);
+ end_iter = gtk_text_iter_copy (limit);
}
if ((flags & GTK_TEXT_SEARCH_TEXT_ONLY) != 0)
{
if ((flags & GTK_TEXT_SEARCH_VISIBLE_ONLY) != 0)
- text=gtk_text_iter_get_visible_text(begin_iter,end_iter);
+ text = gtk_text_iter_get_visible_text (begin_iter, end_iter);
else
- text=gtk_text_iter_get_text(begin_iter,end_iter);
+ text = gtk_text_iter_get_text (begin_iter, end_iter);
}
else
{
if ((flags & GTK_TEXT_SEARCH_VISIBLE_ONLY) != 0)
- text=gtk_text_iter_get_visible_slice(begin_iter,end_iter);
+ text = gtk_text_iter_get_visible_slice (begin_iter, end_iter);
else
- text=gtk_text_iter_get_slice(begin_iter,end_iter);
+ text = gtk_text_iter_get_slice (begin_iter, end_iter);
}
- found = g_regex_match_all(regex,text,0,&match_info);
+ found = g_regex_match_all (regex,text,0,&match_info);
if (found)
{
- all_matches=g_match_info_fetch_all(match_info);
- if(forward_search)
+ all_matches = g_match_info_fetch_all (match_info);
+ if (forward_search)
{
- match_string=all_matches[0];
- gtk_text_iter_forward_search(begin_iter,
+ match_string = all_matches[0];
+ gtk_text_iter_forward_search (begin_iter,
match_string,
flags,
match_start,
@@ -1657,8 +1657,8 @@ pluma_gtk_text_iter_regex_search (const GtkTextIter *iter,
}
else
{
- match_string=all_matches[g_strv_length(all_matches)-1];
- gtk_text_iter_backward_search(begin_iter,
+ match_string = all_matches[g_strv_length (all_matches) - 1];
+ gtk_text_iter_backward_search (begin_iter,
match_string,
flags,
match_start,
@@ -1667,8 +1667,8 @@ pluma_gtk_text_iter_regex_search (const GtkTextIter *iter,
}
}
- gtk_text_iter_free(begin_iter);
- gtk_text_iter_free(end_iter);
+ gtk_text_iter_free (begin_iter);
+ gtk_text_iter_free (end_iter);
g_match_info_free (match_info);
g_regex_unref (regex);
return found;