diff options
author | Ignacio Casal Quinteiro <nacho.resa@gmail.com> | 2014-12-26 15:01:52 +0100 |
---|---|---|
committer | Ignacio Casal Quinteiro <nacho.resa@gmail.com> | 2014-12-26 15:01:52 +0100 |
commit | 670f7692abeb1e42c7b36239b56403a0e082446f (patch) | |
tree | a70afdb111da24a564ed5ad1969a468dbf657966 | |
parent | 3230e47cc00cab54dd939342e48b931e69a3af99 (diff) | |
download | gusb-670f7692abeb1e42c7b36239b56403a0e082446f.tar.gz |
context: use G_DEFINE_QUARK
-rw-r--r-- | gusb/gusb-context.c | 25 |
1 files changed, 9 insertions, 16 deletions
diff --git a/gusb/gusb-context.c b/gusb/gusb-context.c index 52536ba..c85dc8e 100644 --- a/gusb/gusb-context.c +++ b/gusb/gusb-context.c @@ -73,6 +73,15 @@ G_DEFINE_TYPE_WITH_CODE (GUsbContext, g_usb_context, G_TYPE_OBJECT, G_IMPLEMENT_INTERFACE(G_TYPE_INITABLE, g_usb_context_initable_iface_init)) +/** + * g_usb_context_error_quark: + * + * Return value: Our personal error quark. + * + * Since: 0.1.0 + **/ +G_DEFINE_QUARK (g-usb-context-error-quark, g_usb_context_error) + static void g_usb_context_dispose (GObject *object) { @@ -521,22 +530,6 @@ g_usb_context_initable_iface_init (GInitableIface *iface) } /** - * g_usb_context_error_quark: - * - * Return value: Our personal error quark. - * - * Since: 0.1.0 - **/ -GQuark -g_usb_context_error_quark (void) -{ - static GQuark quark = 0; - if (!quark) - quark = g_quark_from_static_string ("g_usb_context_error"); - return quark; -} - -/** * _g_usb_context_get_context: * @context: a #GUsbContext * |