GVariant: Add g_variant_parse_error_quark()

Most GErrors, such as GSomethingError, have a function to get
their quark that looks like g_something_error_quark(),
so bindings (such as gtkmm) would expect GVariantParseError
to have g_variant_parse_error_quark(). Instead this had
g_variant_parser_get_error_quark().
This deprecates the old function and adds the correct one,
making life easier for gtkmm (and maybe others).

https://bugzilla.gnome.org/show_bug.cgi?id=708212
This commit is contained in:
Murray Cumming
2013-09-17 11:10:28 +02:00
committed by Ryan Lortie
parent 864d960d75
commit eeac91f866
3 changed files with 16 additions and 3 deletions

View File

@@ -71,7 +71,16 @@
*
* Error codes returned by parsing text-format GVariants.
**/
G_DEFINE_QUARK (g-variant-parse-error-quark, g_variant_parser_get_error)
G_DEFINE_QUARK (g-variant-parse-error-quark, g_variant_parse_error)
/**
* Deprecated: Use g_variant_parse_error_quark() instead.
*/
GQuark
g_variant_parser_get_error_quark (void)
{
return g_variant_parse_error_quark ();
}
typedef struct
{