View Full Version : [SOLVED] [SOLVED] How to collect text fields data AND pass to a callback function

November 14th, 2008, 12:50 AM
Hi guys, I'm a beginner programmer. I have prepared a GTK+ GUI of my application in glade. One of the windows is a form (with couple of text fields). Obviously I also have already coded some part of the app using libglade. I'm coding in C.

How can I collect the data from those form fields, when eg. a button is pressed, so that I can pass them to a callback function that would proccess it and do an sqlite query (insert to a db, that I know how to do).

I hope not to duplicate any post, I've been through the documentation, tutorials, and yet don't have a clue how to do that (beside some sick ugly hacks).

Thanks in advance!

November 14th, 2008, 01:46 AM
Since I found a valuable solution, I thought others may also use it.