只是为了调用回调函数(就是发出信号时调用)“信号(Signals)和事件(events)有关是因为GTK控件 (GtkWidget)通常收到一个事件的时候发出一个信号。这纯粹是为了方便,所以你可以在控件收到一个事件的时候调用一个回调函数。
基于4个网页-相关网页
The next line contains several declarations of Pointers to the GtkWidget type.
下一行包含几个到GtkWidget类型的指针的声明。
Also, the function returns a Boolean value because the callback prototype for the delete-event signal defined for GtkWidget states a Boolean return.
而且,该函数返回布尔值,因为为gtk Widget定义的delete - event信号的回调原型指明的是布尔返回值。
In this scheme, objects are represented by Pointers, and GtkWidget is the basic type — called a class — in the GTK + hierarchy from which all other classes are derived.
在这个方案中,对象由指针代表,而GtkWidget是GTK +层次结构中的基本类型——叫做类,其他类都从它派生而来。
应用推荐