summaryrefslogtreecommitdiff
path: root/gtk/gtkcssparser.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2012-03-26 18:36:20 +0200
committerBenjamin Otte <otte@redhat.com>2012-04-17 08:59:11 +0200
commite7acdec2205e74d5e85569af73b27e35f3522d2d (patch)
tree64a4d27835bf3945755d7afaee38df88fab36bce /gtk/gtkcssparser.c
parent9b7640b898c61eb4ff49140880f2bb2b70eb9f0b (diff)
downloadgtk+-e7acdec2205e74d5e85569af73b27e35f3522d2d.tar.gz
cssparser: Add _gtk_css_parser_error_full()
Diffstat (limited to 'gtk/gtkcssparser.c')
-rw-r--r--gtk/gtkcssparser.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/gtk/gtkcssparser.c b/gtk/gtkcssparser.c
index b6fae87686..8d3912ede1 100644
--- a/gtk/gtkcssparser.c
+++ b/gtk/gtkcssparser.c
@@ -142,6 +142,23 @@ _gtk_css_parser_error (GtkCssParser *parser,
_gtk_css_parser_take_error (parser, error);
}
+void
+_gtk_css_parser_error_full (GtkCssParser *parser,
+ GtkCssProviderError code,
+ const char *format,
+ ...)
+{
+ GError *error;
+
+ va_list args;
+
+ va_start (args, format);
+ error = g_error_new_valist (GTK_CSS_PROVIDER_ERROR,
+ code, format, args);
+ va_end (args);
+
+ _gtk_css_parser_take_error (parser, error);
+}
static gboolean
gtk_css_parser_new_line (GtkCssParser *parser)
{