Re: GtkScintilla and word wrap?!?
| From: | Benjamin Smith | Date: | Fri, 25 Apr 2003 00:32:47 +0000 |
| Subject: | Re: GtkScintilla and word wrap?!? | ||
| References: | 1 2 3 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-3283@lists.php.net to get a copy of this message | ||
Great! I tried re-downloading the compiles at
http://kromann.info/php4.php
And the function
$scint->Set_Wrap_Mode(true);
Works as expected! =-D
However, I went to gtk.php.net to update the notes for GtkScintilla and they
aren't there! All the GtkScintilla functions aren't mentioned, even though
they were there a few days ago. =-\
Might this be related to the MySQL error at the top?
Warning: mysql_pconnect() [function.mysql-pconnect]: Host '209.61.157.217' is
not allowed to connect to this MySQL server in
/local/Web/sites/php-gtk-web/include/shared-manual.inc on line 16
Who needs to know this is going on?
-Ben
PS: Where's that paypal thingy so I can send you the beers? Should I just put
in your email addy?
On Monday 21 April 2003 08:04 pm, Alan Knowles wrote:
> I've just added support for this to cvs, it builds ok here although I've
> not tested the functionality.
>
> Benjamin Smith wrote:
> >>yeah - I guess you are working on windows?
> >>Regards
> >
> >Well, 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]$
> >################################################################
>
> probably an issue with autoconf automake versions or out of sync
> php/php-devel packages.
>
> >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.php
>
> I'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 works
> I'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:
> >>Benjamin Smith wrote:
> >>>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:
> >>>>Benjamin Smith wrote:
> >>>>>Tks.
> >>>>>
> >>>>>Unfortunately, I'm not a c-coder, can I send you a six pack or
> >>>>>something?
> >>>>>
> >>>>>-Ben
> >>>>
> >>>>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
> >>>>Alan
> >>>>
> >>>>>On 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?
> >>>>>>
> >>>>>>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..
> >>>>>>
> >>>>>>>Also, is there a good resource for definitions to the GtkScintilla
> >>>>>>>functions? (The php-gtk documentation for GtkScintilla is basically
> >>>>>>>empty!)
> >>>>>>
> >>>>>>Nope. :)
> >>>>>>
> >>>>>>Actually the best place to look is
>
> >>>>>>>>>>>>http://www.scintilla.org/ScintillaDoc.html
> >>>>>>
> >>>>>>
> >>>>>>Regards
> >>>>>>Alan
> >>>>>>
> >>>>>>>-Ben