GTK Programming



I am a new GTK programmer, and I am running into a problem with my user interface.

Basicaly I have a button that when pressed is supposed to connect to a remote server. As this client is trying to connect to the server, it is supposed to update the user interface by outputting a text character to a text output box. After much looking around, i found out how to do this using the following code:

    while(Gtk::Main::events_pending())
    {
        Gtk::Main::iteration();
    }

The issue that I am running into however is that, even though this updates the interface, it leaves the interface completely un-responsive to other input. For example if the user whishes to quit the application while it is connecting, none of the menus respond (though they do drop down). The only thing that works is the X button on the window, however it does not actualy end the program properly.

If anyone can give me a hand with this problem it would be much appreciated.

Thanks

Sincerely
-Melvin


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