Re: Invoking a popup on a Gtk::Window ( Gtk::WindowType ( Gtk::WINDOW_POPUP ) )
- From: Murray Cumming <murrayc murrayc com>
- To: joaquimduran adtelecom es
- Cc: gtkmm-list gnome org
- Subject: Re: Invoking a popup on a Gtk::Window ( Gtk::WindowType ( Gtk::WINDOW_POPUP ) )
- Date: Thu, 24 Apr 2008 16:03:19 +0200
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.
--
murrayc murrayc com
www.murrayc.com
www.openismus.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]