tags:

views:

102

answers:

1

I am having a GtkTreeView with GtkTreeStore in it and I want to Sort this entire table (GtkTreeView) when user clicks on any of the column headers I also want to align text in the cells to left side.

How to do this?

+1  A: 

In order:

  1. You really need to start looking more at the fine documentation.
  2. Make sure you set a sort column id on each of your columns, then look at the GtkTreeSortable interface. This tutorial section is helpful, too.
  3. Set the "xalign" property of your GtkCellRenderer to 0.f.
unwind
+1 for step #1.
ptomato