全部博文(396)
发布时间:2018-05-10 16:30:49
创建、添加和销毁 下面的代码将初始化一个 GSList,向其添加两个条目,打印出列表的长度,然后释放它:#include <glib.h>#include <stdio.h> int main(int argc, char** argv) { GSList* list = NULL; printf("The list is now %d items long\n", g_slist_length(list)); list = g_slist_append(.........【阅读全文】
发布时间:2018-05-10 14:23:40
sudo apt-get install devhelpsudo apt-get install libglib2.0-doc 这样,在“应用程序”-》“编程”-》“Devhelp"就可以找到API了......【阅读全文】
发布时间:2018-05-10 13:04:01
先上说明文档网址:http://web.mit.edu/barnowl/share/gtk-doc/html/glib/glib-Strings.html学过面向对象语言的同学一定都知道String类,一定知道这个类对字符串的操作是多麽的方便,但是c语言中是没有这个类,甚至没有类的概念,但是glib帮我们做的这个“类” GString除了使用gchar *进行字符串处.........【阅读全文】
发布时间:2018-05-10 10:35:39
The problem with writing a book on GTK+ is that the library is constantly changing and you cannot possibly fit every topic into the book. Therefore, I have created a series of tutorials that highlight topics that were not covered in the book. All of the examples in this tutorial are released .........【阅读全文】