文件名称:test
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:13.59kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
/* 在这里我们连接 "destroy" 事件到一个信号处理函数。
* 对这个窗口调用 gtk_widget_destroy() 函数或在 "delete_event" 回调函数中返回 FALSE 值
* 都会触发这个事件。*/
g_signal_connect (G_OBJECT (window), "destroy",
G_CALLBACK (destroy), NULL)
/* 设置窗口边框的宽度。*/
gtk_container_set_border_width (GTK_CONTAINER (window), 10)
/* 创建一个标签为 "Hello World" 的新按钮。*/
button = gtk_button_new_with_label ("hello world")
/* 当按钮收到 "clicked" 信号时会调用 hello() 函数,并将NULL传给
* 它作为参数。hello() 函数在前面定义了。*/
g_signal_connect (G_OBJECT (button), "clicked",
G_CALLBACK (hello), NULL) -/* Here we connect the destroy event to a signal processing function.* On this window to call gtk_widget_destroy () function or in the delete_event callback function returns FALSE value* will trigger this event.*/G_signal_connect (G_OBJECT (window), destroy , G_CALLBACK (destroy), NULL)/* set the width of the window frame.*/Gtk_container_set_border_width (GTK_CONTAINER (window), 10)/* create a label for the Hello World of the new button.*/Button = gtk_button_new_with_label ( hello world )/* When the button before it clicked signal will be called hello () function, and NULL to* it as a parameter. hello () function is defined in front.*/G_signal_connect (G_OBJECT (button), clicked , G_CALLBACK (hello), NULL)
* 对这个窗口调用 gtk_widget_destroy() 函数或在 "delete_event" 回调函数中返回 FALSE 值
* 都会触发这个事件。*/
g_signal_connect (G_OBJECT (window), "destroy",
G_CALLBACK (destroy), NULL)
/* 设置窗口边框的宽度。*/
gtk_container_set_border_width (GTK_CONTAINER (window), 10)
/* 创建一个标签为 "Hello World" 的新按钮。*/
button = gtk_button_new_with_label ("hello world")
/* 当按钮收到 "clicked" 信号时会调用 hello() 函数,并将NULL传给
* 它作为参数。hello() 函数在前面定义了。*/
g_signal_connect (G_OBJECT (button), "clicked",
G_CALLBACK (hello), NULL) -/* Here we connect the destroy event to a signal processing function.* On this window to call gtk_widget_destroy () function or in the delete_event callback function returns FALSE value* will trigger this event.*/G_signal_connect (G_OBJECT (window), destroy , G_CALLBACK (destroy), NULL)/* set the width of the window frame.*/Gtk_container_set_border_width (GTK_CONTAINER (window), 10)/* create a label for the Hello World of the new button.*/Button = gtk_button_new_with_label ( hello world )/* When the button before it clicked signal will be called hello () function, and NULL to* it as a parameter. hello () function is defined in front.*/G_signal_connect (G_OBJECT (button), clicked , G_CALLBACK (hello), NULL)
相关搜索: g_signal_connect
(系统自动生成,下载前可以参看下载内容)
下载文件列表
test/
test/frame.c
test/frame.o
test/hello.c
test/hello.o
test/Makefile.win
test/test.dev
test/test.exe
test/test.exe.Manifest
test/test_private.h
test/test_private.rc
test/test_private.res
test/frame.c
test/frame.o
test/hello.c
test/hello.o
test/Makefile.win
test/test.dev
test/test.exe
test/test.exe.Manifest
test/test_private.h
test/test_private.rc
test/test_private.res
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.