title: GTK and scrolling text view
body: <p>This is what I have so far</p>
  
  <pre><code>GtkWidget* createConsoleBox()
  {
          GtkWidget* textArea = gtk_text_view_new();
          GtkWidget* scrollbar = gtk_vscrollbar_new(gtk_text_view_get_vadjustment(GTK_TEXT_VIEW(textArea)));
          GtkWidget* textEntry = gtk_entry_new();
  
          GtkWidget* console = gtk_table_new(3, 2, FALSE);
  
          gtk_table_attach_defaults(GTK_TABLE(console), textArea, 0, 1, 0, 1);
          gtk_table_attach_defaults(GTK_TABLE(console), scrollbar, 1, 2, 0, 1);
  
          gtk_table_attach_defaults(GTK_TABLE(console), textEntry, 0, 2, 1, 2);
  
          return console;
  
  }
  </code></pre>
  
  <p>I want the text view to be scrollable as the text begins to fill the box, but the box keeps on expanding to accommodate more text. How to do I limit the size of the text view and create a scrollable text view.</p>
  
  <p>Thanks in advance :-)</p>