e_cell_text_new ()
ECell* e_cell_text_new (const char *fontname,
GtkJustification justify); |
Creates a new ECell renderer that can be used to render strings that
that come from the model. The value returned from the model is
interpreted as being a char *.
The ECellText object support a large set of properties that can be
configured through the Gtk argument system and allows the user to have
a finer control of the way the string is displayed. The arguments supported
allow the control of strikeout, bold, color and a text filter.
The arguments "strikeout_column", "bold_column" and "color_column" set
and return an integer that points to a column in the model that controls
these settings. So controlling the way things are rendered is achieved
by having special columns in the model that will be used to flag whether
the text should be rendered with strikeout, or bolded. In the case of
the "color_column" argument, the column in the model is expected to have
a string that can be parsed by gdk_color_parse().