{"id":83,"date":"2014-02-19T15:36:02","date_gmt":"2014-02-19T15:36:02","guid":{"rendered":""},"modified":"2014-02-19T15:36:02","modified_gmt":"2014-02-19T15:36:02","slug":"","status":"publish","type":"post","link":"http:\/\/weizn.net\/?p=83","title":{"rendered":"[\u8f6c]GTK\u7ebf\u7a0b\u7684\u7b80\u5355\u4f7f\u7528\u4e0e\u7ebf\u7a0b\u4e2d\u66f4\u65b0\u56fe\u5f62\u754c\u9762"},"content":{"rendered":"<div class=\"gfmr-markdown-container\"><div class=\"gfmr-markdown-source\" style=\"display: none;\">&lt;p&gt;\n\tGTK\u7ebf\u7a0b\u7684\u7b80\u5355\u4f7f\u7528\u4e0e\u7ebf\u7a0b\u4e2d\u66f4\u65b0\u56fe\u5f62\u754c\u9762\n&lt;\/p&gt;\n&lt;p&gt;\n\t&nbsp;\n&lt;\/p&gt;\n&lt;p&gt;\n\t1\uff09\u7ebf\u7a0b\u7684\u7b80\u5355\u4f7f\u7528\uff0c\u901a\u8fc7\u4e00\u4e2a\u7b80\u5355\u4f8b\u5b50\u6765\u8bf4\u660e\uff08\u80fd\u8fd0\u884c\uff09\n&lt;\/p&gt;\n&lt;p&gt;\n\t&nbsp;\n&lt;\/p&gt;\n&lt;p&gt;\n\t\u7f16\u8bd1\u547d\u4ee4\uff1a&lt;br \/&gt;\ngcc&nbsp;&nbsp; `pkg-config gtk+-2.0 &#8211;cflags &#8211;libs gthread-2.0` -std=gnu99&nbsp; -o thread&nbsp; thread.c&lt;br \/&gt;\n\u6ce8\u610f\u8981\u52a0\u4e0agthread-2.0\n&lt;\/p&gt;\n&lt;p&gt;\n\t\n&lt;\/p&gt;\n&lt;p&gt;&lt;pre class=&quot;brush:cpp; toolbar: true; auto-links: true;&quot;&gt;#include &lt;gtk\/gtk.h&gt;\r\n\r\nGtkWidget *window;\r\nGtkWidget *label;\r\n\r\nvoid hello(){\r\n\tint i;\r\n\tfor(i=0;;i++){\r\n\t\t\/*\u4f7f\u7528gdk_thread_*()\u5c06\u8981\u5237\u65b0\u7684\u754c\u9762*\/\r\n\t\tchar buf[6];\r\n\t\tsprintf(buf,&quot;%d&quot;,(int)i);\r\n\t\t\/*\u7761\u7720\u4e00\u4e0b*\/\r\n\t\tsleep(1);\r\n\t\tgdk_threads_enter();\r\n\t\tgtk_label_set_text(GTK_LABEL(label),buf);\r\n\t\tgdk_threads_leave();\r\n\t\tif(i==100)i=0;\r\n\t}\r\n}\r\n\r\nint main( int   argc,char *argv[] ){\r\n\tgtk_init (NULL,NULL);\/\/\u8fd9\u4e2a\u51fd\u6570\u8fd9\u6837\u4f7f\u7528\u4e0d\u597d\uff0c\u4f46\u5728\u6b64\u4f8b\u4e2d\u7b80\u5199\u5b83\u4e86\r\n\t\/* \u521b\u5efa\u4e00\u4e2a\u65b0\u7a97\u53e3 *\/\r\n\twindow = gtk_window_new (GTK_WINDOW_TOPLEVEL);\r\n\tgtk_window_set_title(GTK_WINDOW(window),&quot;thread number&quot;);\r\n\tgtk_widget_set_usize(GTK_WIDGET(window),200,60);\r\n\t\/*\u521b\u5efa\u4e00\u4e2a\u6807\u7b7e*\/\r\n\tlabel=gtk_label_new(&quot;0&quot;);\r\n\tgtk_container_add (GTK_CONTAINER (window), label);\r\n\tgtk_widget_show (label);\r\n\tgtk_widget_show (window);\r\n\tg_signal_connect (G_OBJECT (window), &quot;destroy&quot;,G_CALLBACK(gtk_main_quit), NULL);\r\n\t\r\n\t\/*\u7ebf\u7a0b\u7684\u521d\u59cb\u5316*\/\r\n\tif(!g_thread_supported()) g_thread_init(NULL);\r\n\tgdk_threads_init();\r\n\t\/*\u521b\u5efa\u7ebf\u7a0b*\/\r\n\tg_thread_create((GThreadFunc)hello, NULL, FALSE, NULL);\r\n\t\r\n\tgdk_threads_enter();\r\n\tgtk_main ();\r\n\tgdk_threads_leave();   \r\n\t\r\n\treturn 0;\r\n}&lt;\/pre&gt;\n&lt;p&gt;2\uff09\u7ebf\u7a0b\u4e2d\u66f4\u65b0\u56fe\u5f62\u754c\u9762\u7684\u65b9\u6cd5\uff1a&lt;br \/&gt;\n\u8981\u5728GTK\u7684\u7ebf\u7a0b\u4e2d\u66f4\u65b0\u56fe\u5f62\u754c\u9762\uff0c\u5219\u9700\u8981\u8c03\u7528gdk_threads_enter();\u4e0egdk_threads_leave();\u5c06\u8981\u66f4\u65b0\u56fe\u5f62\u754c\u9762\u7684\u5730\u65b9\u524d\u540e\u5305\u56f4\u8d77\u6765\uff0c&lt;br \/&gt;\n\u5982\uff1a\n&lt;\/p&gt;\n&lt;p&gt;\n\t\n&lt;\/p&gt;\n&lt;p&gt;&lt;pre class=&quot;brush:cpp; toolbar: true; auto-links: true;&quot;&gt;gdk_threads_enter();\r\ngtk_clist_append(GTK_CLIST(user_clist), text);\r\ngdk_threads_leave();&lt;\/pre&gt;\n&lt;p&gt;gdk_threads_*()\u7684\u4f5c\u7528\u5e76\u4e0d\u662f\u8fdb\u5165\u7ebf\u7a0b\uff0c\u636e\u7f51\u4e0a\u8bf4\u662f\u7ebf\u7a0b\u540c\u6b65\u7528\u7684\u3002&lt;br \/&gt;\n\u4f46\u4e00\u5b9a\u8981\u5c06\u8981\u66f4\u65b0\u7684\u90e8\u4f4d\u5305\u88f9\u4f4f\uff0c\u6709\u591a\u5c11\u4e2a\u5730\u65b9\u9700\u8981\u66f4\u65b0\u754c\u9762\uff0c\u5c31\u7528\u591a\u5c11\u6b21gdk_threads_*()\uff0c\u5c06\u5176\u5305\u88f9\u4f4f\uff0c&lt;br \/&gt;\n\u5982\u6709\u7ebf\u7a0b\u51fd\u6570\uff1a\n&lt;\/p&gt;\n&lt;p&gt;\n\t\n&lt;\/p&gt;\n&lt;p&gt;&lt;pre class=&quot;brush:cpp; toolbar: true; auto-links: true;&quot;&gt;void  Thread(){\r\n\u2026\u2026\r\ngdk_threads_enter();\r\ngtk_label_set_text(GTK_LABEL(label),&quot;hello1.&quot;);\r\ngdk_threads_leave();\r\n\u2026\u2026\r\ngdk_threads_enter();\r\ngtk_label_set_text(GTK_LABEL(label),&quot;hello2.&quot;);\r\ngdk_threads_leave();\r\n\u2026\u2026\r\ngdk_threads_enter();\r\ngtk_label_set_text(GTK_LABEL(label),&quot;hello2.&quot;);\r\ngdk_threads_leave();\r\n\u2026\u2026\r\n}&lt;\/pre&gt;&lt;\/p&gt;\n<\/div><div class=\"gfmr-markdown-rendered\"><p>\n\tGTK\u7ebf\u7a0b\u7684\u7b80\u5355\u4f7f\u7528\u4e0e\u7ebf\u7a0b\u4e2d\u66f4\u65b0\u56fe\u5f62\u754c\u9762\n<\/p>\n<p>\n\t&nbsp;\n<\/p>\n<p>\n\t1\uff09\u7ebf\u7a0b\u7684\u7b80\u5355\u4f7f\u7528\uff0c\u901a\u8fc7\u4e00\u4e2a\u7b80\u5355\u4f8b\u5b50\u6765\u8bf4\u660e\uff08\u80fd\u8fd0\u884c\uff09\n<\/p>\n<p>\n\t&nbsp;\n<\/p>\n<p>\n\t\u7f16\u8bd1\u547d\u4ee4\uff1a<br \/>\ngcc&nbsp;&nbsp; `pkg-config gtk+-2.0 &#8211;cflags &#8211;libs gthread-2.0` -std=gnu99&nbsp; -o thread&nbsp; thread.c<br \/>\n\u6ce8\u610f\u8981\u52a0\u4e0agthread-2.0\n<\/p>\n<p>\n\t\n<\/p>\n<p><pre class=\"brush:cpp; toolbar: true; auto-links: true;\">#include &lt;gtk\/gtk.h&gt;\r\n\r\nGtkWidget *window;\r\nGtkWidget *label;\r\n\r\nvoid hello(){\r\n\tint i;\r\n\tfor(i=0;;i++){\r\n\t\t\/*\u4f7f\u7528gdk_thread_*()\u5c06\u8981\u5237\u65b0\u7684\u754c\u9762*\/\r\n\t\tchar buf[6];\r\n\t\tsprintf(buf,\"%d\",(int)i);\r\n\t\t\/*\u7761\u7720\u4e00\u4e0b*\/\r\n\t\tsleep(1);\r\n\t\tgdk_threads_enter();\r\n\t\tgtk_label_set_text(GTK_LABEL(label),buf);\r\n\t\tgdk_threads_leave();\r\n\t\tif(i==100)i=0;\r\n\t}\r\n}\r\n\r\nint main( int   argc,char *argv[] ){\r\n\tgtk_init (NULL,NULL);\/\/\u8fd9\u4e2a\u51fd\u6570\u8fd9\u6837\u4f7f\u7528\u4e0d\u597d\uff0c\u4f46\u5728\u6b64\u4f8b\u4e2d\u7b80\u5199\u5b83\u4e86\r\n\t\/* \u521b\u5efa\u4e00\u4e2a\u65b0\u7a97\u53e3 *\/\r\n\twindow = gtk_window_new (GTK_WINDOW_TOPLEVEL);\r\n\tgtk_window_set_title(GTK_WINDOW(window),\"thread number\");\r\n\tgtk_widget_set_usize(GTK_WIDGET(window),200,60);\r\n\t\/*\u521b\u5efa\u4e00\u4e2a\u6807\u7b7e*\/\r\n\tlabel=gtk_label_new(\"0\");\r\n\tgtk_container_add (GTK_CONTAINER (window), label);\r\n\tgtk_widget_show (label);\r\n\tgtk_widget_show (window);\r\n\tg_signal_connect (G_OBJECT (window), \"destroy\",G_CALLBACK(gtk_main_quit), NULL);\r\n\t\r\n\t\/*\u7ebf\u7a0b\u7684\u521d\u59cb\u5316*\/\r\n\tif(!g_thread_supported()) g_thread_init(NULL);\r\n\tgdk_threads_init();\r\n\t\/*\u521b\u5efa\u7ebf\u7a0b*\/\r\n\tg_thread_create((GThreadFunc)hello, NULL, FALSE, NULL);\r\n\t\r\n\tgdk_threads_enter();\r\n\tgtk_main ();\r\n\tgdk_threads_leave();   \r\n\t\r\n\treturn 0;\r\n}<\/pre>\n<p>2\uff09\u7ebf\u7a0b\u4e2d\u66f4\u65b0\u56fe\u5f62\u754c\u9762\u7684\u65b9\u6cd5\uff1a<br \/>\n\u8981\u5728GTK\u7684\u7ebf\u7a0b\u4e2d\u66f4\u65b0\u56fe\u5f62\u754c\u9762\uff0c\u5219\u9700\u8981\u8c03\u7528gdk_threads_enter();\u4e0egdk_threads_leave();\u5c06\u8981\u66f4\u65b0\u56fe\u5f62\u754c\u9762\u7684\u5730\u65b9\u524d\u540e\u5305\u56f4\u8d77\u6765\uff0c<br \/>\n\u5982\uff1a\n<\/p>\n<p>\n\t\n<\/p>\n<p><pre class=\"brush:cpp; toolbar: true; auto-links: true;\">gdk_threads_enter();\r\ngtk_clist_append(GTK_CLIST(user_clist), text);\r\ngdk_threads_leave();<\/pre>\n<p>gdk_threads_*()\u7684\u4f5c\u7528\u5e76\u4e0d\u662f\u8fdb\u5165\u7ebf\u7a0b\uff0c\u636e\u7f51\u4e0a\u8bf4\u662f\u7ebf\u7a0b\u540c\u6b65\u7528\u7684\u3002<br \/>\n\u4f46\u4e00\u5b9a\u8981\u5c06\u8981\u66f4\u65b0\u7684\u90e8\u4f4d\u5305\u88f9\u4f4f\uff0c\u6709\u591a\u5c11\u4e2a\u5730\u65b9\u9700\u8981\u66f4\u65b0\u754c\u9762\uff0c\u5c31\u7528\u591a\u5c11\u6b21gdk_threads_*()\uff0c\u5c06\u5176\u5305\u88f9\u4f4f\uff0c<br \/>\n\u5982\u6709\u7ebf\u7a0b\u51fd\u6570\uff1a\n<\/p>\n<p>\n\t\n<\/p>\n<p><pre class=\"brush:cpp; toolbar: true; auto-links: true;\">void  Thread(){\r\n\u2026\u2026\r\ngdk_threads_enter();\r\ngtk_label_set_text(GTK_LABEL(label),\"hello1.\");\r\ngdk_threads_leave();\r\n\u2026\u2026\r\ngdk_threads_enter();\r\ngtk_label_set_text(GTK_LABEL(label),\"hello2.\");\r\ngdk_threads_leave();\r\n\u2026\u2026\r\ngdk_threads_enter();\r\ngtk_label_set_text(GTK_LABEL(label),\"hello2.\");\r\ngdk_threads_leave();\r\n\u2026\u2026\r\n}<\/pre><\/p>\n<\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>\n\tGTK\u7ebf\u7a0b\u7684\u7b80\u5355\u4f7f\u7528\u4e0e\u7ebf\u7a0b\u4e2d\u66f4\u65b0\u56fe\u5f62\u754c\u9762\n<\/p>\n<p>\n\t&nbsp;\n<\/p>\n<p>\n\t1\uff09\u7ebf\u7a0b\u7684\u7b80\u5355\u4f7f\u7528\uff0c\u901a\u8fc7\u4e00\u4e2a\u7b80\u5355\u4f8b\u5b50\u6765\u8bf4\u660e\uff08\u80fd\u8fd0\u884c\uff09\n<\/p>\n<p>\n\t&nbsp;\n<\/p>\n<p>\n\t\u7f16\u8bd1\u547d\u4ee4\uff1a<br \/>\ngcc&nbsp;&nbsp; `pkg-config gtk+-2.0 &#8211;cflags &#8211;libs gthread-2.0` -std=gnu99&nbsp; -o thread&nbsp; thread.c<br \/>\n\u6ce8\u610f\u8981&#8230;<\/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-83","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\u7ebf\u7a0b\u7684\u7b80\u5355\u4f7f\u7528\u4e0e\u7ebf\u7a0b\u4e2d\u66f4\u65b0\u56fe\u5f62\u754c\u9762 - 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=83\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"[\u8f6c]GTK\u7ebf\u7a0b\u7684\u7b80\u5355\u4f7f\u7528\u4e0e\u7ebf\u7a0b\u4e2d\u66f4\u65b0\u56fe\u5f62\u754c\u9762 - Wayne&#039;s Blog\" \/>\n<meta property=\"og:description\" content=\"GTK\u7ebf\u7a0b\u7684\u7b80\u5355\u4f7f\u7528\u4e0e\u7ebf\u7a0b\u4e2d\u66f4\u65b0\u56fe\u5f62\u754c\u9762   &nbsp;   1\uff09\u7ebf\u7a0b\u7684\u7b80\u5355\u4f7f\u7528\uff0c\u901a\u8fc7\u4e00\u4e2a\u7b80\u5355\u4f8b\u5b50\u6765\u8bf4\u660e\uff08\u80fd\u8fd0\u884c\uff09   &nbsp;   \u7f16\u8bd1\u547d\u4ee4\uff1a gcc&nbsp;&nbsp; `pkg-config gtk+-2.0 --cflags --libs gthread-2.0` -std=gnu99&nbsp; -o thread&nbsp; thread.c \u6ce8\u610f\u8981...\" \/>\n<meta property=\"og:url\" content=\"http:\/\/weizn.net\/?p=83\" \/>\n<meta property=\"og:site_name\" content=\"Wayne&#039;s Blog\" \/>\n<meta property=\"article:published_time\" content=\"2014-02-19T15:36:02+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=\"1 \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=83#webpage\",\"url\":\"http:\/\/weizn.net\/?p=83\",\"name\":\"[\\u8f6c]GTK\\u7ebf\\u7a0b\\u7684\\u7b80\\u5355\\u4f7f\\u7528\\u4e0e\\u7ebf\\u7a0b\\u4e2d\\u66f4\\u65b0\\u56fe\\u5f62\\u754c\\u9762 - Wayne&#039;s Blog\",\"isPartOf\":{\"@id\":\"http:\/\/weizn.net\/#website\"},\"datePublished\":\"2014-02-19T15:36:02+00:00\",\"dateModified\":\"2014-02-19T15:36:02+00:00\",\"breadcrumb\":{\"@id\":\"http:\/\/weizn.net\/?p=83#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\/\/weizn.net\/?p=83\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\/\/weizn.net\/?p=83#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\\u9996\\u9875\",\"item\":\"http:\/\/weizn.net\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"[\\u8f6c]GTK\\u7ebf\\u7a0b\\u7684\\u7b80\\u5355\\u4f7f\\u7528\\u4e0e\\u7ebf\\u7a0b\\u4e2d\\u66f4\\u65b0\\u56fe\\u5f62\\u754c\\u9762\"}]},{\"@type\":\"Article\",\"@id\":\"http:\/\/weizn.net\/?p=83#article\",\"isPartOf\":{\"@id\":\"http:\/\/weizn.net\/?p=83#webpage\"},\"author\":{\"@id\":\"http:\/\/weizn.net\/#\/schema\/person\/e88bc12c590502d8b6249326f960b264\"},\"headline\":\"[\\u8f6c]GTK\\u7ebf\\u7a0b\\u7684\\u7b80\\u5355\\u4f7f\\u7528\\u4e0e\\u7ebf\\u7a0b\\u4e2d\\u66f4\\u65b0\\u56fe\\u5f62\\u754c\\u9762\",\"datePublished\":\"2014-02-19T15:36:02+00:00\",\"dateModified\":\"2014-02-19T15:36:02+00:00\",\"mainEntityOfPage\":{\"@id\":\"http:\/\/weizn.net\/?p=83#webpage\"},\"wordCount\":33,\"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=83#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\u7ebf\u7a0b\u7684\u7b80\u5355\u4f7f\u7528\u4e0e\u7ebf\u7a0b\u4e2d\u66f4\u65b0\u56fe\u5f62\u754c\u9762 - 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=83","og_locale":"zh_CN","og_type":"article","og_title":"[\u8f6c]GTK\u7ebf\u7a0b\u7684\u7b80\u5355\u4f7f\u7528\u4e0e\u7ebf\u7a0b\u4e2d\u66f4\u65b0\u56fe\u5f62\u754c\u9762 - Wayne&#039;s Blog","og_description":"GTK\u7ebf\u7a0b\u7684\u7b80\u5355\u4f7f\u7528\u4e0e\u7ebf\u7a0b\u4e2d\u66f4\u65b0\u56fe\u5f62\u754c\u9762   &nbsp;   1\uff09\u7ebf\u7a0b\u7684\u7b80\u5355\u4f7f\u7528\uff0c\u901a\u8fc7\u4e00\u4e2a\u7b80\u5355\u4f8b\u5b50\u6765\u8bf4\u660e\uff08\u80fd\u8fd0\u884c\uff09   &nbsp;   \u7f16\u8bd1\u547d\u4ee4\uff1a gcc&nbsp;&nbsp; `pkg-config gtk+-2.0 --cflags --libs gthread-2.0` -std=gnu99&nbsp; -o thread&nbsp; thread.c \u6ce8\u610f\u8981...","og_url":"http:\/\/weizn.net\/?p=83","og_site_name":"Wayne&#039;s Blog","article_published_time":"2014-02-19T15:36:02+00:00","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"zinan","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \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=83#webpage","url":"http:\/\/weizn.net\/?p=83","name":"[\u8f6c]GTK\u7ebf\u7a0b\u7684\u7b80\u5355\u4f7f\u7528\u4e0e\u7ebf\u7a0b\u4e2d\u66f4\u65b0\u56fe\u5f62\u754c\u9762 - Wayne&#039;s Blog","isPartOf":{"@id":"http:\/\/weizn.net\/#website"},"datePublished":"2014-02-19T15:36:02+00:00","dateModified":"2014-02-19T15:36:02+00:00","breadcrumb":{"@id":"http:\/\/weizn.net\/?p=83#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["http:\/\/weizn.net\/?p=83"]}]},{"@type":"BreadcrumbList","@id":"http:\/\/weizn.net\/?p=83#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"http:\/\/weizn.net\/"},{"@type":"ListItem","position":2,"name":"[\u8f6c]GTK\u7ebf\u7a0b\u7684\u7b80\u5355\u4f7f\u7528\u4e0e\u7ebf\u7a0b\u4e2d\u66f4\u65b0\u56fe\u5f62\u754c\u9762"}]},{"@type":"Article","@id":"http:\/\/weizn.net\/?p=83#article","isPartOf":{"@id":"http:\/\/weizn.net\/?p=83#webpage"},"author":{"@id":"http:\/\/weizn.net\/#\/schema\/person\/e88bc12c590502d8b6249326f960b264"},"headline":"[\u8f6c]GTK\u7ebf\u7a0b\u7684\u7b80\u5355\u4f7f\u7528\u4e0e\u7ebf\u7a0b\u4e2d\u66f4\u65b0\u56fe\u5f62\u754c\u9762","datePublished":"2014-02-19T15:36:02+00:00","dateModified":"2014-02-19T15:36:02+00:00","mainEntityOfPage":{"@id":"http:\/\/weizn.net\/?p=83#webpage"},"wordCount":33,"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=83#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\/83","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=83"}],"version-history":[{"count":0,"href":"http:\/\/weizn.net\/index.php?rest_route=\/wp\/v2\/posts\/83\/revisions"}],"wp:attachment":[{"href":"http:\/\/weizn.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=83"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/weizn.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=83"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/weizn.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=83"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}