[gtksourceview/wip/search] Validate gbooleans from public API
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview/wip/search] Validate gbooleans from public API
- Date: Sat, 6 Jul 2013 18:01:52 +0000 (UTC)
commit d7ed8ccdc4327692665cfc8ff606b97ee16ef56a
Author: Sébastien Wilmet <swilmet gnome org>
Date: Sat Jul 6 19:29:55 2013 +0200
Validate gbooleans from public API
A gboolean is a guint or gint.
gtksourceview/gtksourcebuffer.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/gtksourceview/gtksourcebuffer.c b/gtksourceview/gtksourcebuffer.c
index 5b02487..d44c146 100644
--- a/gtksourceview/gtksourcebuffer.c
+++ b/gtksourceview/gtksourcebuffer.c
@@ -2680,6 +2680,8 @@ gtk_source_buffer_set_case_sensitive_search (GtkSourceBuffer *buffer,
g_return_if_fail (GTK_SOURCE_IS_BUFFER (buffer));
+ case_sensitive = case_sensitive != FALSE;
+
cur_val = _gtk_source_search_get_case_sensitive (buffer->priv->search);
if (cur_val != case_sensitive)
@@ -2707,6 +2709,8 @@ gtk_source_buffer_set_search_at_word_boundaries (GtkSourceBuffer *buffer,
g_return_if_fail (GTK_SOURCE_IS_BUFFER (buffer));
+ at_word_boundaries = at_word_boundaries != FALSE;
+
cur_val = _gtk_source_search_get_at_word_boundaries (buffer->priv->search);
if (cur_val != at_word_boundaries)
@@ -2734,6 +2738,8 @@ gtk_source_buffer_set_search_wrap_around (GtkSourceBuffer *buffer,
g_return_if_fail (GTK_SOURCE_IS_BUFFER (buffer));
+ wrap_around = wrap_around != FALSE;
+
cur_val = _gtk_source_search_get_wrap_around (buffer->priv->search);
if (cur_val != wrap_around)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]