[gtksourceview] region: change return type of subregions(): gint -> guint
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview] region: change return type of subregions(): gint -> guint
- Date: Sat, 2 Apr 2016 09:58:05 +0000 (UTC)
commit 274370f6031a38687b62b2cdc5235227183a2381
Author: Sébastien Wilmet <swilmet gnome org>
Date: Sat Apr 2 11:36:30 2016 +0200
region: change return type of subregions(): gint -> guint
gtksourceview/gtksourceregion.c | 2 +-
gtksourceview/gtksourceregion.h | 2 +-
gtksourceview/gtksourcesearchcontext.c | 4 ++--
testsuite/test-region.c | 4 ++--
4 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/gtksourceview/gtksourceregion.c b/gtksourceview/gtksourceregion.c
index aa8a3b2..c408e3f 100644
--- a/gtksourceview/gtksourceregion.c
+++ b/gtksourceview/gtksourceregion.c
@@ -493,7 +493,7 @@ gtk_source_region_subtract (GtkSourceRegion *region,
DEBUG (_gtk_source_region_debug_print (region));
}
-gint
+guint
gtk_source_region_subregions (GtkSourceRegion *region)
{
g_return_val_if_fail (region != NULL, 0);
diff --git a/gtksourceview/gtksourceregion.h b/gtksourceview/gtksourceregion.h
index 4d41000..eb11ebc 100644
--- a/gtksourceview/gtksourceregion.h
+++ b/gtksourceview/gtksourceregion.h
@@ -68,7 +68,7 @@ GtkSourceRegion * gtk_source_region_intersect (GtkSourceRegion *region,
const GtkTextIter *_end);
GTK_SOURCE_INTERNAL
-gint gtk_source_region_subregions (GtkSourceRegion *region);
+guint gtk_source_region_subregions (GtkSourceRegion *region);
GTK_SOURCE_INTERNAL
gboolean gtk_source_region_nth_subregion (GtkSourceRegion *region,
diff --git a/gtksourceview/gtksourcesearchcontext.c b/gtksourceview/gtksourcesearchcontext.c
index 23f8a55..6b47307 100644
--- a/gtksourceview/gtksourcesearchcontext.c
+++ b/gtksourceview/gtksourcesearchcontext.c
@@ -1619,7 +1619,7 @@ static void
scan_all_region (GtkSourceSearchContext *search,
GtkSourceRegion *region_to_highlight)
{
- gint nb_subregions = gtk_source_region_subregions (region_to_highlight);
+ guint nb_subregions = gtk_source_region_subregions (region_to_highlight);
GtkTextIter start_search;
GtkTextIter end_search;
@@ -1825,7 +1825,7 @@ regex_search_handle_high_priority_region (GtkSourceSearchContext *search)
GtkTextIter end;
GtkSourceRegion *region;
GtkSourceRegionIter region_iter;
- gint nb_subregions = gtk_source_region_subregions (search->priv->high_priority_region);
+ guint nb_subregions = gtk_source_region_subregions (search->priv->high_priority_region);
if (nb_subregions == 0)
{
diff --git a/testsuite/test-region.c b/testsuite/test-region.c
index 734179a..4a3025d 100644
--- a/testsuite/test-region.c
+++ b/testsuite/test-region.c
@@ -31,7 +31,7 @@ test_region (void)
GtkSourceRegion *region, *intersection;
GtkSourceRegionIter reg_iter;
GtkTextIter iter1, iter2;
- gint i;
+ guint i;
#define NUM_OPS 23
@@ -162,7 +162,7 @@ test_region (void)
g_assert_not_reached ();
}
- g_print ("iterated %d subregions\n", i);
+ g_print ("iterated %u subregions\n", i);
gtk_source_region_destroy (region);
g_object_unref (buffer);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]