title: How to make a Gtk+ widget inside a GtkScrolledWindow to expand when packed into a GtkPane?
body: <p>I have a program which shows two <a href="http://developer.gnome.org/gtk/2.24/GtkTreeView.html" rel="nofollow noreferrer"><code>GtkTreeView</code></a>s packed inside a <a href="http://developer.gnome.org/gtk/2.24/GtkPaned.html" rel="nofollow noreferrer"><code>GtkPaned</code></a> (<a href="http://sscce.org/" rel="nofollow noreferrer">sscce</a>: <a href="http://pastebin.com/jzTT0zSA" rel="nofollow noreferrer">here</a>):</p>
  
  <pre><code>gtk_paned_add1(GTK_PANED(paned), tree_view1);
  gtk_paned_add2(GTK_PANED(paned), tree_view2);
  </code></pre>
  
  <p>The result is the following:</p>
  
  <p><img src="https://i.stack.imgur.com/bbbBM.png" alt="Window presenting the two tree views"></p>
  
  <p>However, the tables can become bigger, so I added then to <a href="http://developer.gnome.org/gtk/stable/GtkScrolledWindow.html" rel="nofollow noreferrer"><code>GtkScrolledWindow</code></a>s (sscce: <a href="http://pastebin.com/uW0EAvTS" rel="nofollow noreferrer">here</a>):</p>
  
  <pre><code>GtkWidget *scrolled_window1 = gtk_scrolled_window_new(NULL, NULL),
            *scrolled_window2 = gtk_scrolled_window_new(NULL, NULL);
  gtk_container_add(GTK_CONTAINER(scrolled_window1), tree_view1);
  gtk_container_add(GTK_CONTAINER(scrolled_window2), tree_view2);
  gtk_paned_add1(GTK_PANED(paned), scrolled_window1);
  gtk_paned_add2(GTK_PANED(paned), scrolled_window2);
  </code></pre>
  
  <p>However, now the window collapses itself to the point it is almost a thin trance, as in the screenshot below:</p>
  
  <p><img src="https://i.stack.imgur.com/n7mu8.png" alt="Insanely small window"></p>
  
  <p>If I maximize the window, the first column does not appear (although I can manually expand it):</p>
  
  <p><img src="https://i.stack.imgur.com/VDBjA.png" alt="The first table does not appear"></p>
  
  <p>So, what is the best method of getting the appearance of the first screenshot wen using <code>GtkScrolledWindows</code> in this scenario? Also, could I define the size of the pane columns in relation to one another (for example, 30% for the first one, 70% for the second one?</p>