Re: gtk_tree_view_column_new_with_attributes and G_Type
- From: ginxd <ginxd btopenworld com>
- To: "chen.shengqi" <chen shengqi connet com tw>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: gtk_tree_view_column_new_with_attributes and G_Type
- Date: Fri, 29 Nov 2002 16:57:46 +0000
chen.shengqi wrote:
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.
‚Ù¦—^½éeŠËfj)bž b²Ø-‘ªiuëÞ–X¬¶ è™ê+‚m§ÿæj)`ž‰ž¢¸?™¨¥™©ÿ–+-Šwèþdjš]z÷¥–+-
If you make COLOR_COLUMN = NULL then it should use the default theme
colour scheme. Otherwise, you can set it to be "blue" or "red" or "dark
red"...etc. This is of type gchararray. There is also a new feature
called "foreground-gdk" which will let you set the GdkColor:
http://developer.gnome.org/doc/API/2.0/gdk/gdk-Colormaps-and-Colors.html#GdkColor
Regards,
Martyn
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]