Date: Sun, 12 Jan 2025 19:12:13 GMT From: Charlie Li <vishwin@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: 5cb5e6989951 - main - science/gchemutils: fix build with glib 2.82 Message-ID: <202501121912.50CJCDhJ010838@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by vishwin: URL: https://cgit.FreeBSD.org/ports/commit/?id=5cb5e6989951ec3a761dd43597771b414f4492ec commit 5cb5e6989951ec3a761dd43597771b414f4492ec Author: Charlie Li <vishwin@FreeBSD.org> AuthorDate: 2025-01-12 19:03:35 +0000 Commit: Charlie Li <vishwin@FreeBSD.org> CommitDate: 2025-01-12 19:12:08 +0000 science/gchemutils: fix build with glib 2.82 PR: 281083 --- science/gchemutils/files/patch-libs_gccv_text.cc | 29 ++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/science/gchemutils/files/patch-libs_gccv_text.cc b/science/gchemutils/files/patch-libs_gccv_text.cc new file mode 100644 index 000000000000..76dc1ad3d546 --- /dev/null +++ b/science/gchemutils/files/patch-libs_gccv_text.cc @@ -0,0 +1,29 @@ +--- libs/gccv/text.cc.orig 2017-02-12 09:10:09 UTC ++++ libs/gccv/text.cc +@@ -1126,7 +1126,7 @@ bool Text::OnKeyPressed (GdkEventKey *event) + if (event->state & GDK_CONTROL_MASK) { + /* move to end of word */ + char const* s = m_Text.c_str (); +- char *p = g_utf8_next_char (s + m_CurPos); ++ char const* p = g_utf8_next_char (s + m_CurPos); + while (*p && (!g_unichar_isgraph (g_utf8_get_char(p)) || g_unichar_ispunct (g_utf8_get_char(p)))) + p = g_utf8_next_char (p); + while (g_unichar_isgraph (g_utf8_get_char(p)) && !g_unichar_ispunct (g_utf8_get_char(p))) +@@ -1137,7 +1137,7 @@ bool Text::OnKeyPressed (GdkEventKey *event) + Invalidate (); + } else { + char const* s = m_Text.c_str (); +- char *p = g_utf8_next_char (s + m_CurPos); ++ char const* p = g_utf8_next_char (s + m_CurPos); + if (!p) + break; + m_CurPos = p - s; +@@ -1224,7 +1224,7 @@ bool Text::OnKeyPressed (GdkEventKey *event) + if (m_CurPos == m_Text.length ()) + break; + char const* s = m_Text.c_str (); +- char *p = g_utf8_next_char (s + m_CurPos); ++ char const* p = g_utf8_next_char (s + m_CurPos); + int new_pos = p - s; + ReplaceText (empty_st, m_CurPos, new_pos - m_CurPos); + if (client)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202501121912.50CJCDhJ010838>