Hi. I have a question, I hope you help me. Look at this code:

public IngresarPersona(Gtk.Window parent)
{
        Glade.XML gxml = new Glade.XML (null, "ingresarpersona.glade",
"gwIngresarPersona", null);
        gxml.Autoconnect(this);

        gwIngresarPersona.DeleteEvent += on_gwIngresarPersona_delete;
        btnCancelar.Clicked += on_gwIngresarPersona_delete;
        btnAceptar.Clicked += OnbtnAceptarClicked;

        gwIngresarPersona.TransientFor = parent;
        gwIngresarPersona.WindowPosition = WindowPosition.CenterOnParent;
}

The window is centred if I run the program on Linux, but not on Windows.
I don't understand why that happen on Linux, because the window is
displayed when the XML object is created (first line) and then I set the
TransientFor and WindowPosition properties, so it should not be centred.

Well, on Windows the window is not centred, how I expected. What can I
do to not let the XML object display the window until I set the
properties I need?

Thank you!

-- 
Milton Pividori
Blog: http://www.miltonpividori.com.ar
Jabber ID: [EMAIL PROTECTED]
GnuPG Public Key: gpg --keyserver wwwkeys.pgp.net --recv-key 0x663C185C

_______________________________________________
Gtk-sharp-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/gtk-sharp-list

Reply via email to