GTK+ 的gtk_dialog_run 返回值备注

来源:互联网 发布:中国10大网络视频排名 编辑:程序博客网 时间:2024/06/05 12:42

http://developer.gnome.org/gtk/2.24/GtkDialog.html


enum GtkResponseType

typedef enum {  /* GTK returns this if a response widget has no response_id,   * or if the dialog gets programmatically hidden or destroyed.   */  GTK_RESPONSE_NONE = -1,  /* GTK won't return these unless you pass them in   * as the response for an action widget. They are   * for your convenience.   */  GTK_RESPONSE_REJECT = -2,  GTK_RESPONSE_ACCEPT = -3,  /* If the dialog is deleted. */  GTK_RESPONSE_DELETE_EVENT = -4,  /* These are returned from GTK dialogs, and you can also use them   * yourself if you like.   */  GTK_RESPONSE_OK     = -5,  GTK_RESPONSE_CANCEL = -6,  GTK_RESPONSE_CLOSE  = -7,  GTK_RESPONSE_YES    = -8,  GTK_RESPONSE_NO     = -9,  GTK_RESPONSE_APPLY  = -10,  GTK_RESPONSE_HELP   = -11} GtkResponseType;

Predefined values for use as response ids in gtk_dialog_add_button(). All predefined values are negative, GTK+ leaves positive values for application-defined response ids.

GTK_RESPONSE_NONE

Returned if an action widget has no response id, or if the dialog gets programmatically hidden or destroyed.

GTK_RESPONSE_REJECT

Generic response id, not used by GTK+ dialogs.

GTK_RESPONSE_ACCEPT

Generic response id, not used by GTK+ dialogs.

GTK_RESPONSE_DELETE_EVENT

Returned if the dialog is deleted.

GTK_RESPONSE_OK

Returned by OK buttons in GTK+ dialogs.

GTK_RESPONSE_CANCEL

Returned by Cancel buttons in GTK+ dialogs.

GTK_RESPONSE_CLOSE

Returned by Close buttons in GTK+ dialogs.

GTK_RESPONSE_YES

Returned by Yes buttons in GTK+ dialogs.

GTK_RESPONSE_NO

Returned by No buttons in GTK+ dialogs.

GTK_RESPONSE_APPLY

Returned by Apply buttons in GTK+ dialogs.

GTK_RESPONSE_HELP

Returned by Help buttons in GTK+ dialogs.

原创粉丝点击