文件名称:test
- 所属分类:
- Linux/Unix编程
- 资源属性:
- [C/C++] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 13kb
- 下载次数:
- 0次
- 提 供 者:
- zho****
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
/* 在这里我们连接 "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 fr a me.*/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 fr a me.*/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
....\frame.c
....\frame.o
....\hello.c
....\hello.o
....\Makefile.win
....\test.dev
....\test.exe
....\test.exe.Manifest
....\test_private.h
....\test_private.rc
....\test_private.res
....\frame.c
....\frame.o
....\hello.c
....\hello.o
....\Makefile.win
....\test.dev
....\test.exe
....\test.exe.Manifest
....\test_private.h
....\test_private.rc
....\test_private.res