Ticket #1252 (closed defect: fixed)
Source View: sourceViewLineMarkActivated and sourceGutterCellActivated signals wrong
|Reported by:||guest||Owned by:||duncan|
Both return an invalid text iterator. The reason is that the signature of the signal handler is supposed to be:
void user_function (GtkSourceView *view, GtkTextIter *iter, GdkEvent *event, gpointer user_data)
Yet gtksourceview2 declares it as:
connect_PTR_BOXED__NONE "line-mark-activated" mkTextIterCopy after obj (\eventPtr iter -> runReaderT (fun iter) eventPtr)
Meaning that it will actually expect the event as second parameter and the iterator as third. The "cell-activated" signal for the gutter has the exact same problem, which sadly makes it impossible right now to react to mark events.
I have attached a patch that fixes the problem for me by swapping the two parameters.