[geany/geany] 170ebf: scintilla: Fix build with older GCC

Colomban Wendling git-noreply at xxxxx
Wed Feb 8 21:43:27 UTC 2017

Branch:      refs/heads/master
Author:      Colomban Wendling <ban at herbesfolles.org>
Committer:   Colomban Wendling <ban at herbesfolles.org>
Date:        Wed, 08 Feb 2017 21:43:27 UTC
Commit:      170ebf610f33ac414799f1a841ae01c1e058d567

Log Message:
scintilla: Fix build with older GCC

Don't convert function pointer to non-function pointer.  This is
undefined behavior, and some older GCC don't like it.

Modified Paths:

Modified: scintilla/gtk/ScintillaGTKAccessible.cxx
2 lines changed, 1 insertions(+), 1 deletions(-)
@@ -162,7 +162,7 @@ ScintillaGTKAccessible::ScintillaGTKAccessible(GtkAccessible *accessible_, GtkWi
 ScintillaGTKAccessible::~ScintillaGTKAccessible() {
-	g_signal_handlers_disconnect_by_func (sci->sci, reinterpret_cast<gpointer>(SciNotify), this);
+	g_signal_handlers_disconnect_matched(sci->sci, G_SIGNAL_MATCH_DATA, 0, 0, NULL, NULL, this);
 gchar *ScintillaGTKAccessible::GetTextRangeUTF8(Position startByte, Position endByte) {

This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).

More information about the Commits mailing list