gnope php gtk gui gnope.org  

GtkText class

 
Post new topic   Reply to topic    gnope.org Forum Index -> PHP GTK2 Beginners
View previous topic :: View next topic  
Author Message
drazha



Joined: 06 Jan 2006
Posts: 4

PostPosted: Fri Jan 06, 2006 5:24 pm    Post subject: GtkText class Reply with quote

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

PostPosted: Fri Jan 06, 2006 5:50 pm    Post subject: Re: GtkText class Reply with quote

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

PostPosted: Fri Jan 06, 2006 6:38 pm    Post subject: Re: GtkText class Reply with quote

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

PostPosted: Fri Jan 06, 2006 6:41 pm    Post subject: Re: GtkText class Reply with quote

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

PostPosted: Sat Jan 07, 2006 3:35 am    Post subject: Re: GtkText class Reply with quote

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

PostPosted: Sat Jan 07, 2006 9:55 am    Post subject: Re: GtkText class Reply with quote

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

PostPosted: Sat Jan 07, 2006 3:35 pm    Post subject: Re: GtkText class Reply with quote

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

PostPosted: Sat Jan 07, 2006 3:42 pm    Post subject: Re: GtkText class Reply with quote

drazha wrote:
Is there something like Gnope only for php-gtk?

Do you mean php-gtk1? No.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    gnope.org Forum Index -> PHP GTK2 Beginners All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Templates enhanced by DigiWiki. Hosting by Tradebit.