Re: [gtk-list] Re: Modal windows



On Sat, 20 Feb 1999, Udo Giacomozzi wrote:

> 
> 
> >> 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.

note that gtk+ supports gtk_window_set_modal() since 1.1.2 (and features
FALSE as well as TRUE for the modal state).

> 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?

yes.

> 
> Regards
> Udo Giacomozzi
> 

---
ciaoTJ



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