Re: Showing the value in a GtkTreeViewColumn depending on a condition
- From: "Shahms E. King" <shahms shahms com>
- To: gtk-app-devel-list gnome org
- Subject: Re: Showing the value in a GtkTreeViewColumn depending on a condition
- Date: 02 Jul 2002 10:19:42 -0700
"binding" a GtkCellRenderer property to a GtkTreeModel column is pretty
straightforward and is covered in the docs, but here is a basic example:
GtkWidget* tree;
GtkCellRenderer* cell;
GtkTreeViewColumn* column;
tree = gtk_tree_view_new_with_model (<your model here>);
cell = gtk_cell_renderer_text_new ();
column = gtk_tree_view_column_new_with_attributes ("Name", cell,
"visible", IS_ROOT, "text", SOME_OTHER_COLUMN, NULL);
gtk_tree_view_append_column (GTK_TREE_VIEW (tree), column);
--Shahms
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]