summaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/a11y/accessibility-dump.c28
-rw-r--r--testsuite/a11y/children.c14
-rw-r--r--testsuite/a11y/state/state-record.c8
-rw-r--r--testsuite/a11y/text.c48
-rw-r--r--testsuite/a11y/tree-performance.c16
-rw-r--r--testsuite/a11y/tree-relationships.c2
-rw-r--r--testsuite/a11y/value.c4
-rw-r--r--testsuite/gdk/encoding.c6
-rw-r--r--testsuite/gdk/keysyms.c2
-rw-r--r--testsuite/gdk/memorytexture.c4
-rw-r--r--testsuite/gtk/adjustment.c4
-rw-r--r--testsuite/gtk/builder.c2
-rw-r--r--testsuite/gtk/entry.c26
-rw-r--r--testsuite/gtk/filtermodel.c4
-rw-r--r--testsuite/gtk/gestures.c6
-rw-r--r--testsuite/gtk/grid.c2
-rw-r--r--testsuite/gtk/gtktreemodelrefcount.c6
-rw-r--r--testsuite/gtk/gtktreemodelrefcount.h14
-rw-r--r--testsuite/gtk/icontheme.c12
-rw-r--r--testsuite/gtk/listbox.c44
-rw-r--r--testsuite/gtk/liststore.c4
-rw-r--r--testsuite/gtk/notify.c28
-rw-r--r--testsuite/gtk/objects-finalize.c2
-rw-r--r--testsuite/gtk/rbtree.c22
-rw-r--r--testsuite/gtk/recentmanager.c4
-rw-r--r--testsuite/gtk/spinbutton.c4
-rw-r--r--testsuite/gtk/textbuffer.c32
-rw-r--r--testsuite/gtk/textiter.c46
-rw-r--r--testsuite/gtk/treemodel.c2
-rw-r--r--testsuite/gtk/treepath.c22
-rw-r--r--testsuite/gtk/treestore.c6
-rw-r--r--testsuite/gtk/typename.c2
-rw-r--r--testsuite/gtk/window.c12
-rw-r--r--testsuite/reftests/reftest-snapshot.c2
-rw-r--r--testsuite/reftests/textview-border-windows.c2
35 files changed, 221 insertions, 221 deletions
diff --git a/testsuite/a11y/accessibility-dump.c b/testsuite/a11y/accessibility-dump.c
index f77a9bc152..5beed2cf33 100644
--- a/testsuite/a11y/accessibility-dump.c
+++ b/testsuite/a11y/accessibility-dump.c
@@ -240,7 +240,7 @@ dump_attribute_set (GString *string,
}
}
-static gint
+static int
compare_attr (gconstpointer a, gconstpointer b)
{
const AtkAttribute *aattr = a;
@@ -251,7 +251,7 @@ compare_attr (gconstpointer a, gconstpointer b)
static void
dump_text_attributes (GString *string,
- gint depth,
+ int depth,
const gchar *name,
AtkAttributeSet *attributes)
{
@@ -335,7 +335,7 @@ dump_atk_text (AtkText *atk_text,
GString *string)
{
gchar *text;
- gint i, start, end;
+ int i, start, end;
g_string_append_printf (string, "%*s<AtkText>\n", depth, "");
@@ -363,7 +363,7 @@ dump_atk_image (AtkImage *atk_image,
guint depth,
GString *string)
{
- gint width, height;
+ int width, height;
g_string_append_printf (string, "%*s<AtkImage>\n", depth, "");
@@ -378,7 +378,7 @@ dump_atk_action (AtkAction *atk_action,
guint depth,
GString *string)
{
- gint i;
+ int i;
g_string_append_printf (string, "%*s<AtkAction>\n", depth, "");
@@ -399,7 +399,7 @@ dump_atk_selection (AtkSelection *atk_selection,
GString *string)
{
guint n_selections, n_counted_selections;
- gint i;
+ int i;
g_string_append_printf (string, "%*s<AtkSelection>\n", depth, "");
@@ -474,7 +474,7 @@ dump_atk_hyperlink (AtkHyperlink *link,
guint depth,
GString *string)
{
- gint i;
+ int i;
g_string_append_printf (string, "%*s<AtkHyperlink>\n", depth, "");
g_string_append_printf (string, "%*sstart index: %d\n", depth, "", atk_hyperlink_get_start_index (link));
@@ -512,7 +512,7 @@ dump_atk_hypertext (AtkHypertext *hypertext,
guint depth,
GString *string)
{
- gint i;
+ int i;
AtkHyperlink *link;
g_string_append_printf (string, "%*s<AtkHypertext>\n", depth, "");
@@ -529,7 +529,7 @@ dump_atk_streamable_content (AtkStreamableContent *content,
guint depth,
GString *string)
{
- gint i;
+ int i;
g_string_append_printf (string, "%*s<AtkStreamableContent>\n", depth, "");
@@ -544,9 +544,9 @@ dump_atk_table (AtkTable *table,
guint depth,
GString *string)
{
- gint *selected;
- gint n_selected;
- gint i, j;
+ int *selected;
+ int n_selected;
+ int i, j;
AtkObject *obj;
const gchar *desc;
@@ -634,10 +634,10 @@ dump_atk_table_cell (AtkTableCell *table_cell,
guint depth,
GString *string)
{
- gint i;
+ int i;
AtkObject *obj;
GPtrArray *cells;
- gint row = -1, column = -1;
+ int row = -1, column = -1;
g_string_append_printf (string, "%*s<AtkTableCell>\n", depth, "");
diff --git a/testsuite/a11y/children.c b/testsuite/a11y/children.c
index 1349b61218..cb370f9001 100644
--- a/testsuite/a11y/children.c
+++ b/testsuite/a11y/children.c
@@ -49,9 +49,9 @@ test_scrolled_window_child_count (void)
}
typedef struct {
- gint count;
- gint index;
- gint n_children;
+ int count;
+ int index;
+ int n_children;
gpointer parent;
} SignalData;
@@ -68,7 +68,7 @@ children_changed (AtkObject *accessible,
static void
remove_child (STATE *state,
- gint i)
+ int i)
{
GtkWidget *child;
@@ -109,7 +109,7 @@ parent_notify (AtkObject *obj, GParamSpec *pspec, SignalData *data)
}
static gboolean
-do_create_child (STATE *state, gint i)
+do_create_child (STATE *state, int i)
{
if (GTK_IS_ENTRY (state->widget))
{
@@ -143,8 +143,8 @@ test_add_remove (GtkWidget *widget)
SignalData remove_data;
SignalData parent_data[3] = { { 0, }, };
STATE state;
- gint i, j;
- gint step_children;
+ int i, j;
+ int step_children;
state.widget = widget;
accessible = gtk_widget_get_accessible (widget);
diff --git a/testsuite/a11y/state/state-record.c b/testsuite/a11y/state/state-record.c
index 3a11c8bee2..98c055c723 100644
--- a/testsuite/a11y/state/state-record.c
+++ b/testsuite/a11y/state/state-record.c
@@ -36,7 +36,7 @@ record_state_change (AtkObject *accessible,
if (states)
{
- gint i;
+ int i;
for (i = 0; states[i]; i++)
{
@@ -66,8 +66,8 @@ static void
do_action (GtkBuilder *builder, const gchar *action, GString *string)
{
gchar **parts;
- gint len;
- gint i;
+ int len;
+ int i;
parts = g_strsplit (action, " ", 0);
len = g_strv_length (parts);
@@ -142,7 +142,7 @@ record_events (const gchar *ui_file,
GError *error;
gchar *contents;
gchar **actions;
- gint i, len;
+ int i, len;
builder = gtk_builder_new ();
error = NULL;
diff --git a/testsuite/a11y/text.c b/testsuite/a11y/text.c
index fc5ac70cc3..c78a24061d 100644
--- a/testsuite/a11y/text.c
+++ b/testsuite/a11y/text.c
@@ -74,7 +74,7 @@ test_basic (GtkWidget *widget)
AtkText *atk_text;
const gchar *text = "Text goes here";
gchar *ret;
- gint count;
+ int count;
gunichar c;
atk_text = ATK_TEXT (gtk_widget_get_accessible (widget));
@@ -103,13 +103,13 @@ test_basic (GtkWidget *widget)
}
typedef struct {
- gint count;
- gint position;
- gint length;
+ int count;
+ int position;
+ int length;
} SignalData;
static void
-text_deleted (AtkText *atk_text, gint position, gint length, SignalData *data)
+text_deleted (AtkText *atk_text, int position, int length, SignalData *data)
{
data->count++;
data->position = position;
@@ -117,7 +117,7 @@ text_deleted (AtkText *atk_text, gint position, gint length, SignalData *data)
}
static void
-text_inserted (AtkText *atk_text, gint position, gint length, SignalData *data)
+text_inserted (AtkText *atk_text, int position, int length, SignalData *data)
{
data->count++;
data->position = position;
@@ -195,11 +195,11 @@ test_text_changed (GtkWidget *widget)
}
typedef struct {
- gint gravity;
- gint offset;
+ int gravity;
+ int offset;
AtkTextBoundary boundary;
- gint start;
- gint end;
+ int start;
+ int end;
const gchar *word;
} Word;
@@ -221,7 +221,7 @@ boundary (AtkTextBoundary b)
}
static const gchar *
-gravity (gint g)
+gravity (int g)
{
if (g < 0) return "before";
else if (g > 0) return "after";
@@ -271,11 +271,11 @@ static void
show_text_attributes (PangoLayout *l)
{
const PangoLogAttr *attr;
- gint n_attrs;
+ int n_attrs;
const gchar *s;
gchar e;
const gchar *p;
- gint i;
+ int i;
const gchar *text;
GSList *lines, *li;
glong so, eo;
@@ -830,9 +830,9 @@ test_words (GtkWidget *widget)
{ 1, 20, ATK_TEXT_BOUNDARY_LINE_END, 20, 20, "" },
{ 0, -1, }
};
- gint start, end;
+ int start, end;
gchar *word;
- gint i;
+ int i;
atk_text = ATK_TEXT (gtk_widget_get_accessible (widget));
@@ -847,7 +847,7 @@ test_words (GtkWidget *widget)
#ifdef DUMP_RESULTS
for (i = -1; i <= 1; i++)
{
- gint j, k;
+ int j, k;
for (j = ATK_TEXT_BOUNDARY_CHAR; j <= ATK_TEXT_BOUNDARY_LINE_END; j++)
for (k = 0; k <= strlen (text); k++)
{
@@ -918,8 +918,8 @@ test_words (GtkWidget *widget)
static void
select_region (GtkWidget *widget,
- gint start,
- gint end)
+ int start,
+ int end)
{
if (GTK_IS_EDITABLE (widget))
gtk_editable_select_region (GTK_EDITABLE (widget), start, end);
@@ -940,13 +940,13 @@ select_region (GtkWidget *widget,
}
typedef struct {
- gint count;
- gint position;
- gint bound;
+ int count;
+ int position;
+ int bound;
} SelectionData;
static void
-caret_moved_cb (AtkText *text, gint position, SelectionData *data)
+caret_moved_cb (AtkText *text, int position, SelectionData *data)
{
data->count++;
data->position = position;
@@ -965,9 +965,9 @@ test_selection (GtkWidget *widget)
{
AtkText *atk_text;
const gchar *text = "Bla bla bla";
- gint n;
+ int n;
gchar *ret;
- gint start, end;
+ int start, end;
SelectionData data1;
SelectionData data2;
diff --git a/testsuite/a11y/tree-performance.c b/testsuite/a11y/tree-performance.c
index b28f7a3d0d..e86bb9f97b 100644
--- a/testsuite/a11y/tree-performance.c
+++ b/testsuite/a11y/tree-performance.c
@@ -89,8 +89,8 @@ static void
walk_accessible_tree (AtkObject *accessible,
gpointer data)
{
- gint *count = data;
- gint i;
+ int *count = data;
+ int i;
(*count)++;
@@ -130,7 +130,7 @@ populate_list (GtkBuilder *builder)
GtkTreeView *tv;
GtkListStore *store;
GtkTreeIter iter;
- gint i;
+ int i;
tv = (GtkTreeView *)gtk_builder_get_object (builder, "treeview1");
store = (GtkListStore *)gtk_tree_view_get_model (tv);
@@ -175,8 +175,8 @@ test_a11y_performance_list (void)
gdouble elapsed;
GtkWidget *window;
GError *error = NULL;
- gint count_before;
- gint count_after;
+ int count_before;
+ int count_after;
builder = gtk_builder_new ();
gtk_builder_add_from_string (builder, list_ui, -1, &error);
@@ -271,7 +271,7 @@ populate_tree (GtkBuilder *builder)
GtkTreeView *tv;
GtkTreeStore *store;
GtkTreeIter iter;
- gint i;
+ int i;
tv = (GtkTreeView *)gtk_builder_get_object (builder, "treeview1");
store = (GtkTreeStore *)gtk_tree_view_get_model (tv);
@@ -322,8 +322,8 @@ test_a11y_performance_tree (void)
gdouble elapsed;
GtkWidget *window;
GError *error = NULL;
- gint count_before;
- gint count_after;
+ int count_before;
+ int count_after;
builder = gtk_builder_new ();
gtk_builder_add_from_string (builder, tree_ui, -1, &error);
diff --git a/testsuite/a11y/tree-relationships.c b/testsuite/a11y/tree-relationships.c
index f24d70e643..82d15fb3cd 100644
--- a/testsuite/a11y/tree-relationships.c
+++ b/testsuite/a11y/tree-relationships.c
@@ -192,7 +192,7 @@ populate_tree (GtkBuilder *builder)
}
typedef struct {
- gint count;
+ int count;
AtkObject *descendant;
} SignalData;
diff --git a/testsuite/a11y/value.c b/testsuite/a11y/value.c
index df94c5b0d0..bedf4d3e47 100644
--- a/testsuite/a11y/value.c
+++ b/testsuite/a11y/value.c
@@ -24,7 +24,7 @@
static void
set_value (GtkWidget *widget,
- gint value)
+ int value)
{
if (GTK_IS_LEVEL_BAR (widget))
gtk_level_bar_set_value (GTK_LEVEL_BAR (widget), value);
@@ -42,7 +42,7 @@ set_value (GtkWidget *widget,
typedef struct
{
- gint count;
+ int count;
gchar *last_name;
} NotifyData;
diff --git a/testsuite/gdk/encoding.c b/testsuite/gdk/encoding.c
index 0666e26218..9a4be26be2 100644
--- a/testsuite/gdk/encoding.c
+++ b/testsuite/gdk/encoding.c
@@ -14,11 +14,11 @@ test_to_text_list (void)
if (GDK_IS_X11_DISPLAY (display))
{
const char *encoding;
- gint format;
+ int format;
const guchar *text;
- gint length;
+ int length;
gchar **list;
- gint n;
+ int n;
encoding = g_intern_string ("UTF8_STRING");
format = 8;
diff --git a/testsuite/gdk/keysyms.c b/testsuite/gdk/keysyms.c
index dc94faec23..b7bd8d1670 100644
--- a/testsuite/gdk/keysyms.c
+++ b/testsuite/gdk/keysyms.c
@@ -18,7 +18,7 @@ test_keysyms_basic (void)
{ GDK_KEY_MonBrightnessUp, "MonBrightnessUp", NULL },
{ 0, NULL }
};
- gint i;
+ int i;
for (i = 0; tests[i].keyval != 0; i++)
{
diff --git a/testsuite/gdk/memorytexture.c b/testsuite/gdk/memorytexture.c
index 5f61b8c079..381d61aac7 100644
--- a/testsuite/gdk/memorytexture.c
+++ b/testsuite/gdk/memorytexture.c
@@ -51,8 +51,8 @@ compare_textures (GdkTexture *expected,
gboolean ignore_alpha)
{
guchar *expected_data, *test_data;
- gint width, height;
- gint x, y;
+ int width, height;
+ int x, y;
g_assert_cmpint (gdk_texture_get_width (expected), ==, gdk_texture_get_width (test));
g_assert_cmpint (gdk_texture_get_height (expected), ==, gdk_texture_get_height (test));
diff --git a/testsuite/gtk/adjustment.c b/testsuite/gtk/adjustment.c
index 598408a58e..dc6c41a742 100644
--- a/testsuite/gtk/adjustment.c
+++ b/testsuite/gtk/adjustment.c
@@ -50,8 +50,8 @@ test_basic (void)
g_object_unref (a);
}
-static gint changed_count;
-static gint value_changed_count;
+static int changed_count;
+static int value_changed_count;
static void
changed_cb (GtkAdjustment *a)
diff --git a/testsuite/gtk/builder.c b/testsuite/gtk/builder.c
index 18b29e2078..b6da2dfbef 100644
--- a/testsuite/gtk/builder.c
+++ b/testsuite/gtk/builder.c
@@ -1880,7 +1880,7 @@ test_add_objects (void)
{
GtkBuilder *builder;
GError *error;
- gint ret;
+ int ret;
GObject *obj;
const gchar *objects[2] = {"mainbox", NULL};
const gchar *objects2[3] = {"mainbox", "window2", NULL};
diff --git a/testsuite/gtk/entry.c b/testsuite/gtk/entry.c
index 814e3c0809..1f03c4f3d3 100644
--- a/testsuite/gtk/entry.c
+++ b/testsuite/gtk/entry.c
@@ -17,17 +17,17 @@
#include <gtk/gtk.h>
-static gint serial = 0;
+static int serial = 0;
typedef struct {
- gint serial;
- gint count;
- gint start;
- gint end;
+ int serial;
+ int count;
+ int start;
+ int end;
gchar *text;
gchar *new_text;
- gint position;
- gint length;
+ int position;
+ int length;
} EntryData;
static void
@@ -49,8 +49,8 @@ notify (GtkEditable *editable, GParamSpec *pspec, EntryData *data)
static void
insert_text (GtkEditable *editable,
const gchar *new_text,
- gint new_text_length,
- gint *position,
+ int new_text_length,
+ int *position,
EntryData *data)
{
data->serial = serial++;
@@ -71,8 +71,8 @@ insert_text (GtkEditable *editable,
static void
delete_text (GtkEditable *editable,
- gint start_pos,
- gint end_pos,
+ int start_pos,
+ int end_pos,
EntryData *data)
{
data->serial = serial++;
@@ -111,7 +111,7 @@ static void
test_insert (void)
{
GtkWidget *entry;
- gint pos;
+ int pos;
EntryData data1;
EntryData data2;
EntryData data3;
@@ -213,7 +213,7 @@ static void
test_delete (void)
{
GtkWidget *entry;
- gint pos;
+ int pos;
EntryData data1;
EntryData data2;
EntryData data3;
diff --git a/testsuite/gtk/filtermodel.c b/testsuite/gtk/filtermodel.c
index 5b03a93cf2..9e9916744c 100644
--- a/testsuite/gtk/filtermodel.c
+++ b/testsuite/gtk/filtermodel.c
@@ -4644,7 +4644,7 @@ specific_append_after_collapse_visible_func (GtkTreeModel *model,
GtkTreeIter *iter,
gpointer data)
{
- gint number;
+ int number;
gboolean hide_negative_numbers;
gtk_tree_model_get (model, iter, 1, &number, -1);
@@ -4746,7 +4746,7 @@ specific_append_after_collapse (void)
}
-static gint
+static int
specific_sort_filter_remove_node_compare_func (GtkTreeModel *model,
GtkTreeIter *iter1,
GtkTreeIter *iter2,
diff --git a/testsuite/gtk/gestures.c b/testsuite/gtk/gestures.c
index b9ab90b3e8..6e0234e658 100644
--- a/testsuite/gtk/gestures.c
+++ b/testsuite/gtk/gestures.c
@@ -5,8 +5,8 @@
typedef struct {
GtkWidget *widget;
- gint x;
- gint y;
+ int x;
+ int y;
guint state;
guint pressed : 1;
} PointState;
@@ -247,7 +247,7 @@ typedef struct {
} GestureData;
static void
-press_cb (GtkGesture *g, gint n_press, gdouble x, gdouble y, gpointer data)
+press_cb (GtkGesture *g, int n_press, gdouble x, gdouble y, gpointer data)
{
GtkEventController *c = GTK_EVENT_CONTROLLER (g);
GdkEventSequence *sequence;
diff --git a/testsuite/gtk/grid.c b/testsuite/gtk/grid.c
index cfb2a3d82c..42cfc90f87 100644
--- a/testsuite/gtk/grid.c
+++ b/testsuite/gtk/grid.c
@@ -25,7 +25,7 @@ test_attach (void)
{
GtkGrid *g;
GtkWidget *child, *sibling, *z, *A, *B;
- gint left, top, width, height;
+ int left, top, width, height;
g = (GtkGrid *)gtk_grid_new ();
diff --git a/testsuite/gtk/gtktreemodelrefcount.c b/testsuite/gtk/gtktreemodelrefcount.c
index de84b27994..58d7f05738 100644
--- a/testsuite/gtk/gtktreemodelrefcount.c
+++ b/testsuite/gtk/gtktreemodelrefcount.c
@@ -232,7 +232,7 @@ gtk_tree_model_ref_count_dump (GtkTreeModelRefCount *ref_model)
static gboolean
check_iter (GtkTreeModelRefCount *ref_model,
GtkTreeIter *iter,
- gint expected_ref_count,
+ int expected_ref_count,
gboolean may_assert)
{
NodeInfo *info;
@@ -267,7 +267,7 @@ check_iter (GtkTreeModelRefCount *ref_model,
gboolean
gtk_tree_model_ref_count_check_level (GtkTreeModelRefCount *ref_model,
GtkTreeIter *parent,
- gint expected_ref_count,
+ int expected_ref_count,
gboolean recurse,
gboolean may_assert)
{
@@ -299,7 +299,7 @@ gtk_tree_model_ref_count_check_level (GtkTreeModelRefCount *ref_model,
gboolean
gtk_tree_model_ref_count_check_node (GtkTreeModelRefCount *ref_model,
GtkTreeIter *iter,
- gint expected_ref_count,
+ int expected_ref_count,
gboolean may_assert)
{
return check_iter (ref_model, iter, expected_ref_count, may_assert);
diff --git a/testsuite/gtk/gtktreemodelrefcount.h b/testsuite/gtk/gtktreemodelrefcount.h
index a4b4011a24..019f166478 100644
--- a/testsuite/gtk/gtktreemodelrefcount.h
+++ b/testsuite/gtk/gtktreemodelrefcount.h
@@ -54,12 +54,12 @@ GtkTreeModel *gtk_tree_model_ref_count_new (void);
void gtk_tree_model_ref_count_dump (GtkTreeModelRefCount *ref_model);
gboolean gtk_tree_model_ref_count_check_level (GtkTreeModelRefCount *ref_model,
GtkTreeIter *parent,
- gint expected_ref_count,
+ int expected_ref_count,
gboolean recurse,
gboolean may_assert);
gboolean gtk_tree_model_ref_count_check_node (GtkTreeModelRefCount *ref_model,
GtkTreeIter *iter,
- gint expected_ref_count,
+ int expected_ref_count,
gboolean may_assert);
/* A couple of helpers for the tests. Since this model will never be used
@@ -88,14 +88,14 @@ assert_level_unreferenced (GtkTreeModelRefCount *ref_model,
static inline void
assert_entire_model_referenced (GtkTreeModelRefCount *ref_model,
- gint ref_count)
+ int ref_count)
{
gtk_tree_model_ref_count_check_level (ref_model, NULL, ref_count, TRUE, TRUE);
}
static inline void
assert_not_entire_model_referenced (GtkTreeModelRefCount *ref_model,
- gint ref_count)
+ int ref_count)
{
g_assert_cmpint (gtk_tree_model_ref_count_check_level (ref_model, NULL,
ref_count,
@@ -105,7 +105,7 @@ assert_not_entire_model_referenced (GtkTreeModelRefCount *ref_model,
static inline void
assert_root_level_referenced (GtkTreeModelRefCount *ref_model,
- gint ref_count)
+ int ref_count)
{
gtk_tree_model_ref_count_check_level (ref_model, NULL, ref_count,
FALSE, TRUE);
@@ -113,7 +113,7 @@ assert_root_level_referenced (GtkTreeModelRefCount *ref_model,
static inline void
assert_level_referenced (GtkTreeModelRefCount *ref_model,
- gint ref_count,
+ int ref_count,
GtkTreeIter *iter)
{
gtk_tree_model_ref_count_check_level (ref_model, iter, ref_count,
@@ -123,7 +123,7 @@ assert_level_referenced (GtkTreeModelRefCount *ref_model,
static inline void
assert_node_ref_count (GtkTreeModelRefCount *ref_model,
GtkTreeIter *iter,
- gint ref_count)
+ int ref_count)
{
gtk_tree_model_ref_count_check_node (ref_model, iter, ref_count, TRUE);
}
diff --git a/testsuite/gtk/icontheme.c b/testsuite/gtk/icontheme.c
index a343c75735..b6387ce9d9 100644
--- a/testsuite/gtk/icontheme.c
+++ b/testsuite/gtk/icontheme.c
@@ -50,12 +50,12 @@ lookup_flags_to_string (GtkIconLookupFlags flags)
static void
assert_icon_lookup_size (const char *icon_name,
- gint size,
+ int size,
GtkTextDirection direction,
GtkIconLookupFlags flags,
gboolean fallbacks,
const char *filename,
- gint pixbuf_size)
+ int pixbuf_size)
{
GtkIconPaintable *info;
GFile *file;
@@ -111,7 +111,7 @@ assert_icon_lookup_size (const char *icon_name,
static void
assert_icon_lookup (const char *icon_name,
- gint size,
+ int size,
GtkTextDirection direction,
GtkIconLookupFlags flags,
gboolean fallbacks,
@@ -122,7 +122,7 @@ assert_icon_lookup (const char *icon_name,
static void
assert_icon_lookup_fails (const char *icon_name,
- gint size,
+ int size,
GtkTextDirection direction,
GtkIconLookupFlags flags)
{
@@ -170,7 +170,7 @@ log_writer (GLogLevelFlags log_level,
static void
assert_lookup_order (const char *icon_name,
- gint size,
+ int size,
GtkTextDirection direction,
GtkIconLookupFlags flags,
gboolean fallbacks,
@@ -734,7 +734,7 @@ test_inherit (void)
static void
test_nonsquare_symbolic (void)
{
- gint width, height, size;
+ int width, height, size;
GtkIconTheme *icon_theme;
GtkIconPaintable *info;
GFile *file;
diff --git a/testsuite/gtk/listbox.c b/testsuite/gtk/listbox.c
index 88b24108eb..43c2443651 100644
--- a/testsuite/gtk/listbox.c
+++ b/testsuite/gtk/listbox.c
@@ -1,13 +1,13 @@
#include <gtk/gtk.h>
-static gint
+static int
sort_list (GtkListBoxRow *row1,
GtkListBoxRow *row2,
gpointer data)
{
GtkWidget *label1, *label2;
- gint n1, n2;
- gint *count = data;
+ int n1, n2;
+ int *count = data;
(*count)++;
@@ -51,9 +51,9 @@ test_sort (void)
GtkListBox *list;
GtkListBoxRow *row;
GtkWidget *label;
- gint i, r;
+ int i, r;
gchar *s;
- gint count;
+ int count;
list = GTK_LIST_BOX (gtk_list_box_new ());
g_object_ref_sink (list);
@@ -94,7 +94,7 @@ on_row_selected (GtkListBox *list_box,
GtkListBoxRow *row,
gpointer data)
{
- gint *i = data;
+ int *i = data;
(*i)++;
@@ -107,10 +107,10 @@ test_selection (void)
GtkListBox *list;
GtkListBoxRow *row, *row2;
GtkWidget *label;
- gint i;
+ int i;
gchar *s;
- gint count;
- gint index;
+ int count;
+ int index;
list = GTK_LIST_BOX (gtk_list_box_new ());
g_object_ref_sink (list);
@@ -184,7 +184,7 @@ test_selection (void)
static void
on_selected_rows_changed (GtkListBox *box, gpointer data)
{
- gint *i = data;
+ int *i = data;
(*i)++;
}
@@ -196,9 +196,9 @@ test_multi_selection (void)
GList *l;
GtkListBoxRow *row, *row2;
GtkWidget *label;
- gint i;
+ int i;
gchar *s;
- gint count;
+ int count;
list = GTK_LIST_BOX (gtk_list_box_new ());
g_object_ref_sink (list);
@@ -272,9 +272,9 @@ static gboolean
filter_func (GtkListBoxRow *row,
gpointer data)
{
- gint *count = data;
+ int *count = data;
GtkWidget *child;
- gint i;
+ int i;
(*count)++;
@@ -287,7 +287,7 @@ filter_func (GtkListBoxRow *row,
static void
check_filtered (GtkListBox *list)
{
- gint count;
+ int count;
GtkWidget *row;
count = 0;
@@ -309,10 +309,10 @@ test_filter (void)
{
GtkListBox *list;
GtkListBoxRow *row;
- gint i;
+ int i;
gchar *s;
GtkWidget *label;
- gint count;
+ int count;
list = GTK_LIST_BOX (gtk_list_box_new ());
g_object_ref_sink (list);
@@ -354,8 +354,8 @@ header_func (GtkListBoxRow *row,
gpointer data)
{
GtkWidget *child;
- gint i;
- gint *count = data;
+ int i;
+ int *count = data;
GtkWidget *header;
gchar *s;
@@ -379,7 +379,7 @@ header_func (GtkListBoxRow *row,
static void
check_headers (GtkListBox *list)
{
- gint count;
+ int count;
GtkWidget *row;
count = 0;
@@ -401,10 +401,10 @@ test_header (void)
{
GtkListBox *list;
GtkListBoxRow *row;
- gint i;
+ int i;
gchar *s;
GtkWidget *label;
- gint count;
+ int count;
list = GTK_LIST_BOX (gtk_list_box_new ());
g_object_ref_sink (list);
diff --git a/testsuite/gtk/liststore.c b/testsuite/gtk/liststore.c
index 4455a13dff..0bf77f6890 100644
--- a/testsuite/gtk/liststore.c
+++ b/testsuite/gtk/liststore.c
@@ -99,8 +99,8 @@ list_store_teardown (ListStore *fixture,
static void
check_model (ListStore *fixture,
- gint *new_order,
- gint skip)
+ int *new_order,
+ int skip)
{
int i;
GtkTreePath *path;
diff --git a/testsuite/gtk/notify.c b/testsuite/gtk/notify.c
index ddd806948d..ed2076455f 100644
--- a/testsuite/gtk/notify.c
+++ b/testsuite/gtk/notify.c
@@ -41,7 +41,7 @@ assert_notifies (GObject *object,
typedef struct
{
const gchar *name;
- gint count;
+ int count;
} NotifyData;
static void
@@ -64,12 +64,12 @@ check_property (GObject *instance, GParamSpec *pspec)
if (G_TYPE_IS_ENUM (pspec->value_type))
{
GEnumClass *class;
- gint i;
+ int i;
NotifyData data;
gulong id;
- gint first;
- gint value;
- gint current_count;
+ int first;
+ int value;
+ int current_count;
class = g_type_class_ref (pspec->value_type);
@@ -103,11 +103,11 @@ check_property (GObject *instance, GParamSpec *pspec)
else if (G_TYPE_IS_FLAGS (pspec->value_type))
{
GFlagsClass *class;
- gint i;
+ int i;
NotifyData data;
gulong id;
guint value;
- gint current_count;
+ int current_count;
class = g_type_class_ref (pspec->value_type);
@@ -165,11 +165,11 @@ check_property (GObject *instance, GParamSpec *pspec)
else if (pspec->value_type == G_TYPE_INT)
{
GParamSpecInt *p = G_PARAM_SPEC_INT (pspec);
- gint i;
+ int i;
NotifyData data;
gulong id;
- gint value;
- gint current_count;
+ int value;
+ int current_count;
data.name = pspec->name;
data.count = 0;
@@ -202,7 +202,7 @@ check_property (GObject *instance, GParamSpec *pspec)
NotifyData data;
gulong id;
guint value;
- gint current_count;
+ int current_count;
guint minimum, maximum;
if (G_IS_PARAM_SPEC_UINT (pspec))
@@ -274,7 +274,7 @@ check_property (GObject *instance, GParamSpec *pspec)
gulong id;
gdouble value;
gdouble new_value;
- gint current_count;
+ int current_count;
gdouble delta;
data.name = pspec->name;
@@ -315,7 +315,7 @@ check_property (GObject *instance, GParamSpec *pspec)
gulong id;
gfloat value;
gfloat new_value;
- gint current_count;
+ int current_count;
data.name = pspec->name;
data.count = 0;
@@ -678,7 +678,7 @@ main (int argc, char **argv)
{
const GType *otypes;
guint i;
- gint result;
+ int result;
gtk_test_init (&argc, &argv);
gtk_test_register_all_types();
diff --git a/testsuite/gtk/objects-finalize.c b/testsuite/gtk/objects-finalize.c
index e46f404424..17bebfd9c8 100644
--- a/testsuite/gtk/objects-finalize.c
+++ b/testsuite/gtk/objects-finalize.c
@@ -129,7 +129,7 @@ main (int argc, char **argv)
{
const GType *all_types;
guint n_types = 0, i;
- gint result;
+ int result;
const char *display, *x_r_d;
/* These must be set before gtk_test_init */
diff --git a/testsuite/gtk/rbtree.c b/testsuite/gtk/rbtree.c
index 0975c47d51..b40ae6eb4c 100644
--- a/testsuite/gtk/rbtree.c
+++ b/testsuite/gtk/rbtree.c
@@ -61,11 +61,11 @@ count_total (GtkTreeRBTree *tree,
return res;
}
-static gint
+static int
_count_nodes (GtkTreeRBTree *tree,
GtkTreeRBNode *node)
{
- gint res;
+ int res;
if (gtk_tree_rbtree_is_nil (node))
return 0;
@@ -84,7 +84,7 @@ static void
gtk_tree_rbtree_test_height (GtkTreeRBTree *tree,
GtkTreeRBNode *node)
{
- gint computed_offset = 0;
+ int computed_offset = 0;
/* This whole test is sort of a useless truism. */
@@ -113,7 +113,7 @@ gtk_tree_rbtree_test_height (GtkTreeRBTree *tree,
static void
gtk_tree_rbtree_test_dirty (GtkTreeRBTree *tree,
GtkTreeRBNode *node,
- gint expected_dirtyness)
+ int expected_dirtyness)
{
g_assert (node);
@@ -230,9 +230,9 @@ gtk_tree_rbtree_test (GtkTreeRBTree *tree)
static void
gtk_rbtree_print_node (GtkTreeRBTree *tree,
GtkTreeRBNode *node,
- gint depth)
+ int depth)
{
- gint i;
+ int i;
for (i = 0; i < depth; i++)
g_print ("\t");
@@ -429,13 +429,13 @@ test_remove_root (void)
gtk_tree_rbtree_free (tree);
}
-static gint *
+static int *
fisher_yates_shuffle (guint n_items)
{
- gint *list;
+ int *list;
guint i, j;
- list = g_new (gint, n_items);
+ list = g_new (int, n_items);
for (i = 0; i < n_items; i++)
{
@@ -448,7 +448,7 @@ fisher_yates_shuffle (guint n_items)
}
static GtkTreeRBTree *
-create_unsorted_tree (gint *order,
+create_unsorted_tree (int *order,
guint n)
{
GtkTreeRBTree *tree;
@@ -480,7 +480,7 @@ test_reorder (void)
guint n = g_test_perf () ? 1000000 : 100;
GtkTreeRBTree *tree;
GtkTreeRBNode *node;
- gint *reorder;
+ int *reorder;
guint i;
double elapsed;
diff --git a/testsuite/gtk/recentmanager.c b/testsuite/gtk/recentmanager.c
index 8173b3f00b..9594c9fe1a 100644
--- a/testsuite/gtk/recentmanager.c
+++ b/testsuite/gtk/recentmanager.c
@@ -101,7 +101,7 @@ recent_manager_add (void)
typedef struct {
GtkRecentManager *manager;
GMainLoop *main_loop;
- gint counter;
+ int counter;
} AddManyClosure;
static void
@@ -284,7 +284,7 @@ recent_manager_purge (void)
{
GtkRecentManager *manager;
GtkRecentData *recent_data;
- gint n;
+ int n;
GError *error;
manager = gtk_recent_manager_get_default ();
diff --git a/testsuite/gtk/spinbutton.c b/testsuite/gtk/spinbutton.c
index ace411e944..e8e35d9227 100644
--- a/testsuite/gtk/spinbutton.c
+++ b/testsuite/gtk/spinbutton.c
@@ -1,6 +1,6 @@
#include <gtk/gtk.h>
-static gint value_changed_count;
+static int value_changed_count;
static void
value_changed_cb (GtkSpinButton *spin)
@@ -37,7 +37,7 @@ test_value_changed (void)
g_assert_cmpint (value_changed_count, ==, 5);
}
-static gint adjustment_changed_count;
+static int adjustment_changed_count;
static void
adjustment_changed_cb (GObject *object, GParamSpec *pspec)
diff --git a/testsuite/gtk/textbuffer.c b/testsuite/gtk/textbuffer.c
index 1f2b95ff37..7498f2b789 100644
--- a/testsuite/gtk/textbuffer.c
+++ b/testsuite/gtk/textbuffer.c
@@ -90,13 +90,13 @@ check_get_set_text (GtkTextBuffer *buffer,
g_error ("%d chars, expected 0", n);
}
-static gint
+static int
count_toggles_at_iter (GtkTextIter *iter,
GtkTextTag *of_tag)
{
GSList *tags;
GSList *tmp;
- gint count = 0;
+ int count = 0;
/* get toggle-ons and toggle-offs */
tags = gtk_text_iter_get_toggled_tags (iter, TRUE);
@@ -119,14 +119,14 @@ count_toggles_at_iter (GtkTextIter *iter,
return count;
}
-static gint
+static int
count_toggles_in_range_by_char (GtkTextBuffer *buffer,
GtkTextTag *of_tag,
const GtkTextIter *start,
const GtkTextIter *end)
{
GtkTextIter iter;
- gint count = 0;
+ int count = 0;
iter = *start;
do
@@ -144,7 +144,7 @@ count_toggles_in_range_by_char (GtkTextBuffer *buffer,
return count;
}
-static gint
+static int
count_toggles_in_buffer (GtkTextBuffer *buffer,
GtkTextTag *of_tag)
{
@@ -164,9 +164,9 @@ check_specific_tag_in_range (GtkTextBuffer *buffer,
GtkTextIter iter;
GtkTextTag *tag;
gboolean state;
- gint count;
- gint buffer_count;
- gint last_offset;
+ int count;
+ int buffer_count;
+ int last_offset;
if (gtk_text_iter_compare (start, end) > 0)
{
@@ -189,7 +189,7 @@ check_specific_tag_in_range (GtkTextBuffer *buffer,
{
do
{
- gint this_offset;
+ int this_offset;
++count;
@@ -233,7 +233,7 @@ check_specific_tag_in_range (GtkTextBuffer *buffer,
{
do
{
- gint this_offset;
+ int this_offset;
++count;
@@ -289,13 +289,13 @@ run_tests (GtkTextBuffer *buffer)
GtkTextIter start;
GtkTextIter end;
GtkTextIter mark;
- gint i, j;
- gint num_chars;
+ int i, j;
+ int num_chars;
GtkTextMark *bar_mark;
GtkTextTag *tag;
GHashTable *tag_states;
- gint count;
- gint buffer_count;
+ int count;
+ int buffer_count;
gtk_text_buffer_get_bounds (buffer, &start, &end);
@@ -809,7 +809,7 @@ test_line_separation (const char* str,
GtkTextBuffer* buffer;
gboolean on_next_line;
gboolean on_end_iter;
- gint new_pos;
+ int new_pos;
buffer = gtk_text_buffer_new (NULL);
@@ -1464,7 +1464,7 @@ test_get_iter (void)
{
GtkTextBuffer *buffer;
GtkTextIter iter;
- gint offset;
+ int offset;
buffer = gtk_text_buffer_new (NULL);
diff --git a/testsuite/gtk/textiter.c b/testsuite/gtk/textiter.c
index 6f6e14f803..c13e277ca3 100644
--- a/testsuite/gtk/textiter.c
+++ b/testsuite/gtk/textiter.c
@@ -286,7 +286,7 @@ test_forward_to_tag_toggle (void)
GtkTextTag *bold_tag;
GtkTextTag *editable_tag;
GtkTextIter iter;
- gint offset;
+ int offset;
buffer = gtk_text_buffer_new (NULL);
@@ -332,8 +332,8 @@ test_forward_to_tag_toggle (void)
static void
check_forward_line_end (const gchar *buffer_text,
- gint initial_offset,
- gint result_offset,
+ int initial_offset,
+ int result_offset,
gboolean ret)
{
GtkTextBuffer *buffer;
@@ -364,7 +364,7 @@ test_forward_to_line_end (void)
static void
check_word_boundaries (const gchar *buffer_text,
- gint offset,
+ int offset,
gboolean starts_word,
gboolean ends_word,
gboolean inside_word)
@@ -386,8 +386,8 @@ check_word_boundaries (const gchar *buffer_text,
static void
check_forward_word_end (const gchar *buffer_text,
- gint initial_offset,
- gint result_offset,
+ int initial_offset,
+ int result_offset,
gboolean ret)
{
GtkTextBuffer *buffer;
@@ -406,8 +406,8 @@ check_forward_word_end (const gchar *buffer_text,
static void
check_backward_word_start (const gchar *buffer_text,
- gint initial_offset,
- gint result_offset,
+ int initial_offset,
+ int result_offset,
gboolean ret)
{
GtkTextBuffer *buffer;
@@ -453,8 +453,8 @@ test_word_boundaries (void)
static void
check_forward_visible_word_end (GtkTextBuffer *buffer,
- gint initial_offset,
- gint result_offset,
+ int initial_offset,
+ int result_offset,
gboolean ret)
{
GtkTextIter iter;
@@ -467,8 +467,8 @@ check_forward_visible_word_end (GtkTextBuffer *buffer,
static void
check_backward_visible_word_start (GtkTextBuffer *buffer,
- gint initial_offset,
- gint result_offset,
+ int initial_offset,
+ int result_offset,
gboolean ret)
{
GtkTextIter iter;
@@ -536,7 +536,7 @@ test_visible_word_boundaries (void)
static void
check_is_cursor_position (const gchar *buffer_text,
- gint offset,
+ int offset,
gboolean ret)
{
GtkTextBuffer *buffer;
@@ -554,8 +554,8 @@ check_is_cursor_position (const gchar *buffer_text,
static void
check_cursor_position (const gchar *buffer_text,
gboolean forward,
- gint initial_offset,
- gint result_offset,
+ int initial_offset,
+ int result_offset,
gboolean ret)
{
GtkTextBuffer *buffer;
@@ -604,8 +604,8 @@ test_cursor_positions (void)
static void
check_visible_cursor_position (GtkTextBuffer *buffer,
gboolean forward,
- gint initial_offset,
- gint result_offset,
+ int initial_offset,
+ int result_offset,
gboolean ret)
{
GtkTextIter iter;
@@ -658,7 +658,7 @@ test_visible_cursor_positions (void)
static void
check_sentence_boundaries (const gchar *buffer_text,
- gint offset,
+ int offset,
gboolean starts_sentence,
gboolean ends_sentence,
gboolean inside_sentence)
@@ -680,8 +680,8 @@ check_sentence_boundaries (const gchar *buffer_text,
static void
check_forward_sentence_end (const gchar *buffer_text,
- gint initial_offset,
- gint result_offset,
+ int initial_offset,
+ int result_offset,
gboolean ret)
{
GtkTextBuffer *buffer;
@@ -700,8 +700,8 @@ check_forward_sentence_end (const gchar *buffer_text,
static void
check_backward_sentence_start (const gchar *buffer_text,
- gint initial_offset,
- gint result_offset,
+ int initial_offset,
+ int result_offset,
gboolean ret)
{
GtkTextBuffer *buffer;
@@ -749,7 +749,7 @@ test_backward_line (void)
GtkTextBuffer *buffer;
GtkTextIter iter, start, end;
gboolean ret;
- gint offset;
+ int offset;
buffer = gtk_text_buffer_new (NULL);
gtk_text_buffer_get_start_iter (buffer, &iter);
diff --git a/testsuite/gtk/treemodel.c b/testsuite/gtk/treemodel.c
index 54db6e94eb..a9ebd0d06d 100644
--- a/testsuite/gtk/treemodel.c
+++ b/testsuite/gtk/treemodel.c
@@ -240,7 +240,7 @@ static void
signal_monitor_rows_reordered (GtkTreeModel *model,
GtkTreePath *path,
GtkTreeIter *iter,
- gint *new_order,
+ int *new_order,
gpointer data)
{
signal_monitor_generic_handler (data, ROWS_REORDERED,
diff --git a/testsuite/gtk/treepath.c b/testsuite/gtk/treepath.c
index c014de2c5f..da77bf0a43 100644
--- a/testsuite/gtk/treepath.c
+++ b/testsuite/gtk/treepath.c
@@ -23,8 +23,8 @@ static void
test_append (void)
{
GtkTreePath *p;
- gint i;
- gint *indices;
+ int i;
+ int *indices;
p = gtk_tree_path_new ();
for (i = 0; i < 100; i++)
@@ -44,8 +44,8 @@ static void
test_prepend (void)
{
GtkTreePath *p;
- gint i;
- gint *indices;
+ int i;
+ int *indices;
p = gtk_tree_path_new ();
for (i = 0; i < 100; i++)
@@ -66,9 +66,9 @@ test_to_string (void)
{
const gchar *str = "0:1:2:3:4:5:6:7:8:9:10";
GtkTreePath *p;
- gint *indices;
+ int *indices;
gchar *s;
- gint i;
+ int i;
p = gtk_tree_path_new_from_string (str);
indices = gtk_tree_path_get_indices (p);
@@ -85,8 +85,8 @@ static void
test_from_indices (void)
{
GtkTreePath *p;
- gint *indices;
- gint i;
+ int *indices;
+ int i;
p = gtk_tree_path_new_from_indices (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, -1);
g_assert_cmpint (gtk_tree_path_get_depth (p), ==, 10);
@@ -111,9 +111,9 @@ test_navigation (void)
{
GtkTreePath *p;
GtkTreePath *q;
- gint *pi;
- gint *qi;
- gint i;
+ int *pi;
+ int *qi;
+ int i;
gboolean res;
p = gtk_tree_path_new_from_indices (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, -1);
diff --git a/testsuite/gtk/treestore.c b/testsuite/gtk/treestore.c
index a58ab780f9..af1d651695 100644
--- a/testsuite/gtk/treestore.c
+++ b/testsuite/gtk/treestore.c
@@ -102,8 +102,8 @@ tree_store_teardown (TreeStore *fixture,
static void
check_model (TreeStore *fixture,
- gint *new_order,
- gint skip)
+ int *new_order,
+ int skip)
{
int i;
GtkTreePath *path;
@@ -1062,7 +1062,7 @@ static void
specific_bug_698396 (void)
{
GtkTreeStore *tree_store;
- gint new_order[1] = { 0 };
+ int new_order[1] = { 0 };
/*http://bugzilla.gnome.org/show_bug.cgi?id=698396 */
diff --git a/testsuite/gtk/typename.c b/testsuite/gtk/typename.c
index f468ac6542..ddbdf44746 100644
--- a/testsuite/gtk/typename.c
+++ b/testsuite/gtk/typename.c
@@ -24,7 +24,7 @@ type_name_mangle (const gchar *name,
gboolean split_first_cap)
{
GString *symbol_name = g_string_new ("");
- gint i;
+ int i;
for (i = 0; name[i] != '\0'; i++)
{
diff --git a/testsuite/gtk/window.c b/testsuite/gtk/window.c
index c67dfb745b..8ffc0645bf 100644
--- a/testsuite/gtk/window.c
+++ b/testsuite/gtk/window.c
@@ -26,7 +26,7 @@ on_draw (GtkDrawingArea *da,
int height,
gpointer data)
{
- gint i, j;
+ int i, j;
for (i = 0; 20 * i < width; i++)
{
@@ -64,7 +64,7 @@ test_default_size (void)
{
GtkWidget *window;
GtkWidget *da;
- gint w, h;
+ int w, h;
gboolean done;
window = gtk_window_new ();
@@ -152,7 +152,7 @@ test_resize (void)
{
GtkWidget *window;
GtkWidget *da;
- gint w, h;
+ int w, h;
gboolean done;
window = gtk_window_new ();
@@ -214,7 +214,7 @@ static void
test_resize_popup (void)
{
GtkWidget *window;
- gint w, h;
+ int w, h;
gboolean done;
/* testcase for the dnd window */
@@ -244,7 +244,7 @@ static void
test_show_hide (void)
{
GtkWidget *window;
- gint w, h, w1, h1;
+ int w, h, w1, h1;
gboolean done;
/*http://bugzilla.gnome.org/show_bug.cgi?id=696882 */
@@ -293,7 +293,7 @@ test_show_hide (void)
int
main (int argc, char *argv[])
{
- gint i;
+ int i;
gtk_test_init (&argc, &argv);
diff --git a/testsuite/reftests/reftest-snapshot.c b/testsuite/reftests/reftest-snapshot.c
index ff1cf2577e..de08c0b026 100644
--- a/testsuite/reftests/reftest-snapshot.c
+++ b/testsuite/reftests/reftest-snapshot.c
@@ -197,7 +197,7 @@ quit_when_idle (gpointer loop)
return G_SOURCE_REMOVE;
}
-static gint inhibit_count;
+static int inhibit_count;
static GMainLoop *loop;
G_MODULE_EXPORT void
diff --git a/testsuite/reftests/textview-border-windows.c b/testsuite/reftests/textview-border-windows.c
index 7a6646393a..7db051530f 100644
--- a/testsuite/reftests/textview-border-windows.c
+++ b/testsuite/reftests/textview-border-windows.c
@@ -20,7 +20,7 @@
static void
set_border_window_size (GtkTextView *text_view,
GtkTextWindowType win,
- gint size)
+ int size)
{
GtkWidget *label;