Chinaunix首页 | 论坛 | 博客
  • 博客访问: 3046704
  • 博文数量: 396
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 4209
  • 用 户 组: 普通用户
  • 注册时间: 2016-07-04 13:04
文章分类

全部博文(396)

文章存档

2022年(1)

2021年(2)

2020年(8)

2019年(24)

2018年(135)

2017年(158)

2016年(68)

我的朋友

发布时间: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(.........【阅读全文】

阅读(488) | 评论(0) | 转发(0)

发布时间:2018-05-10 14:23:40

sudo apt-get install devhelpsudo apt-get install libglib2.0-doc 这样,在“应用程序”-》“编程”-》“Devhelp"就可以找到API了......【阅读全文】

阅读(886) | 评论(0) | 转发(0)

发布时间:2018-05-10 13:04:01

先上说明文档网址:http://web.mit.edu/barnowl/share/gtk-doc/html/glib/glib-Strings.html学过面向对象语言的同学一定都知道String类,一定知道这个类对字符串的操作是多麽的方便,但是c语言中是没有这个类,甚至没有类的概念,但是glib帮我们做的这个“类”  GString除了使用gchar *进行字符串处.........【阅读全文】

阅读(964) | 评论(0) | 转发(0)

发布时间: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 .........【阅读全文】

阅读(748) | 评论(0) | 转发(0)

发布时间:2018-05-10 10:31:43

对于任何应用程序,内存管理都是一个重要的方面,并且他随着应用程序的规模和复杂度增长。然而Gib提供了大量用来管理内存的函数,本小节将只涉及经常用到的这些函数。内存片        高于2.1版本的内存分配器和内存段用来负责内存片分配。然而,在当前发布的版本中,内存片的引入大大地提.........【阅读全文】

阅读(873) | 评论(0) | 转发(0)
给主人留下些什么吧!~~
留言热议
请登录后留言。

登录 注册