Method

GtkTreeViewset_rules_hint

deprecated: 3.14 

Declaration [src]

void
gtk_tree_view_set_rules_hint (
  GtkTreeView* tree_view,
  gboolean setting
)

Description [src]

Sets a hint for the theme to draw even/odd rows in the tree_view with different colors, also known as “zebra striping”.

This function tells the GTK+ theme that the user interface for your application requires users to read across tree rows and associate cells with one another.

Do not use it just because you prefer the appearance of the ruled tree; that’s a question for the theme. Some themes will draw tree rows in alternating colors even when rules are turned off, and users who prefer that appearance all the time can choose those themes. You should call this function only as a semantic hint to the theme engine that your tree makes alternating colors useful from a functional standpoint (since it has lots of columns, generally).

Deprecated since: 3.14

Please do not use it in newly written code.

Parameters

setting

Type: gboolean

TRUE if the tree requires reading across rows.