gtk_tree_view_column_new_with_attributes设置的title不显示..

prosteven2 2009-06-08 10:29:48
column = gtk_tree_view_column_new_with_attributes( "Name", renderer, "text", COL_NAME, NULL );

为什么treeview内没有显示标题条(header),更看不到"Name"?
...全文
169 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
prosteven2 2009-06-09
  • 打赏
  • 举报
回复
"title :The title to set the header to."


title为什么会不显示呢?
prosteven2 2009-06-09
  • 打赏
  • 举报
回复
gtk_tree_view_insert_column_with_attributes ()

gint gtk_tree_view_insert_column_with_attributes
(GtkTreeView *tree_view,
gint position,
const gchar *title,
GtkCellRenderer *cell,
...);

Creates a new GtkTreeViewColumn and inserts it into the tree_view at position. If position is -1, then the newly created column is inserted at the end. The column is initialized with the attributes given. If tree_view has "fixed_height" mode enabled, then the new column will have its sizing property set to be GTK_TREE_VIEW_COLUMN_FIXED.

tree_view :
A GtkTreeView

position :
The position to insert the new column in.

title :
The title to set the header to.

cell :
The GtkCellRenderer.

... :
A NULL-terminated list of attributes.

Returns :
The number of columns in tree_view after insertion.
wangkongxinglang 2009-06-08
  • 打赏
  • 举报
回复
查查手册

23,116

社区成员

发帖
与我相关
我的任务
社区描述
Linux/Unix社区 应用程序开发区
社区管理员
  • 应用程序开发区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧