Learn R Programming

RGtk2 (version 2.20.31)

gtkTreeViewColumnNewWithAttributes: gtkTreeViewColumnNewWithAttributes

Description

Creates a new GtkTreeViewColumn with a number of default values. This is equivalent to calling gtkTreeViewColumnSetTitle, gtkTreeViewColumnPackStart, and gtkTreeViewColumnSetAttributes on the newly created GtkTreeViewColumn.

Usage

gtkTreeViewColumnNewWithAttributes(title, cell, ...)

Arguments

title
The title to set the header to.
...
A newly created GtkTreeViewColumn.

Value

GtkTreeViewColumn] A newly created GtkTreeViewColumn.

Details

Here's a simple example:
renderer <- gtkCellRendererText()
column <- gtkTreeViewColumn("Title", renderer, "text" = TEXT_COLUMN,
                            "foreground" = COLOR_COLUMN)