mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-24 01:48:53 +02:00
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:
committed by
Ryan Lortie
parent
864d960d75
commit
eeac91f866
@@ -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
|
||||
{
|
||||
|
Reference in New Issue
Block a user