talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit 1a06785416c9c1ed2990cd975ca23fca9fe7b030
parent 3769357f132ed88e1e6fb4950a82ff7633b7e5b1
Author: paul <paul@claws-mail.org>
Date:   Wed, 20 Apr 2022 08:18:58 +0100

fix building with older GLIBs

Diffstat:
Msrc/compose.c | 4++++
Msrc/grouplistdialog.c | 5++++-
2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/src/compose.c b/src/compose.c @@ -9745,7 +9745,11 @@ static void compose_ext_editor_closed_cb(GPid pid, gint exit_status, gpointer da GtkTextIter start, end; gchar *chars; +#if GLIB_CHECK_VERSION(2,70,0) if (!g_spawn_check_wait_status(exit_status, &error)) { +#else + if (!g_spawn_check_exit_status(exit_status, &error)) { +#endif alertpanel_error( _("External editor stopped with an error: %s"), error ? error->message : _("Unknown error")); diff --git a/src/grouplistdialog.c b/src/grouplistdialog.c @@ -449,8 +449,11 @@ static void grouplist_dialog_set_list(const gchar *pattern, gboolean refresh) for (cur = group_list; cur != NULL ; cur = cur->next) { NewsGroupInfo *ginfo = (NewsGroupInfo *)cur->data; - +#if GLIB_CHECK_VERSION(2,70,0) if (g_pattern_spec_match_string(pspec, ginfo->name)) { +#else + if (g_pattern_match_string(pspec, ginfo->name)) { +#endif node = grouplist_create_branch(ginfo, pattern); if (g_slist_find_custom(subscribed, ginfo->name, (GCompareFunc)g_ascii_strcasecmp)