[SOLVED] How to collect text fields data AND pass to a callback function
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!
Re: How to collect text fields data AND pass to a callback function
Since I found a valuable solution, I thought others may also use it.
Tags for this Thread