gtk_tree_view_column_new_with_attributes and G_Type
- From: "chen.shengqi" <chen shengqi connet com tw>
- To: <gtk-app-devel-list gnome org>
- Subject: gtk_tree_view_column_new_with_attributes and G_Type
- Date: Mon, 25 Nov 2002 15:58:17 +0800
dear dirs:
I want to set column color in gtk_tree_view_column_new_with_attributes , in the docs have a example:
enum { TEXT_COLUMN, COLOR_COLUMN, N_COLUMNS };
...
{
GtkTreeViewColumn *column;
GtkCellRenderer *renderer = gtk_cell_renderer_text_new ();
column = gtk_tree_view_column_new_with_attributes ("Title",
renderer,
"text", TEXT_COLUMN,
"foreground", COLOR_COLUMN,
NULL);
}
than what should COLOR_COLUMN's GType be? thanks.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]