mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-09-30 11:07:38 +00:00
cssparser: Add _gtk_css_parser_error_full()
This commit is contained in:
parent
9b7640b898
commit
e7acdec220
@ -142,6 +142,23 @@ _gtk_css_parser_error (GtkCssParser *parser,
|
|||||||
_gtk_css_parser_take_error (parser, error);
|
_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
|
static gboolean
|
||||||
gtk_css_parser_new_line (GtkCssParser *parser)
|
gtk_css_parser_new_line (GtkCssParser *parser)
|
||||||
{
|
{
|
||||||
|
@ -19,6 +19,7 @@
|
|||||||
#define __GTK_CSS_PARSER_PRIVATE_H__
|
#define __GTK_CSS_PARSER_PRIVATE_H__
|
||||||
|
|
||||||
#include "gtk/gtkcsstypesprivate.h"
|
#include "gtk/gtkcsstypesprivate.h"
|
||||||
|
#include <gtk/gtkcssprovider.h>
|
||||||
#include <gtk/gtksymboliccolor.h>
|
#include <gtk/gtksymboliccolor.h>
|
||||||
|
|
||||||
G_BEGIN_DECLS
|
G_BEGIN_DECLS
|
||||||
@ -48,6 +49,10 @@ void _gtk_css_parser_take_error (GtkCssParser *parser
|
|||||||
void _gtk_css_parser_error (GtkCssParser *parser,
|
void _gtk_css_parser_error (GtkCssParser *parser,
|
||||||
const char *format,
|
const char *format,
|
||||||
...) G_GNUC_PRINTF (2, 3);
|
...) G_GNUC_PRINTF (2, 3);
|
||||||
|
void _gtk_css_parser_error_full (GtkCssParser *parser,
|
||||||
|
GtkCssProviderError code,
|
||||||
|
const char *format,
|
||||||
|
...) G_GNUC_PRINTF (3, 4);
|
||||||
|
|
||||||
guint _gtk_css_parser_get_line (GtkCssParser *parser);
|
guint _gtk_css_parser_get_line (GtkCssParser *parser);
|
||||||
guint _gtk_css_parser_get_position (GtkCssParser *parser);
|
guint _gtk_css_parser_get_position (GtkCssParser *parser);
|
||||||
|
Loading…
Reference in New Issue
Block a user