On Thu, 2008-04-24 at 14:29 +0200, Joaquim Duran wrote:
> Hello,
> 
> En/na Sai ha escrit:
> > Actually I have used Gtk::manage() to invoke the second pop up.
> > 
> > The code is like:
> > second_popup = Gtk::manage ( new Gtk::Window( Gtk::WINDOW_POPUP ) );
> > second_popup->set_position ( Gtk::WIN_POS_CENTER_ON_PARENT);
> > second_popup->set_transient_for ( *this );//this refers first pop up
> > second_popup->set_modal(true);
> > second_popup->show_all();
> 
> You should add this line, after your code:
> 
> Gtk::Main::run(*second_popup);

I really doubt that's necessary.

I suspect that it might be a problem to have a modal window showing a
secondary modal window, at least with some window managers.

But until we see a test case it's hard to say more.

-- 
[EMAIL PROTECTED]
www.murrayc.com
www.openismus.com

_______________________________________________
gtkmm-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/gtkmm-list

Reply via email to