Пример #1
0
	RECENT_MANAGER_ERROR_NOT_FOUND        = C.GtkRecentManagerError(C.GTK_RECENT_MANAGER_ERROR_NOT_FOUND)
	RECENT_MANAGER_ERROR_INVALID_URI      = C.GtkRecentManagerError(C.GTK_RECENT_MANAGER_ERROR_INVALID_URI)
	RECENT_MANAGER_ERROR_INVALID_ENCODING = C.GtkRecentManagerError(C.GTK_RECENT_MANAGER_ERROR_INVALID_ENCODING)
	RECENT_MANAGER_ERROR_NOT_REGISTERED   = C.GtkRecentManagerError(C.GTK_RECENT_MANAGER_ERROR_NOT_REGISTERED)
	RECENT_MANAGER_ERROR_READ             = C.GtkRecentManagerError(C.GTK_RECENT_MANAGER_ERROR_READ)
	RECENT_MANAGER_ERROR_WRITE            = C.GtkRecentManagerError(C.GTK_RECENT_MANAGER_ERROR_WRITE)
	RECENT_MANAGER_ERROR_UNKNOWN          = C.GtkRecentManagerError(C.GTK_RECENT_MANAGER_ERROR_UNKNOWN)

	// RecentSortType
	RECENT_SORT_NONE   = C.GtkRecentSortType(C.GTK_RECENT_SORT_NONE)
	RECENT_SORT_MRU    = C.GtkRecentSortType(C.GTK_RECENT_SORT_MRU)
	RECENT_SORT_LRU    = C.GtkRecentSortType(C.GTK_RECENT_SORT_LRU)
	RECENT_SORT_CUSTOM = C.GtkRecentSortType(C.GTK_RECENT_SORT_CUSTOM)

	// ReliefStyle
	RELIEF_NORMAL = C.GtkReliefStyle(C.GTK_RELIEF_NORMAL)
	RELIEF_HALF   = C.GtkReliefStyle(C.GTK_RELIEF_HALF)
	RELIEF_NONE   = C.GtkReliefStyle(C.GTK_RELIEF_NONE)

	// ResizeMode
	RESIZE_PARENT    = C.GtkResizeMode(C.GTK_RESIZE_PARENT)
	RESIZE_QUEUE     = C.GtkResizeMode(C.GTK_RESIZE_QUEUE)
	RESIZE_IMMEDIATE = C.GtkResizeMode(C.GTK_RESIZE_IMMEDIATE)

	// ResponseType
	RESPONSE_NONE         = C.GtkResponseType(C.GTK_RESPONSE_NONE)
	RESPONSE_REJECT       = C.GtkResponseType(C.GTK_RESPONSE_REJECT)
	RESPONSE_ACCEPT       = C.GtkResponseType(C.GTK_RESPONSE_ACCEPT)
	RESPONSE_DELETE_EVENT = C.GtkResponseType(C.GTK_RESPONSE_DELETE_EVENT)
	RESPONSE_OK           = C.GtkResponseType(C.GTK_RESPONSE_OK)
	RESPONSE_CANCEL       = C.GtkResponseType(C.GTK_RESPONSE_CANCEL)
Пример #2
0
// void                  gtk_button_set_relief         (GtkButton      *button,
// 						     GtkReliefStyle  newstyle);
func (b *Button) SetRelief(newstyle ReliefStyle) {
	C.gtk_button_set_relief(b.c, C.GtkReliefStyle(newstyle))
}