Re: [gtkmm] Centering Gnome::UI::About dialog



On Sat, 2003-08-23 at 07:59, Ole Laursen wrote:
> Bo Majewski <bo majewski com> writes:
> 
> > Is there a simple way to center the Gnome::UI::About dialog with respect
> > to the top level window?
> 
> I think this is up to the window manager, although perhaps it is
> necessary to do a set_transient_for on the about box, if that's
> possible.

Excellent! It works. The code, which is a method of a Gtk::Window class
looks like this now:

        about = new Gnome::UI::About(PACKAGE,
                                     ...
                                     ...);

        about->set_transient_for(*this); // this is a Gtk::Window *
        about->show();

Thanks a lot!

Bo




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