Domanda

I'm writing a program using gtkmm-2.4 GUI package in Linux. How can I put horizontal lines as separators between rows of a TreeView?

È stato utile?

Soluzione

You are looking for set_grid_lines:

someTreeView.set_grid_lines(Gtk::TREE_VIEW_GRID_LINES_HORIZONTAL);

The actual appearance of the lines is controlled by the current Gtk Theme.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top