#include <gtk/gtk.h>

void
main (int argc, char **argv)
{
  gtk_init (&argc, &argv);
  GtkWidget *window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
  GtkWidget *text_view = gtk_text_view_new ();

  gtk_text_view_set_top_margin (GTK_TEXT_VIEW (text_view), 6);
  gtk_text_view_set_bottom_margin (GTK_TEXT_VIEW (text_view), 6);
  gtk_widget_set_valign (text_view, GTK_ALIGN_CENTER);
  gtk_widget_set_size_request (text_view, -1, 50);

  gtk_container_add (GTK_CONTAINER (window), text_view);
  gtk_widget_show_all (window);
  gtk_main ();
}
