scintilla bugfix
| From: | Alan Knowles | Date: | Sun, 28 Oct 2001 16:01:33 +0000 |
| Subject: | scintilla bugfix | ||
| Groups: | php.gtk.dev | ||
| Request: | Send a blank email to php-gtk-dev+get-149@lists.php.net to get a copy of this message | ||
came across this bug with scintilla - I have sent the bugfix to micampe@f2s.com as well,
the $scintilla->marker_add returns an integer (called a handle by the docs)
(which is essential if a class tree is to work!)
this is the snippet from scintilla.defs
(method marker_add
(of-object Scintilla (Gtk))
(c-name gtk_scintilla_marker_add)
(return-type int) <---- change to int
(parameter (type-and-name int line))
(parameter (type-and-name int marker_number))
)
change to gtkscintilla.c
int gtk_scintilla_marker_add(GtkScintilla *sci, int line, int marker_number)
{
return scintilla_send_message(SCINTILLA(sci->scintilla),
2043, (int) line, (int) marker_number);
}
regards
Alan