summaryrefslogtreecommitdiff
path: root/tests/testoverlay.c
diff options
context:
space:
mode:
authorTimm Bäder <mail@baedert.org>2020-03-06 18:05:43 +0100
committerTimm Bäder <mail@baedert.org>2020-03-06 18:21:58 +0100
commitd1cd6aacba55ea86d8b53638a18208cb19208f23 (patch)
tree43c2a4a7f5c021c586c18b2f6034067a218851d2 /tests/testoverlay.c
parent0e8850bf84cfa174ba85a6d8468c5f7056aeca46 (diff)
downloadgtk+-d1cd6aacba55ea86d8b53638a18208cb19208f23.tar.gz
tests: Add common_cflags to build
And fix all the errors and warnings resulting from that See #2491
Diffstat (limited to 'tests/testoverlay.c')
-rw-r--r--tests/testoverlay.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/testoverlay.c b/tests/testoverlay.c
index e4bc2f5318..c2d3859e98 100644
--- a/tests/testoverlay.c
+++ b/tests/testoverlay.c
@@ -364,7 +364,7 @@ test_chase (void)
GtkWidget *sw;
GtkWidget *text;
GtkWidget *child;
- GtkTextBuffer *buffer;
+ GtkTextBuffer *text_buffer;
gchar *contents;
gsize len;
GtkEventController *controller;
@@ -381,15 +381,15 @@ test_chase (void)
gtk_container_add (GTK_CONTAINER (overlay), sw);
text = gtk_text_view_new ();
- buffer = gtk_text_buffer_new (NULL);
+ text_buffer = gtk_text_buffer_new (NULL);
if (!g_file_get_contents ("testoverlay.c", &contents, &len, NULL))
{
contents = g_strdup ("Text should go here...");
len = strlen (contents);
}
- gtk_text_buffer_set_text (buffer, contents, len);
+ gtk_text_buffer_set_text (text_buffer, contents, len);
g_free (contents);
- gtk_text_view_set_buffer (GTK_TEXT_VIEW (text), buffer);
+ gtk_text_view_set_buffer (GTK_TEXT_VIEW (text), text_buffer);
gtk_widget_set_hexpand (text, TRUE);
gtk_widget_set_vexpand (text, TRUE);