title: how can I set focus to a textview and window in GTK
body: <p>I tried</p>
  
  <pre><code>textview.GrabFocus();
  </code></pre>
  
  <p>but it does nothing. Is there any way to do that? (Please try to answer this time instead of telling me to use google - I have tried and failed, thanks).</p>
  
  <p>I also tried the same for a window:</p>
  
  <pre><code>            // searchbox is a GTK window, which was initialised on load of this form
              searchbox.Show();
              searchbox.GrabFocus();
              // this function will set focus to text box
              searchbox.setFocus();
  </code></pre>
  
  <p>the main window in this case open a new window and is supposed to make this new window focused, and certain text box in this window focused - it doesn't work though and I have no idea why, full source code:</p>
  
  <p>the window I am opening: <a href="https://github.com/pidgeonproject/pidgeon/blob/gtk%23/Forms/ScriptEdit.cs" rel="nofollow">https://github.com/pidgeonproject/pidgeon/blob/gtk%23/Forms/ScriptEdit.cs</a></p>
  
  <p>the window from which I am opening: <a href="https://github.com/pidgeonproject/pidgeon/blob/gtk%23/Forms/Main.cs#L520" rel="nofollow">https://github.com/pidgeonproject/pidgeon/blob/gtk%23/Forms/Main.cs#L520</a></p>