title: Interaction between Widgets in gtkd
body: <p>I am experimenting with D and gtkd. Now, I have this button, and when I click it, I want to start a function in an other widget. How can I do this?</p>
  
  <p>Here is some example Code, that is working, but not yet doing, what I want(when pressing SearchButton, a function in SearchResultsGrid should be called):</p>
  
  <pre><code>import gtk.Button;
  import gtk.SearchEntry;
  import gtk.Main;
  import gtk.MainWindow;
  
  import gtk.VBox;
  import gtk.Grid;
  import std.stdio;
  
  import gdk.Event;
  import gtk.Widget;
  
  void main(string[] args)  {
      Main.init(args);
  
      MainWindow win = new MainWindow("Example");
      win.setDefaultSize(200, 100);
      Box hbox = new Box(Orientation.HORIZONTAL, 2);
  
      hbox.add(new SearchButton("Search"));
      hbox.add(new SearchResultsGrid());
  
      win.add(hbox);
  
      win.showAll();
      Main.run();
  }
  
  class SearchButton : Button {
      this(in string text) {
          super(text);
          modifyFont("Arial", 14);
       }
  
      private bool search(Event event, Widget widget) {
  
          return true;
      }}
  
  class StarterButton : Button  {
      this(in string text) {
          super(text);
          modifyFont("Arial", 14);
          addOnButtonRelease(&amp;startProgramm);
      }
      private bool startProgramm(Event event, Widget widget)
      {
          return true;  
      } }
  class SearchResultsGrid : Grid     {
      public void showResults()    {
          attach( new StarterButton("Start"), 1,1,1,1);
          attach( new StarterButton("Start2"), 2,1,1,1);
      }}
  </code></pre>
  
  <p>So, I want to trigger the showResults in SearchResultsGrid, my idea was, to the SearchResultsGrid Object to the SearchButton in the Main function, but this doesn't work.</p>
  
  <p>What would be the/a forseen way to do it?</p>