[Gtk-sharp-list] 'CentreOnParent' window position does not seem to work ?

Chris Howie cdhowie at gmail.com
Tue Aug 12 08:35:20 EDT 2008

On Tue, Aug 12, 2008 at 1:47 AM, Brett Senior <brett_senior at yahoo.com.au> wrote:
> Chris,
>     I put the Application.Run() there so that the user can interact with the
> window just created - win is a 'sub-window' and I thought that you needed to
> do the Application.Run().  - I then use Application.Quit() in the
> sub-window.

I believe you really want to be using Dialog as the parent class of
your sub-windows.  The Dialog.Run() method will similarly block until
the dialog is closed or issues a response.  What you are doing isn't
wrong per se but it's a very unorthodox way of accomplishing this,
especially given that a class already exists that encapsulates this

Chris Howie

More information about the Gtk-sharp-list mailing list