Dialog-like window?



Dudes,

Is there a way of creating a window which, when shown, will cause the caller function to sit and wait until it gives a result? I mean, something like the GtkDialogs and gtk_dialog_run. However, as far as I understood, a normal GtkDialog only "returns" integer values.

I ask this because I would like to have a certain dialog working itself like a function, building a structure according to whatever is shown or input in its widgets, and then returning this structure (or any other type) when the user clicks on OK. Then the program would continue from the point where the "open_dialog function" was called, using the data structure (or any other value type) which has been created with the dialog.

I have seen this behaviour in other programming languages/toolkits, but still haven´t got a clue of how to emulate this in GTK. What do you suggest?

Thank you!

Fabricio Rocha
Brasilia, Brasil
The RADiola Project
http://radiola.sourceforge.net

                
_______________________________________________________ Yahoo! Mail - Sempre a melhor opção para você! Experimente já e veja as novidades. http://br.yahoo.com/mailbeta/tudonovo/



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