[gnome-software] Correctly register GS_PLUGIN_ERROR
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] Correctly register GS_PLUGIN_ERROR
- Date: Mon, 15 Aug 2016 08:02:27 +0000 (UTC)
commit 0e96421a3c178454a9c8223873e3ae9535d80b51
Author: Robert Ancell <robert ancell canonical com>
Date: Tue Aug 2 10:39:32 2016 +1200
Correctly register GS_PLUGIN_ERROR
src/gs-plugin.c | 2 ++
src/gs-plugin.h | 4 +++-
2 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/src/gs-plugin.c b/src/gs-plugin.c
index 4729c33..76ad484 100644
--- a/src/gs-plugin.c
+++ b/src/gs-plugin.c
@@ -77,6 +77,8 @@ typedef struct
G_DEFINE_TYPE_WITH_PRIVATE (GsPlugin, gs_plugin, G_TYPE_OBJECT)
+G_DEFINE_QUARK (gs-plugin-error-quark, gs_plugin_error)
+
enum {
PROP_0,
PROP_FLAGS,
diff --git a/src/gs-plugin.h b/src/gs-plugin.h
index 45b4b9f..c2a48f4 100644
--- a/src/gs-plugin.h
+++ b/src/gs-plugin.h
@@ -231,7 +231,9 @@ typedef enum {
} GsPluginRule;
/* helpers */
-#define GS_PLUGIN_ERROR 1
+#define GS_PLUGIN_ERROR gs_plugin_error_quark ()
+
+GQuark gs_plugin_error_quark (void);
/* public getters and setters */
GsPluginData *gs_plugin_alloc_data (GsPlugin *plugin,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]