Before read : Keep in mind that i am
*not* C/C++ "native" developer, and all message below can be just
rant.
After little testing and debugging, i found that :
In on_editor_notify() function, user_data is not a valid pointer :
on_editor_notify(GObject *obj, gint scn, SCNotification *nt,
gpointer user_data)
{
AutocloseUserData *data = user_data;
...
}
After I playing for a while with this and reading demoplugin.c
source, i found that in the autoclose.c, PluginCallback[]
(line:829) is missing the definition for "editor-notify" event,so
i added it, recompile plugin and now all seems to work correctly.
P.S.: I add the patch file as attachment to this mail, becouse for
now i do not have any expiriance in commiting patches on GitHub,
but tonight i will fix this big mistake :)
On 23/10/13 13:00, Lex Trotman wrote:
Looking at the line that failed, first guess would be failure to
check doc is valid before using it.
Cheers
Lex
_______________________________________________
Devel mailing list
Devel@lists.geany.org
https://lists.geany.org/cgi-bin/mailman/listinfo/devel