[Mono-osx] Program using GTK Application does not quit at logout or shutdown

djjansen joachim.jansen at in2sports.net
Mon Feb 2 14:23:50 EST 2009


http://www.nabble.com/file/p21796419/Program.cs Program.cs 

Hi all,

I've got a problem using the attached demo program. Its based upon 2
examples, like
http://www.mono-project.com/GtkSharpNodeViewTutorial

The problem is, when I run this program, it does not quit (by himself) when
I logout or shutdown. 

I use mono 2.2 on a Mac Os 10.4 and 10.5 ( same problem )

I've added the OnDeleteEvent method:
class Hello : Gtk.Window {

  public Hello() : base( "MyWindow" ) {
    this.Show();
  }

  protected override bool OnDeleteEvent(Gdk.Event ev){
    Console.WriteLine( "OnDeleteEvent" );
    Gtk.Application.Quit();
    return true;
  }

}

Any suggestions?

Best regards,
Joachim
-- 
View this message in context: http://www.nabble.com/Program-using-GTK-Application-does-not-quit-at-logout-or-shutdown-tp21796419p21796419.html
Sent from the Mono - OSX mailing list archive at Nabble.com.



More information about the Mono-osx mailing list