Re: Gtk execution question



Hi,

lorenzo zampese electrolux it writes:

> Maybe I was not clear in my previous message :
> I connect the "clicked" event as shown in the code, but
> my problem is I don't want to show the "file selection dialog"
> and "window" togheter.
> 
> I wish to show the "window" only when the "ok button" is pressed !
> To do this a need to stop the GTK execution !

you should never stop the gtk+ execution or block the main loop. If
necessary you can use nested main loops but I don't think you need
to do that here.

> But GTK shows the "file selection dialog" and the "window" without
> waiting OK button is pressed :(

if you call gtk_widget_show() from the "clicked" signal handler (it's
not an event!), how can it be shown earlier?


Salut, Sven




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