[balsa/port-to-pcre2: 17/21] libbalsa: Error domain for LibBalsaRegex
- From: Peter Bloomfield <peterb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [balsa/port-to-pcre2: 17/21] libbalsa: Error domain for LibBalsaRegex
- Date: Mon, 7 Dec 2020 17:33:50 +0000 (UTC)
commit 4036e62db49f31739cf3f681af9d0c9779dc4f9e
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]