Re: GtkScintilla and word wrap?!?
| From: | Alan Knowles | Date: | Tue, 22 Apr 2003 03:04:52 +0000 |
| Subject: | Re: GtkScintilla and word wrap?!? | ||
| References: | 1 2 3 4 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-3258@lists.php.net to get a copy of this message | ||
I've just added support for this to cvs, it builds ok here although I've not tested the functionality.
Benjamin Smith wrote:
probably an issue with autoconf automake versions or out of sync php/php-devel packages.yeah - I guess you are working on windows? RegardsWell, sorta. I have PHP-Gtk on Win2000 inside VMware on RH 7.3. =) I've never tried to get php-gtk to compile on Linux, and when I do, I get: ################################################################ [bens@bug2 php-gtk-0.5.2]$ ./configure loading cache ./config.cache checking for gcc... gcc checking whether the C compiler (gcc ) works... yes checking whether the C compiler (gcc ) is a cross-compiler... no checking whether we are using GNU C... yes checking whether gcc accepts -g... yes checking whether gcc and cc understand -c and -o together... yes checking if compiler supports -R... no checking if compiler supports -Wl,-rpath,... yes checking for PHP prefix... /usr checking for PHP includes... -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/Zend -I/usr/include/php/TSRM checking for PHP extension directory... /usr/lib/php/extensions/no-debug-non-zts-20020429 checking how to run the C preprocessor... gcc -E checking for PHP-GTK support... yes, shared checking for gawk... gawk checking for PHP executable in /usr/bin... found ./configure: line 1660: syntax error near unexpected token `PHP_GTK_ARG_ENABLE(debug,' ./configure: line 1660: `PHP_GTK_ARG_ENABLE(debug, whether to include debugging symbols,' [bens@bug2 php-gtk-0.5.2]$ ################################################################
Ugh. I usually compile PHP as part of an apache build, but for 'doze, since I don't have a compiler, I've been stuck with (but generally happy with) the pre-made builds that come with either dev-php or available at http://kromann.info/php4.phpI'm not sure how often frank builds his images - probably worth sending him a short email.
If it helps any, I've WAG'd it as: (method set_wrap_mode (of-object Scintilla (Gtk)) (c-name gtk_scintilla_set_wrap_mode) (return-type none) (parameter (type-and-name int wrap_mode)) ) (method get_wrap_mode (of-object Scintilla (Gtk)) (c-name gtk_scintilla_get_wrap_mode) (return-type int) ) yeap that worksI've only got gtkscintilla 0.8.1, I'm not sure if gtkscintalla 0.8.2 implemented the other methods to do with line wrapping - eg. setting the wrap len, and caching.
Where would you like the 6-pack sent to? =] paypal account at the web site :)Regards Alan
-Ben On Monday 21 April 2003 06:57 pm, you wrote:Nope. :) Actually the best place to look is http://www.scintilla.org/ScintillaDoc.html Regards AlanBenjamin Smith wrote:Acording to the manual it exists - however I'm not http://www.scintilla.org/ScintillaDoc.html#SCI_SETWRAPMODE It's defined in gtk scintilla as get_wrap_mode/set_wrap_mode it's not in ext/scintilla.defs set sends a integer, get sends nothing and returns an integer You should be able to add it to scintilla.defs in a few minutes. - if you get it to work send a patch to the mailing list and I'll add it to the source..But, I have to recompile for this to take effect, no?yeah - I guess you are working on windows? Regards Alan-Ben On Monday 21 April 2003 06:16 pm, you wrote:have a look at the defs file (it's lisp :) it's actually very easy to understand C is just PHP with variable types and memory allocation :) Regards AlanBenjamin Smith wrote:Tks. Unfortunately, I'm not a c-coder, can I send you a six pack or something? -BenOn Monday 21 April 2003 05:55 pm, Alan Knowles wrote:Benjamin Smith wrote:How do you make GtkScintilla word wrap instead of scroll horizontally? Do I have to "fake it" with php's word_wrap() and a callback?Also, is there a good resource for definitions to the GtkScintilla functions? (The php-gtk documentation for GtkScintilla is basically empty!)
-Ben
-- Can you help out? Need Consulting Services or Know of a Job? http://www.akbkhome.com