Commit c17df7c1 authored by Dom Lachowicz's avatar Dom Lachowicz

document RSVGSizeFunc, print out annoying messages when parsing invalid CSS chunks

parent 710c037e
2003-03-21 Dom Lachowicz <cinamod@hotmail.com>
* rsvg.h: Document rsvg_size_func
* rsvg-styles.c: Whine/complain on invalid CSS documents, but chug
along anyway
2003-03-19 Dom Lachowicz <cinamod@hotmail.com>
* configure.in: Re-enable libcroco support, make it the default
......
......@@ -440,6 +440,22 @@ ccss_property (CRDocHandler *a_handler, GString *a_name, CRTerm *a_expr)
}
}
static void
ccss_error (CRDocHandler *a_handler)
{
/* yup, like i care about CSS parsing errors ;-)
ignore, chug along */
g_warning ("CSS parsing error\n");
}
static void
ccss_unrecoverable_error (CRDocHandler *a_handler)
{
/* yup, like i care about CSS parsing errors ;-)
ignore, chug along */
g_warning ("CSS unrecoverable error\n");
}
static void
init_sac_handler (CRDocHandler *a_handler)
{
......@@ -458,6 +474,8 @@ init_sac_handler (CRDocHandler *a_handler)
a_handler->start_page = NULL;
a_handler->end_page = NULL;
a_handler->ignorable_at_rule = NULL;
a_handler->error = ccss_error;
a_handler->unrecoverable_error = ccss_unrecoverable_error;
}
static void
......
......@@ -39,7 +39,11 @@ GQuark rsvg_error_quark (void) G_GNUC_CONST;
typedef struct RsvgHandle RsvgHandle;
/**
* RsvgSizeFunc ()
* RsvgSizeFunc ():
* @width: Pointer to where to set/store the width
* @height: Pointer to where to set/store the height
* @user_data: User data pointer
*
* Function to let a user of the library specify the SVG's dimensions
* @width: the ouput width the SVG should be
* @height: the output height the SVG should be
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment