Re: Getting a button to pop up

In message <>you write:
>Hey, I've got a button that when pushed, begins a connection
>to an FTP daemon. Well, this causes the button to hang
>in the pushed-down position. Is there any way to execute
>the callback, but make the button pop back up quickly?

1) use gtk_idle_add(), though this will then hang up your
       entire user interface. the button will pop back
       again first however.

2) learn to use threads. with gtk, this is a non-trivial
   exercise in most cases.

3) fork a child process. less pain than the threads case,
   but much less flexible as well.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]