| View previous topic :: View next topic |
| Author |
Message |
drazha
Joined: 06 Jan 2006 Posts: 4
|
Posted: Fri Jan 06, 2006 5:24 pm Post subject: GtkText class |
|
|
Hello,
Well, I was trying out one of the examples from the tutorials, and I got the following error message:
PHP Fatal error: Class 'GtkText' not found in ... blabla on line blabla...
Now, being a moderately experienced PHP coder, I understand what this means. Reading through the documentation itself I learned that the GtkText is depreciated etc... however, there were no indications as to what should be used in its place instead.
I read another post on the forum pointing towards the Dev_Inspector to be used to find out what's out there.
I found out that there are GtkTextBuffer and similiar classes out there...
I think it would be prudent to update the documentation to show examples that actually work, rather then have something in there that does not encourage people to stick with the whole idea and platform.
So, what should one use instead of GtkText()?
BR//Drazha |
|
| Back to top |
|
 |
cweiske
Joined: 08 Dec 2005 Posts: 454 Location: Leipzig/Germany
|
Posted: Fri Jan 06, 2006 5:50 pm Post subject: Re: GtkText class |
|
|
| drazha wrote: | | So, what should one use instead of GtkText()? |
GtkTextView with a GtkTextBuffer as model |
|
| Back to top |
|
 |
drazha
Joined: 06 Jan 2006 Posts: 4
|
Posted: Fri Jan 06, 2006 6:38 pm Post subject: Re: GtkText class |
|
|
| cweiske wrote: | | GtkTextView with a GtkTextBuffer as model |
Thanks. How about a simple example of this in action? |
|
| Back to top |
|
 |
cweiske
Joined: 08 Dec 2005 Posts: 454 Location: Leipzig/Germany
|
Posted: Fri Jan 06, 2006 6:41 pm Post subject: Re: GtkText class |
|
|
| drazha wrote: | | Thanks. How about a simple example of this in action? |
The phpgtk2-demos delivered with Gnope use a gtktextview for source code display. You can use this. |
|
| Back to top |
|
 |
drazha
Joined: 06 Jan 2006 Posts: 4
|
Posted: Sat Jan 07, 2006 3:35 am Post subject: Re: GtkText class |
|
|
| cweiske wrote: | | The phpgtk2-demos delivered with Gnope use a gtktextview for source code display. You can use this. |
Thanks for the pointer. Out of curiosity, what happened to GtkText, since I see it is still mentioned on the GtkPhp website? What are differences between Gnope and what can be learnt on GtkPHP? |
|
| Back to top |
|
 |
cweiske
Joined: 08 Dec 2005 Posts: 454 Location: Leipzig/Germany
|
Posted: Sat Jan 07, 2006 9:55 am Post subject: Re: GtkText class |
|
|
| drazha wrote: | | Out of curiosity, what happened to GtkText, since I see it is still mentioned on the GtkPhp website? |
GtkText is deprecated and should be available, but just hasn't been implemented yet.
| Quote: | | What are differences between Gnope and what can be learnt on GtkPHP? |
Gnope is just an inofficial php-gtk2 distribution with the goal to make it very easy for end users to install it. gtk.php.net is the official page for php-gtk and php-gtk2. The official mailing lists, the documentation and the wiki is hosted there.
I myself am member of the php-gtk documentation team and thus very interested in php-gtk2. I have lot of experience with it and try to share it :) |
|
| Back to top |
|
 |
drazha
Joined: 06 Jan 2006 Posts: 4
|
Posted: Sat Jan 07, 2006 3:35 pm Post subject: Re: GtkText class |
|
|
| cweiske wrote: | | Gnope is just an inofficial php-gtk2 distribution with the goal to make it very easy for end users to install it. gtk.php.net is the official page for php-gtk and php-gtk2. The official mailing lists, the documentation and the wiki is hosted there. |
Is there something like Gnope only for php-gtk? |
|
| Back to top |
|
 |
cweiske
Joined: 08 Dec 2005 Posts: 454 Location: Leipzig/Germany
|
Posted: Sat Jan 07, 2006 3:42 pm Post subject: Re: GtkText class |
|
|
| drazha wrote: | | Is there something like Gnope only for php-gtk? |
Do you mean php-gtk1? No. |
|
| Back to top |
|
 |
|