Segmentation fault while reading from entry.

2007-06-03 Thread Szymon Ząbkiewicz
Hello. I'm am new to gtk+ and I try to write a simple application, I need to read a double from an entry, I've already written a parsing *char->double function but I can't even read from the entry using gtk_editable_get_chars because I get Segmentation Fault. I don't know what is the reason for thi

Re: Segmentation fault while reading from entry.

2007-06-03 Thread Yeti
On Sun, Jun 03, 2007 at 12:28:03PM +0200, Szymon Ząbkiewicz wrote: > I'm am new to gtk+ and I try to write a simple application, I need to > read a double from an entry, I've already written a parsing > *char->double function Is it really necessary to write yet another floating point number parser

Re: Segmentation fault while reading from entry.

2007-06-03 Thread Nickolai Dobrynin
Szymon, In addition to what Yeti has pointed out, one thing that's obviously wrong is that you don't seem to have anything in your code that adds the text entry to the window, i.e. gtk_container_add(GTK_CONTAINER(windowP), widgetP); Also, why not use gtk_entry_get_text(...) to read the content o

Re: Segmentation fault while reading from entry.

2007-06-03 Thread Szymon Ząbkiewicz
The problem was in the callback's arguments, thanks. PS. Nickolai: I cut out most of the code to make things clearer, don't worry I did add the widgets to a table and the table to the window. ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.o

Using Pango or Cairo with GTK on DirectFB

2007-06-03 Thread Dennis Hall
I'm having trouble with refresh when I used either Pango or Cairo calls with GTK over Direct FB. I've modified the scribble.c sample so that some test text is drawn using pango when a button pressed or a movement event occurs but I don't see the text unless I press the meta key (or windows key