How to center Gtk.ColumnViewColumn titles in Gtk.ColumnView

By default, the ColumnViewColumn titles in a ColumnView are left aligned as in the image above. How can I center them so that they appear like in the image below?

On a quick glance, I don’t see a:

  • gtk_column_view_column_set_alignment()

in line with

  • gtk_tree_view_column_set_alignment()

though I could be missing something.

I don’t think there is such a method on ColumnViewColumn.

gtk_tree_view_column_set_alignment (gtk_tree_view_get_column (GTK_TREE_VIEW (lst), field_index),0.5);

"GtkTreeView" is deprecated since gtk-4.10, in favor of "GtkColumnView", which is what this topic is on.

sorry, I’m still using gtk3 at the moment

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.