g_object_notify的使用方法
来源:互联网 发布:tpo模考软件mac版下载 编辑:程序博客网 时间:2024/06/10 08:44
g_object_notify的使用方法
0、注册部分
g_object_class_install_property(gobject_class,
PROP_MODAL,
g_param_spec_boolean("modal", P_("Modal"), P_("if true, the window is modal( other windows are not usable while this one is up)"), FALSE, GTK_PARAM_READWRITE)
);
1、emit部分
g_object_notify(G_OBJECT(window), "modal");
// 0,1 两步骤属于属性的注册和信号发射,放在同一个类里。
2. connect部分
g_signal_connect(window, "notify::modal", G_CALLBACK(notify_modal_received), NULL);
3、回调函数
void notify_modal_received(GtkWidget *window, GParamSpec *pspec)
{
printf("notify modal received");
}
// 2,3 属于信号获取,可以放在需要的类里
转自:http://socol.iteye.com/blog/532484
- g_object_notify的使用方法
- modal dialog 的实现; mainloop的嵌套; g_object_notify的使用方法
- 的使用方法
- ctags使用方法 ctags的使用方法
- UITabBarController的使用方法、 UINavigationController的使用方法、 presentModalViewController的使用方法
- UITabBarController的使用方法 UINavigationController的使用方法
- ctags使用方法 ctags的使用方法1
- DateTime的一些使用方法
- CSDNBlog的使用方法
- RetroGuard的使用方法(转)
- 一些Blog的使用方法
- RAR的命令行使用方法
- VI的使用方法
- Make的使用方法
- COM组件的使用方法
- AgileFlow的使用方法
- COM组件的使用方法
- Log4j包的使用方法
- nginx源码琐碎
- 提高Android程序权限意识
- 一些dba面试题
- linux c 通过hostname获得ip地址
- 查看集群名称(CLUSTER NAME)的两种方法
- g_object_notify的使用方法
- vm中ubuntu 与arm nfs网络服务器挂载的问题解决
- Java native2ascii 简单转码
- sort -k
- 清QC (Quaility Center) 缺陷 重置QC缺陷的BUGID
- autosys log file name contains date
- ASP.NET CMD WebShell
- POJ 1338 ugly numbers
- Zynga欲收购风靡全球的画画猜字游戏Draw Something