[balsa/port-to-pcre2: 30/36] libbalsa: Error domain for LibBalsaRegex
- From: Peter Bloomfield <peterb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [balsa/port-to-pcre2: 30/36] libbalsa: Error domain for LibBalsaRegex
- Date: Fri, 15 Jan 2021 22:21:17 +0000 (UTC)
commit 0ded987aacce2ba2c9805944b4bee77f0f6191bf
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date: Sun Sep 6 13:48:05 2020 -0400
libbalsa: Error domain for LibBalsaRegex
libbalsa/libbalsa.c | 9 +++++++++
libbalsa/libbalsa.h | 6 ++++++
2 files changed, 15 insertions(+)
---
diff --git a/libbalsa/libbalsa.c b/libbalsa/libbalsa.c
index fe48f1a41..24324fc4a 100644
--- a/libbalsa/libbalsa.c
+++ b/libbalsa/libbalsa.c
@@ -722,6 +722,15 @@ libbalsa_image_error_quark(void)
return quark;
}
+GQuark
+libbalsa_regex_error_quark(void)
+{
+ static GQuark quark = 0;
+ if (quark == 0)
+ quark = g_quark_from_static_string("libbalsa-regex-error-quark");
+ return quark;
+}
+
gboolean
libbalsa_use_headerbar(void)
{
diff --git a/libbalsa/libbalsa.h b/libbalsa/libbalsa.h
index 205da2510..f07aaf591 100644
--- a/libbalsa/libbalsa.h
+++ b/libbalsa/libbalsa.h
@@ -183,6 +183,12 @@ enum LibBalsaImageError {
#endif /* HAVE_COMPFACE */
};
+GQuark libbalsa_regex_error_quark(void);
+#define LIBBALSA_REGEX_ERROR libbalsa_regex_error_quark()
+enum LibBalsaRegexError {
+ LIBBALSA_REGEX_ERROR_COMPILE
+};
+
gboolean libbalsa_use_headerbar(void);
GtkDialogFlags libbalsa_dialog_flags(void);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]