title: GtkListStore - how to center text?
body: <p>I have included a brief snippet of code. I'm making a Tree View with 5 columns. I have pasted the last column with the for loop that generates the data to be stored in the GtkListStore. I can center the columns of the Tree View easily. I have looked online to find out how to center the text in the GtkListStore and I am not finding a solution. I have looked through the documentation: </p>
  
  <p><a href="http://developer.gnome.org/gtk3/3.4/GtkListStore.html" rel="nofollow">http://developer.gnome.org/gtk3/3.4/GtkListStore.html</a></p>
  
  <p>On the last link, I do not see an alignment property. Is there a way to align all of the objects through the GtkTreeModel? I haven't found any online examples using the GtkListStore and aligning text... really appreciate the help!</p>
  
  <pre><code>// Append Table Velocity column
  column = gtk_tree_view_column_new();
  gtk_tree_view_column_set_title(column, "Pressure");
  gtk_tree_view_column_set_min_width(column, 60);
  gtk_tree_view_column_set_alignment(column, 0.5); // 0.0 left, 0.5 center, 1.0 right
  // Code Above center's the column title in the Tree View
  
  renderer = gtk_cell_renderer_text_new();
  g_object_set( G_OBJECT( renderer ), "xalign", 0.5 );    // xalign, 0.5
  // Code above doesn't change alignment..
  
  gtk_tree_view_column_pack_start(column, renderer, FALSE);
  gtk_tree_view_column_set_attributes(column, renderer, "text", 4, NULL);
  gtk_tree_view_append_column(GTK_TREE_VIEW(treeview), column);
  
  // List Store
  liststore = gtk_list_store_new(5, G_TYPE_INT, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING);
  gtk_tree_view_set_model(GTK_TREE_VIEW(treeview), GTK_TREE_MODEL(liststore));
  
  int i;
  for(i=1; i&lt;=6; i++) {
  // Append test data
  gtk_list_store_append(liststore, &amp;iter);
  gtk_list_store_set(liststore, &amp;iter, 0, i, 1, "5", 2, "0.2", 3, "123", 4, "0.5", -1);
  // How do I center the text stored in the GtkListStore?
  }
  
  gtk_widget_show_all(window);
  </code></pre>