[libpeas] Use G_DEFINE_QUARK
- From: Garrett Regier <gregier src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libpeas] Use G_DEFINE_QUARK
- Date: Thu, 18 Dec 2014 11:48:28 +0000 (UTC)
commit 79a85d6185c08cfc1da968fcd7f5dfd043fadc4a
Author: Garrett Regier <garrettregier gmail com>
Date: Thu Dec 18 03:38:28 2014 -0800
Use G_DEFINE_QUARK
libpeas/peas-plugin-info.c | 15 ++-------------
1 files changed, 2 insertions(+), 13 deletions(-)
---
diff --git a/libpeas/peas-plugin-info.c b/libpeas/peas-plugin-info.c
index 46c81db..67f81ac 100644
--- a/libpeas/peas-plugin-info.c
+++ b/libpeas/peas-plugin-info.c
@@ -63,6 +63,8 @@
* ]|
**/
+G_DEFINE_QUARK (peas-plugin-info-error, peas_plugin_info_error)
+
G_DEFINE_BOXED_TYPE (PeasPluginInfo, peas_plugin_info,
_peas_plugin_info_ref,
_peas_plugin_info_unref)
@@ -106,19 +108,6 @@ _peas_plugin_info_unref (PeasPluginInfo *info)
g_free (info);
}
-
-GQuark
-peas_plugin_info_error_quark (void)
-{
- static volatile gsize quark = 0;
-
- if (g_once_init_enter (&quark))
- g_once_init_leave (&quark,
- g_quark_from_static_string ("peas-plugin-info-error"));
-
- return quark;
-}
-
/*
* _peas_plugin_info_new:
* @filename: The filename where to read the plugin information.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]