Results 1 to 2 of 2

Thread: [SOLVED] How to collect text fields data AND pass to a callback function

  1. #1
    Join Date
    Mar 2008
    Location
    Poland, Europe
    Beans
    211
    Distro
    Ubuntu

    Question [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!

  2. #2
    Join Date
    Mar 2008
    Location
    Poland, Europe
    Beans
    211
    Distro
    Ubuntu

    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.

    http://www.gtkforums.com/about1337.html

    Solved.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •