亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区
Chinaunix
標(biāo)題:
GTK:如何設(shè)置Treeview各標(biāo)頭列的背景或前景色呢?
[打印本頁]
作者:
huitianhaha
時(shí)間:
2007-09-17 17:37
標(biāo)題:
GTK:如何設(shè)置Treeview各標(biāo)頭列的背景或前景色呢?
GTK:如何設(shè)置Treeview各標(biāo)頭列的背景或前景色呢?
如何設(shè)置Gtktreeview的列標(biāo)頭顏色.謝謝
作者:
whyglinux
時(shí)間:
2007-09-24 00:59
GtkTreeView* view;
GtkTreeViewColumn *col;
GtkWidget* label;
GdkColor color_fg;
GdkColor color_bg;
/* Create the tree view */
view = gtk_tree_view_new();
/* Create a new column */
col = gtk_tree_view_column_new();
/* gtk_tree_view_column_set_title(col, "First Column"); */
label = gtk_label_new( "First Column" );
/* Set the widget in the header of the column */
gtk_tree_view_column_set_widget( col, label );
gtk_widget_show( label );
/* Pack tree view column into tree view */
gtk_tree_view_append_column( view, col );
/* Changing foreground and background colors of the header */
gdk_color_parse( "red", &color_fg );
gdk_color_parse( "yellow", &color_bg );
gtk_widget_modify_fg( label, GTK_STATE_NORMAL, &color_fg );
gtk_widget_modify_bg( label->parent->parent->parent, GTK_STATE_NORMAL, &color_bg );
作者:
小胖二胖
時(shí)間:
2012-11-13 10:37
還需要修給gtkrc文件的吧
歡迎光臨 Chinaunix (http://72891.cn/)
Powered by Discuz! X3.2