You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
fw-daemon/vendor/github.com/gotk3/gotk3.old/gtk/version.go

31 lines
560 B

package gtk
// #cgo pkg-config: gtk+-3.0
// #include <gtk/gtk.h>
import "C"
import "errors"
func CheckVersion(major, minor, micro uint) error {
errChar := C.gtk_check_version(C.guint(major), C.guint(minor), C.guint(micro))
if errChar == nil {
return nil
}
return errors.New(C.GoString((*C.char)(errChar)))
}
func GetMajorVersion() uint {
v := C.gtk_get_major_version()
return uint(v)
}
func GetMinorVersion() uint {
v := C.gtk_get_minor_version()
return uint(v)
}
func GetMicroVersion() uint {
v := C.gtk_get_micro_version()
return uint(v)
}