gtk/print.go
func PageSetupNewFromFile(fileName string) (*PageSetup, error) {
	cstr := C.CString(fileName)
	defer C.free(unsafe.Pointer(cstr))
	var err *C.GError = nil
	c := C.gtk_page_setup_new_from_file((*C.gchar)(cstr), &err)
	if c == nil {
		defer C.g_error_free(err)
		return nil, errors.New(C.GoString((*C.char)(err.message)))
	}
	obj := glib.Take(unsafe.Pointer(c))
	return &PageSetup{obj}, nil

}
func PageSetupNewFromFile(fileName string) (*PageSetup, error) {
	cstr := C.CString(fileName)
	defer C.free(unsafe.Pointer(cstr))
	var err *C.GError = nil
	c := C.gtk_page_setup_new_from_file((*C.gchar)(cstr), &err)
	if c == nil {
		defer C.g_error_free(err)
		return nil, errors.New(C.GoString((*C.char)(err.message)))
	}
	obj := glib.Take(unsafe.Pointer(c))
	return &PageSetup{obj}, nil

}
func PageSetupNewFromFile ( fileName string ) ( * PageSetup , error ) { cstr := C . CString ( fileName ) defer C . free ( unsafe . Pointer ( cstr ) ) var err * C . GError = nil c := C . gtk_page_setup_new_from_file ( ( * C . gchar ) ( cstr ) , & err ) if c == nil { defer C . g_error_free ( err ) return nil , errors . New ( C . GoString ( ( * C . char ) ( err . message ) ) ) } obj := glib . Take ( unsafe . Pointer ( c ) ) return & PageSetup { obj } , nil }
// PageSetupNewFromFile() is a wrapper around gtk_page_setup_new_from_file().
PageSetupNewFromFile () is a wrapper around gtk_page_setup_new_from_file () .