Thread: GTK Help

  1. #1
    Boldly going nowhere.
    Join Date
    Feb 2002

    GTK Help

    Ive just recently started programming again and after reading K&R and experimenting I moved onto GTK (2). Im currently planning to port an application written in Java to C and GTK. Mainly because its a brilliant application and freebsd has some issues with java(well my 56k has issues with downloading the big packages required) aswell as wanting a pet project to work on .

    I just have a few problems I cant figure out. Im sure there will be more but for now they are :

    1: When creating a new window (such as a pop asking are you sure) how do i kill that specific window via the X at the top right. I can only seem to kill both windows(the main and the popup) or none at all.

    2: How can i pass multiple values to a function on certain signals. I want to pass 2 text fields to a login function on a button click. I presume i could use const values in the function and call it multiple times with each text field(as the manual says i can) but that seems 'dirty'.

  2. #2
    Im a Capricorn vsriharsha's Avatar
    Join Date
    Feb 2002
    The Best Answer to your Questions (These and Future also) can be found at.....

    But one thing... I dont suggest GTK, It is very very tedious and though you can have extreme control over the program (objects/widgets), it is not worth for usual - generic - purpose applications... Instead, you can go in for a combination of PYTHON + QT or TCL/TK.... They offer much easier programming (achieving all that you want with a lot less code)...

    Help everyone you can

  3. #3
    Registered User caroundw5h's Avatar
    Join Date
    Oct 2003
    There is also PyGTK . easier to code, and because of the interactive interperter you can learn alot faster. Probably even answer your own question.
    Warning: Opinions subject to change without notice

    The C Library Reference Guide
    Understand the fundamentals
    Then have some more fun

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. MinGW32 and gtk setup in Windows
    By Joelito in forum A Brief History of
    Replies: 1
    Last Post: 02-05-2009, 11:39 AM
  2. Replies: 1
    Last Post: 09-22-2008, 04:49 AM
  3. GTK troubles...again...
    By cornholio in forum Linux Programming
    Replies: 4
    Last Post: 01-16-2006, 01:37 AM
  4. Replies: 1
    Last Post: 10-24-2005, 06:35 AM
  5. QT or GTK
    By mart_man00 in forum Linux Programming
    Replies: 4
    Last Post: 03-24-2003, 10:42 PM