[balsa/port-to-pcre2: 6/10] libbalsa: Error domain for LibBalsaRegex
- From: Peter Bloomfield <peterb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [balsa/port-to-pcre2: 6/10] libbalsa: Error domain for LibBalsaRegex
- Date: Thu, 24 Sep 2020 02:10:54 +0000 (UTC)
commit 5a1e25aca8a2392d29f19ff2b23ed675f66442d1
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 deac03796..6f14aac98 100644
--- a/libbalsa/libbalsa.h
+++ b/libbalsa/libbalsa.h
@@ -184,6 +184,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]