{"id":78,"date":"2014-01-30T04:40:11","date_gmt":"2014-01-30T04:40:11","guid":{"rendered":""},"modified":"2014-01-30T04:40:11","modified_gmt":"2014-01-30T04:40:11","slug":"","status":"publish","type":"post","link":"http:\/\/weizn.net\/?p=78","title":{"rendered":"[\u8f6c]gtk\u4e2dGtkTreeView\u5305\u88c5"},"content":{"rendered":"<p>&nbsp;&nbsp;&nbsp;&nbsp; TreeView \u53ef\u5206\u4e3a\u4e24\u4e2a\u90e8\u5206\uff1a\u4e00\u4e2a\u662f\u663e\u793a\u51fa\u6765\u7684\uff0c\u6211\u4eec\u53ef\u4ee5\u770b\u89c1\u7684\u6587\u5b57\u3001\u56fe\u50cf\u3001\u590d\u9009\u6846\uff0c\u4e0b\u9762\u79f0\u5176\u4e3a\u5916\u90e8\u7279\u5f81\uff1b\u4e00\u4e2a\u662f\u5185\u90e8\u5b58\u50a8\u7684\u6570\u636e\u3002<\/p>\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \u5916\u90e8\u7279\u5f81\uff1a\u4e00\u4e2a TreeView \u6709\u591a\u4e2a Column\uff0c\u800c\u6bcf\u4e2a Column \u4e2d\u53ef\u4ee5\u6709\u591a\u4e2a CellRenderer\uff0c\u540c\u65f6\u4e00\u4e2a CellRenderer \u81ea\u8eab\u62e5\u6709\u591a\u4e2a\u5c5e\u6027\u3002<\/p>\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TreeView \u7684\u5185\u90e8\u6570\u636e\u7531 TreeModel \u51b3\u5b9a\uff0c\u540c\u65f6\u4e5f\u7531 TreeModel \u5b58\u50a8\uff0c\u7528 gtk_list_store_set () \u8bbe\u7f6e\u4e00\u884c\u7684\u6570\u636e\u65f6\uff0c\u51fd\u6570\u4f20\u9012\u7684\u503c\u7684\u7c7b\u578b\u4e0e\u4e2a\u6570\u5fc5\u987b\u4e0e TreeModel \u5bf9\u5e94<\/p>\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \u4e00\u822c\u6765\u8bf4\uff0c\u5f53\u6211\u4eec\u5728\u7a0b\u5e8f\u4e2d\u7528 gtk_list_store_append () \u6dfb\u52a0\u4e00\u884c\uff0cgtk_list_store_set () \u8bbe\u7f6e\u8be5\u884c\u7684\u6570\u636e\u65f6\uff0c\u9664\u4e86\u5728 TreeModel \u5185\u90e8\u5b58\u50a8\u4e86\u6570\u636e\u5916\uff0c\u8fd8\u53ef\u4ee5\u6539\u53d8 TreeView \u4e2d\u8be5\u884c\u7684\u5916\u90e8\u7279\u5f81\u3002<\/p>\n<p>&nbsp;&nbsp;&nbsp;&nbsp; \u7136\u800c\uff0c\u6211\u4eec\u53ef\u4ee5\u770b\u5230\u7684 TreeView \u7684\u5916\u90e8\u7279\u5f81\uff1a\u6587\u5b57\u3001\u56fe\u50cf\u3001\u590d\u9009\u6846\u7684\u6539\u53d8\uff0c\u662f\u7531\u4e8e CellRenderer \u7684\u5c5e\u6027\u6539\u53d8\u800c\u5bfc\u81f4\u7684\uff0c\u800c\u4e0d\u662f\u7531\u4e8e TreeModel \u6dfb\u52a0\u4e86\u6570\u636e\u800c\u5bfc\u81f4\u7684\u3002<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp; \u8fd9\u4e0d\u662f\u5f88\u5947\u602a\u5417\uff1f\u4e0a\u9762\u8bf4 gtk_list_store_set () \u53ef\u4ee5\u6539\u53d8 TreeView \u7684\u5916\u90e8\u7279\u5f81\uff0c\u73b0\u5728\u8bf4 TreeView \u5916\u90e8\u7279\u5f81\u7684\u6539\u53d8\u4e0d\u662f\u7531 gtk_list_store_set () \u5f15\u8d77\u7684\u3002<\/p>\n<p>&nbsp;&nbsp;&nbsp;&nbsp; \u5176\u5b9e\uff0cgtk_list_store_set () \u80fd\u6539\u53d8 TreeView \u4e00\u884c\u7684\u5916\u90e8\u663e\u793a\u662f\u56e0\u4e3a\u76f8\u5e94\u7684\u6570\u636e\u5728\u51fd\u6570\u5185\u90e8\u5b9e\u73b0\u7c7b\u578b\u8f6c\u6362\uff0c\u7136\u540e\u4f20\u9012\u5230 CellRenderer \u7684\u5c5e\u6027\u4e2d\uff0c\u800cCllRenderer \u5c5e\u6027\u7684\u6539\u53d8\u5bfc\u81f4\u4e86\u4e00\u884c\u663e\u793a\u7684\u6539\u53d8\u3002<\/p>\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \u800c TreeModel \u7684\u54ea\u4e2a\u6570\u636e\u4e0e CellRenderer \u7684\u54ea\u4e2a\u5c5e\u6027\u8054\u7cfb\u8d77\u6765\u662f\u7531gtk_tree_view_column_set_attributes () \u51b3\u5b9a\u7684\u3002\u8fd9\u4e2a\u51fd\u6570\u628a TreeModel \u7684\u67d0\u4e2a\u6570\u636e\u4e0e CellRenderer \u7684\u67d0\u4e2a\u5c5e\u6027\u8054\u7cfb\u8d77\u6765\u3002\u5f53\u8c03\u7528 gtk_list_store_set () \u65f6\uff0c\u8be5\u51fd\u6570\u5728\u5185\u90e8\u5148\u628a\u4f20\u5230 TreeModel \u7684\u6570\u636e\u7684\u7c7b\u578b\u8f6c\u6362\u4e3a\u4e0e CellRenderer \u5c5e\u6027\u8981\u6c42\u7684\u7c7b\u578b\uff0c\u7136\u540e\u628a\u503c\u8d4b\u4e88 CellRenderer \u7684\u5c5e\u6027\u3002CellRenderer \u5c5e\u6027\u7684\u6539\u53d8\u5c31\u5bfc\u81f4\u7684 TreeView \u5916\u90e8\u7279\u5f81\u7684\u6539\u53d8\u4e86\u3002<\/p>\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \u4e0b\u9762\u7684\u4f8b\u5b50\u662f\u7528C\u5b9e\u73b0\u7684GtkTreeView\uff0c\u4ee3\u7801\u5982\u4e0b\u6240\u793a\uff1a<\/p>\n<table style=\"margin:0px;padding:0px;line-height:normal;color:#494949;font-family:simsun;font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;orphans:auto;text-align:left;text-indent:0px;text-transform:none;white-space:normal;widows:auto;word-spacing:0px;-webkit-text-stroke-width:0px;background-color:#FFFFFF;width:370px;height:25px;\">\n<\/table>\n<pre class=\"brush:cpp; toolbar: true; auto-links: true;\">#include &lt;gtk\/gtk.h&gt;\r\n\r\nenum{\r\n PIXBUF_COL,\r\n TEXT_COL\r\n};\r\n\r\nGtkTreeModel* createModel(){\r\n const gchar *files[]={\"pic\/caterpillar.jpg\",\"pic\/momor.jpg\",\"pic\/hamimi.jpg\",\"pic\/bush.jpg\"};\r\n GdkPixbuf *pixbuf;\r\n GtkTreeIter iter;\r\n GtkListStore *store;\r\n gint i;\r\n \r\n store = gtk_list_store_new(2,GDK_TYPE_PIXBUF, G_TYPE_STRING);   \/\/2\u5217\r\n \r\n for(i=0;i&lt;4;i++){\r\n  pixbuf = gdk_pixbuf_new_from_file(files[i],NULL);\r\n  gtk_list_store_append(store,&amp;iter);\r\n  gtk_list_store_set(store,&amp;iter,\r\n     PIXBUF_COL,pixbuf,     \/\/PIXBUF_COL\u4e5f\u53ef\u4ee5\u75280\u4ee3\u66ff\r\n     TEXT_COL,files[i],\r\n          -1);\r\n  gdk_pixbuf_unref(pixbuf);\r\n }\/\/for\r\n\r\n return GTK_TREE_MODEL(store);\r\n\r\n}\r\n\r\ngboolean selection_changed(GtkTreeSelection *selection, GtkLabel *label){\r\n GtkTreeView *treeView;\r\n GtkTreeModel *model;\r\n GtkTreeIter iter;\r\n gchar *active;\r\n\r\n treeView = gtk_tree_selection_get_tree_view(selection);\r\n model=gtk_tree_view_get_model(treeView);\r\n gtk_tree_selection_get_selected(selection,&amp;model,&amp;iter);\r\n gtk_tree_model_get(model,&amp;iter,1,&amp;active,-1);\r\n\r\n gtk_label_set_text(label,active);\r\n\r\n}\r\n\r\n\r\nint main(int argc, char *argv[]){\r\n GtkWidget *window;\r\n GtkWidget *treeView;\r\n GtkCellRenderer *renderer;\r\n GtkTreeViewColumn *column;\r\n GtkWidget *label;\r\n GtkWidget *vbox;\r\n GtkTreeSelection *selection;\r\n\r\n gtk_init(&amp;argc, &amp;argv);\r\n\r\n\r\n window = gtk_window_new(GTK_WINDOW_TOPLEVEL);\r\n gtk_window_set_title(GTK_WINDOW(window),\"GtkTreeView\");\r\n\r\n gtk_window_set_default_size(GTK_WINDOW(window),200,50);\r\n\r\n\r\n treeView = gtk_tree_view_new_with_model(createModel());\r\n\r\n\r\n renderer = gtk_cell_renderer_pixbuf_new();\r\n column = gtk_tree_view_column_new_with_attributes(\"Icon\",renderer, \"pixbuf\", PIXBUF_COL, NULL);\r\n gtk_tree_view_append_column(GTK_TREE_VIEW(treeView), column);\r\n\r\n\r\n renderer = gtk_cell_renderer_text_new();\r\n column = gtk_tree_view_column_new_with_attributes(\"Filename\",renderer, \"text\", TEXT_COL, NULL);\r\n gtk_tree_view_append_column(GTK_TREE_VIEW(treeView), column);\r\n\r\n\r\n label = gtk_label_new(\"caterpillar.jpg\");\r\n vbox = gtk_vbox_new(FALSE,5);\r\n \r\n gtk_box_pack_start(GTK_BOX(vbox),treeView, TRUE,TRUE,5);\r\n gtk_box_pack_start(GTK_BOX(vbox),label, TRUE,TRUE,5);\r\n gtk_container_add(GTK_CONTAINER(window),vbox);\r\n\r\n selection = gtk_tree_view_get_selection(GTK_TREE_VIEW(treeView));\r\n g_signal_connect(G_OBJECT(selection), \"changed\",G_CALLBACK(selection_changed),label);\r\n\r\n g_signal_connect(GTK_OBJECT(window),\"destroy\",G_CALLBACK(gtk_main_quit),NULL);\r\n\r\n gtk_widget_show_all(window);\r\n\r\n gtk_main();\r\n return 0;\r\n}<\/pre>\n","protected":false},"excerpt":{"rendered":"<p style=\"margin:0px 0px 5px;padding:0px;border:0px;list-style:none;word-wrap:normal;word-break:normal;line-height:21px;color:#494949;font-family:simsun;font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;orphans:auto;text-align:left;text-indent:0px;text-transform:none;white-space:normal;widows:auto;word-spacing:0px;-webkit-text-stroke-width:0px;background-color:#FFFFFF;\">\n\t&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr><span class=\"Apple-converted-space\">&nbsp;<\/span>TreeView \u53ef\u5206\u4e3a\u4e24\u4e2a\u90e8\u5206\uff1a\u4e00\u4e2a\u662f\u663e\u793a\u51fa\u6765\u7684\uff0c\u6211\u4eec\u53ef\u4ee5\u770b\u89c1\u7684\u6587\u5b57\u3001\u56fe\u50cf\u3001\u590d\u9009\u6846\uff0c\u4e0b\u9762\u79f0\u5176\u4e3a\u5916\u90e8\u7279\u5f81\uff1b\u4e00\u4e2a\u662f\u5185\u90e8\u5b58\u50a8\u7684\u6570\u636e\u3002\n<\/p>\n<p style=\"margin:0px 0px 5px;padding:0px;border:0px;list-style:none;word-wrap:normal;word-break:normal;line-height:21px;color:#494949;font-family:simsun;font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;orphans:auto;text-align:left;text-indent:0px;text-transform:none;white-space:normal;widows:auto;word-spacing:0px;-webkit-text-stroke-width:0px;background-color:#FFFFFF;\">\n\t&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>&nbsp;<wbr>\u5916\u90e8\u7279\u5f81\uff1a\u4e00\u4e2a TreeView \u6709\u591a\u4e2a Column\uff0c\u800c\u6bcf\u4e2a Column \u4e2d\u53ef\u4ee5\u6709\u591a\u4e2a CellRender&#8230;\n<\/p>\n<p style=\"margin:0px 0px 5px;padding:0px;border:0px;list-style:none;word-wrap:normal;word-break:normal;line-height:21px;color:#494949;font-family:simsun;font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;orphans:auto;text-align:left;text-indent:0px;text-transform:none;white-space:normal;widows:auto;word-spacing:0px;-webkit-text-stroke-width:0px;background-color:#FFFFFF;\">\n\t<wbr><wbr><wbr><wbr><wbr>\n<\/p>\n<p style=\"margin:0px 0px 5px;padding:0px;border:0px;list-style:none;word-wrap:normal;word-break:normal;line-height:21px;color:#494949;font-family:simsun;font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;orphans:auto;text-align:left;text-indent:0px;text-transform:none;white-space:normal;widows:auto;word-spacing:0px;-webkit-text-stroke-width:0px;background-color:#FFFFFF;\">\n\t<wbr><wbr><wbr><wbr><wbr>\n<\/p>\n<p style=\"margin:0px 0px 5px;padding:0px;border:0px;list-style:none;word-wrap:normal;word-break:normal;line-height:21px;color:#494949;font-family:simsun;font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;orphans:auto;text-align:left;text-indent:0px;text-transform:none;white-space:normal;widows:auto;word-spacing:0px;-webkit-text-stroke-width:0px;background-color:#FFFFFF;\">\n\t<wbr><wbr><wbr><wbr><wbr><wbr><wbr><wbr>\n<\/p>\n<p style=\"margin:0px 0px 5px;padding:0px;border:0px;list-style:none;word-wrap:normal;word-break:normal;line-height:21px;color:#494949;font-family:simsun;font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;orphans:auto;text-align:left;text-indent:0px;text-transform:none;white-space:normal;widows:auto;word-spacing:0px;-webkit-text-stroke-width:0px;background-color:#FFFFFF;\">\n\t<wbr><wbr><wbr><wbr>\n<\/p>\n<p style=\"margin:0px 0px 5px;padding:0px;border:0px;list-style:none;word-wrap:normal;word-break:normal;line-height:21px;color:#494949;font-family:simsun;font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;orphans:auto;text-align:left;text-indent:0px;text-transform:none;white-space:normal;widows:auto;word-spacing:0px;-webkit-text-stroke-width:0px;background-color:#FFFFFF;\">\n\t<wbr><wbr><wbr><wbr><wbr>\n<\/p>\n<p style=\"margin:0px 0px 5px;padding:0px;border:0px;list-style:none;word-wrap:normal;word-break:normal;line-height:21px;color:#494949;font-family:simsun;font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;orphans:auto;text-align:left;text-indent:0px;text-transform:none;white-space:normal;widows:auto;word-spacing:0px;-webkit-text-stroke-width:0px;background-color:#FFFFFF;\">\n\t<wbr><wbr><wbr><wbr><wbr><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[327],"tags":[],"class_list":["post-78","post","type-post","status-publish","format-standard","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v16.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>[\u8f6c]gtk\u4e2dGtkTreeView\u5305\u88c5 - Wayne&#039;s Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"http:\/\/weizn.net\/?p=78\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"[\u8f6c]gtk\u4e2dGtkTreeView\u5305\u88c5 - Wayne&#039;s Blog\" \/>\n<meta property=\"og:description\" content=\"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;TreeView \u53ef\u5206\u4e3a\u4e24\u4e2a\u90e8\u5206\uff1a\u4e00\u4e2a\u662f\u663e\u793a\u51fa\u6765\u7684\uff0c\u6211\u4eec\u53ef\u4ee5\u770b\u89c1\u7684\u6587\u5b57\u3001\u56fe\u50cf\u3001\u590d\u9009\u6846\uff0c\u4e0b\u9762\u79f0\u5176\u4e3a\u5916\u90e8\u7279\u5f81\uff1b\u4e00\u4e2a\u662f\u5185\u90e8\u5b58\u50a8\u7684\u6570\u636e\u3002    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\u5916\u90e8\u7279\u5f81\uff1a\u4e00\u4e2a TreeView \u6709\u591a\u4e2a Column\uff0c\u800c\u6bcf\u4e2a Column \u4e2d\u53ef\u4ee5\u6709\u591a\u4e2a CellRender...\" \/>\n<meta property=\"og:url\" content=\"http:\/\/weizn.net\/?p=78\" \/>\n<meta property=\"og:site_name\" content=\"Wayne&#039;s Blog\" \/>\n<meta property=\"article:published_time\" content=\"2014-01-30T04:40:11+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"zinan\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"http:\/\/weizn.net\/#website\",\"url\":\"http:\/\/weizn.net\/\",\"name\":\"Wayne&#039;s Blog\",\"description\":\"\",\"publisher\":{\"@id\":\"http:\/\/weizn.net\/#\/schema\/person\/e88bc12c590502d8b6249326f960b264\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"http:\/\/weizn.net\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"WebPage\",\"@id\":\"http:\/\/weizn.net\/?p=78#webpage\",\"url\":\"http:\/\/weizn.net\/?p=78\",\"name\":\"[\\u8f6c]gtk\\u4e2dGtkTreeView\\u5305\\u88c5 - Wayne&#039;s Blog\",\"isPartOf\":{\"@id\":\"http:\/\/weizn.net\/#website\"},\"datePublished\":\"2014-01-30T04:40:11+00:00\",\"dateModified\":\"2014-01-30T04:40:11+00:00\",\"breadcrumb\":{\"@id\":\"http:\/\/weizn.net\/?p=78#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\/\/weizn.net\/?p=78\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\/\/weizn.net\/?p=78#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\\u9996\\u9875\",\"item\":\"http:\/\/weizn.net\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"[\\u8f6c]gtk\\u4e2dGtkTreeView\\u5305\\u88c5\"}]},{\"@type\":\"Article\",\"@id\":\"http:\/\/weizn.net\/?p=78#article\",\"isPartOf\":{\"@id\":\"http:\/\/weizn.net\/?p=78#webpage\"},\"author\":{\"@id\":\"http:\/\/weizn.net\/#\/schema\/person\/e88bc12c590502d8b6249326f960b264\"},\"headline\":\"[\\u8f6c]gtk\\u4e2dGtkTreeView\\u5305\\u88c5\",\"datePublished\":\"2014-01-30T04:40:11+00:00\",\"dateModified\":\"2014-01-30T04:40:11+00:00\",\"mainEntityOfPage\":{\"@id\":\"http:\/\/weizn.net\/?p=78#webpage\"},\"wordCount\":109,\"commentCount\":0,\"publisher\":{\"@id\":\"http:\/\/weizn.net\/#\/schema\/person\/e88bc12c590502d8b6249326f960b264\"},\"articleSection\":[\"GTK\"],\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"http:\/\/weizn.net\/?p=78#respond\"]}]},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"http:\/\/weizn.net\/#\/schema\/person\/e88bc12c590502d8b6249326f960b264\",\"name\":\"zinan\",\"logo\":{\"@id\":\"http:\/\/weizn.net\/#personlogo\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"[\u8f6c]gtk\u4e2dGtkTreeView\u5305\u88c5 - Wayne&#039;s Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"http:\/\/weizn.net\/?p=78","og_locale":"zh_CN","og_type":"article","og_title":"[\u8f6c]gtk\u4e2dGtkTreeView\u5305\u88c5 - Wayne&#039;s Blog","og_description":"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;TreeView \u53ef\u5206\u4e3a\u4e24\u4e2a\u90e8\u5206\uff1a\u4e00\u4e2a\u662f\u663e\u793a\u51fa\u6765\u7684\uff0c\u6211\u4eec\u53ef\u4ee5\u770b\u89c1\u7684\u6587\u5b57\u3001\u56fe\u50cf\u3001\u590d\u9009\u6846\uff0c\u4e0b\u9762\u79f0\u5176\u4e3a\u5916\u90e8\u7279\u5f81\uff1b\u4e00\u4e2a\u662f\u5185\u90e8\u5b58\u50a8\u7684\u6570\u636e\u3002    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\u5916\u90e8\u7279\u5f81\uff1a\u4e00\u4e2a TreeView \u6709\u591a\u4e2a Column\uff0c\u800c\u6bcf\u4e2a Column \u4e2d\u53ef\u4ee5\u6709\u591a\u4e2a CellRender...","og_url":"http:\/\/weizn.net\/?p=78","og_site_name":"Wayne&#039;s Blog","article_published_time":"2014-01-30T04:40:11+00:00","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"zinan","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebSite","@id":"http:\/\/weizn.net\/#website","url":"http:\/\/weizn.net\/","name":"Wayne&#039;s Blog","description":"","publisher":{"@id":"http:\/\/weizn.net\/#\/schema\/person\/e88bc12c590502d8b6249326f960b264"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"http:\/\/weizn.net\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"WebPage","@id":"http:\/\/weizn.net\/?p=78#webpage","url":"http:\/\/weizn.net\/?p=78","name":"[\u8f6c]gtk\u4e2dGtkTreeView\u5305\u88c5 - Wayne&#039;s Blog","isPartOf":{"@id":"http:\/\/weizn.net\/#website"},"datePublished":"2014-01-30T04:40:11+00:00","dateModified":"2014-01-30T04:40:11+00:00","breadcrumb":{"@id":"http:\/\/weizn.net\/?p=78#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["http:\/\/weizn.net\/?p=78"]}]},{"@type":"BreadcrumbList","@id":"http:\/\/weizn.net\/?p=78#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"http:\/\/weizn.net\/"},{"@type":"ListItem","position":2,"name":"[\u8f6c]gtk\u4e2dGtkTreeView\u5305\u88c5"}]},{"@type":"Article","@id":"http:\/\/weizn.net\/?p=78#article","isPartOf":{"@id":"http:\/\/weizn.net\/?p=78#webpage"},"author":{"@id":"http:\/\/weizn.net\/#\/schema\/person\/e88bc12c590502d8b6249326f960b264"},"headline":"[\u8f6c]gtk\u4e2dGtkTreeView\u5305\u88c5","datePublished":"2014-01-30T04:40:11+00:00","dateModified":"2014-01-30T04:40:11+00:00","mainEntityOfPage":{"@id":"http:\/\/weizn.net\/?p=78#webpage"},"wordCount":109,"commentCount":0,"publisher":{"@id":"http:\/\/weizn.net\/#\/schema\/person\/e88bc12c590502d8b6249326f960b264"},"articleSection":["GTK"],"inLanguage":"zh-Hans","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["http:\/\/weizn.net\/?p=78#respond"]}]},{"@type":["Person","Organization"],"@id":"http:\/\/weizn.net\/#\/schema\/person\/e88bc12c590502d8b6249326f960b264","name":"zinan","logo":{"@id":"http:\/\/weizn.net\/#personlogo"}}]}},"_links":{"self":[{"href":"http:\/\/weizn.net\/index.php?rest_route=\/wp\/v2\/posts\/78","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/weizn.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/weizn.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/weizn.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/weizn.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=78"}],"version-history":[{"count":0,"href":"http:\/\/weizn.net\/index.php?rest_route=\/wp\/v2\/posts\/78\/revisions"}],"wp:attachment":[{"href":"http:\/\/weizn.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=78"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/weizn.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=78"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/weizn.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=78"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}