Re: Wait for input



Ed Symanzik wrote:

Let's say I had a app with a button or menu item to connect to a
server.  I can catch that signal and open the connection.

However, if the user has not identified the server, I should
popup a window and get that information.  How do I wait until
they have set that value?

connect_button_pressed()
  if (no_server)
    server_popup();
  connect_to_server(server);


start a seperat gtk_main() loop and when the value has been entered call
gtk_main_quit().

clemens




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