summaryrefslogtreecommitdiff
path: root/testsuite/gtk/stylecontext.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2016-10-17 17:41:03 +0200
committerBenjamin Otte <otte@redhat.com>2016-10-17 17:41:03 +0200
commit4322b69528203d0f3c9e725af8d72597c101ef99 (patch)
tree52fd08cc8d6310774489d45c6c5afe2e9566f8ee /testsuite/gtk/stylecontext.c
parentdbeeaf7de681d3471b73f5722dd94451d66af642 (diff)
downloadgtk+-4322b69528203d0f3c9e725af8d72597c101ef99.tar.gz
cssprovider: Return void, not TRUE
Parsing a css file always succeeds as CSS can recover from parsing errors.
Diffstat (limited to 'testsuite/gtk/stylecontext.c')
-rw-r--r--testsuite/gtk/stylecontext.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/testsuite/gtk/stylecontext.c b/testsuite/gtk/stylecontext.c
index 91d6b8d935..a32f1047cd 100644
--- a/testsuite/gtk/stylecontext.c
+++ b/testsuite/gtk/stylecontext.c
@@ -11,7 +11,6 @@ static void
test_parse_selectors (void)
{
GtkCssProvider *provider;
- gboolean res;
gint i;
const gchar *valid[] = {
"* {}",
@@ -60,8 +59,7 @@ test_parse_selectors (void)
for (i = 0; valid[i]; i++)
{
provider = gtk_css_provider_new ();
- res = gtk_css_provider_load_from_data (provider, valid[i], -1);
- g_assert (res);
+ gtk_css_provider_load_from_data (provider, valid[i], -1);
g_object_unref (provider);
}