Re: [gtk-list] Re: Modal windows





>> How can I create modal windows? I want a window that is the only window
of
>> my app that is active (like message dialogs under Windows).
>> Normally when I create a second window with gtk_window_new the first
window
>> is still active...
>
>  I think that I posted it some time ago, maybe it's in archive. And I
think
>that Andy will not flame me for obscene code this time. :-)
>  Apparently this soltion isn't capable of gtk_window_set_modal(*,FALSE)
>but it will probably not be needed in your app anyway.

Ok, thank you it works fine.
Another question: I have made a function that shows a modal window with a
text and some buttons in it (like MessageBox under Windows). The function
should not exit until a button is clicked. I call gtk_main() in this
function therefore and it works. However is this the right way?

Regards
Udo Giacomozzi

--
* Email: udo_giacomozzi@rolmail.net
* UIN: 17745247   (@pager.mirabilis.com)




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