title: Mono Gtk#: ButtonPressEvent not work
body: <p>I want to create simple application where I need to add some button press events.. But when I try to add handler to this event to any Widget (except button), it just does not work.</p>
  
  <p>When I click anywhere in window, it does not print nothing. What can I do? I have followed (or tried to follow) this easy tutorial: <a href="http://mono-project.com/GtkSharpBeginnersGuide" rel="nofollow">http://mono-project.com/GtkSharpBeginnersGuide</a></p>
  
  <p>Here is my code:</p>
  
  <pre><code>public partial class MainWindow : Gtk.Window
  {   
      public MainWindow (): base (Gtk.WindowType.Toplevel)
      {
          ButtonPressEvent += new ButtonPressEventHandler(ButtonPressHandler);
          ButtonPressEvent += delegate {Console.WriteLine("test 1");};
  
          SetDefaultSize(50, 50);
          SetPosition(WindowPosition.Center);
          DeleteEvent += new DeleteEventHandler(OnDeleteEvent);
  
          VBox vbox = new VBox(false, 2);
  
          MenuBar mb = new MenuBar();
          Menu filemenu = new Menu();
          MenuItem file = new MenuItem("Soubor");
          file.Submenu = filemenu;
          mb.Append(file);
  
          vbox.PackStart(mb, false, false, 0);
  
          GuiBoard board = new GuiBoard(3, 3, true);
          board.Board = new Board(5, 7);
  
          vbox.PackStart(new Entry(), false, false, 0);
          vbox.PackEnd(board, true, true, 0);
  
          Add(vbox);
          ShowAll();
      }
  
      protected void OnDeleteEvent (object sender, DeleteEventArgs a)
      {
          Application.Quit ();
      }
  
      protected void ButtonPressHandler(object obj, ButtonPressEventArgs args)
      {
          Console.WriteLine("test!");
      }
  }
  </code></pre>
  
  <p>Thanks in advance</p>