Re: EuGTK - documentation?

new topic     » goto parent     » topic index » view thread      » older message » newer message

Pretty much not going to happen, too much work, too few users.

The only recommendation I have is to study the gtk.org on-line reference to see how many and what type parameters need to be passed when creating, setting, or getting control values. That's what I do.

One thing to note when doing this: many GTK widgets have shortcut ways to create them, for example, we'll use the GtkEntry (single-line text entry). From the GTK docs, you'll see:

GtkWidget* gtk_entry_new (void);  
GtkWidget* gtk_entry_new_with_buffer (GtkEntryBuffer *buffer);  
GtkWidget* gtk_entry_new_with_max_length (gint max); 
 

The 2nd and 3rd line are so-called 'convenience' functions that allow setting some params while creating the control. Ignore them. I don't implement them, they aren't necessary. Just set whatever you need after the control is created.

The only widgets which are really difficult to use are the list_view and tree_view widgets. http://www.dreamincode.net/forums/topic/169010-linux-working-with-gtk-list-boxes/ may help. (you can compare this with test33.ex in the EuGTK demos)

With minor variations, you can use PyGTK or php-gtk tutorials as well. And converting from C programs can be done pretty much on a line-by-line basis. Just leave out all the type-casting.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu