[PLUG] GTK 2 problem...

Michael C. Robinson michael at robinson-west.com
Fri May 30 19:49:02 UTC 2003


I want to take the data from a text entry and shove it into a double.

Here are prototypes for the functions I seem to need under GTK:

     GtkWidget * gtk_entry_new ( void );

     G_CONST_RETURN gchar* gtk_entry_get_text ( GtkEntry * );

Clearly one problem is that a GtkWidget is a different type than
a GtkEntry.  The API documentation is horridly confusing because it
says of the first prototype that it creates a GtkEntry.

Another problem I've run into is not having a signal for when a box
is left via tab or clicking on another one.  The latter is not good
as it's not intuitive to press the Enter key.

The tutorial helps some but does one need to look at GTK's source code
to learn all the signals, etc. or is there a good book for this?
The reference at www.gtk.org is poorly organized :-(

     --  Michael C. Robinson






More information about the PLUG mailing list