/* we don't like trouble... */
if (strcmp (element_name, "trouble") == 0)
- g_set_error (error, 0, 0, "we don't like trouble");
+ g_set_error (error, G_MARKUP_ERROR, G_MARKUP_ERROR_INVALID_CONTENT,
+ "we don't like trouble");
}
static void
if (result == NULL || result[0] == '\0')
{
g_free (result);
- g_set_error (error, 0, 0, "got no data");
+ g_set_error (error, G_MARKUP_ERROR, G_MARKUP_ERROR_INVALID_CONTENT,
+ "got no data");
return NULL;
}
if (result == NULL || result[0] == '\0')
{
g_free (result);
- g_set_error (error, 0, 0, "got no data");
+ g_set_error (error, G_MARKUP_ERROR, G_MARKUP_ERROR_INVALID_CONTENT,
+ "got no data");
return NULL;
}